Generated 2021-06-01 for ComputeNest.
This commit is contained in:
@@ -51,6 +51,42 @@ ComputeNestClient::ComputeNestClient(const std::string & accessKeyId, const std:
|
||||
ComputeNestClient::~ComputeNestClient()
|
||||
{}
|
||||
|
||||
ComputeNestClient::ChangeResourceGroupOutcome ComputeNestClient::changeResourceGroup(const ChangeResourceGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ChangeResourceGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ChangeResourceGroupOutcome(ChangeResourceGroupResult(outcome.result()));
|
||||
else
|
||||
return ChangeResourceGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ComputeNestClient::changeResourceGroupAsync(const ChangeResourceGroupRequest& request, const ChangeResourceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, changeResourceGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ComputeNestClient::ChangeResourceGroupOutcomeCallable ComputeNestClient::changeResourceGroupCallable(const ChangeResourceGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ChangeResourceGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->changeResourceGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ComputeNestClient::ContinueDeployServiceInstanceOutcome ComputeNestClient::continueDeployServiceInstance(const ContinueDeployServiceInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -195,6 +231,42 @@ ComputeNestClient::GetServiceInstanceOutcomeCallable ComputeNestClient::getServi
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ComputeNestClient::GetServiceTemplateParameterConstraintsOutcome ComputeNestClient::getServiceTemplateParameterConstraints(const GetServiceTemplateParameterConstraintsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetServiceTemplateParameterConstraintsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetServiceTemplateParameterConstraintsOutcome(GetServiceTemplateParameterConstraintsResult(outcome.result()));
|
||||
else
|
||||
return GetServiceTemplateParameterConstraintsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ComputeNestClient::getServiceTemplateParameterConstraintsAsync(const GetServiceTemplateParameterConstraintsRequest& request, const GetServiceTemplateParameterConstraintsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getServiceTemplateParameterConstraints(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ComputeNestClient::GetServiceTemplateParameterConstraintsOutcomeCallable ComputeNestClient::getServiceTemplateParameterConstraintsCallable(const GetServiceTemplateParameterConstraintsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetServiceTemplateParameterConstraintsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getServiceTemplateParameterConstraints(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ComputeNestClient::ListServiceInstanceLogsOutcome ComputeNestClient::listServiceInstanceLogs(const ListServiceInstanceLogsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
63
computenest/src/model/ChangeResourceGroupRequest.cc
Normal file
63
computenest/src/model/ChangeResourceGroupRequest.cc
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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/computenest/model/ChangeResourceGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::ComputeNest::Model::ChangeResourceGroupRequest;
|
||||
|
||||
ChangeResourceGroupRequest::ChangeResourceGroupRequest()
|
||||
: RpcServiceRequest("computenest", "2021-06-01", "ChangeResourceGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ChangeResourceGroupRequest::~ChangeResourceGroupRequest() {}
|
||||
|
||||
std::string ChangeResourceGroupRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ChangeResourceGroupRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ChangeResourceGroupRequest::getResourceId() const {
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void ChangeResourceGroupRequest::setResourceId(const std::string &resourceId) {
|
||||
resourceId_ = resourceId;
|
||||
setParameter(std::string("ResourceId"), resourceId);
|
||||
}
|
||||
|
||||
std::string ChangeResourceGroupRequest::getResourceType() const {
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void ChangeResourceGroupRequest::setResourceType(const std::string &resourceType) {
|
||||
resourceType_ = resourceType;
|
||||
setParameter(std::string("ResourceType"), resourceType);
|
||||
}
|
||||
|
||||
std::string ChangeResourceGroupRequest::getNewResourceGroupId() const {
|
||||
return newResourceGroupId_;
|
||||
}
|
||||
|
||||
void ChangeResourceGroupRequest::setNewResourceGroupId(const std::string &newResourceGroupId) {
|
||||
newResourceGroupId_ = newResourceGroupId;
|
||||
setParameter(std::string("NewResourceGroupId"), newResourceGroupId);
|
||||
}
|
||||
|
||||
44
computenest/src/model/ChangeResourceGroupResult.cc
Normal file
44
computenest/src/model/ChangeResourceGroupResult.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/computenest/model/ChangeResourceGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ComputeNest;
|
||||
using namespace AlibabaCloud::ComputeNest::Model;
|
||||
|
||||
ChangeResourceGroupResult::ChangeResourceGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ChangeResourceGroupResult::ChangeResourceGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ChangeResourceGroupResult::~ChangeResourceGroupResult()
|
||||
{}
|
||||
|
||||
void ChangeResourceGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -32,6 +32,8 @@ CreateServiceInstanceRequest::Commodity CreateServiceInstanceRequest::getCommodi
|
||||
void CreateServiceInstanceRequest::setCommodity(const CreateServiceInstanceRequest::Commodity &commodity) {
|
||||
commodity_ = commodity;
|
||||
setParameter(std::string("Commodity") + ".PayPeriod", std::to_string(commodity.payPeriod));
|
||||
setParameter(std::string("Commodity") + ".AutoPay", commodity.autoPay ? "true" : "false");
|
||||
setParameter(std::string("Commodity") + ".AutoRenew", commodity.autoRenew ? "true" : "false");
|
||||
setParameter(std::string("Commodity") + ".PayPeriodUnit", commodity.payPeriodUnit);
|
||||
}
|
||||
|
||||
@@ -184,15 +186,6 @@ void CreateServiceInstanceRequest::setParameters(const std::string ¶meters)
|
||||
setParameter(std::string("Parameters"), parameters);
|
||||
}
|
||||
|
||||
long CreateServiceInstanceRequest::getPayType() const {
|
||||
return payType_;
|
||||
}
|
||||
|
||||
void CreateServiceInstanceRequest::setPayType(long payType) {
|
||||
payType_ = payType;
|
||||
setParameter(std::string("PayType"), std::to_string(payType));
|
||||
}
|
||||
|
||||
CreateServiceInstanceRequest::OperationMetadata CreateServiceInstanceRequest::getOperationMetadata() const {
|
||||
return operationMetadata_;
|
||||
}
|
||||
|
||||
@@ -45,6 +45,8 @@ void CreateServiceInstanceResult::parse(const std::string &payload)
|
||||
serviceInstanceId_ = value["ServiceInstanceId"].asString();
|
||||
if(!value["MarketInstanceId"].isNull())
|
||||
marketInstanceId_ = value["MarketInstanceId"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -63,3 +65,8 @@ std::string CreateServiceInstanceResult::getMarketInstanceId()const
|
||||
return marketInstanceId_;
|
||||
}
|
||||
|
||||
std::string CreateServiceInstanceResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -203,6 +203,10 @@ void GetServiceInstanceResult::parse(const std::string &payload)
|
||||
marketInstanceId_ = value["MarketInstanceId"].asString();
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
resourceGroupId_ = value["ResourceGroupId"].asString();
|
||||
if(!value["BizStatus"].isNull())
|
||||
bizStatus_ = value["BizStatus"].asString();
|
||||
if(!value["GrafanaDashBoardUrl"].isNull())
|
||||
grafanaDashBoardUrl_ = value["GrafanaDashBoardUrl"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -266,6 +270,11 @@ std::string GetServiceInstanceResult::getServiceType()const
|
||||
return serviceType_;
|
||||
}
|
||||
|
||||
std::string GetServiceInstanceResult::getGrafanaDashBoardUrl()const
|
||||
{
|
||||
return grafanaDashBoardUrl_;
|
||||
}
|
||||
|
||||
std::string GetServiceInstanceResult::getTemplateName()const
|
||||
{
|
||||
return templateName_;
|
||||
@@ -316,6 +325,11 @@ std::string GetServiceInstanceResult::getPayType()const
|
||||
return payType_;
|
||||
}
|
||||
|
||||
std::string GetServiceInstanceResult::getBizStatus()const
|
||||
{
|
||||
return bizStatus_;
|
||||
}
|
||||
|
||||
std::string GetServiceInstanceResult::getLicenseEndTime()const
|
||||
{
|
||||
return licenseEndTime_;
|
||||
|
||||
@@ -0,0 +1,131 @@
|
||||
/*
|
||||
* 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/computenest/model/GetServiceTemplateParameterConstraintsRequest.h>
|
||||
|
||||
using AlibabaCloud::ComputeNest::Model::GetServiceTemplateParameterConstraintsRequest;
|
||||
|
||||
GetServiceTemplateParameterConstraintsRequest::GetServiceTemplateParameterConstraintsRequest()
|
||||
: RpcServiceRequest("computenest", "2021-06-01", "GetServiceTemplateParameterConstraints") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetServiceTemplateParameterConstraintsRequest::~GetServiceTemplateParameterConstraintsRequest() {}
|
||||
|
||||
std::string GetServiceTemplateParameterConstraintsRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void GetServiceTemplateParameterConstraintsRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
bool GetServiceTemplateParameterConstraintsRequest::getEnablePrivateVpcConnection() const {
|
||||
return enablePrivateVpcConnection_;
|
||||
}
|
||||
|
||||
void GetServiceTemplateParameterConstraintsRequest::setEnablePrivateVpcConnection(bool enablePrivateVpcConnection) {
|
||||
enablePrivateVpcConnection_ = enablePrivateVpcConnection;
|
||||
setParameter(std::string("EnablePrivateVpcConnection"), enablePrivateVpcConnection ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetServiceTemplateParameterConstraintsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetServiceTemplateParameterConstraintsRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string GetServiceTemplateParameterConstraintsRequest::getTemplateName() const {
|
||||
return templateName_;
|
||||
}
|
||||
|
||||
void GetServiceTemplateParameterConstraintsRequest::setTemplateName(const std::string &templateName) {
|
||||
templateName_ = templateName;
|
||||
setParameter(std::string("TemplateName"), templateName);
|
||||
}
|
||||
|
||||
std::string GetServiceTemplateParameterConstraintsRequest::getServiceInstanceId() const {
|
||||
return serviceInstanceId_;
|
||||
}
|
||||
|
||||
void GetServiceTemplateParameterConstraintsRequest::setServiceInstanceId(const std::string &serviceInstanceId) {
|
||||
serviceInstanceId_ = serviceInstanceId;
|
||||
setParameter(std::string("ServiceInstanceId"), serviceInstanceId);
|
||||
}
|
||||
|
||||
std::string GetServiceTemplateParameterConstraintsRequest::getDeployRegionId() const {
|
||||
return deployRegionId_;
|
||||
}
|
||||
|
||||
void GetServiceTemplateParameterConstraintsRequest::setDeployRegionId(const std::string &deployRegionId) {
|
||||
deployRegionId_ = deployRegionId;
|
||||
setParameter(std::string("DeployRegionId"), deployRegionId);
|
||||
}
|
||||
|
||||
std::string GetServiceTemplateParameterConstraintsRequest::getSpecificationName() const {
|
||||
return specificationName_;
|
||||
}
|
||||
|
||||
void GetServiceTemplateParameterConstraintsRequest::setSpecificationName(const std::string &specificationName) {
|
||||
specificationName_ = specificationName;
|
||||
setParameter(std::string("SpecificationName"), specificationName);
|
||||
}
|
||||
|
||||
std::string GetServiceTemplateParameterConstraintsRequest::getTrialType() const {
|
||||
return trialType_;
|
||||
}
|
||||
|
||||
void GetServiceTemplateParameterConstraintsRequest::setTrialType(const std::string &trialType) {
|
||||
trialType_ = trialType;
|
||||
setParameter(std::string("TrialType"), trialType);
|
||||
}
|
||||
|
||||
std::string GetServiceTemplateParameterConstraintsRequest::getServiceVersion() const {
|
||||
return serviceVersion_;
|
||||
}
|
||||
|
||||
void GetServiceTemplateParameterConstraintsRequest::setServiceVersion(const std::string &serviceVersion) {
|
||||
serviceVersion_ = serviceVersion;
|
||||
setParameter(std::string("ServiceVersion"), serviceVersion);
|
||||
}
|
||||
|
||||
std::string GetServiceTemplateParameterConstraintsRequest::getServiceId() const {
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void GetServiceTemplateParameterConstraintsRequest::setServiceId(const std::string &serviceId) {
|
||||
serviceId_ = serviceId;
|
||||
setParameter(std::string("ServiceId"), serviceId);
|
||||
}
|
||||
|
||||
std::vector<GetServiceTemplateParameterConstraintsRequest::Parameters> GetServiceTemplateParameterConstraintsRequest::getParameters() const {
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void GetServiceTemplateParameterConstraintsRequest::setParameters(const std::vector<GetServiceTemplateParameterConstraintsRequest::Parameters> ¶meters) {
|
||||
parameters_ = parameters;
|
||||
for(int dep1 = 0; dep1 != parameters.size(); dep1++) {
|
||||
auto parametersObj = parameters.at(dep1);
|
||||
std::string parametersObjStr = std::string("Parameters") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(parametersObjStr + ".ParameterValue", parametersObj.parameterValue);
|
||||
setParameter(parametersObjStr + ".ParameterKey", parametersObj.parameterKey);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* 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/computenest/model/GetServiceTemplateParameterConstraintsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ComputeNest;
|
||||
using namespace AlibabaCloud::ComputeNest::Model;
|
||||
|
||||
GetServiceTemplateParameterConstraintsResult::GetServiceTemplateParameterConstraintsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetServiceTemplateParameterConstraintsResult::GetServiceTemplateParameterConstraintsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetServiceTemplateParameterConstraintsResult::~GetServiceTemplateParameterConstraintsResult()
|
||||
{}
|
||||
|
||||
void GetServiceTemplateParameterConstraintsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allParameterConstraintsNode = value["ParameterConstraints"]["ParameterConstraintsItem"];
|
||||
for (auto valueParameterConstraintsParameterConstraintsItem : allParameterConstraintsNode)
|
||||
{
|
||||
ParameterConstraintsItem parameterConstraintsObject;
|
||||
if(!valueParameterConstraintsParameterConstraintsItem["Type"].isNull())
|
||||
parameterConstraintsObject.type = valueParameterConstraintsParameterConstraintsItem["Type"].asString();
|
||||
if(!valueParameterConstraintsParameterConstraintsItem["ParameterKey"].isNull())
|
||||
parameterConstraintsObject.parameterKey = valueParameterConstraintsParameterConstraintsItem["ParameterKey"].asString();
|
||||
if(!valueParameterConstraintsParameterConstraintsItem["Behavior"].isNull())
|
||||
parameterConstraintsObject.behavior = valueParameterConstraintsParameterConstraintsItem["Behavior"].asString();
|
||||
if(!valueParameterConstraintsParameterConstraintsItem["BehaviorReason"].isNull())
|
||||
parameterConstraintsObject.behaviorReason = valueParameterConstraintsParameterConstraintsItem["BehaviorReason"].asString();
|
||||
auto allOriginalConstraintsNode = valueParameterConstraintsParameterConstraintsItem["OriginalConstraints"]["OriginalConstraintsItem"];
|
||||
for (auto valueParameterConstraintsParameterConstraintsItemOriginalConstraintsOriginalConstraintsItem : allOriginalConstraintsNode)
|
||||
{
|
||||
ParameterConstraintsItem::OriginalConstraintsItem originalConstraintsObject;
|
||||
if(!valueParameterConstraintsParameterConstraintsItemOriginalConstraintsOriginalConstraintsItem["PropertyName"].isNull())
|
||||
originalConstraintsObject.propertyName = valueParameterConstraintsParameterConstraintsItemOriginalConstraintsOriginalConstraintsItem["PropertyName"].asString();
|
||||
if(!valueParameterConstraintsParameterConstraintsItemOriginalConstraintsOriginalConstraintsItem["ResourceName"].isNull())
|
||||
originalConstraintsObject.resourceName = valueParameterConstraintsParameterConstraintsItemOriginalConstraintsOriginalConstraintsItem["ResourceName"].asString();
|
||||
if(!valueParameterConstraintsParameterConstraintsItemOriginalConstraintsOriginalConstraintsItem["ResourceType"].isNull())
|
||||
originalConstraintsObject.resourceType = valueParameterConstraintsParameterConstraintsItemOriginalConstraintsOriginalConstraintsItem["ResourceType"].asString();
|
||||
auto allAllowedValues1 = value["AllowedValues"]["AllowedValues"];
|
||||
for (auto value : allAllowedValues1)
|
||||
originalConstraintsObject.allowedValues1.push_back(value.asString());
|
||||
parameterConstraintsObject.originalConstraints.push_back(originalConstraintsObject);
|
||||
}
|
||||
auto allQueryErrorsNode = valueParameterConstraintsParameterConstraintsItem["QueryErrors"]["QueryErrorsItem"];
|
||||
for (auto valueParameterConstraintsParameterConstraintsItemQueryErrorsQueryErrorsItem : allQueryErrorsNode)
|
||||
{
|
||||
ParameterConstraintsItem::QueryErrorsItem queryErrorsObject;
|
||||
if(!valueParameterConstraintsParameterConstraintsItemQueryErrorsQueryErrorsItem["ErrorMessage"].isNull())
|
||||
queryErrorsObject.errorMessage = valueParameterConstraintsParameterConstraintsItemQueryErrorsQueryErrorsItem["ErrorMessage"].asString();
|
||||
if(!valueParameterConstraintsParameterConstraintsItemQueryErrorsQueryErrorsItem["ResourceName"].isNull())
|
||||
queryErrorsObject.resourceName = valueParameterConstraintsParameterConstraintsItemQueryErrorsQueryErrorsItem["ResourceName"].asString();
|
||||
if(!valueParameterConstraintsParameterConstraintsItemQueryErrorsQueryErrorsItem["ResourceType"].isNull())
|
||||
queryErrorsObject.resourceType = valueParameterConstraintsParameterConstraintsItemQueryErrorsQueryErrorsItem["ResourceType"].asString();
|
||||
parameterConstraintsObject.queryErrors.push_back(queryErrorsObject);
|
||||
}
|
||||
auto allAllowedValues = value["AllowedValues"]["AllowedValues"];
|
||||
for (auto value : allAllowedValues)
|
||||
parameterConstraintsObject.allowedValues.push_back(value.asString());
|
||||
auto allAssociationParameterNames = value["AssociationParameterNames"]["AssociationParameterNames"];
|
||||
for (auto value : allAssociationParameterNames)
|
||||
parameterConstraintsObject.associationParameterNames.push_back(value.asString());
|
||||
parameterConstraints_.push_back(parameterConstraintsObject);
|
||||
}
|
||||
auto allFamilyConstraints = value["FamilyConstraints"]["PamilyConstraints"];
|
||||
for (const auto &item : allFamilyConstraints)
|
||||
familyConstraints_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetServiceTemplateParameterConstraintsResult::ParameterConstraintsItem> GetServiceTemplateParameterConstraintsResult::getParameterConstraints()const
|
||||
{
|
||||
return parameterConstraints_;
|
||||
}
|
||||
|
||||
std::vector<std::string> GetServiceTemplateParameterConstraintsResult::getFamilyConstraints()const
|
||||
{
|
||||
return familyConstraints_;
|
||||
}
|
||||
|
||||
@@ -52,12 +52,30 @@ void ListServiceInstanceLogsRequest::setServiceInstanceId(const std::string &ser
|
||||
setParameter(std::string("ServiceInstanceId"), serviceInstanceId);
|
||||
}
|
||||
|
||||
std::string ListServiceInstanceLogsRequest::getMaxResults() const {
|
||||
std::string ListServiceInstanceLogsRequest::getLogSource() const {
|
||||
return logSource_;
|
||||
}
|
||||
|
||||
void ListServiceInstanceLogsRequest::setLogSource(const std::string &logSource) {
|
||||
logSource_ = logSource;
|
||||
setParameter(std::string("LogSource"), logSource);
|
||||
}
|
||||
|
||||
int ListServiceInstanceLogsRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListServiceInstanceLogsRequest::setMaxResults(const std::string &maxResults) {
|
||||
void ListServiceInstanceLogsRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), maxResults);
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string ListServiceInstanceLogsRequest::getLogstore() const {
|
||||
return logstore_;
|
||||
}
|
||||
|
||||
void ListServiceInstanceLogsRequest::setLogstore(const std::string &logstore) {
|
||||
logstore_ = logstore;
|
||||
setParameter(std::string("Logstore"), logstore);
|
||||
}
|
||||
|
||||
|
||||
@@ -45,8 +45,6 @@ void ListServiceInstanceLogsResult::parse(const std::string &payload)
|
||||
ServiceInstanceLogs serviceInstancesLogsObject;
|
||||
if(!valueServiceInstancesLogsServiceInstanceLogs["Timestamp"].isNull())
|
||||
serviceInstancesLogsObject.timestamp = valueServiceInstancesLogsServiceInstanceLogs["Timestamp"].asString();
|
||||
if(!valueServiceInstancesLogsServiceInstanceLogs["ServiceInstanceId"].isNull())
|
||||
serviceInstancesLogsObject.serviceInstanceId = valueServiceInstancesLogsServiceInstanceLogs["ServiceInstanceId"].asString();
|
||||
if(!valueServiceInstancesLogsServiceInstanceLogs["Source"].isNull())
|
||||
serviceInstancesLogsObject.source = valueServiceInstancesLogsServiceInstanceLogs["Source"].asString();
|
||||
if(!valueServiceInstancesLogsServiceInstanceLogs["Content"].isNull())
|
||||
@@ -64,7 +62,7 @@ void ListServiceInstanceLogsResult::parse(const std::string &payload)
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = value["MaxResults"].asString();
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -73,7 +71,7 @@ std::string ListServiceInstanceLogsResult::getNextToken()const
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string ListServiceInstanceLogsResult::getMaxResults()const
|
||||
int ListServiceInstanceLogsResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
@@ -52,6 +52,15 @@ void ListServiceInstanceResourcesRequest::setRegionId(const std::string ®ionI
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ListServiceInstanceResourcesRequest::getServiceInstanceResourceType() const {
|
||||
return serviceInstanceResourceType_;
|
||||
}
|
||||
|
||||
void ListServiceInstanceResourcesRequest::setServiceInstanceResourceType(const std::string &serviceInstanceResourceType) {
|
||||
serviceInstanceResourceType_ = serviceInstanceResourceType;
|
||||
setParameter(std::string("ServiceInstanceResourceType"), serviceInstanceResourceType);
|
||||
}
|
||||
|
||||
std::vector<std::string> ListServiceInstanceResourcesRequest::getResourceARN() const {
|
||||
return resourceARN_;
|
||||
}
|
||||
@@ -92,13 +101,13 @@ void ListServiceInstanceResourcesRequest::setExpireTimeStart(const std::string &
|
||||
setParameter(std::string("ExpireTimeStart"), expireTimeStart);
|
||||
}
|
||||
|
||||
std::string ListServiceInstanceResourcesRequest::getMaxResults() const {
|
||||
int ListServiceInstanceResourcesRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListServiceInstanceResourcesRequest::setMaxResults(const std::string &maxResults) {
|
||||
void ListServiceInstanceResourcesRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), maxResults);
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string ListServiceInstanceResourcesRequest::getPayType() const {
|
||||
|
||||
@@ -61,12 +61,14 @@ void ListServiceInstanceResourcesResult::parse(const std::string &payload)
|
||||
resourcesObject.productType = valueResourcesResourcesItem["ProductType"].asString();
|
||||
if(!valueResourcesResourcesItem["ProductCode"].isNull())
|
||||
resourcesObject.productCode = valueResourcesResourcesItem["ProductCode"].asString();
|
||||
if(!valueResourcesResourcesItem["Status"].isNull())
|
||||
resourcesObject.status = valueResourcesResourcesItem["Status"].asString();
|
||||
resources_.push_back(resourcesObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = value["MaxResults"].asString();
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -75,7 +77,7 @@ std::string ListServiceInstanceResourcesResult::getNextToken()const
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string ListServiceInstanceResourcesResult::getMaxResults()const
|
||||
int ListServiceInstanceResourcesResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
@@ -79,12 +79,12 @@ void ListServiceInstancesRequest::setFilter(const std::vector<ListServiceInstanc
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListServiceInstancesRequest::getMaxResults() const {
|
||||
int ListServiceInstancesRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListServiceInstancesRequest::setMaxResults(const std::string &maxResults) {
|
||||
void ListServiceInstancesRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), maxResults);
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
|
||||
@@ -85,6 +85,8 @@ void ListServiceInstancesResult::parse(const std::string &payload)
|
||||
serviceInstancesObject.marketInstanceId = valueServiceInstancesServiceInstance["MarketInstanceId"].asString();
|
||||
if(!valueServiceInstancesServiceInstance["ResourceGroupId"].isNull())
|
||||
serviceInstancesObject.resourceGroupId = valueServiceInstancesServiceInstance["ResourceGroupId"].asString();
|
||||
if(!valueServiceInstancesServiceInstance["BizStatus"].isNull())
|
||||
serviceInstancesObject.bizStatus = valueServiceInstancesServiceInstance["BizStatus"].asString();
|
||||
auto allTagsNode = valueServiceInstancesServiceInstance["Tags"]["Tag"];
|
||||
for (auto valueServiceInstancesServiceInstanceTagsTag : allTagsNode)
|
||||
{
|
||||
@@ -135,7 +137,7 @@ void ListServiceInstancesResult::parse(const std::string &payload)
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = value["MaxResults"].asString();
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -154,7 +156,7 @@ std::string ListServiceInstancesResult::getNextToken()const
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string ListServiceInstancesResult::getMaxResults()const
|
||||
int ListServiceInstancesResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user