Compare commits
54 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9290117d12 | ||
|
|
99236bb124 | ||
|
|
4595bf16e1 | ||
|
|
152b44dbed | ||
|
|
9535455a22 | ||
|
|
2de19aea44 | ||
|
|
23cb861a2f | ||
|
|
2123976cc2 | ||
|
|
7097cf0d88 | ||
|
|
dd1d0e5359 | ||
|
|
3823d5045a | ||
|
|
80e095a3fc | ||
|
|
c12d0267d7 | ||
|
|
d69766bdfd | ||
|
|
7ac1c23a9f | ||
|
|
088c3010cd | ||
|
|
5c7994cbcb | ||
|
|
3fc73ce0c4 | ||
|
|
aa99d784f0 | ||
|
|
f82391b140 | ||
|
|
c920c94335 | ||
|
|
d7f985a33b | ||
|
|
7db054750e | ||
|
|
73412a8d8d | ||
|
|
51f047d6f3 | ||
|
|
2d5bf1dbd8 | ||
|
|
a60cd6a5ae | ||
|
|
59dbc66bfe | ||
|
|
d6292fe40b | ||
|
|
061f62c362 | ||
|
|
a3ccdb3f65 | ||
|
|
565bfada36 | ||
|
|
716769a300 | ||
|
|
c4348c87cb | ||
|
|
d3ce4be157 | ||
|
|
05e5980ef3 | ||
|
|
7cf2b932e7 | ||
|
|
c056e54eae | ||
|
|
04cce0ba30 | ||
|
|
c5b68d7ead | ||
|
|
52e7b30f54 | ||
|
|
98ef8c88e8 | ||
|
|
8f2290c159 | ||
|
|
a264cee31b | ||
|
|
ebdf18def1 | ||
|
|
5a6bd32d63 | ||
|
|
86f01c44a8 | ||
|
|
a69c540c10 | ||
|
|
60ea8efd1a | ||
|
|
20e471c41f | ||
|
|
dbb5d5f56d | ||
|
|
68f2493757 | ||
|
|
ff645a988c | ||
|
|
151822de9a |
174
CHANGELOG
174
CHANGELOG
@@ -1,3 +1,177 @@
|
||||
2020-09-23 Version: patch
|
||||
- Some new parameters are supported.
|
||||
|
||||
2020-09-23 Version: patch
|
||||
- Update domain API.
|
||||
|
||||
2020-09-23 Version: patch
|
||||
- Update Scdn API.
|
||||
|
||||
2020-09-23 Version: patch
|
||||
- Sync cdn APIs.
|
||||
|
||||
2020-09-22 Version: patch
|
||||
- DescribePrice update amount type to string.
|
||||
|
||||
2020-09-22 Version: patch
|
||||
- Generated 2019-03-08 for `ivision`.
|
||||
|
||||
2020-09-22 Version: patch
|
||||
- Generated 2018-01-11 for `rtc`.
|
||||
|
||||
2020-09-22 Version: patch
|
||||
- Generated 2018-12-12 for `vs`.
|
||||
|
||||
2020-09-22 Version: patch
|
||||
- Generated 2016-11-01 for `live`.
|
||||
|
||||
2020-09-21 Version: patch
|
||||
- Interface add column wordCount.
|
||||
|
||||
2020-09-21 Version: patch
|
||||
- Add search object.
|
||||
|
||||
2020-09-20 Version: patch
|
||||
- Add describe devices to return device status.
|
||||
|
||||
2020-09-20 Version: patch
|
||||
- Add describe devices to return device status.
|
||||
|
||||
2020-09-19 Version: patch
|
||||
- Support query user tenant list and current active tenant.
|
||||
- Support query table meta information via table GUID.
|
||||
|
||||
2020-09-18 Version: patch
|
||||
- Update DetectLungNodule, DetectSpineMRI, DetectKneeXRay, DetectCovid19Cad.
|
||||
|
||||
2020-09-17 Version: patch
|
||||
- Add Api DetectIPCPedestrianOptimized.
|
||||
|
||||
2020-09-17 Version: patch
|
||||
- Add Api DetectIPCPedestrianOptimized.
|
||||
|
||||
2020-09-17 Version: patch
|
||||
- GetTitleIntelligence add interface.
|
||||
|
||||
2020-09-17 Version: patch
|
||||
- Fix endpoint.
|
||||
|
||||
2020-09-16 Version: patch
|
||||
- Add Content.
|
||||
|
||||
2020-09-15 Version: patch
|
||||
- Add describe devices to return device status.
|
||||
|
||||
2020-09-14 Version: patch
|
||||
- Support corp name search.
|
||||
|
||||
2020-09-14 Version: patch
|
||||
- Support corp name search.
|
||||
|
||||
2020-09-11 Version: patch
|
||||
- Support execute database script via open api.
|
||||
|
||||
2020-09-10 Version: patch
|
||||
- Add DisableBackupLog.
|
||||
- Add EnableBackupLog.
|
||||
- Add ReleaseBackupPlan.
|
||||
- Add ModifyStorageStrategy.
|
||||
- Modify ModifyBackupStrategy.
|
||||
- Modify ModifyBackupSetDownloadRules.
|
||||
|
||||
2020-09-10 Version: patch
|
||||
- Update HasRenewChangeOrder type to Boolean in DescribeInstances.
|
||||
|
||||
2020-09-09 Version: patch
|
||||
- Add support cn-beijing service region.
|
||||
- Add ai video cover interface,include submit and query.
|
||||
- Add dynamic image query interface.
|
||||
- Update SubmitMediaAuditJob support MediaAuditConfiguration to set ResourceType.
|
||||
|
||||
2020-09-09 Version: patch
|
||||
- Release ChangeSky.
|
||||
|
||||
2020-09-09 Version: patch
|
||||
- Release DetectChefCap.
|
||||
|
||||
2020-09-09 Version: patch
|
||||
- Release DetectKneeKeypointXRay, DetectHipKeypointXRay, CalcCACS, RunCTRegistration, ClassifyFNF.
|
||||
|
||||
2020-09-08 Version: patch
|
||||
- Supported backend interface for ICBU.
|
||||
|
||||
2020-09-08 Version: patch
|
||||
- Add DescribeActiveOperationTask.
|
||||
- Add DescribeActiveOperationTaskCount.
|
||||
- Add DescribeActiveOperationTaskRegion.
|
||||
- Add DescribeActiveOperationTaskType.
|
||||
- Add ModifyActiveOperationTask.
|
||||
|
||||
2020-09-08 Version: patch
|
||||
- Modify CreateAsyncPredict add new parameters.
|
||||
|
||||
2020-09-07 Version: patch
|
||||
- Support parameter APIs.
|
||||
|
||||
2020-09-07 Version: patch
|
||||
- Add describes devices API.
|
||||
|
||||
2020-09-07 Version: patch
|
||||
- Add describes devices API.
|
||||
|
||||
2020-09-07 Version: patch
|
||||
- Add describes devices API.
|
||||
|
||||
2020-09-07 Version: patch
|
||||
- Add describes devices API.
|
||||
|
||||
2020-09-07 Version: patch
|
||||
- Add describes devices API.
|
||||
|
||||
2020-09-05 Version: patch
|
||||
- Add describes devices API.
|
||||
|
||||
2020-09-04 Version: patch
|
||||
- Sync cdn APIs.
|
||||
|
||||
2020-09-04 Version: patch
|
||||
- Update Scdn API.
|
||||
|
||||
2020-09-04 Version: patch
|
||||
- Update domain API.
|
||||
|
||||
2020-09-04 Version: patch
|
||||
- Add GetImageQuality API.
|
||||
- Add more info as parameters to Images related APIs.
|
||||
|
||||
2020-09-03 Version: 1.36.632
|
||||
- DescribeCameraStatistics add parameters.
|
||||
|
||||
2020-09-02 Version: 1.36.631
|
||||
- Support sg for ml region.
|
||||
|
||||
2020-09-02 Version: 1.36.630
|
||||
- ChatApp second version.
|
||||
- Support new message fomat.
|
||||
|
||||
2020-09-02 Version: 1.36.629
|
||||
- Supported AndroidNotificationHuaweiChannel for Push and MassPush.
|
||||
|
||||
2020-09-02 Version: 1.36.628
|
||||
- Supported AndroidNotificationHuaweiChannel for Push and MassPush.
|
||||
|
||||
2020-09-01 Version: 1.36.627
|
||||
- Add Smart Verify API.
|
||||
|
||||
2020-09-01 Version: 1.36.626
|
||||
- Support region route.
|
||||
|
||||
2020-09-01 Version: 1.36.625
|
||||
- Support region route.
|
||||
|
||||
2020-09-01 Version: 1.36.624
|
||||
- Update Parameter.
|
||||
|
||||
2020-08-31 Version: 1.36.623
|
||||
- Support PersonList.
|
||||
|
||||
|
||||
@@ -35,6 +35,8 @@ set(alimt_public_header_model
|
||||
include/alibabacloud/alimt/model/GetTitleDiagnoseResult.h
|
||||
include/alibabacloud/alimt/model/GetTitleGenerateRequest.h
|
||||
include/alibabacloud/alimt/model/GetTitleGenerateResult.h
|
||||
include/alibabacloud/alimt/model/GetTitleIntelligenceRequest.h
|
||||
include/alibabacloud/alimt/model/GetTitleIntelligenceResult.h
|
||||
include/alibabacloud/alimt/model/TranslateRequest.h
|
||||
include/alibabacloud/alimt/model/TranslateResult.h
|
||||
include/alibabacloud/alimt/model/TranslateCertificateRequest.h
|
||||
@@ -60,6 +62,8 @@ set(alimt_src
|
||||
src/model/GetTitleDiagnoseResult.cc
|
||||
src/model/GetTitleGenerateRequest.cc
|
||||
src/model/GetTitleGenerateResult.cc
|
||||
src/model/GetTitleIntelligenceRequest.cc
|
||||
src/model/GetTitleIntelligenceResult.cc
|
||||
src/model/TranslateRequest.cc
|
||||
src/model/TranslateResult.cc
|
||||
src/model/TranslateCertificateRequest.cc
|
||||
|
||||
@@ -36,6 +36,8 @@
|
||||
#include "model/GetTitleDiagnoseResult.h"
|
||||
#include "model/GetTitleGenerateRequest.h"
|
||||
#include "model/GetTitleGenerateResult.h"
|
||||
#include "model/GetTitleIntelligenceRequest.h"
|
||||
#include "model/GetTitleIntelligenceResult.h"
|
||||
#include "model/TranslateRequest.h"
|
||||
#include "model/TranslateResult.h"
|
||||
#include "model/TranslateCertificateRequest.h"
|
||||
@@ -74,6 +76,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetTitleGenerateResult> GetTitleGenerateOutcome;
|
||||
typedef std::future<GetTitleGenerateOutcome> GetTitleGenerateOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::GetTitleGenerateRequest&, const GetTitleGenerateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTitleGenerateAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetTitleIntelligenceResult> GetTitleIntelligenceOutcome;
|
||||
typedef std::future<GetTitleIntelligenceOutcome> GetTitleIntelligenceOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::GetTitleIntelligenceRequest&, const GetTitleIntelligenceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTitleIntelligenceAsyncHandler;
|
||||
typedef Outcome<Error, Model::TranslateResult> TranslateOutcome;
|
||||
typedef std::future<TranslateOutcome> TranslateOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::TranslateRequest&, const TranslateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateAsyncHandler;
|
||||
@@ -112,6 +117,9 @@ namespace AlibabaCloud
|
||||
GetTitleGenerateOutcome getTitleGenerate(const Model::GetTitleGenerateRequest &request)const;
|
||||
void getTitleGenerateAsync(const Model::GetTitleGenerateRequest& request, const GetTitleGenerateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTitleGenerateOutcomeCallable getTitleGenerateCallable(const Model::GetTitleGenerateRequest& request) const;
|
||||
GetTitleIntelligenceOutcome getTitleIntelligence(const Model::GetTitleIntelligenceRequest &request)const;
|
||||
void getTitleIntelligenceAsync(const Model::GetTitleIntelligenceRequest& request, const GetTitleIntelligenceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTitleIntelligenceOutcomeCallable getTitleIntelligenceCallable(const Model::GetTitleIntelligenceRequest& request) const;
|
||||
TranslateOutcome translate(const Model::TranslateRequest &request)const;
|
||||
void translateAsync(const Model::TranslateRequest& request, const TranslateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TranslateOutcomeCallable translateCallable(const Model::TranslateRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIMT_EXPORT GetTitleIntelligenceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetTitleIntelligenceRequest();
|
||||
~GetTitleIntelligenceRequest();
|
||||
|
||||
long getCatLevelThreeId()const;
|
||||
void setCatLevelThreeId(long catLevelThreeId);
|
||||
long getCatLevelTwoId()const;
|
||||
void setCatLevelTwoId(long catLevelTwoId);
|
||||
std::string getKeywords()const;
|
||||
void setKeywords(const std::string& keywords);
|
||||
std::string getPlatform()const;
|
||||
void setPlatform(const std::string& platform);
|
||||
std::string getExtra()const;
|
||||
void setExtra(const std::string& extra);
|
||||
|
||||
private:
|
||||
long catLevelThreeId_;
|
||||
long catLevelTwoId_;
|
||||
std::string keywords_;
|
||||
std::string platform_;
|
||||
std::string extra_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_
|
||||
@@ -14,42 +14,46 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_INDUSTRY_BRAIN_MODEL_GETPOINTRECKONINGVALUERESULT_H_
|
||||
#define ALIBABACLOUD_INDUSTRY_BRAIN_MODEL_GETPOINTRECKONINGVALUERESULT_H_
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCERESULT_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/industry-brain/Industry_brainExport.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Industry_brain
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_INDUSTRY_BRAIN_EXPORT GetPointReckoningValueResult : public ServiceResult
|
||||
class ALIBABACLOUD_ALIMT_EXPORT GetTitleIntelligenceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string titles;
|
||||
};
|
||||
|
||||
|
||||
GetPointReckoningValueResult();
|
||||
explicit GetPointReckoningValueResult(const std::string &payload);
|
||||
~GetPointReckoningValueResult();
|
||||
GetTitleIntelligenceResult();
|
||||
explicit GetTitleIntelligenceResult(const std::string &payload);
|
||||
~GetTitleIntelligenceResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
std::string getCode()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
std::string code_;
|
||||
Data data_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_INDUSTRY_BRAIN_MODEL_GETPOINTRECKONINGVALUERESULT_H_
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCERESULT_H_
|
||||
@@ -34,6 +34,7 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string wordCount;
|
||||
std::string translated;
|
||||
};
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string wordCount;
|
||||
std::string translated;
|
||||
};
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string wordCount;
|
||||
std::string translated;
|
||||
};
|
||||
|
||||
|
||||
@@ -303,6 +303,42 @@ AlimtClient::GetTitleGenerateOutcomeCallable AlimtClient::getTitleGenerateCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::GetTitleIntelligenceOutcome AlimtClient::getTitleIntelligence(const GetTitleIntelligenceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetTitleIntelligenceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetTitleIntelligenceOutcome(GetTitleIntelligenceResult(outcome.result()));
|
||||
else
|
||||
return GetTitleIntelligenceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlimtClient::getTitleIntelligenceAsync(const GetTitleIntelligenceRequest& request, const GetTitleIntelligenceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getTitleIntelligence(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlimtClient::GetTitleIntelligenceOutcomeCallable AlimtClient::getTitleIntelligenceCallable(const GetTitleIntelligenceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetTitleIntelligenceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getTitleIntelligence(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::TranslateOutcome AlimtClient::translate(const TranslateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
84
alimt/src/model/GetTitleIntelligenceRequest.cc
Normal file
84
alimt/src/model/GetTitleIntelligenceRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/GetTitleIntelligenceRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetTitleIntelligenceRequest;
|
||||
|
||||
GetTitleIntelligenceRequest::GetTitleIntelligenceRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "GetTitleIntelligence")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTitleIntelligenceRequest::~GetTitleIntelligenceRequest()
|
||||
{}
|
||||
|
||||
long GetTitleIntelligenceRequest::getCatLevelThreeId()const
|
||||
{
|
||||
return catLevelThreeId_;
|
||||
}
|
||||
|
||||
void GetTitleIntelligenceRequest::setCatLevelThreeId(long catLevelThreeId)
|
||||
{
|
||||
catLevelThreeId_ = catLevelThreeId;
|
||||
setBodyParameter("CatLevelThreeId", std::to_string(catLevelThreeId));
|
||||
}
|
||||
|
||||
long GetTitleIntelligenceRequest::getCatLevelTwoId()const
|
||||
{
|
||||
return catLevelTwoId_;
|
||||
}
|
||||
|
||||
void GetTitleIntelligenceRequest::setCatLevelTwoId(long catLevelTwoId)
|
||||
{
|
||||
catLevelTwoId_ = catLevelTwoId;
|
||||
setBodyParameter("CatLevelTwoId", std::to_string(catLevelTwoId));
|
||||
}
|
||||
|
||||
std::string GetTitleIntelligenceRequest::getKeywords()const
|
||||
{
|
||||
return keywords_;
|
||||
}
|
||||
|
||||
void GetTitleIntelligenceRequest::setKeywords(const std::string& keywords)
|
||||
{
|
||||
keywords_ = keywords;
|
||||
setBodyParameter("Keywords", keywords);
|
||||
}
|
||||
|
||||
std::string GetTitleIntelligenceRequest::getPlatform()const
|
||||
{
|
||||
return platform_;
|
||||
}
|
||||
|
||||
void GetTitleIntelligenceRequest::setPlatform(const std::string& platform)
|
||||
{
|
||||
platform_ = platform;
|
||||
setBodyParameter("Platform", platform);
|
||||
}
|
||||
|
||||
std::string GetTitleIntelligenceRequest::getExtra()const
|
||||
{
|
||||
return extra_;
|
||||
}
|
||||
|
||||
void GetTitleIntelligenceRequest::setExtra(const std::string& extra)
|
||||
{
|
||||
extra_ = extra;
|
||||
setBodyParameter("Extra", extra);
|
||||
}
|
||||
|
||||
@@ -14,51 +14,52 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/industry-brain/model/GetPointReckoningValueResult.h>
|
||||
#include <alibabacloud/alimt/model/GetTitleIntelligenceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Industry_brain;
|
||||
using namespace AlibabaCloud::Industry_brain::Model;
|
||||
using namespace AlibabaCloud::Alimt;
|
||||
using namespace AlibabaCloud::Alimt::Model;
|
||||
|
||||
GetPointReckoningValueResult::GetPointReckoningValueResult() :
|
||||
GetTitleIntelligenceResult::GetTitleIntelligenceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetPointReckoningValueResult::GetPointReckoningValueResult(const std::string &payload) :
|
||||
GetTitleIntelligenceResult::GetTitleIntelligenceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetPointReckoningValueResult::~GetPointReckoningValueResult()
|
||||
GetTitleIntelligenceResult::~GetTitleIntelligenceResult()
|
||||
{}
|
||||
|
||||
void GetPointReckoningValueResult::parse(const std::string &payload)
|
||||
void GetTitleIntelligenceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Titles"].isNull())
|
||||
data_.titles = dataNode["Titles"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetPointReckoningValueResult::getMessage()const
|
||||
std::string GetTitleIntelligenceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string GetPointReckoningValueResult::getData()const
|
||||
GetTitleIntelligenceResult::Data GetTitleIntelligenceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetPointReckoningValueResult::getCode()const
|
||||
int GetTitleIntelligenceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
@@ -42,6 +42,8 @@ void TranslateECommerceResult::parse(const std::string &payload)
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Translated"].isNull())
|
||||
data_.translated = dataNode["Translated"].asString();
|
||||
if(!dataNode["WordCount"].isNull())
|
||||
data_.wordCount = dataNode["WordCount"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
|
||||
@@ -42,6 +42,8 @@ void TranslateGeneralResult::parse(const std::string &payload)
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Translated"].isNull())
|
||||
data_.translated = dataNode["Translated"].asString();
|
||||
if(!dataNode["WordCount"].isNull())
|
||||
data_.wordCount = dataNode["WordCount"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
|
||||
@@ -42,6 +42,8 @@ void TranslateResult::parse(const std::string &payload)
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Translated"].isNull())
|
||||
data_.translated = dataNode["Translated"].asString();
|
||||
if(!dataNode["WordCount"].isNull())
|
||||
data_.wordCount = dataNode["WordCount"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
|
||||
@@ -39,8 +39,14 @@ namespace AlibabaCloud
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getTemplateBodyParams()const;
|
||||
void setTemplateBodyParams(const std::string& templateBodyParams);
|
||||
std::string getLink()const;
|
||||
void setLink(const std::string& link);
|
||||
std::string getCaption()const;
|
||||
void setCaption(const std::string& caption);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getBody()const;
|
||||
void setBody(const std::string& body);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getChannelType()const;
|
||||
@@ -55,11 +61,16 @@ namespace AlibabaCloud
|
||||
void setTo(const std::string& to);
|
||||
std::string getTemplateCode()const;
|
||||
void setTemplateCode(const std::string& templateCode);
|
||||
std::string getMediaType()const;
|
||||
void setMediaType(const std::string& mediaType);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string templateBodyParams_;
|
||||
std::string link_;
|
||||
std::string caption_;
|
||||
std::string type_;
|
||||
std::string body_;
|
||||
std::string accessKeyId_;
|
||||
std::string channelType_;
|
||||
std::string from_;
|
||||
@@ -67,6 +78,7 @@ namespace AlibabaCloud
|
||||
long ownerId_;
|
||||
std::string to_;
|
||||
std::string templateCode_;
|
||||
std::string mediaType_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -46,7 +46,29 @@ std::string SendMessageRequest::getTemplateBodyParams()const
|
||||
void SendMessageRequest::setTemplateBodyParams(const std::string& templateBodyParams)
|
||||
{
|
||||
templateBodyParams_ = templateBodyParams;
|
||||
setParameter("TemplateBodyParams", templateBodyParams);
|
||||
setBodyParameter("TemplateBodyParams", templateBodyParams);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getLink()const
|
||||
{
|
||||
return link_;
|
||||
}
|
||||
|
||||
void SendMessageRequest::setLink(const std::string& link)
|
||||
{
|
||||
link_ = link;
|
||||
setBodyParameter("Link", link);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getCaption()const
|
||||
{
|
||||
return caption_;
|
||||
}
|
||||
|
||||
void SendMessageRequest::setCaption(const std::string& caption)
|
||||
{
|
||||
caption_ = caption;
|
||||
setBodyParameter("Caption", caption);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getType()const
|
||||
@@ -57,7 +79,18 @@ std::string SendMessageRequest::getType()const
|
||||
void SendMessageRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
setBodyParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getBody()const
|
||||
{
|
||||
return body_;
|
||||
}
|
||||
|
||||
void SendMessageRequest::setBody(const std::string& body)
|
||||
{
|
||||
body_ = body;
|
||||
setBodyParameter("Body", body);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getAccessKeyId()const
|
||||
@@ -79,7 +112,7 @@ std::string SendMessageRequest::getChannelType()const
|
||||
void SendMessageRequest::setChannelType(const std::string& channelType)
|
||||
{
|
||||
channelType_ = channelType;
|
||||
setParameter("ChannelType", channelType);
|
||||
setBodyParameter("ChannelType", channelType);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getFrom()const
|
||||
@@ -90,7 +123,7 @@ std::string SendMessageRequest::getFrom()const
|
||||
void SendMessageRequest::setFrom(const std::string& from)
|
||||
{
|
||||
from_ = from;
|
||||
setParameter("From", from);
|
||||
setBodyParameter("From", from);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getResourceOwnerAccount()const
|
||||
@@ -123,7 +156,7 @@ std::string SendMessageRequest::getTo()const
|
||||
void SendMessageRequest::setTo(const std::string& to)
|
||||
{
|
||||
to_ = to;
|
||||
setParameter("To", to);
|
||||
setBodyParameter("To", to);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getTemplateCode()const
|
||||
@@ -134,6 +167,17 @@ std::string SendMessageRequest::getTemplateCode()const
|
||||
void SendMessageRequest::setTemplateCode(const std::string& templateCode)
|
||||
{
|
||||
templateCode_ = templateCode;
|
||||
setParameter("TemplateCode", templateCode);
|
||||
setBodyParameter("TemplateCode", templateCode);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getMediaType()const
|
||||
{
|
||||
return mediaType_;
|
||||
}
|
||||
|
||||
void SendMessageRequest::setMediaType(const std::string& mediaType)
|
||||
{
|
||||
mediaType_ = mediaType;
|
||||
setBodyParameter("MediaType", mediaType);
|
||||
}
|
||||
|
||||
|
||||
@@ -109,6 +109,8 @@ set(cdn_public_header_model
|
||||
include/alibabacloud/cdn/model/DescribeCdnUserBillTypeResult.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnUserConfigsRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnUserConfigsResult.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnUserDomainsByFuncRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnUserDomainsByFuncResult.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnUserQuotaRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnUserQuotaResult.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnUserResourcePackageRequest.h
|
||||
@@ -393,12 +395,8 @@ set(cdn_public_header_model
|
||||
include/alibabacloud/cdn/model/SetReqHeaderConfigResult.h
|
||||
include/alibabacloud/cdn/model/SetSourceHostConfigRequest.h
|
||||
include/alibabacloud/cdn/model/SetSourceHostConfigResult.h
|
||||
include/alibabacloud/cdn/model/SetUserGreenManagerConfigRequest.h
|
||||
include/alibabacloud/cdn/model/SetUserGreenManagerConfigResult.h
|
||||
include/alibabacloud/cdn/model/SetVideoSeekConfigRequest.h
|
||||
include/alibabacloud/cdn/model/SetVideoSeekConfigResult.h
|
||||
include/alibabacloud/cdn/model/SetWafConfigRequest.h
|
||||
include/alibabacloud/cdn/model/SetWafConfigResult.h
|
||||
include/alibabacloud/cdn/model/SetWaitingRoomConfigRequest.h
|
||||
include/alibabacloud/cdn/model/SetWaitingRoomConfigResult.h
|
||||
include/alibabacloud/cdn/model/StartCdnDomainRequest.h
|
||||
@@ -506,6 +504,8 @@ set(cdn_src
|
||||
src/model/DescribeCdnUserBillTypeResult.cc
|
||||
src/model/DescribeCdnUserConfigsRequest.cc
|
||||
src/model/DescribeCdnUserConfigsResult.cc
|
||||
src/model/DescribeCdnUserDomainsByFuncRequest.cc
|
||||
src/model/DescribeCdnUserDomainsByFuncResult.cc
|
||||
src/model/DescribeCdnUserQuotaRequest.cc
|
||||
src/model/DescribeCdnUserQuotaResult.cc
|
||||
src/model/DescribeCdnUserResourcePackageRequest.cc
|
||||
@@ -790,12 +790,8 @@ set(cdn_src
|
||||
src/model/SetReqHeaderConfigResult.cc
|
||||
src/model/SetSourceHostConfigRequest.cc
|
||||
src/model/SetSourceHostConfigResult.cc
|
||||
src/model/SetUserGreenManagerConfigRequest.cc
|
||||
src/model/SetUserGreenManagerConfigResult.cc
|
||||
src/model/SetVideoSeekConfigRequest.cc
|
||||
src/model/SetVideoSeekConfigResult.cc
|
||||
src/model/SetWafConfigRequest.cc
|
||||
src/model/SetWafConfigResult.cc
|
||||
src/model/SetWaitingRoomConfigRequest.cc
|
||||
src/model/SetWaitingRoomConfigResult.cc
|
||||
src/model/StartCdnDomainRequest.cc
|
||||
|
||||
@@ -110,6 +110,8 @@
|
||||
#include "model/DescribeCdnUserBillTypeResult.h"
|
||||
#include "model/DescribeCdnUserConfigsRequest.h"
|
||||
#include "model/DescribeCdnUserConfigsResult.h"
|
||||
#include "model/DescribeCdnUserDomainsByFuncRequest.h"
|
||||
#include "model/DescribeCdnUserDomainsByFuncResult.h"
|
||||
#include "model/DescribeCdnUserQuotaRequest.h"
|
||||
#include "model/DescribeCdnUserQuotaResult.h"
|
||||
#include "model/DescribeCdnUserResourcePackageRequest.h"
|
||||
@@ -394,12 +396,8 @@
|
||||
#include "model/SetReqHeaderConfigResult.h"
|
||||
#include "model/SetSourceHostConfigRequest.h"
|
||||
#include "model/SetSourceHostConfigResult.h"
|
||||
#include "model/SetUserGreenManagerConfigRequest.h"
|
||||
#include "model/SetUserGreenManagerConfigResult.h"
|
||||
#include "model/SetVideoSeekConfigRequest.h"
|
||||
#include "model/SetVideoSeekConfigResult.h"
|
||||
#include "model/SetWafConfigRequest.h"
|
||||
#include "model/SetWafConfigResult.h"
|
||||
#include "model/SetWaitingRoomConfigRequest.h"
|
||||
#include "model/SetWaitingRoomConfigResult.h"
|
||||
#include "model/StartCdnDomainRequest.h"
|
||||
@@ -557,6 +555,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeCdnUserConfigsResult> DescribeCdnUserConfigsOutcome;
|
||||
typedef std::future<DescribeCdnUserConfigsOutcome> DescribeCdnUserConfigsOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeCdnUserConfigsRequest&, const DescribeCdnUserConfigsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCdnUserConfigsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeCdnUserDomainsByFuncResult> DescribeCdnUserDomainsByFuncOutcome;
|
||||
typedef std::future<DescribeCdnUserDomainsByFuncOutcome> DescribeCdnUserDomainsByFuncOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeCdnUserDomainsByFuncRequest&, const DescribeCdnUserDomainsByFuncOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCdnUserDomainsByFuncAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeCdnUserQuotaResult> DescribeCdnUserQuotaOutcome;
|
||||
typedef std::future<DescribeCdnUserQuotaOutcome> DescribeCdnUserQuotaOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeCdnUserQuotaRequest&, const DescribeCdnUserQuotaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCdnUserQuotaAsyncHandler;
|
||||
@@ -983,15 +984,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::SetSourceHostConfigResult> SetSourceHostConfigOutcome;
|
||||
typedef std::future<SetSourceHostConfigOutcome> SetSourceHostConfigOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::SetSourceHostConfigRequest&, const SetSourceHostConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetSourceHostConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetUserGreenManagerConfigResult> SetUserGreenManagerConfigOutcome;
|
||||
typedef std::future<SetUserGreenManagerConfigOutcome> SetUserGreenManagerConfigOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::SetUserGreenManagerConfigRequest&, const SetUserGreenManagerConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetUserGreenManagerConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetVideoSeekConfigResult> SetVideoSeekConfigOutcome;
|
||||
typedef std::future<SetVideoSeekConfigOutcome> SetVideoSeekConfigOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::SetVideoSeekConfigRequest&, const SetVideoSeekConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetVideoSeekConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetWafConfigResult> SetWafConfigOutcome;
|
||||
typedef std::future<SetWafConfigOutcome> SetWafConfigOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::SetWafConfigRequest&, const SetWafConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetWafConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetWaitingRoomConfigResult> SetWaitingRoomConfigOutcome;
|
||||
typedef std::future<SetWaitingRoomConfigOutcome> SetWaitingRoomConfigOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::SetWaitingRoomConfigRequest&, const SetWaitingRoomConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetWaitingRoomConfigAsyncHandler;
|
||||
@@ -1153,6 +1148,9 @@ namespace AlibabaCloud
|
||||
DescribeCdnUserConfigsOutcome describeCdnUserConfigs(const Model::DescribeCdnUserConfigsRequest &request)const;
|
||||
void describeCdnUserConfigsAsync(const Model::DescribeCdnUserConfigsRequest& request, const DescribeCdnUserConfigsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeCdnUserConfigsOutcomeCallable describeCdnUserConfigsCallable(const Model::DescribeCdnUserConfigsRequest& request) const;
|
||||
DescribeCdnUserDomainsByFuncOutcome describeCdnUserDomainsByFunc(const Model::DescribeCdnUserDomainsByFuncRequest &request)const;
|
||||
void describeCdnUserDomainsByFuncAsync(const Model::DescribeCdnUserDomainsByFuncRequest& request, const DescribeCdnUserDomainsByFuncAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeCdnUserDomainsByFuncOutcomeCallable describeCdnUserDomainsByFuncCallable(const Model::DescribeCdnUserDomainsByFuncRequest& request) const;
|
||||
DescribeCdnUserQuotaOutcome describeCdnUserQuota(const Model::DescribeCdnUserQuotaRequest &request)const;
|
||||
void describeCdnUserQuotaAsync(const Model::DescribeCdnUserQuotaRequest& request, const DescribeCdnUserQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeCdnUserQuotaOutcomeCallable describeCdnUserQuotaCallable(const Model::DescribeCdnUserQuotaRequest& request) const;
|
||||
@@ -1579,15 +1577,9 @@ namespace AlibabaCloud
|
||||
SetSourceHostConfigOutcome setSourceHostConfig(const Model::SetSourceHostConfigRequest &request)const;
|
||||
void setSourceHostConfigAsync(const Model::SetSourceHostConfigRequest& request, const SetSourceHostConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetSourceHostConfigOutcomeCallable setSourceHostConfigCallable(const Model::SetSourceHostConfigRequest& request) const;
|
||||
SetUserGreenManagerConfigOutcome setUserGreenManagerConfig(const Model::SetUserGreenManagerConfigRequest &request)const;
|
||||
void setUserGreenManagerConfigAsync(const Model::SetUserGreenManagerConfigRequest& request, const SetUserGreenManagerConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetUserGreenManagerConfigOutcomeCallable setUserGreenManagerConfigCallable(const Model::SetUserGreenManagerConfigRequest& request) const;
|
||||
SetVideoSeekConfigOutcome setVideoSeekConfig(const Model::SetVideoSeekConfigRequest &request)const;
|
||||
void setVideoSeekConfigAsync(const Model::SetVideoSeekConfigRequest& request, const SetVideoSeekConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetVideoSeekConfigOutcomeCallable setVideoSeekConfigCallable(const Model::SetVideoSeekConfigRequest& request) const;
|
||||
SetWafConfigOutcome setWafConfig(const Model::SetWafConfigRequest &request)const;
|
||||
void setWafConfigAsync(const Model::SetWafConfigRequest& request, const SetWafConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetWafConfigOutcomeCallable setWafConfigCallable(const Model::SetWafConfigRequest& request) const;
|
||||
SetWaitingRoomConfigOutcome setWaitingRoomConfig(const Model::SetWaitingRoomConfigRequest &request)const;
|
||||
void setWaitingRoomConfigAsync(const Model::SetWaitingRoomConfigRequest& request, const SetWaitingRoomConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetWaitingRoomConfigOutcomeCallable setWaitingRoomConfigCallable(const Model::SetWaitingRoomConfigRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CDN_MODEL_DESCRIBECDNUSERDOMAINSBYFUNCREQUEST_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_DESCRIBECDNUSERDOMAINSBYFUNCREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cdn/CdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDN_EXPORT DescribeCdnUserDomainsByFuncRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeCdnUserDomainsByFuncRequest();
|
||||
~DescribeCdnUserDomainsByFuncRequest();
|
||||
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
int getFuncId()const;
|
||||
void setFuncId(int funcId);
|
||||
|
||||
private:
|
||||
int pageNumber_;
|
||||
std::string resourceGroupId_;
|
||||
int pageSize_;
|
||||
long ownerId_;
|
||||
int funcId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBECDNUSERDOMAINSBYFUNCREQUEST_H_
|
||||
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CDN_MODEL_DESCRIBECDNUSERDOMAINSBYFUNCRESULT_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_DESCRIBECDNUSERDOMAINSBYFUNCRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cdn/CdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDN_EXPORT DescribeCdnUserDomainsByFuncResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PageData
|
||||
{
|
||||
struct Source
|
||||
{
|
||||
std::string type;
|
||||
std::string content;
|
||||
std::string priority;
|
||||
int port;
|
||||
std::string weight;
|
||||
};
|
||||
std::string description;
|
||||
std::string sslProtocol;
|
||||
std::string resourceGroupId;
|
||||
std::string domainName;
|
||||
std::string gmtModified;
|
||||
std::string cdnType;
|
||||
std::string gmtCreated;
|
||||
std::vector<PageData::Source> sources;
|
||||
std::string cname;
|
||||
std::string domainStatus;
|
||||
std::string sandbox;
|
||||
};
|
||||
|
||||
|
||||
DescribeCdnUserDomainsByFuncResult();
|
||||
explicit DescribeCdnUserDomainsByFuncResult(const std::string &payload);
|
||||
~DescribeCdnUserDomainsByFuncResult();
|
||||
std::vector<PageData> getDomains()const;
|
||||
long getTotalCount()const;
|
||||
long getPageSize()const;
|
||||
long getPageNumber()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<PageData> domains_;
|
||||
long totalCount_;
|
||||
long pageSize_;
|
||||
long pageNumber_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBECDNUSERDOMAINSBYFUNCRESULT_H_
|
||||
@@ -1635,6 +1635,42 @@ CdnClient::DescribeCdnUserConfigsOutcomeCallable CdnClient::describeCdnUserConfi
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::DescribeCdnUserDomainsByFuncOutcome CdnClient::describeCdnUserDomainsByFunc(const DescribeCdnUserDomainsByFuncRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeCdnUserDomainsByFuncOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeCdnUserDomainsByFuncOutcome(DescribeCdnUserDomainsByFuncResult(outcome.result()));
|
||||
else
|
||||
return DescribeCdnUserDomainsByFuncOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CdnClient::describeCdnUserDomainsByFuncAsync(const DescribeCdnUserDomainsByFuncRequest& request, const DescribeCdnUserDomainsByFuncAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeCdnUserDomainsByFunc(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CdnClient::DescribeCdnUserDomainsByFuncOutcomeCallable CdnClient::describeCdnUserDomainsByFuncCallable(const DescribeCdnUserDomainsByFuncRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeCdnUserDomainsByFuncOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeCdnUserDomainsByFunc(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::DescribeCdnUserQuotaOutcome CdnClient::describeCdnUserQuota(const DescribeCdnUserQuotaRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -6747,42 +6783,6 @@ CdnClient::SetSourceHostConfigOutcomeCallable CdnClient::setSourceHostConfigCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::SetUserGreenManagerConfigOutcome CdnClient::setUserGreenManagerConfig(const SetUserGreenManagerConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetUserGreenManagerConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SetUserGreenManagerConfigOutcome(SetUserGreenManagerConfigResult(outcome.result()));
|
||||
else
|
||||
return SetUserGreenManagerConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CdnClient::setUserGreenManagerConfigAsync(const SetUserGreenManagerConfigRequest& request, const SetUserGreenManagerConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, setUserGreenManagerConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CdnClient::SetUserGreenManagerConfigOutcomeCallable CdnClient::setUserGreenManagerConfigCallable(const SetUserGreenManagerConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SetUserGreenManagerConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->setUserGreenManagerConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::SetVideoSeekConfigOutcome CdnClient::setVideoSeekConfig(const SetVideoSeekConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -6819,42 +6819,6 @@ CdnClient::SetVideoSeekConfigOutcomeCallable CdnClient::setVideoSeekConfigCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::SetWafConfigOutcome CdnClient::setWafConfig(const SetWafConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetWafConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SetWafConfigOutcome(SetWafConfigResult(outcome.result()));
|
||||
else
|
||||
return SetWafConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CdnClient::setWafConfigAsync(const SetWafConfigRequest& request, const SetWafConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, setWafConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CdnClient::SetWafConfigOutcomeCallable CdnClient::setWafConfigCallable(const SetWafConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SetWafConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->setWafConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::SetWaitingRoomConfigOutcome CdnClient::setWaitingRoomConfig(const SetWaitingRoomConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::Cdn::Model::BatchDeleteCdnDomainConfigRequest;
|
||||
|
||||
BatchDeleteCdnDomainConfigRequest::BatchDeleteCdnDomainConfigRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "BatchDeleteCdnDomainConfig")
|
||||
RpcServiceRequest("cdn", "2014-11-11", "BatchDeleteCdnDomainConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
84
cdn/src/model/DescribeCdnUserDomainsByFuncRequest.cc
Normal file
84
cdn/src/model/DescribeCdnUserDomainsByFuncRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdn/model/DescribeCdnUserDomainsByFuncRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DescribeCdnUserDomainsByFuncRequest;
|
||||
|
||||
DescribeCdnUserDomainsByFuncRequest::DescribeCdnUserDomainsByFuncRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "DescribeCdnUserDomainsByFunc")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeCdnUserDomainsByFuncRequest::~DescribeCdnUserDomainsByFuncRequest()
|
||||
{}
|
||||
|
||||
int DescribeCdnUserDomainsByFuncRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeCdnUserDomainsByFuncRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeCdnUserDomainsByFuncRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DescribeCdnUserDomainsByFuncRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
int DescribeCdnUserDomainsByFuncRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeCdnUserDomainsByFuncRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeCdnUserDomainsByFuncRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeCdnUserDomainsByFuncRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeCdnUserDomainsByFuncRequest::getFuncId()const
|
||||
{
|
||||
return funcId_;
|
||||
}
|
||||
|
||||
void DescribeCdnUserDomainsByFuncRequest::setFuncId(int funcId)
|
||||
{
|
||||
funcId_ = funcId;
|
||||
setParameter("FuncId", std::to_string(funcId));
|
||||
}
|
||||
|
||||
112
cdn/src/model/DescribeCdnUserDomainsByFuncResult.cc
Normal file
112
cdn/src/model/DescribeCdnUserDomainsByFuncResult.cc
Normal file
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdn/model/DescribeCdnUserDomainsByFuncResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DescribeCdnUserDomainsByFuncResult::DescribeCdnUserDomainsByFuncResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCdnUserDomainsByFuncResult::DescribeCdnUserDomainsByFuncResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCdnUserDomainsByFuncResult::~DescribeCdnUserDomainsByFuncResult()
|
||||
{}
|
||||
|
||||
void DescribeCdnUserDomainsByFuncResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDomainsNode = value["Domains"]["PageData"];
|
||||
for (auto valueDomainsPageData : allDomainsNode)
|
||||
{
|
||||
PageData domainsObject;
|
||||
if(!valueDomainsPageData["DomainName"].isNull())
|
||||
domainsObject.domainName = valueDomainsPageData["DomainName"].asString();
|
||||
if(!valueDomainsPageData["Cname"].isNull())
|
||||
domainsObject.cname = valueDomainsPageData["Cname"].asString();
|
||||
if(!valueDomainsPageData["CdnType"].isNull())
|
||||
domainsObject.cdnType = valueDomainsPageData["CdnType"].asString();
|
||||
if(!valueDomainsPageData["DomainStatus"].isNull())
|
||||
domainsObject.domainStatus = valueDomainsPageData["DomainStatus"].asString();
|
||||
if(!valueDomainsPageData["GmtCreated"].isNull())
|
||||
domainsObject.gmtCreated = valueDomainsPageData["GmtCreated"].asString();
|
||||
if(!valueDomainsPageData["GmtModified"].isNull())
|
||||
domainsObject.gmtModified = valueDomainsPageData["GmtModified"].asString();
|
||||
if(!valueDomainsPageData["Description"].isNull())
|
||||
domainsObject.description = valueDomainsPageData["Description"].asString();
|
||||
if(!valueDomainsPageData["SslProtocol"].isNull())
|
||||
domainsObject.sslProtocol = valueDomainsPageData["SslProtocol"].asString();
|
||||
if(!valueDomainsPageData["ResourceGroupId"].isNull())
|
||||
domainsObject.resourceGroupId = valueDomainsPageData["ResourceGroupId"].asString();
|
||||
if(!valueDomainsPageData["Sandbox"].isNull())
|
||||
domainsObject.sandbox = valueDomainsPageData["Sandbox"].asString();
|
||||
auto allSourcesNode = allDomainsNode["Sources"]["Source"];
|
||||
for (auto allDomainsNodeSourcesSource : allSourcesNode)
|
||||
{
|
||||
PageData::Source sourcesObject;
|
||||
if(!allDomainsNodeSourcesSource["Type"].isNull())
|
||||
sourcesObject.type = allDomainsNodeSourcesSource["Type"].asString();
|
||||
if(!allDomainsNodeSourcesSource["Content"].isNull())
|
||||
sourcesObject.content = allDomainsNodeSourcesSource["Content"].asString();
|
||||
if(!allDomainsNodeSourcesSource["Port"].isNull())
|
||||
sourcesObject.port = std::stoi(allDomainsNodeSourcesSource["Port"].asString());
|
||||
if(!allDomainsNodeSourcesSource["Priority"].isNull())
|
||||
sourcesObject.priority = allDomainsNodeSourcesSource["Priority"].asString();
|
||||
if(!allDomainsNodeSourcesSource["Weight"].isNull())
|
||||
sourcesObject.weight = allDomainsNodeSourcesSource["Weight"].asString();
|
||||
domainsObject.sources.push_back(sourcesObject);
|
||||
}
|
||||
domains_.push_back(domainsObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeCdnUserDomainsByFuncResult::PageData> DescribeCdnUserDomainsByFuncResult::getDomains()const
|
||||
{
|
||||
return domains_;
|
||||
}
|
||||
|
||||
long DescribeCdnUserDomainsByFuncResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
long DescribeCdnUserDomainsByFuncResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribeCdnUserDomainsByFuncResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdn/model/SetUserGreenManagerConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::SetUserGreenManagerConfigRequest;
|
||||
|
||||
SetUserGreenManagerConfigRequest::SetUserGreenManagerConfigRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "SetUserGreenManagerConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SetUserGreenManagerConfigRequest::~SetUserGreenManagerConfigRequest()
|
||||
{}
|
||||
|
||||
long SetUserGreenManagerConfigRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void SetUserGreenManagerConfigRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string SetUserGreenManagerConfigRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void SetUserGreenManagerConfigRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string SetUserGreenManagerConfigRequest::getQuota()const
|
||||
{
|
||||
return quota_;
|
||||
}
|
||||
|
||||
void SetUserGreenManagerConfigRequest::setQuota(const std::string& quota)
|
||||
{
|
||||
quota_ = quota;
|
||||
setParameter("Quota", quota);
|
||||
}
|
||||
|
||||
std::string SetUserGreenManagerConfigRequest::getRatio()const
|
||||
{
|
||||
return ratio_;
|
||||
}
|
||||
|
||||
void SetUserGreenManagerConfigRequest::setRatio(const std::string& ratio)
|
||||
{
|
||||
ratio_ = ratio;
|
||||
setParameter("Ratio", ratio);
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdn/model/SetWafConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::SetWafConfigRequest;
|
||||
|
||||
SetWafConfigRequest::SetWafConfigRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "SetWafConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SetWafConfigRequest::~SetWafConfigRequest()
|
||||
{}
|
||||
|
||||
std::string SetWafConfigRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void SetWafConfigRequest::setEnable(const std::string& enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", enable);
|
||||
}
|
||||
|
||||
std::string SetWafConfigRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void SetWafConfigRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long SetWafConfigRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void SetWafConfigRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long SetWafConfigRequest::getConfigId()const
|
||||
{
|
||||
return configId_;
|
||||
}
|
||||
|
||||
void SetWafConfigRequest::setConfigId(long configId)
|
||||
{
|
||||
configId_ = configId;
|
||||
setParameter("ConfigId", std::to_string(configId));
|
||||
}
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string passed;
|
||||
std::string materialInfo;
|
||||
float passedScore;
|
||||
std::string subCode;
|
||||
};
|
||||
|
||||
|
||||
@@ -37,12 +37,16 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getIp()const;
|
||||
void setIp(const std::string& ip);
|
||||
std::string getCertName()const;
|
||||
void setCertName(const std::string& certName);
|
||||
std::string getMobile()const;
|
||||
void setMobile(const std::string& mobile);
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
std::string getMode()const;
|
||||
void setMode(const std::string& mode);
|
||||
std::string getCertNo()const;
|
||||
void setCertNo(const std::string& certNo);
|
||||
std::string getOuterOrderNo()const;
|
||||
void setOuterOrderNo(const std::string& outerOrderNo);
|
||||
std::string getCertType()const;
|
||||
@@ -51,16 +55,21 @@ namespace AlibabaCloud
|
||||
void setSceneId(long sceneId);
|
||||
std::string getMetaInfo()const;
|
||||
void setMetaInfo(const std::string& metaInfo);
|
||||
std::string getOcr()const;
|
||||
void setOcr(const std::string& ocr);
|
||||
|
||||
private:
|
||||
std::string ip_;
|
||||
std::string certName_;
|
||||
std::string mobile_;
|
||||
std::string userId_;
|
||||
std::string mode_;
|
||||
std::string certNo_;
|
||||
std::string outerOrderNo_;
|
||||
std::string certType_;
|
||||
long sceneId_;
|
||||
std::string metaInfo_;
|
||||
std::string ocr_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -46,6 +46,8 @@ void DescribeSmartVerifyResult::parse(const std::string &payload)
|
||||
resultObject_.subCode = resultObjectNode["SubCode"].asString();
|
||||
if(!resultObjectNode["MaterialInfo"].isNull())
|
||||
resultObject_.materialInfo = resultObjectNode["MaterialInfo"].asString();
|
||||
if(!resultObjectNode["PassedScore"].isNull())
|
||||
resultObject_.passedScore = std::stof(resultObjectNode["PassedScore"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
@@ -38,6 +38,17 @@ void InitSmartVerifyRequest::setIp(const std::string& ip)
|
||||
setBodyParameter("Ip", ip);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getCertName()const
|
||||
{
|
||||
return certName_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setCertName(const std::string& certName)
|
||||
{
|
||||
certName_ = certName;
|
||||
setBodyParameter("CertName", certName);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getMobile()const
|
||||
{
|
||||
return mobile_;
|
||||
@@ -71,6 +82,17 @@ void InitSmartVerifyRequest::setMode(const std::string& mode)
|
||||
setBodyParameter("Mode", mode);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getCertNo()const
|
||||
{
|
||||
return certNo_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setCertNo(const std::string& certNo)
|
||||
{
|
||||
certNo_ = certNo;
|
||||
setBodyParameter("CertNo", certNo);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getOuterOrderNo()const
|
||||
{
|
||||
return outerOrderNo_;
|
||||
@@ -115,3 +137,14 @@ void InitSmartVerifyRequest::setMetaInfo(const std::string& metaInfo)
|
||||
setBodyParameter("MetaInfo", metaInfo);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getOcr()const
|
||||
{
|
||||
return ocr_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setOcr(const std::string& ocr)
|
||||
{
|
||||
ocr_ = ocr;
|
||||
setBodyParameter("Ocr", ocr);
|
||||
}
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@ RpcServiceRequest::RpcServiceRequest(const std::string &product,
|
||||
const std::string &action)
|
||||
: ServiceRequest(product, version) {
|
||||
setActionName(action);
|
||||
setHeader(std::string("x-acs-action"), action);
|
||||
}
|
||||
|
||||
RpcServiceRequest::~RpcServiceRequest() {}
|
||||
|
||||
@@ -25,7 +25,9 @@ ServiceRequest::ServiceRequest(const std::string &product,
|
||||
: content_(nullptr), contentSize_(0), params_(), product_(product),
|
||||
resourcePath_("/"), version_(version), scheme_("https"),
|
||||
connectTimeout_(kInvalidTimeout), readTimeout_(kInvalidTimeout),
|
||||
method_(HttpRequest::Method::Get) {}
|
||||
method_(HttpRequest::Method::Get) {
|
||||
setHeader(std::string("x-acs-version"), version);
|
||||
}
|
||||
|
||||
ServiceRequest::ServiceRequest(const ServiceRequest &other)
|
||||
: content_(nullptr), contentSize_(other.contentSize_),
|
||||
|
||||
@@ -31,26 +31,26 @@ set(cs_public_header_model
|
||||
include/alibabacloud/cs/model/CancelWorkflowResult.h
|
||||
include/alibabacloud/cs/model/CreateClusterRequest.h
|
||||
include/alibabacloud/cs/model/CreateClusterResult.h
|
||||
include/alibabacloud/cs/model/CreateKubernetesTriggerRequest.h
|
||||
include/alibabacloud/cs/model/CreateKubernetesTriggerResult.h
|
||||
include/alibabacloud/cs/model/CreateTemplateRequest.h
|
||||
include/alibabacloud/cs/model/CreateTemplateResult.h
|
||||
include/alibabacloud/cs/model/CreateTriggerHookRequest.h
|
||||
include/alibabacloud/cs/model/CreateTriggerHookResult.h
|
||||
include/alibabacloud/cs/model/DeleteClusterRequest.h
|
||||
include/alibabacloud/cs/model/DeleteClusterResult.h
|
||||
include/alibabacloud/cs/model/DeleteClusterNodesRequest.h
|
||||
include/alibabacloud/cs/model/DeleteClusterNodesResult.h
|
||||
include/alibabacloud/cs/model/DeleteKubernetesTriggerRequest.h
|
||||
include/alibabacloud/cs/model/DeleteKubernetesTriggerResult.h
|
||||
include/alibabacloud/cs/model/DeleteTemplateRequest.h
|
||||
include/alibabacloud/cs/model/DeleteTemplateResult.h
|
||||
include/alibabacloud/cs/model/DeleteTriggerHookRequest.h
|
||||
include/alibabacloud/cs/model/DeleteTriggerHookResult.h
|
||||
include/alibabacloud/cs/model/DescirbeWorkflowRequest.h
|
||||
include/alibabacloud/cs/model/DescirbeWorkflowResult.h
|
||||
include/alibabacloud/cs/model/DescribeAddonsRequest.h
|
||||
include/alibabacloud/cs/model/DescribeAddonsResult.h
|
||||
include/alibabacloud/cs/model/DescribeApiVersionRequest.h
|
||||
include/alibabacloud/cs/model/DescribeApiVersionResult.h
|
||||
include/alibabacloud/cs/model/DescribeClusterAddonUpgradeStatusRequest.h
|
||||
include/alibabacloud/cs/model/DescribeClusterAddonUpgradeStatusResult.h
|
||||
include/alibabacloud/cs/model/DescribeClusterAddonsUpgradeStatusRequest.h
|
||||
include/alibabacloud/cs/model/DescribeClusterAddonsUpgradeStatusResult.h
|
||||
include/alibabacloud/cs/model/DescribeClusterAddonsVersionRequest.h
|
||||
include/alibabacloud/cs/model/DescribeClusterAddonsVersionResult.h
|
||||
include/alibabacloud/cs/model/DescribeClusterAttachScriptsRequest.h
|
||||
@@ -69,6 +69,8 @@ set(cs_public_header_model
|
||||
include/alibabacloud/cs/model/DescribeClusterV2UserKubeconfigResult.h
|
||||
include/alibabacloud/cs/model/DescribeClustersRequest.h
|
||||
include/alibabacloud/cs/model/DescribeClustersResult.h
|
||||
include/alibabacloud/cs/model/DescribeClustersV1Request.h
|
||||
include/alibabacloud/cs/model/DescribeClustersV1Result.h
|
||||
include/alibabacloud/cs/model/DescribeExternalAgentRequest.h
|
||||
include/alibabacloud/cs/model/DescribeExternalAgentResult.h
|
||||
include/alibabacloud/cs/model/DescribeTemplatesRequest.h
|
||||
@@ -77,6 +79,8 @@ set(cs_public_header_model
|
||||
include/alibabacloud/cs/model/DescribeUserQuotaResult.h
|
||||
include/alibabacloud/cs/model/DescribeWorkflowsRequest.h
|
||||
include/alibabacloud/cs/model/DescribeWorkflowsResult.h
|
||||
include/alibabacloud/cs/model/GetKubernetesTriggerRequest.h
|
||||
include/alibabacloud/cs/model/GetKubernetesTriggerResult.h
|
||||
include/alibabacloud/cs/model/GetUpgradeStatusRequest.h
|
||||
include/alibabacloud/cs/model/GetUpgradeStatusResult.h
|
||||
include/alibabacloud/cs/model/InstallClusterAddonsRequest.h
|
||||
@@ -85,6 +89,8 @@ set(cs_public_header_model
|
||||
include/alibabacloud/cs/model/ListTagResourcesResult.h
|
||||
include/alibabacloud/cs/model/ModifyClusterRequest.h
|
||||
include/alibabacloud/cs/model/ModifyClusterResult.h
|
||||
include/alibabacloud/cs/model/ModifyClusterConfigurationRequest.h
|
||||
include/alibabacloud/cs/model/ModifyClusterConfigurationResult.h
|
||||
include/alibabacloud/cs/model/ModifyClusterTagsRequest.h
|
||||
include/alibabacloud/cs/model/ModifyClusterTagsResult.h
|
||||
include/alibabacloud/cs/model/PauseClusterUpgradeRequest.h
|
||||
@@ -109,6 +115,8 @@ set(cs_public_header_model
|
||||
include/alibabacloud/cs/model/UnInstallClusterAddonsResult.h
|
||||
include/alibabacloud/cs/model/UpdateK8sClusterUserConfigExpireRequest.h
|
||||
include/alibabacloud/cs/model/UpdateK8sClusterUserConfigExpireResult.h
|
||||
include/alibabacloud/cs/model/UpdateTemplateRequest.h
|
||||
include/alibabacloud/cs/model/UpdateTemplateResult.h
|
||||
include/alibabacloud/cs/model/UpgradeClusterRequest.h
|
||||
include/alibabacloud/cs/model/UpgradeClusterResult.h
|
||||
include/alibabacloud/cs/model/UpgradeClusterAddonsRequest.h
|
||||
@@ -126,26 +134,26 @@ set(cs_src
|
||||
src/model/CancelWorkflowResult.cc
|
||||
src/model/CreateClusterRequest.cc
|
||||
src/model/CreateClusterResult.cc
|
||||
src/model/CreateKubernetesTriggerRequest.cc
|
||||
src/model/CreateKubernetesTriggerResult.cc
|
||||
src/model/CreateTemplateRequest.cc
|
||||
src/model/CreateTemplateResult.cc
|
||||
src/model/CreateTriggerHookRequest.cc
|
||||
src/model/CreateTriggerHookResult.cc
|
||||
src/model/DeleteClusterRequest.cc
|
||||
src/model/DeleteClusterResult.cc
|
||||
src/model/DeleteClusterNodesRequest.cc
|
||||
src/model/DeleteClusterNodesResult.cc
|
||||
src/model/DeleteKubernetesTriggerRequest.cc
|
||||
src/model/DeleteKubernetesTriggerResult.cc
|
||||
src/model/DeleteTemplateRequest.cc
|
||||
src/model/DeleteTemplateResult.cc
|
||||
src/model/DeleteTriggerHookRequest.cc
|
||||
src/model/DeleteTriggerHookResult.cc
|
||||
src/model/DescirbeWorkflowRequest.cc
|
||||
src/model/DescirbeWorkflowResult.cc
|
||||
src/model/DescribeAddonsRequest.cc
|
||||
src/model/DescribeAddonsResult.cc
|
||||
src/model/DescribeApiVersionRequest.cc
|
||||
src/model/DescribeApiVersionResult.cc
|
||||
src/model/DescribeClusterAddonUpgradeStatusRequest.cc
|
||||
src/model/DescribeClusterAddonUpgradeStatusResult.cc
|
||||
src/model/DescribeClusterAddonsUpgradeStatusRequest.cc
|
||||
src/model/DescribeClusterAddonsUpgradeStatusResult.cc
|
||||
src/model/DescribeClusterAddonsVersionRequest.cc
|
||||
src/model/DescribeClusterAddonsVersionResult.cc
|
||||
src/model/DescribeClusterAttachScriptsRequest.cc
|
||||
@@ -164,6 +172,8 @@ set(cs_src
|
||||
src/model/DescribeClusterV2UserKubeconfigResult.cc
|
||||
src/model/DescribeClustersRequest.cc
|
||||
src/model/DescribeClustersResult.cc
|
||||
src/model/DescribeClustersV1Request.cc
|
||||
src/model/DescribeClustersV1Result.cc
|
||||
src/model/DescribeExternalAgentRequest.cc
|
||||
src/model/DescribeExternalAgentResult.cc
|
||||
src/model/DescribeTemplatesRequest.cc
|
||||
@@ -172,6 +182,8 @@ set(cs_src
|
||||
src/model/DescribeUserQuotaResult.cc
|
||||
src/model/DescribeWorkflowsRequest.cc
|
||||
src/model/DescribeWorkflowsResult.cc
|
||||
src/model/GetKubernetesTriggerRequest.cc
|
||||
src/model/GetKubernetesTriggerResult.cc
|
||||
src/model/GetUpgradeStatusRequest.cc
|
||||
src/model/GetUpgradeStatusResult.cc
|
||||
src/model/InstallClusterAddonsRequest.cc
|
||||
@@ -180,6 +192,8 @@ set(cs_src
|
||||
src/model/ListTagResourcesResult.cc
|
||||
src/model/ModifyClusterRequest.cc
|
||||
src/model/ModifyClusterResult.cc
|
||||
src/model/ModifyClusterConfigurationRequest.cc
|
||||
src/model/ModifyClusterConfigurationResult.cc
|
||||
src/model/ModifyClusterTagsRequest.cc
|
||||
src/model/ModifyClusterTagsResult.cc
|
||||
src/model/PauseClusterUpgradeRequest.cc
|
||||
@@ -204,6 +218,8 @@ set(cs_src
|
||||
src/model/UnInstallClusterAddonsResult.cc
|
||||
src/model/UpdateK8sClusterUserConfigExpireRequest.cc
|
||||
src/model/UpdateK8sClusterUserConfigExpireResult.cc
|
||||
src/model/UpdateTemplateRequest.cc
|
||||
src/model/UpdateTemplateResult.cc
|
||||
src/model/UpgradeClusterRequest.cc
|
||||
src/model/UpgradeClusterResult.cc
|
||||
src/model/UpgradeClusterAddonsRequest.cc
|
||||
|
||||
@@ -32,26 +32,26 @@
|
||||
#include "model/CancelWorkflowResult.h"
|
||||
#include "model/CreateClusterRequest.h"
|
||||
#include "model/CreateClusterResult.h"
|
||||
#include "model/CreateKubernetesTriggerRequest.h"
|
||||
#include "model/CreateKubernetesTriggerResult.h"
|
||||
#include "model/CreateTemplateRequest.h"
|
||||
#include "model/CreateTemplateResult.h"
|
||||
#include "model/CreateTriggerHookRequest.h"
|
||||
#include "model/CreateTriggerHookResult.h"
|
||||
#include "model/DeleteClusterRequest.h"
|
||||
#include "model/DeleteClusterResult.h"
|
||||
#include "model/DeleteClusterNodesRequest.h"
|
||||
#include "model/DeleteClusterNodesResult.h"
|
||||
#include "model/DeleteKubernetesTriggerRequest.h"
|
||||
#include "model/DeleteKubernetesTriggerResult.h"
|
||||
#include "model/DeleteTemplateRequest.h"
|
||||
#include "model/DeleteTemplateResult.h"
|
||||
#include "model/DeleteTriggerHookRequest.h"
|
||||
#include "model/DeleteTriggerHookResult.h"
|
||||
#include "model/DescirbeWorkflowRequest.h"
|
||||
#include "model/DescirbeWorkflowResult.h"
|
||||
#include "model/DescribeAddonsRequest.h"
|
||||
#include "model/DescribeAddonsResult.h"
|
||||
#include "model/DescribeApiVersionRequest.h"
|
||||
#include "model/DescribeApiVersionResult.h"
|
||||
#include "model/DescribeClusterAddonUpgradeStatusRequest.h"
|
||||
#include "model/DescribeClusterAddonUpgradeStatusResult.h"
|
||||
#include "model/DescribeClusterAddonsUpgradeStatusRequest.h"
|
||||
#include "model/DescribeClusterAddonsUpgradeStatusResult.h"
|
||||
#include "model/DescribeClusterAddonsVersionRequest.h"
|
||||
#include "model/DescribeClusterAddonsVersionResult.h"
|
||||
#include "model/DescribeClusterAttachScriptsRequest.h"
|
||||
@@ -70,6 +70,8 @@
|
||||
#include "model/DescribeClusterV2UserKubeconfigResult.h"
|
||||
#include "model/DescribeClustersRequest.h"
|
||||
#include "model/DescribeClustersResult.h"
|
||||
#include "model/DescribeClustersV1Request.h"
|
||||
#include "model/DescribeClustersV1Result.h"
|
||||
#include "model/DescribeExternalAgentRequest.h"
|
||||
#include "model/DescribeExternalAgentResult.h"
|
||||
#include "model/DescribeTemplatesRequest.h"
|
||||
@@ -78,6 +80,8 @@
|
||||
#include "model/DescribeUserQuotaResult.h"
|
||||
#include "model/DescribeWorkflowsRequest.h"
|
||||
#include "model/DescribeWorkflowsResult.h"
|
||||
#include "model/GetKubernetesTriggerRequest.h"
|
||||
#include "model/GetKubernetesTriggerResult.h"
|
||||
#include "model/GetUpgradeStatusRequest.h"
|
||||
#include "model/GetUpgradeStatusResult.h"
|
||||
#include "model/InstallClusterAddonsRequest.h"
|
||||
@@ -86,6 +90,8 @@
|
||||
#include "model/ListTagResourcesResult.h"
|
||||
#include "model/ModifyClusterRequest.h"
|
||||
#include "model/ModifyClusterResult.h"
|
||||
#include "model/ModifyClusterConfigurationRequest.h"
|
||||
#include "model/ModifyClusterConfigurationResult.h"
|
||||
#include "model/ModifyClusterTagsRequest.h"
|
||||
#include "model/ModifyClusterTagsResult.h"
|
||||
#include "model/PauseClusterUpgradeRequest.h"
|
||||
@@ -110,6 +116,8 @@
|
||||
#include "model/UnInstallClusterAddonsResult.h"
|
||||
#include "model/UpdateK8sClusterUserConfigExpireRequest.h"
|
||||
#include "model/UpdateK8sClusterUserConfigExpireResult.h"
|
||||
#include "model/UpdateTemplateRequest.h"
|
||||
#include "model/UpdateTemplateResult.h"
|
||||
#include "model/UpgradeClusterRequest.h"
|
||||
#include "model/UpgradeClusterResult.h"
|
||||
#include "model/UpgradeClusterAddonsRequest.h"
|
||||
@@ -138,36 +146,36 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateClusterResult> CreateClusterOutcome;
|
||||
typedef std::future<CreateClusterOutcome> CreateClusterOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::CreateClusterRequest&, const CreateClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateClusterAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateKubernetesTriggerResult> CreateKubernetesTriggerOutcome;
|
||||
typedef std::future<CreateKubernetesTriggerOutcome> CreateKubernetesTriggerOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::CreateKubernetesTriggerRequest&, const CreateKubernetesTriggerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateKubernetesTriggerAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateTemplateResult> CreateTemplateOutcome;
|
||||
typedef std::future<CreateTemplateOutcome> CreateTemplateOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::CreateTemplateRequest&, const CreateTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTemplateAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateTriggerHookResult> CreateTriggerHookOutcome;
|
||||
typedef std::future<CreateTriggerHookOutcome> CreateTriggerHookOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::CreateTriggerHookRequest&, const CreateTriggerHookOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTriggerHookAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteClusterResult> DeleteClusterOutcome;
|
||||
typedef std::future<DeleteClusterOutcome> DeleteClusterOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::DeleteClusterRequest&, const DeleteClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteClusterAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteClusterNodesResult> DeleteClusterNodesOutcome;
|
||||
typedef std::future<DeleteClusterNodesOutcome> DeleteClusterNodesOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::DeleteClusterNodesRequest&, const DeleteClusterNodesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteClusterNodesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteKubernetesTriggerResult> DeleteKubernetesTriggerOutcome;
|
||||
typedef std::future<DeleteKubernetesTriggerOutcome> DeleteKubernetesTriggerOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::DeleteKubernetesTriggerRequest&, const DeleteKubernetesTriggerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteKubernetesTriggerAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteTemplateResult> DeleteTemplateOutcome;
|
||||
typedef std::future<DeleteTemplateOutcome> DeleteTemplateOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::DeleteTemplateRequest&, const DeleteTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTemplateAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteTriggerHookResult> DeleteTriggerHookOutcome;
|
||||
typedef std::future<DeleteTriggerHookOutcome> DeleteTriggerHookOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::DeleteTriggerHookRequest&, const DeleteTriggerHookOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTriggerHookAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescirbeWorkflowResult> DescirbeWorkflowOutcome;
|
||||
typedef std::future<DescirbeWorkflowOutcome> DescirbeWorkflowOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::DescirbeWorkflowRequest&, const DescirbeWorkflowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescirbeWorkflowAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAddonsResult> DescribeAddonsOutcome;
|
||||
typedef std::future<DescribeAddonsOutcome> DescribeAddonsOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::DescribeAddonsRequest&, const DescribeAddonsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAddonsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeApiVersionResult> DescribeApiVersionOutcome;
|
||||
typedef std::future<DescribeApiVersionOutcome> DescribeApiVersionOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::DescribeApiVersionRequest&, const DescribeApiVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeApiVersionAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeClusterAddonUpgradeStatusResult> DescribeClusterAddonUpgradeStatusOutcome;
|
||||
typedef std::future<DescribeClusterAddonUpgradeStatusOutcome> DescribeClusterAddonUpgradeStatusOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::DescribeClusterAddonUpgradeStatusRequest&, const DescribeClusterAddonUpgradeStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeClusterAddonUpgradeStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeClusterAddonsUpgradeStatusResult> DescribeClusterAddonsUpgradeStatusOutcome;
|
||||
typedef std::future<DescribeClusterAddonsUpgradeStatusOutcome> DescribeClusterAddonsUpgradeStatusOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::DescribeClusterAddonsUpgradeStatusRequest&, const DescribeClusterAddonsUpgradeStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeClusterAddonsUpgradeStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeClusterAddonsVersionResult> DescribeClusterAddonsVersionOutcome;
|
||||
typedef std::future<DescribeClusterAddonsVersionOutcome> DescribeClusterAddonsVersionOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::DescribeClusterAddonsVersionRequest&, const DescribeClusterAddonsVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeClusterAddonsVersionAsyncHandler;
|
||||
@@ -195,6 +203,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeClustersResult> DescribeClustersOutcome;
|
||||
typedef std::future<DescribeClustersOutcome> DescribeClustersOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::DescribeClustersRequest&, const DescribeClustersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeClustersAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeClustersV1Result> DescribeClustersV1Outcome;
|
||||
typedef std::future<DescribeClustersV1Outcome> DescribeClustersV1OutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::DescribeClustersV1Request&, const DescribeClustersV1Outcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeClustersV1AsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeExternalAgentResult> DescribeExternalAgentOutcome;
|
||||
typedef std::future<DescribeExternalAgentOutcome> DescribeExternalAgentOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::DescribeExternalAgentRequest&, const DescribeExternalAgentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeExternalAgentAsyncHandler;
|
||||
@@ -207,6 +218,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeWorkflowsResult> DescribeWorkflowsOutcome;
|
||||
typedef std::future<DescribeWorkflowsOutcome> DescribeWorkflowsOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::DescribeWorkflowsRequest&, const DescribeWorkflowsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeWorkflowsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetKubernetesTriggerResult> GetKubernetesTriggerOutcome;
|
||||
typedef std::future<GetKubernetesTriggerOutcome> GetKubernetesTriggerOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::GetKubernetesTriggerRequest&, const GetKubernetesTriggerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetKubernetesTriggerAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetUpgradeStatusResult> GetUpgradeStatusOutcome;
|
||||
typedef std::future<GetUpgradeStatusOutcome> GetUpgradeStatusOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::GetUpgradeStatusRequest&, const GetUpgradeStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUpgradeStatusAsyncHandler;
|
||||
@@ -219,6 +233,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifyClusterResult> ModifyClusterOutcome;
|
||||
typedef std::future<ModifyClusterOutcome> ModifyClusterOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::ModifyClusterRequest&, const ModifyClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyClusterAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyClusterConfigurationResult> ModifyClusterConfigurationOutcome;
|
||||
typedef std::future<ModifyClusterConfigurationOutcome> ModifyClusterConfigurationOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::ModifyClusterConfigurationRequest&, const ModifyClusterConfigurationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyClusterConfigurationAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyClusterTagsResult> ModifyClusterTagsOutcome;
|
||||
typedef std::future<ModifyClusterTagsOutcome> ModifyClusterTagsOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::ModifyClusterTagsRequest&, const ModifyClusterTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyClusterTagsAsyncHandler;
|
||||
@@ -255,6 +272,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateK8sClusterUserConfigExpireResult> UpdateK8sClusterUserConfigExpireOutcome;
|
||||
typedef std::future<UpdateK8sClusterUserConfigExpireOutcome> UpdateK8sClusterUserConfigExpireOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::UpdateK8sClusterUserConfigExpireRequest&, const UpdateK8sClusterUserConfigExpireOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateK8sClusterUserConfigExpireAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateTemplateResult> UpdateTemplateOutcome;
|
||||
typedef std::future<UpdateTemplateOutcome> UpdateTemplateOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::UpdateTemplateRequest&, const UpdateTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateTemplateAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpgradeClusterResult> UpgradeClusterOutcome;
|
||||
typedef std::future<UpgradeClusterOutcome> UpgradeClusterOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::UpgradeClusterRequest&, const UpgradeClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpgradeClusterAsyncHandler;
|
||||
@@ -281,36 +301,36 @@ namespace AlibabaCloud
|
||||
CreateClusterOutcome createCluster(const Model::CreateClusterRequest &request)const;
|
||||
void createClusterAsync(const Model::CreateClusterRequest& request, const CreateClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateClusterOutcomeCallable createClusterCallable(const Model::CreateClusterRequest& request) const;
|
||||
CreateKubernetesTriggerOutcome createKubernetesTrigger(const Model::CreateKubernetesTriggerRequest &request)const;
|
||||
void createKubernetesTriggerAsync(const Model::CreateKubernetesTriggerRequest& request, const CreateKubernetesTriggerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateKubernetesTriggerOutcomeCallable createKubernetesTriggerCallable(const Model::CreateKubernetesTriggerRequest& request) const;
|
||||
CreateTemplateOutcome createTemplate(const Model::CreateTemplateRequest &request)const;
|
||||
void createTemplateAsync(const Model::CreateTemplateRequest& request, const CreateTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateTemplateOutcomeCallable createTemplateCallable(const Model::CreateTemplateRequest& request) const;
|
||||
CreateTriggerHookOutcome createTriggerHook(const Model::CreateTriggerHookRequest &request)const;
|
||||
void createTriggerHookAsync(const Model::CreateTriggerHookRequest& request, const CreateTriggerHookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateTriggerHookOutcomeCallable createTriggerHookCallable(const Model::CreateTriggerHookRequest& request) const;
|
||||
DeleteClusterOutcome deleteCluster(const Model::DeleteClusterRequest &request)const;
|
||||
void deleteClusterAsync(const Model::DeleteClusterRequest& request, const DeleteClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteClusterOutcomeCallable deleteClusterCallable(const Model::DeleteClusterRequest& request) const;
|
||||
DeleteClusterNodesOutcome deleteClusterNodes(const Model::DeleteClusterNodesRequest &request)const;
|
||||
void deleteClusterNodesAsync(const Model::DeleteClusterNodesRequest& request, const DeleteClusterNodesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteClusterNodesOutcomeCallable deleteClusterNodesCallable(const Model::DeleteClusterNodesRequest& request) const;
|
||||
DeleteKubernetesTriggerOutcome deleteKubernetesTrigger(const Model::DeleteKubernetesTriggerRequest &request)const;
|
||||
void deleteKubernetesTriggerAsync(const Model::DeleteKubernetesTriggerRequest& request, const DeleteKubernetesTriggerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteKubernetesTriggerOutcomeCallable deleteKubernetesTriggerCallable(const Model::DeleteKubernetesTriggerRequest& request) const;
|
||||
DeleteTemplateOutcome deleteTemplate(const Model::DeleteTemplateRequest &request)const;
|
||||
void deleteTemplateAsync(const Model::DeleteTemplateRequest& request, const DeleteTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteTemplateOutcomeCallable deleteTemplateCallable(const Model::DeleteTemplateRequest& request) const;
|
||||
DeleteTriggerHookOutcome deleteTriggerHook(const Model::DeleteTriggerHookRequest &request)const;
|
||||
void deleteTriggerHookAsync(const Model::DeleteTriggerHookRequest& request, const DeleteTriggerHookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteTriggerHookOutcomeCallable deleteTriggerHookCallable(const Model::DeleteTriggerHookRequest& request) const;
|
||||
DescirbeWorkflowOutcome descirbeWorkflow(const Model::DescirbeWorkflowRequest &request)const;
|
||||
void descirbeWorkflowAsync(const Model::DescirbeWorkflowRequest& request, const DescirbeWorkflowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescirbeWorkflowOutcomeCallable descirbeWorkflowCallable(const Model::DescirbeWorkflowRequest& request) const;
|
||||
DescribeAddonsOutcome describeAddons(const Model::DescribeAddonsRequest &request)const;
|
||||
void describeAddonsAsync(const Model::DescribeAddonsRequest& request, const DescribeAddonsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAddonsOutcomeCallable describeAddonsCallable(const Model::DescribeAddonsRequest& request) const;
|
||||
DescribeApiVersionOutcome describeApiVersion(const Model::DescribeApiVersionRequest &request)const;
|
||||
void describeApiVersionAsync(const Model::DescribeApiVersionRequest& request, const DescribeApiVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeApiVersionOutcomeCallable describeApiVersionCallable(const Model::DescribeApiVersionRequest& request) const;
|
||||
DescribeClusterAddonUpgradeStatusOutcome describeClusterAddonUpgradeStatus(const Model::DescribeClusterAddonUpgradeStatusRequest &request)const;
|
||||
void describeClusterAddonUpgradeStatusAsync(const Model::DescribeClusterAddonUpgradeStatusRequest& request, const DescribeClusterAddonUpgradeStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeClusterAddonUpgradeStatusOutcomeCallable describeClusterAddonUpgradeStatusCallable(const Model::DescribeClusterAddonUpgradeStatusRequest& request) const;
|
||||
DescribeClusterAddonsUpgradeStatusOutcome describeClusterAddonsUpgradeStatus(const Model::DescribeClusterAddonsUpgradeStatusRequest &request)const;
|
||||
void describeClusterAddonsUpgradeStatusAsync(const Model::DescribeClusterAddonsUpgradeStatusRequest& request, const DescribeClusterAddonsUpgradeStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeClusterAddonsUpgradeStatusOutcomeCallable describeClusterAddonsUpgradeStatusCallable(const Model::DescribeClusterAddonsUpgradeStatusRequest& request) const;
|
||||
DescribeClusterAddonsVersionOutcome describeClusterAddonsVersion(const Model::DescribeClusterAddonsVersionRequest &request)const;
|
||||
void describeClusterAddonsVersionAsync(const Model::DescribeClusterAddonsVersionRequest& request, const DescribeClusterAddonsVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeClusterAddonsVersionOutcomeCallable describeClusterAddonsVersionCallable(const Model::DescribeClusterAddonsVersionRequest& request) const;
|
||||
@@ -338,6 +358,9 @@ namespace AlibabaCloud
|
||||
DescribeClustersOutcome describeClusters(const Model::DescribeClustersRequest &request)const;
|
||||
void describeClustersAsync(const Model::DescribeClustersRequest& request, const DescribeClustersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeClustersOutcomeCallable describeClustersCallable(const Model::DescribeClustersRequest& request) const;
|
||||
DescribeClustersV1Outcome describeClustersV1(const Model::DescribeClustersV1Request &request)const;
|
||||
void describeClustersV1Async(const Model::DescribeClustersV1Request& request, const DescribeClustersV1AsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeClustersV1OutcomeCallable describeClustersV1Callable(const Model::DescribeClustersV1Request& request) const;
|
||||
DescribeExternalAgentOutcome describeExternalAgent(const Model::DescribeExternalAgentRequest &request)const;
|
||||
void describeExternalAgentAsync(const Model::DescribeExternalAgentRequest& request, const DescribeExternalAgentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeExternalAgentOutcomeCallable describeExternalAgentCallable(const Model::DescribeExternalAgentRequest& request) const;
|
||||
@@ -350,6 +373,9 @@ namespace AlibabaCloud
|
||||
DescribeWorkflowsOutcome describeWorkflows(const Model::DescribeWorkflowsRequest &request)const;
|
||||
void describeWorkflowsAsync(const Model::DescribeWorkflowsRequest& request, const DescribeWorkflowsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeWorkflowsOutcomeCallable describeWorkflowsCallable(const Model::DescribeWorkflowsRequest& request) const;
|
||||
GetKubernetesTriggerOutcome getKubernetesTrigger(const Model::GetKubernetesTriggerRequest &request)const;
|
||||
void getKubernetesTriggerAsync(const Model::GetKubernetesTriggerRequest& request, const GetKubernetesTriggerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetKubernetesTriggerOutcomeCallable getKubernetesTriggerCallable(const Model::GetKubernetesTriggerRequest& request) const;
|
||||
GetUpgradeStatusOutcome getUpgradeStatus(const Model::GetUpgradeStatusRequest &request)const;
|
||||
void getUpgradeStatusAsync(const Model::GetUpgradeStatusRequest& request, const GetUpgradeStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetUpgradeStatusOutcomeCallable getUpgradeStatusCallable(const Model::GetUpgradeStatusRequest& request) const;
|
||||
@@ -362,6 +388,9 @@ namespace AlibabaCloud
|
||||
ModifyClusterOutcome modifyCluster(const Model::ModifyClusterRequest &request)const;
|
||||
void modifyClusterAsync(const Model::ModifyClusterRequest& request, const ModifyClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyClusterOutcomeCallable modifyClusterCallable(const Model::ModifyClusterRequest& request) const;
|
||||
ModifyClusterConfigurationOutcome modifyClusterConfiguration(const Model::ModifyClusterConfigurationRequest &request)const;
|
||||
void modifyClusterConfigurationAsync(const Model::ModifyClusterConfigurationRequest& request, const ModifyClusterConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyClusterConfigurationOutcomeCallable modifyClusterConfigurationCallable(const Model::ModifyClusterConfigurationRequest& request) const;
|
||||
ModifyClusterTagsOutcome modifyClusterTags(const Model::ModifyClusterTagsRequest &request)const;
|
||||
void modifyClusterTagsAsync(const Model::ModifyClusterTagsRequest& request, const ModifyClusterTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyClusterTagsOutcomeCallable modifyClusterTagsCallable(const Model::ModifyClusterTagsRequest& request) const;
|
||||
@@ -398,6 +427,9 @@ namespace AlibabaCloud
|
||||
UpdateK8sClusterUserConfigExpireOutcome updateK8sClusterUserConfigExpire(const Model::UpdateK8sClusterUserConfigExpireRequest &request)const;
|
||||
void updateK8sClusterUserConfigExpireAsync(const Model::UpdateK8sClusterUserConfigExpireRequest& request, const UpdateK8sClusterUserConfigExpireAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateK8sClusterUserConfigExpireOutcomeCallable updateK8sClusterUserConfigExpireCallable(const Model::UpdateK8sClusterUserConfigExpireRequest& request) const;
|
||||
UpdateTemplateOutcome updateTemplate(const Model::UpdateTemplateRequest &request)const;
|
||||
void updateTemplateAsync(const Model::UpdateTemplateRequest& request, const UpdateTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateTemplateOutcomeCallable updateTemplateCallable(const Model::UpdateTemplateRequest& request) const;
|
||||
UpgradeClusterOutcome upgradeCluster(const Model::UpgradeClusterRequest &request)const;
|
||||
void upgradeClusterAsync(const Model::UpgradeClusterRequest& request, const UpgradeClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpgradeClusterOutcomeCallable upgradeClusterCallable(const Model::UpgradeClusterRequest& request) const;
|
||||
|
||||
@@ -43,18 +43,30 @@ namespace AlibabaCloud
|
||||
void setKey_pair(const std::string& key_pair);
|
||||
std::string getCpu_policy()const;
|
||||
void setCpu_policy(const std::string& cpu_policy);
|
||||
bool getIs_edge_worker()const;
|
||||
void setIs_edge_worker(bool is_edge_worker);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getUser_data()const;
|
||||
void setUser_data(const std::string& user_data);
|
||||
std::string getImage_id()const;
|
||||
void setImage_id(const std::string& image_id);
|
||||
bool getFormat_disk()const;
|
||||
void setFormat_disk(bool format_disk);
|
||||
std::string getNodepool_id()const;
|
||||
void setNodepool_id(const std::string& nodepool_id);
|
||||
|
||||
private:
|
||||
std::string password_;
|
||||
bool keep_instance_name_;
|
||||
std::string key_pair_;
|
||||
std::string cpu_policy_;
|
||||
bool is_edge_worker_;
|
||||
std::string clusterId_;
|
||||
std::string user_data_;
|
||||
std::string image_id_;
|
||||
bool format_disk_;
|
||||
std::string nodepool_id_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,14 +35,16 @@ namespace AlibabaCloud
|
||||
CreateClusterRequest();
|
||||
~CreateClusterRequest();
|
||||
|
||||
bool getPrivate_zone()const;
|
||||
void setPrivate_zone(bool private_zone);
|
||||
std::string getProxy_mode()const;
|
||||
void setProxy_mode(const std::string& proxy_mode);
|
||||
std::string getMaster_system_disk_category()const;
|
||||
void setMaster_system_disk_category(const std::string& master_system_disk_category);
|
||||
long getMaster_period()const;
|
||||
void setMaster_period(long master_period);
|
||||
bool getCloud_monitor_flags()const;
|
||||
void setCloud_monitor_flags(bool cloud_monitor_flags);
|
||||
int getMaster_period()const;
|
||||
void setMaster_period(int master_period);
|
||||
bool getSsh_flags()const;
|
||||
void setSsh_flags(bool ssh_flags);
|
||||
std::string getSecurity_group_id()const;
|
||||
@@ -57,60 +59,66 @@ namespace AlibabaCloud
|
||||
void setWorker_auto_renew(bool worker_auto_renew);
|
||||
std::string getPlatform()const;
|
||||
void setPlatform(const std::string& platform);
|
||||
std::string getNode_port_range()const;
|
||||
void setNode_port_range(const std::string& node_port_range);
|
||||
std::string getService_cidr()const;
|
||||
void setService_cidr(const std::string& service_cidr);
|
||||
std::string getNode_port_range()const;
|
||||
void setNode_port_range(const std::string& node_port_range);
|
||||
std::string getZone_id()const;
|
||||
void setZone_id(const std::string& zone_id);
|
||||
std::string getLogin_password()const;
|
||||
void setLogin_password(const std::string& login_password);
|
||||
std::string getKubernetes_version()const;
|
||||
void setKubernetes_version(const std::string& kubernetes_version);
|
||||
bool getIs_enterprise_security_group()const;
|
||||
void setIs_enterprise_security_group(bool is_enterprise_security_group);
|
||||
std::string getMaster_period_unit()const;
|
||||
void setMaster_period_unit(const std::string& master_period_unit);
|
||||
int getMaster_system_disk_size()const;
|
||||
void setMaster_system_disk_size(int master_system_disk_size);
|
||||
int getMaster_count()const;
|
||||
void setMaster_count(int master_count);
|
||||
int getNum_of_nodes()const;
|
||||
void setNum_of_nodes(int num_of_nodes);
|
||||
bool getDeletion_protection()const;
|
||||
void setDeletion_protection(bool deletion_protection);
|
||||
long getMaster_system_disk_size()const;
|
||||
void setMaster_system_disk_size(long master_system_disk_size);
|
||||
long getMaster_count()const;
|
||||
void setMaster_count(long master_count);
|
||||
long getNum_of_nodes()const;
|
||||
void setNum_of_nodes(long num_of_nodes);
|
||||
std::string getDeletion_protection()const;
|
||||
void setDeletion_protection(const std::string& deletion_protection);
|
||||
std::string getKey_pair()const;
|
||||
void setKey_pair(const std::string& key_pair);
|
||||
bool getWorker_data_disk()const;
|
||||
void setWorker_data_disk(bool worker_data_disk);
|
||||
bool getMaster_auto_renew()const;
|
||||
void setMaster_auto_renew(bool master_auto_renew);
|
||||
std::string getProfile()const;
|
||||
void setProfile(const std::string& profile);
|
||||
std::string getRegion_id()const;
|
||||
void setRegion_id(const std::string& region_id);
|
||||
bool getSnat_entry()const;
|
||||
void setSnat_entry(bool snat_entry);
|
||||
std::string getWorker_system_disk_category()const;
|
||||
void setWorker_system_disk_category(const std::string& worker_system_disk_category);
|
||||
std::string getRuntime()const;
|
||||
void setRuntime(const std::string& runtime);
|
||||
std::string getUser_data()const;
|
||||
void setUser_data(const std::string& user_data);
|
||||
std::string getWorker_period_unit()const;
|
||||
void setWorker_period_unit(const std::string& worker_period_unit);
|
||||
std::string getMaster_instance_charge_type()const;
|
||||
void setMaster_instance_charge_type(const std::string& master_instance_charge_type);
|
||||
std::string getNode_cidr_mask()const;
|
||||
void setNode_cidr_mask(const std::string& node_cidr_mask);
|
||||
int getWorker_auto_renew_period()const;
|
||||
void setWorker_auto_renew_period(int worker_auto_renew_period);
|
||||
int getMaster_auto_renew_period()const;
|
||||
void setMaster_auto_renew_period(int master_auto_renew_period);
|
||||
int getWorker_period()const;
|
||||
void setWorker_period(int worker_period);
|
||||
int getTimeout_mins()const;
|
||||
void setTimeout_mins(int timeout_mins);
|
||||
int getWorker_system_disk_size()const;
|
||||
void setWorker_system_disk_size(int worker_system_disk_size);
|
||||
long getWorker_auto_renew_period()const;
|
||||
void setWorker_auto_renew_period(long worker_auto_renew_period);
|
||||
long getMaster_auto_renew_period()const;
|
||||
void setMaster_auto_renew_period(long master_auto_renew_period);
|
||||
long getWorker_period()const;
|
||||
void setWorker_period(long worker_period);
|
||||
long getTimeout_mins()const;
|
||||
void setTimeout_mins(long timeout_mins);
|
||||
std::string getImages_id()const;
|
||||
void setImages_id(const std::string& images_id);
|
||||
long getWorker_system_disk_size()const;
|
||||
void setWorker_system_disk_size(long worker_system_disk_size);
|
||||
std::string getVpcid()const;
|
||||
void setVpcid(const std::string& vpcid);
|
||||
std::string getOs_type()const;
|
||||
void setOs_type(const std::string& os_type);
|
||||
std::string getCpu_policy()const;
|
||||
void setCpu_policy(const std::string& cpu_policy);
|
||||
std::string getVpcid()const;
|
||||
void setVpcid(const std::string& vpcid);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
bool getDisable_rollback()const;
|
||||
@@ -119,10 +127,11 @@ namespace AlibabaCloud
|
||||
void setWorker_instance_charge_type(const std::string& worker_instance_charge_type);
|
||||
|
||||
private:
|
||||
bool private_zone_;
|
||||
std::string proxy_mode_;
|
||||
std::string master_system_disk_category_;
|
||||
long master_period_;
|
||||
bool cloud_monitor_flags_;
|
||||
int master_period_;
|
||||
bool ssh_flags_;
|
||||
std::string security_group_id_;
|
||||
std::string container_cidr_;
|
||||
@@ -130,33 +139,36 @@ namespace AlibabaCloud
|
||||
bool endpoint_public_access_;
|
||||
bool worker_auto_renew_;
|
||||
std::string platform_;
|
||||
std::string node_port_range_;
|
||||
std::string service_cidr_;
|
||||
std::string node_port_range_;
|
||||
std::string zone_id_;
|
||||
std::string login_password_;
|
||||
std::string kubernetes_version_;
|
||||
bool is_enterprise_security_group_;
|
||||
std::string master_period_unit_;
|
||||
int master_system_disk_size_;
|
||||
int master_count_;
|
||||
int num_of_nodes_;
|
||||
bool deletion_protection_;
|
||||
long master_system_disk_size_;
|
||||
long master_count_;
|
||||
long num_of_nodes_;
|
||||
std::string deletion_protection_;
|
||||
std::string key_pair_;
|
||||
bool worker_data_disk_;
|
||||
bool master_auto_renew_;
|
||||
std::string profile_;
|
||||
std::string region_id_;
|
||||
bool snat_entry_;
|
||||
std::string worker_system_disk_category_;
|
||||
std::string runtime_;
|
||||
std::string user_data_;
|
||||
std::string worker_period_unit_;
|
||||
std::string master_instance_charge_type_;
|
||||
std::string node_cidr_mask_;
|
||||
int worker_auto_renew_period_;
|
||||
int master_auto_renew_period_;
|
||||
int worker_period_;
|
||||
int timeout_mins_;
|
||||
int worker_system_disk_size_;
|
||||
long worker_auto_renew_period_;
|
||||
long master_auto_renew_period_;
|
||||
long worker_period_;
|
||||
long timeout_mins_;
|
||||
std::string images_id_;
|
||||
long worker_system_disk_size_;
|
||||
std::string vpcid_;
|
||||
std::string os_type_;
|
||||
std::string cpu_policy_;
|
||||
std::string vpcid_;
|
||||
std::string name_;
|
||||
bool disable_rollback_;
|
||||
std::string worker_instance_charge_type_;
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CS_MODEL_CREATETRIGGERHOOKREQUEST_H_
|
||||
#define ALIBABACLOUD_CS_MODEL_CREATETRIGGERHOOKREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_CS_MODEL_CREATEKUBERNETESTRIGGERREQUEST_H_
|
||||
#define ALIBABACLOUD_CS_MODEL_CREATEKUBERNETESTRIGGERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,33 +28,33 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CS_EXPORT CreateTriggerHookRequest : public RoaServiceRequest
|
||||
class ALIBABACLOUD_CS_EXPORT CreateKubernetesTriggerRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateTriggerHookRequest();
|
||||
~CreateTriggerHookRequest();
|
||||
CreateKubernetesTriggerRequest();
|
||||
~CreateKubernetesTriggerRequest();
|
||||
|
||||
std::string getCluster_id()const;
|
||||
void setCluster_id(const std::string& cluster_id);
|
||||
std::string getProject_id()const;
|
||||
void setProject_id(const std::string& project_id);
|
||||
std::string getTrigger_url()const;
|
||||
void setTrigger_url(const std::string& trigger_url);
|
||||
std::string getRegion_id()const;
|
||||
void setRegion_id(const std::string& region_id);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getAction()const;
|
||||
void setAction(const std::string& action);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getProjectId()const;
|
||||
void setProjectId(const std::string& projectId);
|
||||
|
||||
private:
|
||||
std::string cluster_id_;
|
||||
std::string project_id_;
|
||||
std::string trigger_url_;
|
||||
std::string region_id_;
|
||||
std::string regionId_;
|
||||
std::string action_;
|
||||
std::string clusterId_;
|
||||
std::string type_;
|
||||
std::string projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CS_MODEL_CREATETRIGGERHOOKREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_CS_MODEL_CREATEKUBERNETESTRIGGERREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CS_MODEL_DESCRIBEAPIVERSIONRESULT_H_
|
||||
#define ALIBABACLOUD_CS_MODEL_DESCRIBEAPIVERSIONRESULT_H_
|
||||
#ifndef ALIBABACLOUD_CS_MODEL_CREATEKUBERNETESTRIGGERRESULT_H_
|
||||
#define ALIBABACLOUD_CS_MODEL_CREATEKUBERNETESTRIGGERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,29 +29,29 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CS_EXPORT DescribeApiVersionResult : public ServiceResult
|
||||
class ALIBABACLOUD_CS_EXPORT CreateKubernetesTriggerResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeApiVersionResult();
|
||||
explicit DescribeApiVersionResult(const std::string &payload);
|
||||
~DescribeApiVersionResult();
|
||||
std::string getDocker_version()const;
|
||||
std::string getVersion()const;
|
||||
std::string getBuild()const;
|
||||
std::string getDocker_region_versions()const;
|
||||
CreateKubernetesTriggerResult();
|
||||
explicit CreateKubernetesTriggerResult(const std::string &payload);
|
||||
~CreateKubernetesTriggerResult();
|
||||
std::string getAction()const;
|
||||
std::string getCluster_id()const;
|
||||
std::string getProject_id()const;
|
||||
std::string getId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string docker_version_;
|
||||
std::string version_;
|
||||
std::string build_;
|
||||
std::string docker_region_versions_;
|
||||
std::string action_;
|
||||
std::string cluster_id_;
|
||||
std::string project_id_;
|
||||
std::string id_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CS_MODEL_DESCRIBEAPIVERSIONRESULT_H_
|
||||
#endif // !ALIBABACLOUD_CS_MODEL_CREATEKUBERNETESTRIGGERRESULT_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CS_MODEL_DELETETRIGGERHOOKREQUEST_H_
|
||||
#define ALIBABACLOUD_CS_MODEL_DELETETRIGGERHOOKREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_CS_MODEL_DELETEKUBERNETESTRIGGERREQUEST_H_
|
||||
#define ALIBABACLOUD_CS_MODEL_DELETEKUBERNETESTRIGGERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,18 +28,21 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CS_EXPORT DeleteTriggerHookRequest : public RoaServiceRequest
|
||||
class ALIBABACLOUD_CS_EXPORT DeleteKubernetesTriggerRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteTriggerHookRequest();
|
||||
~DeleteTriggerHookRequest();
|
||||
DeleteKubernetesTriggerRequest();
|
||||
~DeleteKubernetesTriggerRequest();
|
||||
|
||||
std::string getId()const;
|
||||
void setId(const std::string& id);
|
||||
|
||||
private:
|
||||
std::string id_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CS_MODEL_DELETETRIGGERHOOKREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_CS_MODEL_DELETEKUBERNETESTRIGGERREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CS_MODEL_DELETETRIGGERHOOKRESULT_H_
|
||||
#define ALIBABACLOUD_CS_MODEL_DELETETRIGGERHOOKRESULT_H_
|
||||
#ifndef ALIBABACLOUD_CS_MODEL_DELETEKUBERNETESTRIGGERRESULT_H_
|
||||
#define ALIBABACLOUD_CS_MODEL_DELETEKUBERNETESTRIGGERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,14 +29,14 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CS_EXPORT DeleteTriggerHookResult : public ServiceResult
|
||||
class ALIBABACLOUD_CS_EXPORT DeleteKubernetesTriggerResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteTriggerHookResult();
|
||||
explicit DeleteTriggerHookResult(const std::string &payload);
|
||||
~DeleteTriggerHookResult();
|
||||
DeleteKubernetesTriggerResult();
|
||||
explicit DeleteKubernetesTriggerResult(const std::string &payload);
|
||||
~DeleteKubernetesTriggerResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
@@ -46,4 +46,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CS_MODEL_DELETETRIGGERHOOKRESULT_H_
|
||||
#endif // !ALIBABACLOUD_CS_MODEL_DELETEKUBERNETESTRIGGERRESULT_H_
|
||||
@@ -34,23 +34,15 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct StandardComponents
|
||||
{
|
||||
struct Addon_name
|
||||
{
|
||||
std::string required;
|
||||
std::string version;
|
||||
std::string config;
|
||||
bool disabled;
|
||||
std::string name;
|
||||
};
|
||||
Addon_name addon_name;
|
||||
std::string componentName;
|
||||
};
|
||||
struct ComponentGroupsItem
|
||||
{
|
||||
struct ItemsItem
|
||||
{
|
||||
std::string description;
|
||||
std::string required;
|
||||
std::string version;
|
||||
std::string config;
|
||||
bool disabled;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CS_MODEL_DESCRIBECLUSTERADDONSUPGRADESTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_CS_MODEL_DESCRIBECLUSTERADDONSUPGRADESTATUSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/cs/CSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CS_EXPORT DescribeClusterAddonsUpgradeStatusRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeClusterAddonsUpgradeStatusRequest();
|
||||
~DescribeClusterAddonsUpgradeStatusRequest();
|
||||
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CS_MODEL_DESCRIBECLUSTERADDONSUPGRADESTATUSREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CS_MODEL_DESCRIBECLUSTERADDONSUPGRADESTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_CS_MODEL_DESCRIBECLUSTERADDONSUPGRADESTATUSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cs/CSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CS_EXPORT DescribeClusterAddonsUpgradeStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeClusterAddonsUpgradeStatusResult();
|
||||
explicit DescribeClusterAddonsUpgradeStatusResult(const std::string &payload);
|
||||
~DescribeClusterAddonsUpgradeStatusResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CS_MODEL_DESCRIBECLUSTERADDONSUPGRADESTATUSRESULT_H_
|
||||
@@ -37,26 +37,12 @@ namespace AlibabaCloud
|
||||
DescribeClusterAddonsVersionResult();
|
||||
explicit DescribeClusterAddonsVersionResult(const std::string &payload);
|
||||
~DescribeClusterAddonsVersionResult();
|
||||
std::string getNext_version()const;
|
||||
std::string get_Template()const;
|
||||
bool getCan_upgrade()const;
|
||||
std::string getMessage()const;
|
||||
bool getRequired()const;
|
||||
std::string getVersion()const;
|
||||
std::string getChanged()const;
|
||||
std::string getComponent_name()const;
|
||||
std::string getAddonsName()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string next_version_;
|
||||
std::string _template_;
|
||||
bool can_upgrade_;
|
||||
std::string message_;
|
||||
bool required_;
|
||||
std::string version_;
|
||||
std::string changed_;
|
||||
std::string component_name_;
|
||||
std::string addonsName_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,9 +37,12 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getArch()const;
|
||||
void setArch(const std::string& arch);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
std::string arch_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -42,27 +42,25 @@ namespace AlibabaCloud
|
||||
DescribeClusterDetailResult();
|
||||
explicit DescribeClusterDetailResult(const std::string &payload);
|
||||
~DescribeClusterDetailResult();
|
||||
std::string getCluster_type()const;
|
||||
std::string getResource_group_id()const;
|
||||
std::string getData_disk_category()const;
|
||||
std::string getCluster_type()const;
|
||||
std::string getDocker_version()const;
|
||||
std::string getCluster_id()const;
|
||||
std::string getExternal_loadbalancer_id()const;
|
||||
std::string getUpdated()const;
|
||||
std::string getRegion_id()const;
|
||||
std::string getSize()const;
|
||||
int getSize()const;
|
||||
std::string getVpc_id()const;
|
||||
std::string getVswitch_id()const;
|
||||
std::string getMeta_data()const;
|
||||
bool getDeletion_protection()const;
|
||||
std::string getMeta_data()const;
|
||||
std::string getNetwork_mode()const;
|
||||
std::string getSecurity_group_id()const;
|
||||
std::vector<TagsItem> gettags()const;
|
||||
std::string getName()const;
|
||||
int getData_disk_size()const;
|
||||
std::string getCreated()const;
|
||||
std::string getState()const;
|
||||
std::string getName()const;
|
||||
std::string getZone_id()const;
|
||||
std::string getState()const;
|
||||
std::string getVswitch_cidr()const;
|
||||
std::string getCurrent_version()const;
|
||||
std::string getInstance_type()const;
|
||||
@@ -70,27 +68,25 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string cluster_type_;
|
||||
std::string resource_group_id_;
|
||||
std::string data_disk_category_;
|
||||
std::string cluster_type_;
|
||||
std::string docker_version_;
|
||||
std::string cluster_id_;
|
||||
std::string external_loadbalancer_id_;
|
||||
std::string updated_;
|
||||
std::string region_id_;
|
||||
std::string size_;
|
||||
int size_;
|
||||
std::string vpc_id_;
|
||||
std::string vswitch_id_;
|
||||
std::string meta_data_;
|
||||
bool deletion_protection_;
|
||||
std::string meta_data_;
|
||||
std::string network_mode_;
|
||||
std::string security_group_id_;
|
||||
std::vector<TagsItem> tags_;
|
||||
std::string name_;
|
||||
int data_disk_size_;
|
||||
std::string created_;
|
||||
std::string state_;
|
||||
std::string name_;
|
||||
std::string zone_id_;
|
||||
std::string state_;
|
||||
std::string vswitch_cidr_;
|
||||
std::string current_version_;
|
||||
std::string instance_type_;
|
||||
|
||||
@@ -38,7 +38,9 @@ namespace AlibabaCloud
|
||||
explicit DescribeClusterLogsResult(const std::string &payload);
|
||||
~DescribeClusterLogsResult();
|
||||
std::string getCluster_id()const;
|
||||
std::string getUpdated()const;
|
||||
std::string getLog_level()const;
|
||||
std::string getID()const;
|
||||
std::string getCluster_log()const;
|
||||
std::string getCreated()const;
|
||||
|
||||
@@ -46,7 +48,9 @@ namespace AlibabaCloud
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string cluster_id_;
|
||||
std::string updated_;
|
||||
std::string log_level_;
|
||||
std::string iD_;
|
||||
std::string cluster_log_;
|
||||
std::string created_;
|
||||
|
||||
|
||||
@@ -40,8 +40,8 @@ namespace AlibabaCloud
|
||||
};
|
||||
struct Node
|
||||
{
|
||||
std::string instance_name;
|
||||
std::string error_message;
|
||||
std::string instance_name;
|
||||
std::string creation_time;
|
||||
std::string image_id;
|
||||
std::string instance_status;
|
||||
@@ -57,8 +57,8 @@ namespace AlibabaCloud
|
||||
std::string instance_id;
|
||||
std::string node_name;
|
||||
std::string instance_type;
|
||||
std::string expired_time;
|
||||
bool is_aliyun_node;
|
||||
std::string expired_time;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -32,24 +32,15 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CS_EXPORT DescribeClusterResourcesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResourcesItem
|
||||
{
|
||||
std::string resource_info;
|
||||
std::string state;
|
||||
std::string resource_type;
|
||||
std::string instance_id;
|
||||
};
|
||||
|
||||
|
||||
DescribeClusterResourcesResult();
|
||||
explicit DescribeClusterResourcesResult(const std::string &payload);
|
||||
~DescribeClusterResourcesResult();
|
||||
std::vector<ResourcesItem> getresources()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<ResourcesItem> resources_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,10 +37,12 @@ namespace AlibabaCloud
|
||||
DescribeClusterV2UserKubeconfigResult();
|
||||
explicit DescribeClusterV2UserKubeconfigResult(const std::string &payload);
|
||||
~DescribeClusterV2UserKubeconfigResult();
|
||||
std::string getConfig()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string config_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,49 +32,15 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CS_EXPORT DescribeClustersResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ClusterDetail
|
||||
{
|
||||
struct TagsItem
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::string cluster_type;
|
||||
std::string resource_group_id;
|
||||
std::string data_disk_category;
|
||||
std::string docker_version;
|
||||
std::string cluster_id;
|
||||
std::string external_loadbalancer_id;
|
||||
std::string updated;
|
||||
std::string region_id;
|
||||
std::string size;
|
||||
std::string vpc_id;
|
||||
std::string vswitch_id;
|
||||
std::string meta_data;
|
||||
bool deletion_protection;
|
||||
std::string network_mode;
|
||||
std::string security_group_id;
|
||||
std::vector<ClusterDetail::TagsItem> tags;
|
||||
std::string name;
|
||||
int data_disk_size;
|
||||
std::string created;
|
||||
std::string state;
|
||||
std::string zone_id;
|
||||
std::string vswitch_cidr;
|
||||
std::string master_url;
|
||||
std::string current_version;
|
||||
};
|
||||
|
||||
|
||||
DescribeClustersResult();
|
||||
explicit DescribeClustersResult(const std::string &payload);
|
||||
~DescribeClustersResult();
|
||||
std::vector<ClusterDetail> getclusters()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<ClusterDetail> clusters_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
57
cs/include/alibabacloud/cs/model/DescribeClustersV1Request.h
Normal file
57
cs/include/alibabacloud/cs/model/DescribeClustersV1Request.h
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CS_MODEL_DESCRIBECLUSTERSV1REQUEST_H_
|
||||
#define ALIBABACLOUD_CS_MODEL_DESCRIBECLUSTERSV1REQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/cs/CSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CS_EXPORT DescribeClustersV1Request : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeClustersV1Request();
|
||||
~DescribeClustersV1Request();
|
||||
|
||||
std::string getClusterType()const;
|
||||
void setClusterType(const std::string& clusterType);
|
||||
long getPage_number()const;
|
||||
void setPage_number(long page_number);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
long getPage_size()const;
|
||||
void setPage_size(long page_size);
|
||||
|
||||
private:
|
||||
std::string clusterType_;
|
||||
long page_number_;
|
||||
std::string name_;
|
||||
long page_size_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CS_MODEL_DESCRIBECLUSTERSV1REQUEST_H_
|
||||
98
cs/include/alibabacloud/cs/model/DescribeClustersV1Result.h
Normal file
98
cs/include/alibabacloud/cs/model/DescribeClustersV1Result.h
Normal file
@@ -0,0 +1,98 @@
|
||||
/*
|
||||
* 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_CS_MODEL_DESCRIBECLUSTERSV1RESULT_H_
|
||||
#define ALIBABACLOUD_CS_MODEL_DESCRIBECLUSTERSV1RESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cs/CSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CS_EXPORT DescribeClustersV1Result : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Page_info
|
||||
{
|
||||
int page_size;
|
||||
int page_number;
|
||||
int total_count;
|
||||
};
|
||||
struct ClustersItem
|
||||
{
|
||||
struct TagsItem
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::string cluster_id;
|
||||
std::string external_loadbalancer_id;
|
||||
std::string cluster_healthy;
|
||||
std::string region_id;
|
||||
long size;
|
||||
std::string worker_ram_role_name;
|
||||
std::string vpc_id;
|
||||
bool deletion_protection;
|
||||
std::string profile;
|
||||
std::string created;
|
||||
std::string name;
|
||||
std::string vswitch_cidr;
|
||||
std::string init_version;
|
||||
std::string resource_group_id;
|
||||
std::string cluster_type;
|
||||
std::string docker_version;
|
||||
std::string data_disk_category;
|
||||
std::string updated;
|
||||
std::string vswitch_id;
|
||||
std::string meta_data;
|
||||
std::string network_mode;
|
||||
std::string security_group_id;
|
||||
std::string subnet_cidr;
|
||||
std::vector<ClustersItem::TagsItem> tags;
|
||||
long data_disk_size;
|
||||
bool private_zone;
|
||||
std::string zone_id;
|
||||
std::string state;
|
||||
std::string node_status;
|
||||
std::string master_url;
|
||||
std::string current_version;
|
||||
};
|
||||
|
||||
|
||||
DescribeClustersV1Result();
|
||||
explicit DescribeClustersV1Result(const std::string &payload);
|
||||
~DescribeClustersV1Result();
|
||||
Page_info getPage_info()const;
|
||||
std::vector<ClustersItem> getclusters()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Page_info page_info_;
|
||||
std::vector<ClustersItem> clusters_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CS_MODEL_DESCRIBECLUSTERSV1RESULT_H_
|
||||
@@ -32,27 +32,37 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CS_EXPORT DescribeTemplatesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Page_info
|
||||
{
|
||||
long page_size;
|
||||
long page_number;
|
||||
long total_count;
|
||||
};
|
||||
struct TemplatesItem
|
||||
{
|
||||
std::string _template;
|
||||
std::string description;
|
||||
std::string updated;
|
||||
std::string template_type;
|
||||
std::string id;
|
||||
std::string acl;
|
||||
std::string tags;
|
||||
std::string created;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
DescribeTemplatesResult();
|
||||
explicit DescribeTemplatesResult(const std::string &payload);
|
||||
~DescribeTemplatesResult();
|
||||
std::string get_Template()const;
|
||||
std::string getDescription()const;
|
||||
std::string getAcl()const;
|
||||
std::string getTemplate_type()const;
|
||||
std::string getTags()const;
|
||||
std::string getName()const;
|
||||
Page_info getPage_info()const;
|
||||
std::vector<TemplatesItem> gettemplates()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string _template_;
|
||||
std::string description_;
|
||||
std::string acl_;
|
||||
std::string template_type_;
|
||||
std::string tags_;
|
||||
std::string name_;
|
||||
Page_info page_info_;
|
||||
std::vector<TemplatesItem> templates_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,18 +37,20 @@ namespace AlibabaCloud
|
||||
DescribeUserQuotaResult();
|
||||
explicit DescribeUserQuotaResult(const std::string &payload);
|
||||
~DescribeUserQuotaResult();
|
||||
int getNode_quota()const;
|
||||
int getAmk_cluster_quota()const;
|
||||
int getCluster_quota()const;
|
||||
int getAsk_cluster_quota()const;
|
||||
long getAmk_cluster_quota()const;
|
||||
long getNode_quota()const;
|
||||
long getCluster_quota()const;
|
||||
long getAsk_cluster_quota()const;
|
||||
long getCluster_nodepool_quota()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int node_quota_;
|
||||
int amk_cluster_quota_;
|
||||
int cluster_quota_;
|
||||
int ask_cluster_quota_;
|
||||
long amk_cluster_quota_;
|
||||
long node_quota_;
|
||||
long cluster_quota_;
|
||||
long ask_cluster_quota_;
|
||||
long cluster_nodepool_quota_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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_CS_MODEL_GETKUBERNETESTRIGGERREQUEST_H_
|
||||
#define ALIBABACLOUD_CS_MODEL_GETKUBERNETESTRIGGERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/cs/CSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CS_EXPORT GetKubernetesTriggerRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetKubernetesTriggerRequest();
|
||||
~GetKubernetesTriggerRequest();
|
||||
|
||||
std::string get_Namespace()const;
|
||||
void set_Namespace(const std::string& _namespace);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
|
||||
private:
|
||||
std::string _namespace_;
|
||||
std::string name_;
|
||||
std::string clusterId_;
|
||||
std::string type_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CS_MODEL_GETKUBERNETESTRIGGERREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CS_MODEL_GETKUBERNETESTRIGGERRESULT_H_
|
||||
#define ALIBABACLOUD_CS_MODEL_GETKUBERNETESTRIGGERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cs/CSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CS_EXPORT GetKubernetesTriggerResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct TriggersItem
|
||||
{
|
||||
std::string action;
|
||||
std::string cluster_id;
|
||||
std::string project_id;
|
||||
std::string token;
|
||||
std::string id;
|
||||
};
|
||||
|
||||
|
||||
GetKubernetesTriggerResult();
|
||||
explicit GetKubernetesTriggerResult(const std::string &payload);
|
||||
~GetKubernetesTriggerResult();
|
||||
std::vector<TriggersItem> gettriggers()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<TriggersItem> triggers_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CS_MODEL_GETKUBERNETESTRIGGERRESULT_H_
|
||||
@@ -37,16 +37,16 @@ namespace AlibabaCloud
|
||||
GetUpgradeStatusResult();
|
||||
explicit GetUpgradeStatusResult(const std::string &payload);
|
||||
~GetUpgradeStatusResult();
|
||||
std::string getStatus()const;
|
||||
std::string getError_message()const;
|
||||
std::string getStatus()const;
|
||||
std::string getPrecheck_report_id()const;
|
||||
std::string getUpgrade_step()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string status_;
|
||||
std::string error_message_;
|
||||
std::string status_;
|
||||
std::string precheck_report_id_;
|
||||
std::string upgrade_step_;
|
||||
|
||||
|
||||
@@ -35,26 +35,11 @@ namespace AlibabaCloud
|
||||
InstallClusterAddonsRequest();
|
||||
~InstallClusterAddonsRequest();
|
||||
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
bool getDisabled()const;
|
||||
void setDisabled(bool disabled);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getVersion()const;
|
||||
void setVersion(const std::string& version);
|
||||
std::string getConfig()const;
|
||||
void setConfig(const std::string& config);
|
||||
std::string getRequired()const;
|
||||
void setRequired(const std::string& required);
|
||||
|
||||
private:
|
||||
std::string name_;
|
||||
bool disabled_;
|
||||
std::string clusterId_;
|
||||
std::string version_;
|
||||
std::string config_;
|
||||
std::string required_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CS_MODEL_DESCRIBEAPIVERSIONREQUEST_H_
|
||||
#define ALIBABACLOUD_CS_MODEL_DESCRIBEAPIVERSIONREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_CS_MODEL_MODIFYCLUSTERCONFIGURATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_CS_MODEL_MODIFYCLUSTERCONFIGURATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,18 +28,21 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CS_EXPORT DescribeApiVersionRequest : public RoaServiceRequest
|
||||
class ALIBABACLOUD_CS_EXPORT ModifyClusterConfigurationRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeApiVersionRequest();
|
||||
~DescribeApiVersionRequest();
|
||||
ModifyClusterConfigurationRequest();
|
||||
~ModifyClusterConfigurationRequest();
|
||||
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CS_MODEL_DESCRIBEAPIVERSIONREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_CS_MODEL_MODIFYCLUSTERCONFIGURATIONREQUEST_H_
|
||||
@@ -14,29 +14,29 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CDN_MODEL_SETUSERGREENMANAGERCONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_SETUSERGREENMANAGERCONFIGRESULT_H_
|
||||
#ifndef ALIBABACLOUD_CS_MODEL_MODIFYCLUSTERCONFIGURATIONRESULT_H_
|
||||
#define ALIBABACLOUD_CS_MODEL_MODIFYCLUSTERCONFIGURATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cdn/CdnExport.h>
|
||||
#include <alibabacloud/cs/CSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cdn
|
||||
namespace CS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDN_EXPORT SetUserGreenManagerConfigResult : public ServiceResult
|
||||
class ALIBABACLOUD_CS_EXPORT ModifyClusterConfigurationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
SetUserGreenManagerConfigResult();
|
||||
explicit SetUserGreenManagerConfigResult(const std::string &payload);
|
||||
~SetUserGreenManagerConfigResult();
|
||||
ModifyClusterConfigurationResult();
|
||||
explicit ModifyClusterConfigurationResult(const std::string &payload);
|
||||
~ModifyClusterConfigurationResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
@@ -46,4 +46,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_SETUSERGREENMANAGERCONFIGRESULT_H_
|
||||
#endif // !ALIBABACLOUD_CS_MODEL_MODIFYCLUSTERCONFIGURATIONRESULT_H_
|
||||
@@ -39,7 +39,6 @@ namespace AlibabaCloud
|
||||
~ModifyClusterResult();
|
||||
std::string getRequest_id()const;
|
||||
std::string getCluster_id()const;
|
||||
std::string getInstanceId()const;
|
||||
std::string getTask_id()const;
|
||||
|
||||
protected:
|
||||
@@ -47,7 +46,6 @@ namespace AlibabaCloud
|
||||
private:
|
||||
std::string request_id_;
|
||||
std::string cluster_id_;
|
||||
std::string instanceId_;
|
||||
std::string task_id_;
|
||||
|
||||
};
|
||||
|
||||
@@ -37,15 +37,9 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getValue()const;
|
||||
void setValue(const std::string& value);
|
||||
std::string getKey()const;
|
||||
void setKey(const std::string& key);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
std::string value_;
|
||||
std::string key_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,12 +37,10 @@ namespace AlibabaCloud
|
||||
ModifyClusterTagsResult();
|
||||
explicit ModifyClusterTagsResult(const std::string &payload);
|
||||
~ModifyClusterTagsResult();
|
||||
std::string getRequestId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string requestId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,11 +35,53 @@ namespace AlibabaCloud
|
||||
ScaleClusterRequest();
|
||||
~ScaleClusterRequest();
|
||||
|
||||
std::string getKey_pair()const;
|
||||
void setKey_pair(const std::string& key_pair);
|
||||
bool getWorker_data_disk()const;
|
||||
void setWorker_data_disk(bool worker_data_disk);
|
||||
long getCount()const;
|
||||
void setCount(long count);
|
||||
std::string getWorker_system_disk_category()const;
|
||||
void setWorker_system_disk_category(const std::string& worker_system_disk_category);
|
||||
bool getCloud_monitor_flags()const;
|
||||
void setCloud_monitor_flags(bool cloud_monitor_flags);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getWorker_period_unit()const;
|
||||
void setWorker_period_unit(const std::string& worker_period_unit);
|
||||
bool getWorker_auto_renew()const;
|
||||
void setWorker_auto_renew(bool worker_auto_renew);
|
||||
long getWorker_auto_renew_period()const;
|
||||
void setWorker_auto_renew_period(long worker_auto_renew_period);
|
||||
long getWorker_period()const;
|
||||
void setWorker_period(long worker_period);
|
||||
std::string getLogin_password()const;
|
||||
void setLogin_password(const std::string& login_password);
|
||||
long getWorker_system_disk_size()const;
|
||||
void setWorker_system_disk_size(long worker_system_disk_size);
|
||||
std::string getCpu_policy()const;
|
||||
void setCpu_policy(const std::string& cpu_policy);
|
||||
bool getDisable_rollback()const;
|
||||
void setDisable_rollback(bool disable_rollback);
|
||||
std::string getWorker_instance_charge_type()const;
|
||||
void setWorker_instance_charge_type(const std::string& worker_instance_charge_type);
|
||||
|
||||
private:
|
||||
std::string key_pair_;
|
||||
bool worker_data_disk_;
|
||||
long count_;
|
||||
std::string worker_system_disk_category_;
|
||||
bool cloud_monitor_flags_;
|
||||
std::string clusterId_;
|
||||
std::string worker_period_unit_;
|
||||
bool worker_auto_renew_;
|
||||
long worker_auto_renew_period_;
|
||||
long worker_period_;
|
||||
std::string login_password_;
|
||||
long worker_system_disk_size_;
|
||||
std::string cpu_policy_;
|
||||
bool disable_rollback_;
|
||||
std::string worker_instance_charge_type_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,10 +37,16 @@ namespace AlibabaCloud
|
||||
ScaleClusterResult();
|
||||
explicit ScaleClusterResult(const std::string &payload);
|
||||
~ScaleClusterResult();
|
||||
std::string getRequest_id()const;
|
||||
std::string getCluster_id()const;
|
||||
std::string getTask_id()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string request_id_;
|
||||
std::string cluster_id_;
|
||||
std::string task_id_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -47,6 +47,8 @@ namespace AlibabaCloud
|
||||
void setCloud_monitor_flags(bool cloud_monitor_flags);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getUser_data()const;
|
||||
void setUser_data(const std::string& user_data);
|
||||
std::string getWorker_period_unit()const;
|
||||
void setWorker_period_unit(const std::string& worker_period_unit);
|
||||
bool getWorker_auto_renew()const;
|
||||
@@ -63,6 +65,8 @@ namespace AlibabaCloud
|
||||
void setCpu_policy(const std::string& cpu_policy);
|
||||
bool getDisable_rollback()const;
|
||||
void setDisable_rollback(bool disable_rollback);
|
||||
std::string getImage_id()const;
|
||||
void setImage_id(const std::string& image_id);
|
||||
std::string getWorker_instance_charge_type()const;
|
||||
void setWorker_instance_charge_type(const std::string& worker_instance_charge_type);
|
||||
|
||||
@@ -73,6 +77,7 @@ namespace AlibabaCloud
|
||||
std::string worker_system_disk_category_;
|
||||
bool cloud_monitor_flags_;
|
||||
std::string clusterId_;
|
||||
std::string user_data_;
|
||||
std::string worker_period_unit_;
|
||||
bool worker_auto_renew_;
|
||||
int worker_auto_renew_period_;
|
||||
@@ -81,6 +86,7 @@ namespace AlibabaCloud
|
||||
int worker_system_disk_size_;
|
||||
std::string cpu_policy_;
|
||||
bool disable_rollback_;
|
||||
std::string image_id_;
|
||||
std::string worker_instance_charge_type_;
|
||||
|
||||
};
|
||||
|
||||
@@ -39,7 +39,6 @@ namespace AlibabaCloud
|
||||
~ScaleOutClusterResult();
|
||||
std::string getRequest_id()const;
|
||||
std::string getCluster_id()const;
|
||||
std::string getInstanceId()const;
|
||||
std::string getTask_id()const;
|
||||
|
||||
protected:
|
||||
@@ -47,7 +46,6 @@ namespace AlibabaCloud
|
||||
private:
|
||||
std::string request_id_;
|
||||
std::string cluster_id_;
|
||||
std::string instanceId_;
|
||||
std::string task_id_;
|
||||
|
||||
};
|
||||
|
||||
@@ -35,13 +35,10 @@ namespace AlibabaCloud
|
||||
UnInstallClusterAddonsRequest();
|
||||
~UnInstallClusterAddonsRequest();
|
||||
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string name_;
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
|
||||
63
cs/include/alibabacloud/cs/model/UpdateTemplateRequest.h
Normal file
63
cs/include/alibabacloud/cs/model/UpdateTemplateRequest.h
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CS_MODEL_UPDATETEMPLATEREQUEST_H_
|
||||
#define ALIBABACLOUD_CS_MODEL_UPDATETEMPLATEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/cs/CSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CS_EXPORT UpdateTemplateRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateTemplateRequest();
|
||||
~UpdateTemplateRequest();
|
||||
|
||||
std::string get_Template()const;
|
||||
void set_Template(const std::string& _template);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getTemplate_type()const;
|
||||
void setTemplate_type(const std::string& template_type);
|
||||
std::string getTemplateId()const;
|
||||
void setTemplateId(const std::string& templateId);
|
||||
std::string getTags()const;
|
||||
void setTags(const std::string& tags);
|
||||
|
||||
private:
|
||||
std::string _template_;
|
||||
std::string name_;
|
||||
std::string description_;
|
||||
std::string template_type_;
|
||||
std::string templateId_;
|
||||
std::string tags_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CS_MODEL_UPDATETEMPLATEREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CS_MODEL_CREATETRIGGERHOOKRESULT_H_
|
||||
#define ALIBABACLOUD_CS_MODEL_CREATETRIGGERHOOKRESULT_H_
|
||||
#ifndef ALIBABACLOUD_CS_MODEL_UPDATETEMPLATERESULT_H_
|
||||
#define ALIBABACLOUD_CS_MODEL_UPDATETEMPLATERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,14 +29,14 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CS_EXPORT CreateTriggerHookResult : public ServiceResult
|
||||
class ALIBABACLOUD_CS_EXPORT UpdateTemplateResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateTriggerHookResult();
|
||||
explicit CreateTriggerHookResult(const std::string &payload);
|
||||
~CreateTriggerHookResult();
|
||||
UpdateTemplateResult();
|
||||
explicit UpdateTemplateResult(const std::string &payload);
|
||||
~UpdateTemplateResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
@@ -46,4 +46,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CS_MODEL_CREATETRIGGERHOOKRESULT_H_
|
||||
#endif // !ALIBABACLOUD_CS_MODEL_UPDATETEMPLATERESULT_H_
|
||||
@@ -35,17 +35,11 @@ namespace AlibabaCloud
|
||||
UpgradeClusterAddonsRequest();
|
||||
~UpgradeClusterAddonsRequest();
|
||||
|
||||
std::string getComponent_name()const;
|
||||
void setComponent_name(const std::string& component_name);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getVersion()const;
|
||||
void setVersion(const std::string& version);
|
||||
|
||||
private:
|
||||
std::string component_name_;
|
||||
std::string clusterId_;
|
||||
std::string version_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,14 +35,20 @@ namespace AlibabaCloud
|
||||
UpgradeClusterRequest();
|
||||
~UpgradeClusterRequest();
|
||||
|
||||
std::string getComponent_name()const;
|
||||
void setComponent_name(const std::string& component_name);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getVersion()const;
|
||||
void setVersion(const std::string& version);
|
||||
std::string getNext_version()const;
|
||||
void setNext_version(const std::string& next_version);
|
||||
|
||||
private:
|
||||
std::string component_name_;
|
||||
std::string clusterId_;
|
||||
std::string version_;
|
||||
std::string next_version_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -231,6 +231,42 @@ CSClient::CreateClusterOutcomeCallable CSClient::createClusterCallable(const Cre
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::CreateKubernetesTriggerOutcome CSClient::createKubernetesTrigger(const CreateKubernetesTriggerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateKubernetesTriggerOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateKubernetesTriggerOutcome(CreateKubernetesTriggerResult(outcome.result()));
|
||||
else
|
||||
return CreateKubernetesTriggerOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::createKubernetesTriggerAsync(const CreateKubernetesTriggerRequest& request, const CreateKubernetesTriggerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createKubernetesTrigger(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::CreateKubernetesTriggerOutcomeCallable CSClient::createKubernetesTriggerCallable(const CreateKubernetesTriggerRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateKubernetesTriggerOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createKubernetesTrigger(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::CreateTemplateOutcome CSClient::createTemplate(const CreateTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -267,42 +303,6 @@ CSClient::CreateTemplateOutcomeCallable CSClient::createTemplateCallable(const C
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::CreateTriggerHookOutcome CSClient::createTriggerHook(const CreateTriggerHookRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateTriggerHookOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateTriggerHookOutcome(CreateTriggerHookResult(outcome.result()));
|
||||
else
|
||||
return CreateTriggerHookOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::createTriggerHookAsync(const CreateTriggerHookRequest& request, const CreateTriggerHookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createTriggerHook(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::CreateTriggerHookOutcomeCallable CSClient::createTriggerHookCallable(const CreateTriggerHookRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateTriggerHookOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createTriggerHook(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::DeleteClusterOutcome CSClient::deleteCluster(const DeleteClusterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -375,6 +375,42 @@ CSClient::DeleteClusterNodesOutcomeCallable CSClient::deleteClusterNodesCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::DeleteKubernetesTriggerOutcome CSClient::deleteKubernetesTrigger(const DeleteKubernetesTriggerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteKubernetesTriggerOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteKubernetesTriggerOutcome(DeleteKubernetesTriggerResult(outcome.result()));
|
||||
else
|
||||
return DeleteKubernetesTriggerOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::deleteKubernetesTriggerAsync(const DeleteKubernetesTriggerRequest& request, const DeleteKubernetesTriggerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteKubernetesTrigger(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::DeleteKubernetesTriggerOutcomeCallable CSClient::deleteKubernetesTriggerCallable(const DeleteKubernetesTriggerRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteKubernetesTriggerOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteKubernetesTrigger(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::DeleteTemplateOutcome CSClient::deleteTemplate(const DeleteTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -411,42 +447,6 @@ CSClient::DeleteTemplateOutcomeCallable CSClient::deleteTemplateCallable(const D
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::DeleteTriggerHookOutcome CSClient::deleteTriggerHook(const DeleteTriggerHookRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteTriggerHookOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteTriggerHookOutcome(DeleteTriggerHookResult(outcome.result()));
|
||||
else
|
||||
return DeleteTriggerHookOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::deleteTriggerHookAsync(const DeleteTriggerHookRequest& request, const DeleteTriggerHookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteTriggerHook(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::DeleteTriggerHookOutcomeCallable CSClient::deleteTriggerHookCallable(const DeleteTriggerHookRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteTriggerHookOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteTriggerHook(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::DescirbeWorkflowOutcome CSClient::descirbeWorkflow(const DescirbeWorkflowRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -519,42 +519,6 @@ CSClient::DescribeAddonsOutcomeCallable CSClient::describeAddonsCallable(const D
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::DescribeApiVersionOutcome CSClient::describeApiVersion(const DescribeApiVersionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeApiVersionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeApiVersionOutcome(DescribeApiVersionResult(outcome.result()));
|
||||
else
|
||||
return DescribeApiVersionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::describeApiVersionAsync(const DescribeApiVersionRequest& request, const DescribeApiVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeApiVersion(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::DescribeApiVersionOutcomeCallable CSClient::describeApiVersionCallable(const DescribeApiVersionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeApiVersionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeApiVersion(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::DescribeClusterAddonUpgradeStatusOutcome CSClient::describeClusterAddonUpgradeStatus(const DescribeClusterAddonUpgradeStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -591,6 +555,42 @@ CSClient::DescribeClusterAddonUpgradeStatusOutcomeCallable CSClient::describeClu
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::DescribeClusterAddonsUpgradeStatusOutcome CSClient::describeClusterAddonsUpgradeStatus(const DescribeClusterAddonsUpgradeStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeClusterAddonsUpgradeStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeClusterAddonsUpgradeStatusOutcome(DescribeClusterAddonsUpgradeStatusResult(outcome.result()));
|
||||
else
|
||||
return DescribeClusterAddonsUpgradeStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::describeClusterAddonsUpgradeStatusAsync(const DescribeClusterAddonsUpgradeStatusRequest& request, const DescribeClusterAddonsUpgradeStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeClusterAddonsUpgradeStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::DescribeClusterAddonsUpgradeStatusOutcomeCallable CSClient::describeClusterAddonsUpgradeStatusCallable(const DescribeClusterAddonsUpgradeStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeClusterAddonsUpgradeStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeClusterAddonsUpgradeStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::DescribeClusterAddonsVersionOutcome CSClient::describeClusterAddonsVersion(const DescribeClusterAddonsVersionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -915,6 +915,42 @@ CSClient::DescribeClustersOutcomeCallable CSClient::describeClustersCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::DescribeClustersV1Outcome CSClient::describeClustersV1(const DescribeClustersV1Request &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeClustersV1Outcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeClustersV1Outcome(DescribeClustersV1Result(outcome.result()));
|
||||
else
|
||||
return DescribeClustersV1Outcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::describeClustersV1Async(const DescribeClustersV1Request& request, const DescribeClustersV1AsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeClustersV1(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::DescribeClustersV1OutcomeCallable CSClient::describeClustersV1Callable(const DescribeClustersV1Request &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeClustersV1Outcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeClustersV1(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::DescribeExternalAgentOutcome CSClient::describeExternalAgent(const DescribeExternalAgentRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1059,6 +1095,42 @@ CSClient::DescribeWorkflowsOutcomeCallable CSClient::describeWorkflowsCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::GetKubernetesTriggerOutcome CSClient::getKubernetesTrigger(const GetKubernetesTriggerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetKubernetesTriggerOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetKubernetesTriggerOutcome(GetKubernetesTriggerResult(outcome.result()));
|
||||
else
|
||||
return GetKubernetesTriggerOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::getKubernetesTriggerAsync(const GetKubernetesTriggerRequest& request, const GetKubernetesTriggerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getKubernetesTrigger(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::GetKubernetesTriggerOutcomeCallable CSClient::getKubernetesTriggerCallable(const GetKubernetesTriggerRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetKubernetesTriggerOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getKubernetesTrigger(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::GetUpgradeStatusOutcome CSClient::getUpgradeStatus(const GetUpgradeStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1203,6 +1275,42 @@ CSClient::ModifyClusterOutcomeCallable CSClient::modifyClusterCallable(const Mod
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::ModifyClusterConfigurationOutcome CSClient::modifyClusterConfiguration(const ModifyClusterConfigurationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyClusterConfigurationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyClusterConfigurationOutcome(ModifyClusterConfigurationResult(outcome.result()));
|
||||
else
|
||||
return ModifyClusterConfigurationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::modifyClusterConfigurationAsync(const ModifyClusterConfigurationRequest& request, const ModifyClusterConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyClusterConfiguration(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::ModifyClusterConfigurationOutcomeCallable CSClient::modifyClusterConfigurationCallable(const ModifyClusterConfigurationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyClusterConfigurationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyClusterConfiguration(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::ModifyClusterTagsOutcome CSClient::modifyClusterTags(const ModifyClusterTagsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1635,6 +1743,42 @@ CSClient::UpdateK8sClusterUserConfigExpireOutcomeCallable CSClient::updateK8sClu
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::UpdateTemplateOutcome CSClient::updateTemplate(const UpdateTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateTemplateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateTemplateOutcome(UpdateTemplateResult(outcome.result()));
|
||||
else
|
||||
return UpdateTemplateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::updateTemplateAsync(const UpdateTemplateRequest& request, const UpdateTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateTemplate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::UpdateTemplateOutcomeCallable CSClient::updateTemplateCallable(const UpdateTemplateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateTemplateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateTemplate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::UpgradeClusterOutcome CSClient::upgradeCluster(const UpgradeClusterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -72,6 +72,17 @@ void AttachInstancesRequest::setCpu_policy(const std::string& cpu_policy)
|
||||
setBodyParameter("Cpu_policy", cpu_policy);
|
||||
}
|
||||
|
||||
bool AttachInstancesRequest::getIs_edge_worker()const
|
||||
{
|
||||
return is_edge_worker_;
|
||||
}
|
||||
|
||||
void AttachInstancesRequest::setIs_edge_worker(bool is_edge_worker)
|
||||
{
|
||||
is_edge_worker_ = is_edge_worker;
|
||||
setBodyParameter("Is_edge_worker", is_edge_worker ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AttachInstancesRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
@@ -83,6 +94,28 @@ void AttachInstancesRequest::setClusterId(const std::string& clusterId)
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string AttachInstancesRequest::getUser_data()const
|
||||
{
|
||||
return user_data_;
|
||||
}
|
||||
|
||||
void AttachInstancesRequest::setUser_data(const std::string& user_data)
|
||||
{
|
||||
user_data_ = user_data;
|
||||
setBodyParameter("User_data", user_data);
|
||||
}
|
||||
|
||||
std::string AttachInstancesRequest::getImage_id()const
|
||||
{
|
||||
return image_id_;
|
||||
}
|
||||
|
||||
void AttachInstancesRequest::setImage_id(const std::string& image_id)
|
||||
{
|
||||
image_id_ = image_id;
|
||||
setBodyParameter("Image_id", image_id);
|
||||
}
|
||||
|
||||
bool AttachInstancesRequest::getFormat_disk()const
|
||||
{
|
||||
return format_disk_;
|
||||
@@ -94,3 +127,14 @@ void AttachInstancesRequest::setFormat_disk(bool format_disk)
|
||||
setBodyParameter("Format_disk", format_disk ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AttachInstancesRequest::getNodepool_id()const
|
||||
{
|
||||
return nodepool_id_;
|
||||
}
|
||||
|
||||
void AttachInstancesRequest::setNodepool_id(const std::string& nodepool_id)
|
||||
{
|
||||
nodepool_id_ = nodepool_id;
|
||||
setBodyParameter("Nodepool_id", nodepool_id);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,10 +43,10 @@ void AttachInstancesResult::parse(const std::string &payload)
|
||||
for (auto valuelistlistItem : alllistNode)
|
||||
{
|
||||
ListItem listObject;
|
||||
if(!valuelistlistItem["code"].isNull())
|
||||
listObject.code = valuelistlistItem["code"].asString();
|
||||
if(!valuelistlistItem["instanceId"].isNull())
|
||||
listObject.instanceId = valuelistlistItem["instanceId"].asString();
|
||||
if(!valuelistlistItem["code"].isNull())
|
||||
listObject.code = valuelistlistItem["code"].asString();
|
||||
if(!valuelistlistItem["message"].isNull())
|
||||
listObject.message = valuelistlistItem["message"].asString();
|
||||
list_.push_back(listObject);
|
||||
|
||||
@@ -28,6 +28,17 @@ CreateClusterRequest::CreateClusterRequest() :
|
||||
CreateClusterRequest::~CreateClusterRequest()
|
||||
{}
|
||||
|
||||
bool CreateClusterRequest::getPrivate_zone()const
|
||||
{
|
||||
return private_zone_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setPrivate_zone(bool private_zone)
|
||||
{
|
||||
private_zone_ = private_zone;
|
||||
setBodyParameter("Private_zone", private_zone ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getProxy_mode()const
|
||||
{
|
||||
return proxy_mode_;
|
||||
@@ -50,6 +61,17 @@ void CreateClusterRequest::setMaster_system_disk_category(const std::string& mas
|
||||
setBodyParameter("Master_system_disk_category", master_system_disk_category);
|
||||
}
|
||||
|
||||
long CreateClusterRequest::getMaster_period()const
|
||||
{
|
||||
return master_period_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setMaster_period(long master_period)
|
||||
{
|
||||
master_period_ = master_period;
|
||||
setBodyParameter("Master_period", std::to_string(master_period));
|
||||
}
|
||||
|
||||
bool CreateClusterRequest::getCloud_monitor_flags()const
|
||||
{
|
||||
return cloud_monitor_flags_;
|
||||
@@ -61,17 +83,6 @@ void CreateClusterRequest::setCloud_monitor_flags(bool cloud_monitor_flags)
|
||||
setBodyParameter("Cloud_monitor_flags", cloud_monitor_flags ? "true" : "false");
|
||||
}
|
||||
|
||||
int CreateClusterRequest::getMaster_period()const
|
||||
{
|
||||
return master_period_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setMaster_period(int master_period)
|
||||
{
|
||||
master_period_ = master_period;
|
||||
setBodyParameter("Master_period", std::to_string(master_period));
|
||||
}
|
||||
|
||||
bool CreateClusterRequest::getSsh_flags()const
|
||||
{
|
||||
return ssh_flags_;
|
||||
@@ -149,6 +160,17 @@ void CreateClusterRequest::setPlatform(const std::string& platform)
|
||||
setBodyParameter("Platform", platform);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getService_cidr()const
|
||||
{
|
||||
return service_cidr_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setService_cidr(const std::string& service_cidr)
|
||||
{
|
||||
service_cidr_ = service_cidr;
|
||||
setBodyParameter("Service_cidr", service_cidr);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getNode_port_range()const
|
||||
{
|
||||
return node_port_range_;
|
||||
@@ -160,15 +182,15 @@ void CreateClusterRequest::setNode_port_range(const std::string& node_port_range
|
||||
setBodyParameter("Node_port_range", node_port_range);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getService_cidr()const
|
||||
std::string CreateClusterRequest::getZone_id()const
|
||||
{
|
||||
return service_cidr_;
|
||||
return zone_id_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setService_cidr(const std::string& service_cidr)
|
||||
void CreateClusterRequest::setZone_id(const std::string& zone_id)
|
||||
{
|
||||
service_cidr_ = service_cidr;
|
||||
setBodyParameter("Service_cidr", service_cidr);
|
||||
zone_id_ = zone_id;
|
||||
setBodyParameter("Zone_id", zone_id);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getLogin_password()const
|
||||
@@ -193,6 +215,17 @@ void CreateClusterRequest::setKubernetes_version(const std::string& kubernetes_v
|
||||
setBodyParameter("Kubernetes_version", kubernetes_version);
|
||||
}
|
||||
|
||||
bool CreateClusterRequest::getIs_enterprise_security_group()const
|
||||
{
|
||||
return is_enterprise_security_group_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setIs_enterprise_security_group(bool is_enterprise_security_group)
|
||||
{
|
||||
is_enterprise_security_group_ = is_enterprise_security_group;
|
||||
setBodyParameter("Is_enterprise_security_group", is_enterprise_security_group ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getMaster_period_unit()const
|
||||
{
|
||||
return master_period_unit_;
|
||||
@@ -204,48 +237,48 @@ void CreateClusterRequest::setMaster_period_unit(const std::string& master_perio
|
||||
setBodyParameter("Master_period_unit", master_period_unit);
|
||||
}
|
||||
|
||||
int CreateClusterRequest::getMaster_system_disk_size()const
|
||||
long CreateClusterRequest::getMaster_system_disk_size()const
|
||||
{
|
||||
return master_system_disk_size_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setMaster_system_disk_size(int master_system_disk_size)
|
||||
void CreateClusterRequest::setMaster_system_disk_size(long master_system_disk_size)
|
||||
{
|
||||
master_system_disk_size_ = master_system_disk_size;
|
||||
setBodyParameter("Master_system_disk_size", std::to_string(master_system_disk_size));
|
||||
}
|
||||
|
||||
int CreateClusterRequest::getMaster_count()const
|
||||
long CreateClusterRequest::getMaster_count()const
|
||||
{
|
||||
return master_count_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setMaster_count(int master_count)
|
||||
void CreateClusterRequest::setMaster_count(long master_count)
|
||||
{
|
||||
master_count_ = master_count;
|
||||
setBodyParameter("Master_count", std::to_string(master_count));
|
||||
}
|
||||
|
||||
int CreateClusterRequest::getNum_of_nodes()const
|
||||
long CreateClusterRequest::getNum_of_nodes()const
|
||||
{
|
||||
return num_of_nodes_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setNum_of_nodes(int num_of_nodes)
|
||||
void CreateClusterRequest::setNum_of_nodes(long num_of_nodes)
|
||||
{
|
||||
num_of_nodes_ = num_of_nodes;
|
||||
setBodyParameter("Num_of_nodes", std::to_string(num_of_nodes));
|
||||
}
|
||||
|
||||
bool CreateClusterRequest::getDeletion_protection()const
|
||||
std::string CreateClusterRequest::getDeletion_protection()const
|
||||
{
|
||||
return deletion_protection_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setDeletion_protection(bool deletion_protection)
|
||||
void CreateClusterRequest::setDeletion_protection(const std::string& deletion_protection)
|
||||
{
|
||||
deletion_protection_ = deletion_protection;
|
||||
setBodyParameter("Deletion_protection", deletion_protection ? "true" : "false");
|
||||
setBodyParameter("Deletion_protection", deletion_protection);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getKey_pair()const
|
||||
@@ -259,17 +292,6 @@ void CreateClusterRequest::setKey_pair(const std::string& key_pair)
|
||||
setBodyParameter("Key_pair", key_pair);
|
||||
}
|
||||
|
||||
bool CreateClusterRequest::getWorker_data_disk()const
|
||||
{
|
||||
return worker_data_disk_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setWorker_data_disk(bool worker_data_disk)
|
||||
{
|
||||
worker_data_disk_ = worker_data_disk;
|
||||
setBodyParameter("Worker_data_disk", worker_data_disk ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateClusterRequest::getMaster_auto_renew()const
|
||||
{
|
||||
return master_auto_renew_;
|
||||
@@ -281,6 +303,17 @@ void CreateClusterRequest::setMaster_auto_renew(bool master_auto_renew)
|
||||
setBodyParameter("Master_auto_renew", master_auto_renew ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getProfile()const
|
||||
{
|
||||
return profile_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setProfile(const std::string& profile)
|
||||
{
|
||||
profile_ = profile;
|
||||
setBodyParameter("Profile", profile);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getRegion_id()const
|
||||
{
|
||||
return region_id_;
|
||||
@@ -314,15 +347,15 @@ void CreateClusterRequest::setWorker_system_disk_category(const std::string& wor
|
||||
setBodyParameter("Worker_system_disk_category", worker_system_disk_category);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getRuntime()const
|
||||
std::string CreateClusterRequest::getUser_data()const
|
||||
{
|
||||
return runtime_;
|
||||
return user_data_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setRuntime(const std::string& runtime)
|
||||
void CreateClusterRequest::setUser_data(const std::string& user_data)
|
||||
{
|
||||
runtime_ = runtime;
|
||||
setBodyParameter("Runtime", runtime);
|
||||
user_data_ = user_data;
|
||||
setBodyParameter("User_data", user_data);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getWorker_period_unit()const
|
||||
@@ -358,61 +391,83 @@ void CreateClusterRequest::setNode_cidr_mask(const std::string& node_cidr_mask)
|
||||
setBodyParameter("Node_cidr_mask", node_cidr_mask);
|
||||
}
|
||||
|
||||
int CreateClusterRequest::getWorker_auto_renew_period()const
|
||||
long CreateClusterRequest::getWorker_auto_renew_period()const
|
||||
{
|
||||
return worker_auto_renew_period_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setWorker_auto_renew_period(int worker_auto_renew_period)
|
||||
void CreateClusterRequest::setWorker_auto_renew_period(long worker_auto_renew_period)
|
||||
{
|
||||
worker_auto_renew_period_ = worker_auto_renew_period;
|
||||
setBodyParameter("Worker_auto_renew_period", std::to_string(worker_auto_renew_period));
|
||||
}
|
||||
|
||||
int CreateClusterRequest::getMaster_auto_renew_period()const
|
||||
long CreateClusterRequest::getMaster_auto_renew_period()const
|
||||
{
|
||||
return master_auto_renew_period_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setMaster_auto_renew_period(int master_auto_renew_period)
|
||||
void CreateClusterRequest::setMaster_auto_renew_period(long master_auto_renew_period)
|
||||
{
|
||||
master_auto_renew_period_ = master_auto_renew_period;
|
||||
setBodyParameter("Master_auto_renew_period", std::to_string(master_auto_renew_period));
|
||||
}
|
||||
|
||||
int CreateClusterRequest::getWorker_period()const
|
||||
long CreateClusterRequest::getWorker_period()const
|
||||
{
|
||||
return worker_period_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setWorker_period(int worker_period)
|
||||
void CreateClusterRequest::setWorker_period(long worker_period)
|
||||
{
|
||||
worker_period_ = worker_period;
|
||||
setBodyParameter("Worker_period", std::to_string(worker_period));
|
||||
}
|
||||
|
||||
int CreateClusterRequest::getTimeout_mins()const
|
||||
long CreateClusterRequest::getTimeout_mins()const
|
||||
{
|
||||
return timeout_mins_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setTimeout_mins(int timeout_mins)
|
||||
void CreateClusterRequest::setTimeout_mins(long timeout_mins)
|
||||
{
|
||||
timeout_mins_ = timeout_mins;
|
||||
setBodyParameter("Timeout_mins", std::to_string(timeout_mins));
|
||||
}
|
||||
|
||||
int CreateClusterRequest::getWorker_system_disk_size()const
|
||||
std::string CreateClusterRequest::getImages_id()const
|
||||
{
|
||||
return images_id_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setImages_id(const std::string& images_id)
|
||||
{
|
||||
images_id_ = images_id;
|
||||
setBodyParameter("Images_id", images_id);
|
||||
}
|
||||
|
||||
long CreateClusterRequest::getWorker_system_disk_size()const
|
||||
{
|
||||
return worker_system_disk_size_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setWorker_system_disk_size(int worker_system_disk_size)
|
||||
void CreateClusterRequest::setWorker_system_disk_size(long worker_system_disk_size)
|
||||
{
|
||||
worker_system_disk_size_ = worker_system_disk_size;
|
||||
setBodyParameter("Worker_system_disk_size", std::to_string(worker_system_disk_size));
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getVpcid()const
|
||||
{
|
||||
return vpcid_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setVpcid(const std::string& vpcid)
|
||||
{
|
||||
vpcid_ = vpcid;
|
||||
setBodyParameter("Vpcid", vpcid);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getOs_type()const
|
||||
{
|
||||
return os_type_;
|
||||
@@ -435,17 +490,6 @@ void CreateClusterRequest::setCpu_policy(const std::string& cpu_policy)
|
||||
setBodyParameter("Cpu_policy", cpu_policy);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getVpcid()const
|
||||
{
|
||||
return vpcid_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setVpcid(const std::string& vpcid)
|
||||
{
|
||||
vpcid_ = vpcid;
|
||||
setBodyParameter("Vpcid", vpcid);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
|
||||
@@ -41,10 +41,10 @@ void CreateClusterResult::parse(const std::string &payload)
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["cluster_id"].isNull())
|
||||
cluster_id_ = value["cluster_id"].asString();
|
||||
if(!value["request_id"].isNull())
|
||||
request_id_ = value["request_id"].asString();
|
||||
if(!value["task_id"].isNull())
|
||||
task_id_ = value["task_id"].asString();
|
||||
if(!value["request_id"].isNull())
|
||||
request_id_ = value["request_id"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
85
cs/src/model/CreateKubernetesTriggerRequest.cc
Normal file
85
cs/src/model/CreateKubernetesTriggerRequest.cc
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* 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/cs/model/CreateKubernetesTriggerRequest.h>
|
||||
|
||||
using AlibabaCloud::CS::Model::CreateKubernetesTriggerRequest;
|
||||
|
||||
CreateKubernetesTriggerRequest::CreateKubernetesTriggerRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{
|
||||
setResourcePath("/triggers");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateKubernetesTriggerRequest::~CreateKubernetesTriggerRequest()
|
||||
{}
|
||||
|
||||
std::string CreateKubernetesTriggerRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateKubernetesTriggerRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateKubernetesTriggerRequest::getAction()const
|
||||
{
|
||||
return action_;
|
||||
}
|
||||
|
||||
void CreateKubernetesTriggerRequest::setAction(const std::string& action)
|
||||
{
|
||||
action_ = action;
|
||||
setBodyParameter("Action", action);
|
||||
}
|
||||
|
||||
std::string CreateKubernetesTriggerRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateKubernetesTriggerRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setBodyParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateKubernetesTriggerRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateKubernetesTriggerRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setBodyParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateKubernetesTriggerRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void CreateKubernetesTriggerRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setBodyParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
72
cs/src/model/CreateKubernetesTriggerResult.cc
Normal file
72
cs/src/model/CreateKubernetesTriggerResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cs/model/CreateKubernetesTriggerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CS;
|
||||
using namespace AlibabaCloud::CS::Model;
|
||||
|
||||
CreateKubernetesTriggerResult::CreateKubernetesTriggerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateKubernetesTriggerResult::CreateKubernetesTriggerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateKubernetesTriggerResult::~CreateKubernetesTriggerResult()
|
||||
{}
|
||||
|
||||
void CreateKubernetesTriggerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["cluster_id"].isNull())
|
||||
cluster_id_ = value["cluster_id"].asString();
|
||||
if(!value["project_id"].isNull())
|
||||
project_id_ = value["project_id"].asString();
|
||||
if(!value["action"].isNull())
|
||||
action_ = value["action"].asString();
|
||||
if(!value["id"].isNull())
|
||||
id_ = value["id"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateKubernetesTriggerResult::getAction()const
|
||||
{
|
||||
return action_;
|
||||
}
|
||||
|
||||
std::string CreateKubernetesTriggerResult::getCluster_id()const
|
||||
{
|
||||
return cluster_id_;
|
||||
}
|
||||
|
||||
std::string CreateKubernetesTriggerResult::getProject_id()const
|
||||
{
|
||||
return project_id_;
|
||||
}
|
||||
|
||||
std::string CreateKubernetesTriggerResult::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
@@ -1,85 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cs/model/CreateTriggerHookRequest.h>
|
||||
|
||||
using AlibabaCloud::CS::Model::CreateTriggerHookRequest;
|
||||
|
||||
CreateTriggerHookRequest::CreateTriggerHookRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{
|
||||
setResourcePath("/hook/trigger");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
CreateTriggerHookRequest::~CreateTriggerHookRequest()
|
||||
{}
|
||||
|
||||
std::string CreateTriggerHookRequest::getCluster_id()const
|
||||
{
|
||||
return cluster_id_;
|
||||
}
|
||||
|
||||
void CreateTriggerHookRequest::setCluster_id(const std::string& cluster_id)
|
||||
{
|
||||
cluster_id_ = cluster_id;
|
||||
setBodyParameter("Cluster_id", cluster_id);
|
||||
}
|
||||
|
||||
std::string CreateTriggerHookRequest::getProject_id()const
|
||||
{
|
||||
return project_id_;
|
||||
}
|
||||
|
||||
void CreateTriggerHookRequest::setProject_id(const std::string& project_id)
|
||||
{
|
||||
project_id_ = project_id;
|
||||
setBodyParameter("Project_id", project_id);
|
||||
}
|
||||
|
||||
std::string CreateTriggerHookRequest::getTrigger_url()const
|
||||
{
|
||||
return trigger_url_;
|
||||
}
|
||||
|
||||
void CreateTriggerHookRequest::setTrigger_url(const std::string& trigger_url)
|
||||
{
|
||||
trigger_url_ = trigger_url;
|
||||
setBodyParameter("Trigger_url", trigger_url);
|
||||
}
|
||||
|
||||
std::string CreateTriggerHookRequest::getRegion_id()const
|
||||
{
|
||||
return region_id_;
|
||||
}
|
||||
|
||||
void CreateTriggerHookRequest::setRegion_id(const std::string& region_id)
|
||||
{
|
||||
region_id_ = region_id;
|
||||
setBodyParameter("Region_id", region_id);
|
||||
}
|
||||
|
||||
std::string CreateTriggerHookRequest::getAction()const
|
||||
{
|
||||
return action_;
|
||||
}
|
||||
|
||||
void CreateTriggerHookRequest::setAction(const std::string& action)
|
||||
{
|
||||
action_ = action;
|
||||
setBodyParameter("Action", action);
|
||||
}
|
||||
|
||||
41
cs/src/model/DeleteKubernetesTriggerRequest.cc
Normal file
41
cs/src/model/DeleteKubernetesTriggerRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* 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/cs/model/DeleteKubernetesTriggerRequest.h>
|
||||
|
||||
using AlibabaCloud::CS::Model::DeleteKubernetesTriggerRequest;
|
||||
|
||||
DeleteKubernetesTriggerRequest::DeleteKubernetesTriggerRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{
|
||||
setResourcePath("/triggers/revoke/[Id]");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteKubernetesTriggerRequest::~DeleteKubernetesTriggerRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteKubernetesTriggerRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DeleteKubernetesTriggerRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", id);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cs/model/CreateTriggerHookResult.h>
|
||||
#include <alibabacloud/cs/model/DeleteKubernetesTriggerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CS;
|
||||
using namespace AlibabaCloud::CS::Model;
|
||||
|
||||
CreateTriggerHookResult::CreateTriggerHookResult() :
|
||||
DeleteKubernetesTriggerResult::DeleteKubernetesTriggerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateTriggerHookResult::CreateTriggerHookResult(const std::string &payload) :
|
||||
DeleteKubernetesTriggerResult::DeleteKubernetesTriggerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateTriggerHookResult::~CreateTriggerHookResult()
|
||||
DeleteKubernetesTriggerResult::~DeleteKubernetesTriggerResult()
|
||||
{}
|
||||
|
||||
void CreateTriggerHookResult::parse(const std::string &payload)
|
||||
void DeleteKubernetesTriggerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -51,33 +51,24 @@ void DescribeAddonsResult::parse(const std::string &payload)
|
||||
ComponentGroupsItem::ItemsItem itemsObject;
|
||||
if(!allComponentGroupsNodeitemsitemsItem["name"].isNull())
|
||||
itemsObject.name = allComponentGroupsNodeitemsitemsItem["name"].asString();
|
||||
if(!allComponentGroupsNodeitemsitemsItem["config"].isNull())
|
||||
itemsObject.config = allComponentGroupsNodeitemsitemsItem["config"].asString();
|
||||
if(!allComponentGroupsNodeitemsitemsItem["required"].isNull())
|
||||
itemsObject.required = allComponentGroupsNodeitemsitemsItem["required"].asString();
|
||||
if(!allComponentGroupsNodeitemsitemsItem["description"].isNull())
|
||||
itemsObject.description = allComponentGroupsNodeitemsitemsItem["description"].asString();
|
||||
if(!allComponentGroupsNodeitemsitemsItem["disabled"].isNull())
|
||||
itemsObject.disabled = allComponentGroupsNodeitemsitemsItem["disabled"].asString() == "true";
|
||||
if(!allComponentGroupsNodeitemsitemsItem["version"].isNull())
|
||||
itemsObject.version = allComponentGroupsNodeitemsitemsItem["version"].asString();
|
||||
if(!allComponentGroupsNodeitemsitemsItem["required"].isNull())
|
||||
itemsObject.required = allComponentGroupsNodeitemsitemsItem["required"].asString();
|
||||
componentGroupsObject.items.push_back(itemsObject);
|
||||
}
|
||||
auto all_Default = value["default"]["default_addon_name"];
|
||||
auto all_Default = value["default"]["ComponentName"];
|
||||
for (auto value : all_Default)
|
||||
componentGroupsObject._default.push_back(value.asString());
|
||||
componentGroups_.push_back(componentGroupsObject);
|
||||
}
|
||||
auto standardComponentsNode = value["StandardComponents"];
|
||||
auto addon_nameNode = standardComponentsNode["addon_name"];
|
||||
if(!addon_nameNode["name"].isNull())
|
||||
standardComponents_.addon_name.name = addon_nameNode["name"].asString();
|
||||
if(!addon_nameNode["config"].isNull())
|
||||
standardComponents_.addon_name.config = addon_nameNode["config"].asString();
|
||||
if(!addon_nameNode["required"].isNull())
|
||||
standardComponents_.addon_name.required = addon_nameNode["required"].asString();
|
||||
if(!addon_nameNode["disabled"].isNull())
|
||||
standardComponents_.addon_name.disabled = addon_nameNode["disabled"].asString() == "true";
|
||||
if(!addon_nameNode["version"].isNull())
|
||||
standardComponents_.addon_name.version = addon_nameNode["version"].asString();
|
||||
if(!standardComponentsNode["ComponentName"].isNull())
|
||||
standardComponents_.componentName = standardComponentsNode["ComponentName"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cs/model/DescribeApiVersionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CS;
|
||||
using namespace AlibabaCloud::CS::Model;
|
||||
|
||||
DescribeApiVersionResult::DescribeApiVersionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeApiVersionResult::DescribeApiVersionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeApiVersionResult::~DescribeApiVersionResult()
|
||||
{}
|
||||
|
||||
void DescribeApiVersionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["version"].isNull())
|
||||
version_ = value["version"].asString();
|
||||
if(!value["build"].isNull())
|
||||
build_ = value["build"].asString();
|
||||
if(!value["docker_version"].isNull())
|
||||
docker_version_ = value["docker_version"].asString();
|
||||
if(!value["docker_region_versions"].isNull())
|
||||
docker_region_versions_ = value["docker_region_versions"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeApiVersionResult::getDocker_version()const
|
||||
{
|
||||
return docker_version_;
|
||||
}
|
||||
|
||||
std::string DescribeApiVersionResult::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
std::string DescribeApiVersionResult::getBuild()const
|
||||
{
|
||||
return build_;
|
||||
}
|
||||
|
||||
std::string DescribeApiVersionResult::getDocker_region_versions()const
|
||||
{
|
||||
return docker_region_versions_;
|
||||
}
|
||||
|
||||
@@ -40,16 +40,16 @@ void DescribeClusterAddonUpgradeStatusResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto addon_infoNode = value["addon_info"];
|
||||
if(!addon_infoNode["component_name"].isNull())
|
||||
addon_info_.component_name = addon_infoNode["component_name"].asString();
|
||||
if(!addon_infoNode["message"].isNull())
|
||||
addon_info_.message = addon_infoNode["message"].asString();
|
||||
if(!addon_infoNode["category"].isNull())
|
||||
addon_info_.category = addon_infoNode["category"].asString();
|
||||
if(!addon_infoNode["yaml"].isNull())
|
||||
addon_info_.yaml = addon_infoNode["yaml"].asString();
|
||||
if(!addon_infoNode["component_name"].isNull())
|
||||
addon_info_.component_name = addon_infoNode["component_name"].asString();
|
||||
if(!addon_infoNode["version"].isNull())
|
||||
addon_info_.version = addon_infoNode["version"].asString();
|
||||
if(!addon_infoNode["yaml"].isNull())
|
||||
addon_info_.yaml = addon_infoNode["yaml"].asString();
|
||||
if(!value["template"].isNull())
|
||||
_template_ = value["template"].asString();
|
||||
if(!value["can_upgrade"].isNull())
|
||||
|
||||
41
cs/src/model/DescribeClusterAddonsUpgradeStatusRequest.cc
Normal file
41
cs/src/model/DescribeClusterAddonsUpgradeStatusRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* 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/cs/model/DescribeClusterAddonsUpgradeStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::CS::Model::DescribeClusterAddonsUpgradeStatusRequest;
|
||||
|
||||
DescribeClusterAddonsUpgradeStatusRequest::DescribeClusterAddonsUpgradeStatusRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{
|
||||
setResourcePath("/clusters/[ClusterId]/components/upgradestatus");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeClusterAddonsUpgradeStatusRequest::~DescribeClusterAddonsUpgradeStatusRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeClusterAddonsUpgradeStatusRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeClusterAddonsUpgradeStatusRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
44
cs/src/model/DescribeClusterAddonsUpgradeStatusResult.cc
Normal file
44
cs/src/model/DescribeClusterAddonsUpgradeStatusResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cs/model/DescribeClusterAddonsUpgradeStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CS;
|
||||
using namespace AlibabaCloud::CS::Model;
|
||||
|
||||
DescribeClusterAddonsUpgradeStatusResult::DescribeClusterAddonsUpgradeStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeClusterAddonsUpgradeStatusResult::DescribeClusterAddonsUpgradeStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeClusterAddonsUpgradeStatusResult::~DescribeClusterAddonsUpgradeStatusResult()
|
||||
{}
|
||||
|
||||
void DescribeClusterAddonsUpgradeStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -39,62 +39,13 @@ void DescribeClusterAddonsVersionResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["template"].isNull())
|
||||
_template_ = value["template"].asString();
|
||||
if(!value["next_version"].isNull())
|
||||
next_version_ = value["next_version"].asString();
|
||||
if(!value["can_upgrade"].isNull())
|
||||
can_upgrade_ = value["can_upgrade"].asString() == "true";
|
||||
if(!value["component_name"].isNull())
|
||||
component_name_ = value["component_name"].asString();
|
||||
if(!value["version"].isNull())
|
||||
version_ = value["version"].asString();
|
||||
if(!value["changed"].isNull())
|
||||
changed_ = value["changed"].asString();
|
||||
if(!value["message"].isNull())
|
||||
message_ = value["message"].asString();
|
||||
if(!value["required"].isNull())
|
||||
required_ = value["required"].asString() == "true";
|
||||
if(!value["AddonsName"].isNull())
|
||||
addonsName_ = value["AddonsName"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeClusterAddonsVersionResult::getNext_version()const
|
||||
std::string DescribeClusterAddonsVersionResult::getAddonsName()const
|
||||
{
|
||||
return next_version_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterAddonsVersionResult::get_Template()const
|
||||
{
|
||||
return _template_;
|
||||
}
|
||||
|
||||
bool DescribeClusterAddonsVersionResult::getCan_upgrade()const
|
||||
{
|
||||
return can_upgrade_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterAddonsVersionResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool DescribeClusterAddonsVersionResult::getRequired()const
|
||||
{
|
||||
return required_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterAddonsVersionResult::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterAddonsVersionResult::getChanged()const
|
||||
{
|
||||
return changed_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterAddonsVersionResult::getComponent_name()const
|
||||
{
|
||||
return component_name_;
|
||||
return addonsName_;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,3 +39,14 @@ void DescribeClusterAttachScriptsRequest::setClusterId(const std::string& cluste
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterAttachScriptsRequest::getArch()const
|
||||
{
|
||||
return arch_;
|
||||
}
|
||||
|
||||
void DescribeClusterAttachScriptsRequest::setArch(const std::string& arch)
|
||||
{
|
||||
arch_ = arch;
|
||||
setBodyParameter("Arch", arch);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,74 +43,65 @@ void DescribeClusterDetailResult::parse(const std::string &payload)
|
||||
for (auto valuetagstagsItem : alltagsNode)
|
||||
{
|
||||
TagsItem tagsObject;
|
||||
if(!valuetagstagsItem["key"].isNull())
|
||||
tagsObject.key = valuetagstagsItem["key"].asString();
|
||||
if(!valuetagstagsItem["value"].isNull())
|
||||
tagsObject.value = valuetagstagsItem["value"].asString();
|
||||
if(!valuetagstagsItem["key"].isNull())
|
||||
tagsObject.key = valuetagstagsItem["key"].asString();
|
||||
tags_.push_back(tagsObject);
|
||||
}
|
||||
if(!value["name"].isNull())
|
||||
name_ = value["name"].asString();
|
||||
if(!value["cluster_id"].isNull())
|
||||
cluster_id_ = value["cluster_id"].asString();
|
||||
if(!value["region_id"].isNull())
|
||||
region_id_ = value["region_id"].asString();
|
||||
if(!value["state"].isNull())
|
||||
state_ = value["state"].asString();
|
||||
if(!value["cluster_type"].isNull())
|
||||
cluster_type_ = value["cluster_type"].asString();
|
||||
if(!value["current_version"].isNull())
|
||||
current_version_ = value["current_version"].asString();
|
||||
if(!value["meta_data"].isNull())
|
||||
meta_data_ = value["meta_data"].asString();
|
||||
if(!value["resource_group_id"].isNull())
|
||||
resource_group_id_ = value["resource_group_id"].asString();
|
||||
if(!value["instance_type"].isNull())
|
||||
instance_type_ = value["instance_type"].asString();
|
||||
if(!value["vpc_id"].isNull())
|
||||
vpc_id_ = value["vpc_id"].asString();
|
||||
if(!value["vswitch_id"].isNull())
|
||||
vswitch_id_ = value["vswitch_id"].asString();
|
||||
if(!value["vswitch_cidr"].isNull())
|
||||
vswitch_cidr_ = value["vswitch_cidr"].asString();
|
||||
if(!value["data_disk_size"].isNull())
|
||||
data_disk_size_ = std::stoi(value["data_disk_size"].asString());
|
||||
if(!value["data_disk_category"].isNull())
|
||||
data_disk_category_ = value["data_disk_category"].asString();
|
||||
if(!value["security_group_id"].isNull())
|
||||
security_group_id_ = value["security_group_id"].asString();
|
||||
if(!value["zone_id"].isNull())
|
||||
zone_id_ = value["zone_id"].asString();
|
||||
if(!value["network_mode"].isNull())
|
||||
network_mode_ = value["network_mode"].asString();
|
||||
if(!value["docker_version"].isNull())
|
||||
docker_version_ = value["docker_version"].asString();
|
||||
if(!value["deletion_protection"].isNull())
|
||||
deletion_protection_ = value["deletion_protection"].asString() == "true";
|
||||
if(!value["external_loadbalancer_id"].isNull())
|
||||
external_loadbalancer_id_ = value["external_loadbalancer_id"].asString();
|
||||
if(!value["created"].isNull())
|
||||
created_ = value["created"].asString();
|
||||
if(!value["network_mode"].isNull())
|
||||
network_mode_ = value["network_mode"].asString();
|
||||
if(!value["region_id"].isNull())
|
||||
region_id_ = value["region_id"].asString();
|
||||
if(!value["security_group_id"].isNull())
|
||||
security_group_id_ = value["security_group_id"].asString();
|
||||
if(!value["current_version"].isNull())
|
||||
current_version_ = value["current_version"].asString();
|
||||
if(!value["cluster_type"].isNull())
|
||||
cluster_type_ = value["cluster_type"].asString();
|
||||
if(!value["docker_version"].isNull())
|
||||
docker_version_ = value["docker_version"].asString();
|
||||
if(!value["vswitch_cidr"].isNull())
|
||||
vswitch_cidr_ = value["vswitch_cidr"].asString();
|
||||
if(!value["zone_id"].isNull())
|
||||
zone_id_ = value["zone_id"].asString();
|
||||
if(!value["cluster_id"].isNull())
|
||||
cluster_id_ = value["cluster_id"].asString();
|
||||
if(!value["size"].isNull())
|
||||
size_ = std::stoi(value["size"].asString());
|
||||
if(!value["external_loadbalancer_id"].isNull())
|
||||
external_loadbalancer_id_ = value["external_loadbalancer_id"].asString();
|
||||
if(!value["vswitch_id"].isNull())
|
||||
vswitch_id_ = value["vswitch_id"].asString();
|
||||
if(!value["name"].isNull())
|
||||
name_ = value["name"].asString();
|
||||
if(!value["meta_data"].isNull())
|
||||
meta_data_ = value["meta_data"].asString();
|
||||
if(!value["state"].isNull())
|
||||
state_ = value["state"].asString();
|
||||
if(!value["updated"].isNull())
|
||||
updated_ = value["updated"].asString();
|
||||
if(!value["size"].isNull())
|
||||
size_ = value["size"].asString();
|
||||
if(!value["instance_type"].isNull())
|
||||
instance_type_ = value["instance_type"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeClusterDetailResult::getCluster_type()const
|
||||
{
|
||||
return cluster_type_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterDetailResult::getResource_group_id()const
|
||||
{
|
||||
return resource_group_id_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterDetailResult::getData_disk_category()const
|
||||
std::string DescribeClusterDetailResult::getCluster_type()const
|
||||
{
|
||||
return data_disk_category_;
|
||||
return cluster_type_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterDetailResult::getDocker_version()const
|
||||
@@ -138,7 +129,7 @@ std::string DescribeClusterDetailResult::getRegion_id()const
|
||||
return region_id_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterDetailResult::getSize()const
|
||||
int DescribeClusterDetailResult::getSize()const
|
||||
{
|
||||
return size_;
|
||||
}
|
||||
@@ -153,16 +144,16 @@ std::string DescribeClusterDetailResult::getVswitch_id()const
|
||||
return vswitch_id_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterDetailResult::getMeta_data()const
|
||||
{
|
||||
return meta_data_;
|
||||
}
|
||||
|
||||
bool DescribeClusterDetailResult::getDeletion_protection()const
|
||||
{
|
||||
return deletion_protection_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterDetailResult::getMeta_data()const
|
||||
{
|
||||
return meta_data_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterDetailResult::getNetwork_mode()const
|
||||
{
|
||||
return network_mode_;
|
||||
@@ -178,24 +169,14 @@ std::vector<DescribeClusterDetailResult::TagsItem> DescribeClusterDetailResult::
|
||||
return tags_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterDetailResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
int DescribeClusterDetailResult::getData_disk_size()const
|
||||
{
|
||||
return data_disk_size_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterDetailResult::getCreated()const
|
||||
{
|
||||
return created_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterDetailResult::getState()const
|
||||
std::string DescribeClusterDetailResult::getName()const
|
||||
{
|
||||
return state_;
|
||||
return name_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterDetailResult::getZone_id()const
|
||||
@@ -203,6 +184,11 @@ std::string DescribeClusterDetailResult::getZone_id()const
|
||||
return zone_id_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterDetailResult::getState()const
|
||||
{
|
||||
return state_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterDetailResult::getVswitch_cidr()const
|
||||
{
|
||||
return vswitch_cidr_;
|
||||
|
||||
@@ -43,10 +43,14 @@ void DescribeClusterLogsResult::parse(const std::string &payload)
|
||||
cluster_id_ = value["cluster_id"].asString();
|
||||
if(!value["cluster_log"].isNull())
|
||||
cluster_log_ = value["cluster_log"].asString();
|
||||
if(!value["log_level"].isNull())
|
||||
log_level_ = value["log_level"].asString();
|
||||
if(!value["created"].isNull())
|
||||
created_ = value["created"].asString();
|
||||
if(!value["log_level"].isNull())
|
||||
log_level_ = value["log_level"].asString();
|
||||
if(!value["ID"].isNull())
|
||||
iD_ = value["ID"].asString();
|
||||
if(!value["updated"].isNull())
|
||||
updated_ = value["updated"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -55,11 +59,21 @@ std::string DescribeClusterLogsResult::getCluster_id()const
|
||||
return cluster_id_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterLogsResult::getUpdated()const
|
||||
{
|
||||
return updated_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterLogsResult::getLog_level()const
|
||||
{
|
||||
return log_level_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterLogsResult::getID()const
|
||||
{
|
||||
return iD_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterLogsResult::getCluster_log()const
|
||||
{
|
||||
return cluster_log_;
|
||||
|
||||
@@ -43,54 +43,54 @@ void DescribeClusterNodesResult::parse(const std::string &payload)
|
||||
for (auto valuenodesnode : allnodesNode)
|
||||
{
|
||||
Node nodesObject;
|
||||
if(!valuenodesnode["instance_type"].isNull())
|
||||
nodesObject.instance_type = valuenodesnode["instance_type"].asString();
|
||||
if(!valuenodesnode["instance_role"].isNull())
|
||||
nodesObject.instance_role = valuenodesnode["instance_role"].asString();
|
||||
if(!valuenodesnode["expired_time"].isNull())
|
||||
nodesObject.expired_time = valuenodesnode["expired_time"].asString();
|
||||
if(!valuenodesnode["state"].isNull())
|
||||
nodesObject.state = valuenodesnode["state"].asString();
|
||||
if(!valuenodesnode["error_message"].isNull())
|
||||
nodesObject.error_message = valuenodesnode["error_message"].asString();
|
||||
if(!valuenodesnode["creation_time"].isNull())
|
||||
nodesObject.creation_time = valuenodesnode["creation_time"].asString();
|
||||
if(!valuenodesnode["node_status"].isNull())
|
||||
nodesObject.node_status = valuenodesnode["node_status"].asString();
|
||||
if(!valuenodesnode["instance_name"].isNull())
|
||||
nodesObject.instance_name = valuenodesnode["instance_name"].asString();
|
||||
if(!valuenodesnode["is_aliyun_node"].isNull())
|
||||
nodesObject.is_aliyun_node = valuenodesnode["is_aliyun_node"].asString() == "true";
|
||||
if(!valuenodesnode["host_name"].isNull())
|
||||
nodesObject.host_name = valuenodesnode["host_name"].asString();
|
||||
if(!valuenodesnode["image_id"].isNull())
|
||||
nodesObject.image_id = valuenodesnode["image_id"].asString();
|
||||
if(!valuenodesnode["instance_status"].isNull())
|
||||
nodesObject.instance_status = valuenodesnode["instance_status"].asString();
|
||||
if(!valuenodesnode["instance_charge_type"].isNull())
|
||||
nodesObject.instance_charge_type = valuenodesnode["instance_charge_type"].asString();
|
||||
if(!valuenodesnode["source"].isNull())
|
||||
nodesObject.source = valuenodesnode["source"].asString();
|
||||
if(!valuenodesnode["error_message"].isNull())
|
||||
nodesObject.error_message = valuenodesnode["error_message"].asString();
|
||||
if(!valuenodesnode["node_status"].isNull())
|
||||
nodesObject.node_status = valuenodesnode["node_status"].asString();
|
||||
if(!valuenodesnode["creation_time"].isNull())
|
||||
nodesObject.creation_time = valuenodesnode["creation_time"].asString();
|
||||
if(!valuenodesnode["node_name"].isNull())
|
||||
nodesObject.node_name = valuenodesnode["node_name"].asString();
|
||||
if(!valuenodesnode["expired_time"].isNull())
|
||||
nodesObject.expired_time = valuenodesnode["expired_time"].asString();
|
||||
if(!valuenodesnode["source"].isNull())
|
||||
nodesObject.source = valuenodesnode["source"].asString();
|
||||
if(!valuenodesnode["instance_type_family"].isNull())
|
||||
nodesObject.instance_type_family = valuenodesnode["instance_type_family"].asString();
|
||||
if(!valuenodesnode["nodepool_id"].isNull())
|
||||
nodesObject.nodepool_id = valuenodesnode["nodepool_id"].asString();
|
||||
if(!valuenodesnode["instance_id"].isNull())
|
||||
nodesObject.instance_id = valuenodesnode["instance_id"].asString();
|
||||
if(!valuenodesnode["instance_charge_type"].isNull())
|
||||
nodesObject.instance_charge_type = valuenodesnode["instance_charge_type"].asString();
|
||||
if(!valuenodesnode["instance_role"].isNull())
|
||||
nodesObject.instance_role = valuenodesnode["instance_role"].asString();
|
||||
if(!valuenodesnode["state"].isNull())
|
||||
nodesObject.state = valuenodesnode["state"].asString();
|
||||
if(!valuenodesnode["instance_status"].isNull())
|
||||
nodesObject.instance_status = valuenodesnode["instance_status"].asString();
|
||||
if(!valuenodesnode["image_id"].isNull())
|
||||
nodesObject.image_id = valuenodesnode["image_id"].asString();
|
||||
if(!valuenodesnode["nodepool_id"].isNull())
|
||||
nodesObject.nodepool_id = valuenodesnode["nodepool_id"].asString();
|
||||
if(!valuenodesnode["instance_type"].isNull())
|
||||
nodesObject.instance_type = valuenodesnode["instance_type"].asString();
|
||||
if(!valuenodesnode["host_name"].isNull())
|
||||
nodesObject.host_name = valuenodesnode["host_name"].asString();
|
||||
auto allIp_address = value["ip_address"]["ip"];
|
||||
for (auto value : allIp_address)
|
||||
nodesObject.ip_address.push_back(value.asString());
|
||||
nodes_.push_back(nodesObject);
|
||||
}
|
||||
auto pageNode = value["page"];
|
||||
if(!pageNode["page_size"].isNull())
|
||||
page_.page_size = std::stoi(pageNode["page_size"].asString());
|
||||
if(!pageNode["page_number"].isNull())
|
||||
page_.page_number = std::stoi(pageNode["page_number"].asString());
|
||||
if(!pageNode["total_count"].isNull())
|
||||
page_.total_count = std::stoi(pageNode["total_count"].asString());
|
||||
if(!pageNode["page_size"].isNull())
|
||||
page_.page_size = std::stoi(pageNode["page_size"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,25 +39,6 @@ void DescribeClusterResourcesResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allresourcesNode = value["resources"]["resourcesItem"];
|
||||
for (auto valueresourcesresourcesItem : allresourcesNode)
|
||||
{
|
||||
ResourcesItem resourcesObject;
|
||||
if(!valueresourcesresourcesItem["instance_id"].isNull())
|
||||
resourcesObject.instance_id = valueresourcesresourcesItem["instance_id"].asString();
|
||||
if(!valueresourcesresourcesItem["resource_type"].isNull())
|
||||
resourcesObject.resource_type = valueresourcesresourcesItem["resource_type"].asString();
|
||||
if(!valueresourcesresourcesItem["resource_info"].isNull())
|
||||
resourcesObject.resource_info = valueresourcesresourcesItem["resource_info"].asString();
|
||||
if(!valueresourcesresourcesItem["state"].isNull())
|
||||
resourcesObject.state = valueresourcesresourcesItem["state"].asString();
|
||||
resources_.push_back(resourcesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeClusterResourcesResult::ResourcesItem> DescribeClusterResourcesResult::getresources()const
|
||||
{
|
||||
return resources_;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,13 @@ void DescribeClusterV2UserKubeconfigResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["config"].isNull())
|
||||
config_ = value["config"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeClusterV2UserKubeconfigResult::getConfig()const
|
||||
{
|
||||
return config_;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,73 +39,6 @@ void DescribeClustersResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allclustersNode = value["clusters"]["clusterDetail"];
|
||||
for (auto valueclustersclusterDetail : allclustersNode)
|
||||
{
|
||||
ClusterDetail clustersObject;
|
||||
if(!valueclustersclusterDetail["name"].isNull())
|
||||
clustersObject.name = valueclustersclusterDetail["name"].asString();
|
||||
if(!valueclustersclusterDetail["cluster_id"].isNull())
|
||||
clustersObject.cluster_id = valueclustersclusterDetail["cluster_id"].asString();
|
||||
if(!valueclustersclusterDetail["region_id"].isNull())
|
||||
clustersObject.region_id = valueclustersclusterDetail["region_id"].asString();
|
||||
if(!valueclustersclusterDetail["state"].isNull())
|
||||
clustersObject.state = valueclustersclusterDetail["state"].asString();
|
||||
if(!valueclustersclusterDetail["cluster_type"].isNull())
|
||||
clustersObject.cluster_type = valueclustersclusterDetail["cluster_type"].asString();
|
||||
if(!valueclustersclusterDetail["current_version"].isNull())
|
||||
clustersObject.current_version = valueclustersclusterDetail["current_version"].asString();
|
||||
if(!valueclustersclusterDetail["meta_data"].isNull())
|
||||
clustersObject.meta_data = valueclustersclusterDetail["meta_data"].asString();
|
||||
if(!valueclustersclusterDetail["resource_group_id"].isNull())
|
||||
clustersObject.resource_group_id = valueclustersclusterDetail["resource_group_id"].asString();
|
||||
if(!valueclustersclusterDetail["vpc_id"].isNull())
|
||||
clustersObject.vpc_id = valueclustersclusterDetail["vpc_id"].asString();
|
||||
if(!valueclustersclusterDetail["vswitch_id"].isNull())
|
||||
clustersObject.vswitch_id = valueclustersclusterDetail["vswitch_id"].asString();
|
||||
if(!valueclustersclusterDetail["vswitch_cidr"].isNull())
|
||||
clustersObject.vswitch_cidr = valueclustersclusterDetail["vswitch_cidr"].asString();
|
||||
if(!valueclustersclusterDetail["data_disk_size"].isNull())
|
||||
clustersObject.data_disk_size = std::stoi(valueclustersclusterDetail["data_disk_size"].asString());
|
||||
if(!valueclustersclusterDetail["data_disk_category"].isNull())
|
||||
clustersObject.data_disk_category = valueclustersclusterDetail["data_disk_category"].asString();
|
||||
if(!valueclustersclusterDetail["security_group_id"].isNull())
|
||||
clustersObject.security_group_id = valueclustersclusterDetail["security_group_id"].asString();
|
||||
if(!valueclustersclusterDetail["zone_id"].isNull())
|
||||
clustersObject.zone_id = valueclustersclusterDetail["zone_id"].asString();
|
||||
if(!valueclustersclusterDetail["network_mode"].isNull())
|
||||
clustersObject.network_mode = valueclustersclusterDetail["network_mode"].asString();
|
||||
if(!valueclustersclusterDetail["master_url"].isNull())
|
||||
clustersObject.master_url = valueclustersclusterDetail["master_url"].asString();
|
||||
if(!valueclustersclusterDetail["docker_version"].isNull())
|
||||
clustersObject.docker_version = valueclustersclusterDetail["docker_version"].asString();
|
||||
if(!valueclustersclusterDetail["deletion_protection"].isNull())
|
||||
clustersObject.deletion_protection = valueclustersclusterDetail["deletion_protection"].asString() == "true";
|
||||
if(!valueclustersclusterDetail["external_loadbalancer_id"].isNull())
|
||||
clustersObject.external_loadbalancer_id = valueclustersclusterDetail["external_loadbalancer_id"].asString();
|
||||
if(!valueclustersclusterDetail["created"].isNull())
|
||||
clustersObject.created = valueclustersclusterDetail["created"].asString();
|
||||
if(!valueclustersclusterDetail["updated"].isNull())
|
||||
clustersObject.updated = valueclustersclusterDetail["updated"].asString();
|
||||
if(!valueclustersclusterDetail["size"].isNull())
|
||||
clustersObject.size = valueclustersclusterDetail["size"].asString();
|
||||
auto alltagsNode = allclustersNode["tags"]["tagsItem"];
|
||||
for (auto allclustersNodetagstagsItem : alltagsNode)
|
||||
{
|
||||
ClusterDetail::TagsItem tagsObject;
|
||||
if(!allclustersNodetagstagsItem["key"].isNull())
|
||||
tagsObject.key = allclustersNodetagstagsItem["key"].asString();
|
||||
if(!allclustersNodetagstagsItem["value"].isNull())
|
||||
tagsObject.value = allclustersNodetagstagsItem["value"].asString();
|
||||
clustersObject.tags.push_back(tagsObject);
|
||||
}
|
||||
clusters_.push_back(clustersObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeClustersResult::ClusterDetail> DescribeClustersResult::getclusters()const
|
||||
{
|
||||
return clusters_;
|
||||
}
|
||||
|
||||
|
||||
74
cs/src/model/DescribeClustersV1Request.cc
Normal file
74
cs/src/model/DescribeClustersV1Request.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cs/model/DescribeClustersV1Request.h>
|
||||
|
||||
using AlibabaCloud::CS::Model::DescribeClustersV1Request;
|
||||
|
||||
DescribeClustersV1Request::DescribeClustersV1Request() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{
|
||||
setResourcePath("/api/v1/clusters");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeClustersV1Request::~DescribeClustersV1Request()
|
||||
{}
|
||||
|
||||
std::string DescribeClustersV1Request::getClusterType()const
|
||||
{
|
||||
return clusterType_;
|
||||
}
|
||||
|
||||
void DescribeClustersV1Request::setClusterType(const std::string& clusterType)
|
||||
{
|
||||
clusterType_ = clusterType;
|
||||
setParameter("ClusterType", clusterType);
|
||||
}
|
||||
|
||||
long DescribeClustersV1Request::getPage_number()const
|
||||
{
|
||||
return page_number_;
|
||||
}
|
||||
|
||||
void DescribeClustersV1Request::setPage_number(long page_number)
|
||||
{
|
||||
page_number_ = page_number;
|
||||
setParameter("Page_number", std::to_string(page_number));
|
||||
}
|
||||
|
||||
std::string DescribeClustersV1Request::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DescribeClustersV1Request::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
long DescribeClustersV1Request::getPage_size()const
|
||||
{
|
||||
return page_size_;
|
||||
}
|
||||
|
||||
void DescribeClustersV1Request::setPage_size(long page_size)
|
||||
{
|
||||
page_size_ = page_size;
|
||||
setParameter("Page_size", std::to_string(page_size));
|
||||
}
|
||||
|
||||
137
cs/src/model/DescribeClustersV1Result.cc
Normal file
137
cs/src/model/DescribeClustersV1Result.cc
Normal file
@@ -0,0 +1,137 @@
|
||||
/*
|
||||
* 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/cs/model/DescribeClustersV1Result.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CS;
|
||||
using namespace AlibabaCloud::CS::Model;
|
||||
|
||||
DescribeClustersV1Result::DescribeClustersV1Result() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeClustersV1Result::DescribeClustersV1Result(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeClustersV1Result::~DescribeClustersV1Result()
|
||||
{}
|
||||
|
||||
void DescribeClustersV1Result::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allclustersNode = value["clusters"]["clustersItem"];
|
||||
for (auto valueclustersclustersItem : allclustersNode)
|
||||
{
|
||||
ClustersItem clustersObject;
|
||||
if(!valueclustersclustersItem["resource_group_id"].isNull())
|
||||
clustersObject.resource_group_id = valueclustersclustersItem["resource_group_id"].asString();
|
||||
if(!valueclustersclustersItem["private_zone"].isNull())
|
||||
clustersObject.private_zone = valueclustersclustersItem["private_zone"].asString() == "true";
|
||||
if(!valueclustersclustersItem["vpc_id"].isNull())
|
||||
clustersObject.vpc_id = valueclustersclustersItem["vpc_id"].asString();
|
||||
if(!valueclustersclustersItem["network_mode"].isNull())
|
||||
clustersObject.network_mode = valueclustersclustersItem["network_mode"].asString();
|
||||
if(!valueclustersclustersItem["security_group_id"].isNull())
|
||||
clustersObject.security_group_id = valueclustersclustersItem["security_group_id"].asString();
|
||||
if(!valueclustersclustersItem["cluster_type"].isNull())
|
||||
clustersObject.cluster_type = valueclustersclustersItem["cluster_type"].asString();
|
||||
if(!valueclustersclustersItem["docker_version"].isNull())
|
||||
clustersObject.docker_version = valueclustersclustersItem["docker_version"].asString();
|
||||
if(!valueclustersclustersItem["data_disk_category"].isNull())
|
||||
clustersObject.data_disk_category = valueclustersclustersItem["data_disk_category"].asString();
|
||||
if(!valueclustersclustersItem["zone_id"].isNull())
|
||||
clustersObject.zone_id = valueclustersclustersItem["zone_id"].asString();
|
||||
if(!valueclustersclustersItem["cluster_id"].isNull())
|
||||
clustersObject.cluster_id = valueclustersclustersItem["cluster_id"].asString();
|
||||
if(!valueclustersclustersItem["external_loadbalancer_id"].isNull())
|
||||
clustersObject.external_loadbalancer_id = valueclustersclustersItem["external_loadbalancer_id"].asString();
|
||||
if(!valueclustersclustersItem["vswitch_id"].isNull())
|
||||
clustersObject.vswitch_id = valueclustersclustersItem["vswitch_id"].asString();
|
||||
if(!valueclustersclustersItem["meta_data"].isNull())
|
||||
clustersObject.meta_data = valueclustersclustersItem["meta_data"].asString();
|
||||
if(!valueclustersclustersItem["state"].isNull())
|
||||
clustersObject.state = valueclustersclustersItem["state"].asString();
|
||||
if(!valueclustersclustersItem["init_version"].isNull())
|
||||
clustersObject.init_version = valueclustersclustersItem["init_version"].asString();
|
||||
if(!valueclustersclustersItem["node_status"].isNull())
|
||||
clustersObject.node_status = valueclustersclustersItem["node_status"].asString();
|
||||
if(!valueclustersclustersItem["deletion_protection"].isNull())
|
||||
clustersObject.deletion_protection = valueclustersclustersItem["deletion_protection"].asString() == "true";
|
||||
if(!valueclustersclustersItem["created"].isNull())
|
||||
clustersObject.created = valueclustersclustersItem["created"].asString();
|
||||
if(!valueclustersclustersItem["subnet_cidr"].isNull())
|
||||
clustersObject.subnet_cidr = valueclustersclustersItem["subnet_cidr"].asString();
|
||||
if(!valueclustersclustersItem["profile"].isNull())
|
||||
clustersObject.profile = valueclustersclustersItem["profile"].asString();
|
||||
if(!valueclustersclustersItem["region_id"].isNull())
|
||||
clustersObject.region_id = valueclustersclustersItem["region_id"].asString();
|
||||
if(!valueclustersclustersItem["master_url"].isNull())
|
||||
clustersObject.master_url = valueclustersclustersItem["master_url"].asString();
|
||||
if(!valueclustersclustersItem["current_version"].isNull())
|
||||
clustersObject.current_version = valueclustersclustersItem["current_version"].asString();
|
||||
if(!valueclustersclustersItem["vswitch_cidr"].isNull())
|
||||
clustersObject.vswitch_cidr = valueclustersclustersItem["vswitch_cidr"].asString();
|
||||
if(!valueclustersclustersItem["cluster_healthy"].isNull())
|
||||
clustersObject.cluster_healthy = valueclustersclustersItem["cluster_healthy"].asString();
|
||||
if(!valueclustersclustersItem["size"].isNull())
|
||||
clustersObject.size = std::stol(valueclustersclustersItem["size"].asString());
|
||||
if(!valueclustersclustersItem["data_disk_size"].isNull())
|
||||
clustersObject.data_disk_size = std::stol(valueclustersclustersItem["data_disk_size"].asString());
|
||||
if(!valueclustersclustersItem["name"].isNull())
|
||||
clustersObject.name = valueclustersclustersItem["name"].asString();
|
||||
if(!valueclustersclustersItem["worker_ram_role_name"].isNull())
|
||||
clustersObject.worker_ram_role_name = valueclustersclustersItem["worker_ram_role_name"].asString();
|
||||
if(!valueclustersclustersItem["updated"].isNull())
|
||||
clustersObject.updated = valueclustersclustersItem["updated"].asString();
|
||||
auto alltagsNode = allclustersNode["tags"]["tagsItem"];
|
||||
for (auto allclustersNodetagstagsItem : alltagsNode)
|
||||
{
|
||||
ClustersItem::TagsItem tagsObject;
|
||||
if(!allclustersNodetagstagsItem["value"].isNull())
|
||||
tagsObject.value = allclustersNodetagstagsItem["value"].asString();
|
||||
if(!allclustersNodetagstagsItem["key"].isNull())
|
||||
tagsObject.key = allclustersNodetagstagsItem["key"].asString();
|
||||
clustersObject.tags.push_back(tagsObject);
|
||||
}
|
||||
clusters_.push_back(clustersObject);
|
||||
}
|
||||
auto page_infoNode = value["page_info"];
|
||||
if(!page_infoNode["page_number"].isNull())
|
||||
page_info_.page_number = std::stoi(page_infoNode["page_number"].asString());
|
||||
if(!page_infoNode["total_count"].isNull())
|
||||
page_info_.total_count = std::stoi(page_infoNode["total_count"].asString());
|
||||
if(!page_infoNode["page_size"].isNull())
|
||||
page_info_.page_size = std::stoi(page_infoNode["page_size"].asString());
|
||||
|
||||
}
|
||||
|
||||
DescribeClustersV1Result::Page_info DescribeClustersV1Result::getPage_info()const
|
||||
{
|
||||
return page_info_;
|
||||
}
|
||||
|
||||
std::vector<DescribeClustersV1Result::ClustersItem> DescribeClustersV1Result::getclusters()const
|
||||
{
|
||||
return clusters_;
|
||||
}
|
||||
|
||||
@@ -39,48 +39,47 @@ void DescribeTemplatesResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["template"].isNull())
|
||||
_template_ = value["template"].asString();
|
||||
if(!value["acl"].isNull())
|
||||
acl_ = value["acl"].asString();
|
||||
if(!value["name"].isNull())
|
||||
name_ = value["name"].asString();
|
||||
if(!value["tags"].isNull())
|
||||
tags_ = value["tags"].asString();
|
||||
if(!value["template_type"].isNull())
|
||||
template_type_ = value["template_type"].asString();
|
||||
if(!value["description"].isNull())
|
||||
description_ = value["description"].asString();
|
||||
auto alltemplatesNode = value["templates"]["templatesItem"];
|
||||
for (auto valuetemplatestemplatesItem : alltemplatesNode)
|
||||
{
|
||||
TemplatesItem templatesObject;
|
||||
if(!valuetemplatestemplatesItem["template"].isNull())
|
||||
templatesObject._template = valuetemplatestemplatesItem["template"].asString();
|
||||
if(!valuetemplatestemplatesItem["created"].isNull())
|
||||
templatesObject.created = valuetemplatestemplatesItem["created"].asString();
|
||||
if(!valuetemplatestemplatesItem["name"].isNull())
|
||||
templatesObject.name = valuetemplatestemplatesItem["name"].asString();
|
||||
if(!valuetemplatestemplatesItem["description"].isNull())
|
||||
templatesObject.description = valuetemplatestemplatesItem["description"].asString();
|
||||
if(!valuetemplatestemplatesItem["template_type"].isNull())
|
||||
templatesObject.template_type = valuetemplatestemplatesItem["template_type"].asString();
|
||||
if(!valuetemplatestemplatesItem["id"].isNull())
|
||||
templatesObject.id = valuetemplatestemplatesItem["id"].asString();
|
||||
if(!valuetemplatestemplatesItem["acl"].isNull())
|
||||
templatesObject.acl = valuetemplatestemplatesItem["acl"].asString();
|
||||
if(!valuetemplatestemplatesItem["updated"].isNull())
|
||||
templatesObject.updated = valuetemplatestemplatesItem["updated"].asString();
|
||||
if(!valuetemplatestemplatesItem["tags"].isNull())
|
||||
templatesObject.tags = valuetemplatestemplatesItem["tags"].asString();
|
||||
templates_.push_back(templatesObject);
|
||||
}
|
||||
auto page_infoNode = value["page_info"];
|
||||
if(!page_infoNode["page_number"].isNull())
|
||||
page_info_.page_number = std::stol(page_infoNode["page_number"].asString());
|
||||
if(!page_infoNode["total_count"].isNull())
|
||||
page_info_.total_count = std::stol(page_infoNode["total_count"].asString());
|
||||
if(!page_infoNode["page_size"].isNull())
|
||||
page_info_.page_size = std::stol(page_infoNode["page_size"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeTemplatesResult::get_Template()const
|
||||
DescribeTemplatesResult::Page_info DescribeTemplatesResult::getPage_info()const
|
||||
{
|
||||
return _template_;
|
||||
return page_info_;
|
||||
}
|
||||
|
||||
std::string DescribeTemplatesResult::getDescription()const
|
||||
std::vector<DescribeTemplatesResult::TemplatesItem> DescribeTemplatesResult::gettemplates()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string DescribeTemplatesResult::getAcl()const
|
||||
{
|
||||
return acl_;
|
||||
}
|
||||
|
||||
std::string DescribeTemplatesResult::getTemplate_type()const
|
||||
{
|
||||
return template_type_;
|
||||
}
|
||||
|
||||
std::string DescribeTemplatesResult::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
std::string DescribeTemplatesResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
return templates_;
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user