regenerate code
This commit is contained in:
@@ -87,6 +87,42 @@ CSClient::AttachInstancesOutcomeCallable CSClient::attachInstancesCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::CancelWorkflowOutcome CSClient::cancelWorkflow(const CancelWorkflowRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CancelWorkflowOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CancelWorkflowOutcome(CancelWorkflowResult(outcome.result()));
|
||||
else
|
||||
return CancelWorkflowOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::cancelWorkflowAsync(const CancelWorkflowRequest& request, const CancelWorkflowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, cancelWorkflow(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::CancelWorkflowOutcomeCallable CSClient::cancelWorkflowCallable(const CancelWorkflowRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CancelWorkflowOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->cancelWorkflow(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::CheckAliyunCSServiceRoleOutcome CSClient::checkAliyunCSServiceRole(const CheckAliyunCSServiceRoleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -195,6 +231,42 @@ CSClient::CreateClusterByResourcesGroupOutcomeCallable CSClient::createClusterBy
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::CreateServiceMeshOutcome CSClient::createServiceMesh(const CreateServiceMeshRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateServiceMeshOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateServiceMeshOutcome(CreateServiceMeshResult(outcome.result()));
|
||||
else
|
||||
return CreateServiceMeshOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::createServiceMeshAsync(const CreateServiceMeshRequest& request, const CreateServiceMeshAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createServiceMesh(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::CreateServiceMeshOutcomeCallable CSClient::createServiceMeshCallable(const CreateServiceMeshRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateServiceMeshOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createServiceMesh(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::DeleteClusterOutcome CSClient::deleteCluster(const DeleteClusterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -303,6 +375,78 @@ CSClient::DeleteClusterNodesOutcomeCallable CSClient::deleteClusterNodesCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::DescirbeWorkflowOutcome CSClient::descirbeWorkflow(const DescirbeWorkflowRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescirbeWorkflowOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescirbeWorkflowOutcome(DescirbeWorkflowResult(outcome.result()));
|
||||
else
|
||||
return DescirbeWorkflowOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::descirbeWorkflowAsync(const DescirbeWorkflowRequest& request, const DescirbeWorkflowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, descirbeWorkflow(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::DescirbeWorkflowOutcomeCallable CSClient::descirbeWorkflowCallable(const DescirbeWorkflowRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescirbeWorkflowOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->descirbeWorkflow(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::DescribeAddonsOutcome CSClient::describeAddons(const DescribeAddonsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeAddonsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeAddonsOutcome(DescribeAddonsResult(outcome.result()));
|
||||
else
|
||||
return DescribeAddonsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::describeAddonsAsync(const DescribeAddonsRequest& request, const DescribeAddonsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeAddons(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::DescribeAddonsOutcomeCallable CSClient::describeAddonsCallable(const DescribeAddonsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeAddonsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeAddons(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::DescribeApiVersionOutcome CSClient::describeApiVersion(const DescribeApiVersionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -339,6 +483,78 @@ CSClient::DescribeApiVersionOutcomeCallable CSClient::describeApiVersionCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::DescribeClusterAddonUpgradeStatusOutcome CSClient::describeClusterAddonUpgradeStatus(const DescribeClusterAddonUpgradeStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeClusterAddonUpgradeStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeClusterAddonUpgradeStatusOutcome(DescribeClusterAddonUpgradeStatusResult(outcome.result()));
|
||||
else
|
||||
return DescribeClusterAddonUpgradeStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::describeClusterAddonUpgradeStatusAsync(const DescribeClusterAddonUpgradeStatusRequest& request, const DescribeClusterAddonUpgradeStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeClusterAddonUpgradeStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::DescribeClusterAddonUpgradeStatusOutcomeCallable CSClient::describeClusterAddonUpgradeStatusCallable(const DescribeClusterAddonUpgradeStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeClusterAddonUpgradeStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeClusterAddonUpgradeStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::DescribeClusterAddonsVersionOutcome CSClient::describeClusterAddonsVersion(const DescribeClusterAddonsVersionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeClusterAddonsVersionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeClusterAddonsVersionOutcome(DescribeClusterAddonsVersionResult(outcome.result()));
|
||||
else
|
||||
return DescribeClusterAddonsVersionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::describeClusterAddonsVersionAsync(const DescribeClusterAddonsVersionRequest& request, const DescribeClusterAddonsVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeClusterAddonsVersion(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::DescribeClusterAddonsVersionOutcomeCallable CSClient::describeClusterAddonsVersionCallable(const DescribeClusterAddonsVersionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeClusterAddonsVersionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeClusterAddonsVersion(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::DescribeClusterAttachScriptsOutcome CSClient::describeClusterAttachScripts(const DescribeClusterAttachScriptsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -663,6 +879,78 @@ CSClient::DescribeClustersOutcomeCallable CSClient::describeClustersCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::DescribeEdgeClusterAttachScriptsOutcome CSClient::describeEdgeClusterAttachScripts(const DescribeEdgeClusterAttachScriptsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeEdgeClusterAttachScriptsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeEdgeClusterAttachScriptsOutcome(DescribeEdgeClusterAttachScriptsResult(outcome.result()));
|
||||
else
|
||||
return DescribeEdgeClusterAttachScriptsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::describeEdgeClusterAttachScriptsAsync(const DescribeEdgeClusterAttachScriptsRequest& request, const DescribeEdgeClusterAttachScriptsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeEdgeClusterAttachScripts(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::DescribeEdgeClusterAttachScriptsOutcomeCallable CSClient::describeEdgeClusterAttachScriptsCallable(const DescribeEdgeClusterAttachScriptsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeEdgeClusterAttachScriptsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeEdgeClusterAttachScripts(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::DescribeWorkflowsOutcome CSClient::describeWorkflows(const DescribeWorkflowsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeWorkflowsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeWorkflowsOutcome(DescribeWorkflowsResult(outcome.result()));
|
||||
else
|
||||
return DescribeWorkflowsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::describeWorkflowsAsync(const DescribeWorkflowsRequest& request, const DescribeWorkflowsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeWorkflows(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::DescribeWorkflowsOutcomeCallable CSClient::describeWorkflowsCallable(const DescribeWorkflowsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeWorkflowsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeWorkflows(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::DownloadClusterNodeCertsOutcome CSClient::downloadClusterNodeCerts(const DownloadClusterNodeCertsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -735,6 +1023,78 @@ CSClient::ModifyClusterOutcomeCallable CSClient::modifyClusterCallable(const Mod
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::ModifyClusterTagsOutcome CSClient::modifyClusterTags(const ModifyClusterTagsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyClusterTagsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyClusterTagsOutcome(ModifyClusterTagsResult(outcome.result()));
|
||||
else
|
||||
return ModifyClusterTagsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::modifyClusterTagsAsync(const ModifyClusterTagsRequest& request, const ModifyClusterTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyClusterTags(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::ModifyClusterTagsOutcomeCallable CSClient::modifyClusterTagsCallable(const ModifyClusterTagsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyClusterTagsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyClusterTags(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::RemoveWorkflowOutcome CSClient::removeWorkflow(const RemoveWorkflowRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RemoveWorkflowOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RemoveWorkflowOutcome(RemoveWorkflowResult(outcome.result()));
|
||||
else
|
||||
return RemoveWorkflowOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::removeWorkflowAsync(const RemoveWorkflowRequest& request, const RemoveWorkflowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, removeWorkflow(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::RemoveWorkflowOutcomeCallable CSClient::removeWorkflowCallable(const RemoveWorkflowRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RemoveWorkflowOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->removeWorkflow(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::ResetClusterNodeOutcome CSClient::resetClusterNode(const ResetClusterNodeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -879,3 +1239,255 @@ CSClient::ScaleOutClusterOutcomeCallable CSClient::scaleOutClusterCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::ServiceMeshAddClusterOutcome CSClient::serviceMeshAddCluster(const ServiceMeshAddClusterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ServiceMeshAddClusterOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ServiceMeshAddClusterOutcome(ServiceMeshAddClusterResult(outcome.result()));
|
||||
else
|
||||
return ServiceMeshAddClusterOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::serviceMeshAddClusterAsync(const ServiceMeshAddClusterRequest& request, const ServiceMeshAddClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, serviceMeshAddCluster(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::ServiceMeshAddClusterOutcomeCallable CSClient::serviceMeshAddClusterCallable(const ServiceMeshAddClusterRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ServiceMeshAddClusterOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->serviceMeshAddCluster(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::ServiceMeshApiServerOutcome CSClient::serviceMeshApiServer(const ServiceMeshApiServerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ServiceMeshApiServerOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ServiceMeshApiServerOutcome(ServiceMeshApiServerResult(outcome.result()));
|
||||
else
|
||||
return ServiceMeshApiServerOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::serviceMeshApiServerAsync(const ServiceMeshApiServerRequest& request, const ServiceMeshApiServerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, serviceMeshApiServer(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::ServiceMeshApiServerOutcomeCallable CSClient::serviceMeshApiServerCallable(const ServiceMeshApiServerRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ServiceMeshApiServerOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->serviceMeshApiServer(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::ServiceMeshRemoveClusterOutcome CSClient::serviceMeshRemoveCluster(const ServiceMeshRemoveClusterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ServiceMeshRemoveClusterOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ServiceMeshRemoveClusterOutcome(ServiceMeshRemoveClusterResult(outcome.result()));
|
||||
else
|
||||
return ServiceMeshRemoveClusterOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::serviceMeshRemoveClusterAsync(const ServiceMeshRemoveClusterRequest& request, const ServiceMeshRemoveClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, serviceMeshRemoveCluster(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::ServiceMeshRemoveClusterOutcomeCallable CSClient::serviceMeshRemoveClusterCallable(const ServiceMeshRemoveClusterRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ServiceMeshRemoveClusterOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->serviceMeshRemoveCluster(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::StartWorkflowOutcome CSClient::startWorkflow(const StartWorkflowRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StartWorkflowOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StartWorkflowOutcome(StartWorkflowResult(outcome.result()));
|
||||
else
|
||||
return StartWorkflowOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::startWorkflowAsync(const StartWorkflowRequest& request, const StartWorkflowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, startWorkflow(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::StartWorkflowOutcomeCallable CSClient::startWorkflowCallable(const StartWorkflowRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StartWorkflowOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->startWorkflow(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::UnInstallClusterAddonsOutcome CSClient::unInstallClusterAddons(const UnInstallClusterAddonsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UnInstallClusterAddonsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UnInstallClusterAddonsOutcome(UnInstallClusterAddonsResult(outcome.result()));
|
||||
else
|
||||
return UnInstallClusterAddonsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::unInstallClusterAddonsAsync(const UnInstallClusterAddonsRequest& request, const UnInstallClusterAddonsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, unInstallClusterAddons(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::UnInstallClusterAddonsOutcomeCallable CSClient::unInstallClusterAddonsCallable(const UnInstallClusterAddonsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UnInstallClusterAddonsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->unInstallClusterAddons(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::UpdateK8sClusterUserConfigExpireOutcome CSClient::updateK8sClusterUserConfigExpire(const UpdateK8sClusterUserConfigExpireRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateK8sClusterUserConfigExpireOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateK8sClusterUserConfigExpireOutcome(UpdateK8sClusterUserConfigExpireResult(outcome.result()));
|
||||
else
|
||||
return UpdateK8sClusterUserConfigExpireOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::updateK8sClusterUserConfigExpireAsync(const UpdateK8sClusterUserConfigExpireRequest& request, const UpdateK8sClusterUserConfigExpireAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateK8sClusterUserConfigExpire(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::UpdateK8sClusterUserConfigExpireOutcomeCallable CSClient::updateK8sClusterUserConfigExpireCallable(const UpdateK8sClusterUserConfigExpireRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateK8sClusterUserConfigExpireOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateK8sClusterUserConfigExpire(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::UpdateServiceMeshOutcome CSClient::updateServiceMesh(const UpdateServiceMeshRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateServiceMeshOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateServiceMeshOutcome(UpdateServiceMeshResult(outcome.result()));
|
||||
else
|
||||
return UpdateServiceMeshOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::updateServiceMeshAsync(const UpdateServiceMeshRequest& request, const UpdateServiceMeshAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateServiceMesh(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::UpdateServiceMeshOutcomeCallable CSClient::updateServiceMeshCallable(const UpdateServiceMeshRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateServiceMeshOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateServiceMesh(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
@@ -20,11 +20,58 @@ using AlibabaCloud::CS::Model::AttachInstancesRequest;
|
||||
|
||||
AttachInstancesRequest::AttachInstancesRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{}
|
||||
{
|
||||
setResourcePath("/clusters/[ClusterId]/attach");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AttachInstancesRequest::~AttachInstancesRequest()
|
||||
{}
|
||||
|
||||
std::string AttachInstancesRequest::getPassword()const
|
||||
{
|
||||
return password_;
|
||||
}
|
||||
|
||||
void AttachInstancesRequest::setPassword(const std::string& password)
|
||||
{
|
||||
password_ = password;
|
||||
setBodyParameter("Password", password);
|
||||
}
|
||||
|
||||
bool AttachInstancesRequest::getKeep_instance_name()const
|
||||
{
|
||||
return keep_instance_name_;
|
||||
}
|
||||
|
||||
void AttachInstancesRequest::setKeep_instance_name(bool keep_instance_name)
|
||||
{
|
||||
keep_instance_name_ = keep_instance_name;
|
||||
setBodyParameter("Keep_instance_name", keep_instance_name ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AttachInstancesRequest::getKey_pair()const
|
||||
{
|
||||
return key_pair_;
|
||||
}
|
||||
|
||||
void AttachInstancesRequest::setKey_pair(const std::string& key_pair)
|
||||
{
|
||||
key_pair_ = key_pair;
|
||||
setBodyParameter("Key_pair", key_pair);
|
||||
}
|
||||
|
||||
std::string AttachInstancesRequest::getCpu_policy()const
|
||||
{
|
||||
return cpu_policy_;
|
||||
}
|
||||
|
||||
void AttachInstancesRequest::setCpu_policy(const std::string& cpu_policy)
|
||||
{
|
||||
cpu_policy_ = cpu_policy;
|
||||
setBodyParameter("Cpu_policy", cpu_policy);
|
||||
}
|
||||
|
||||
std::string AttachInstancesRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
@@ -33,6 +80,17 @@ std::string AttachInstancesRequest::getClusterId()const
|
||||
void AttachInstancesRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
bool AttachInstancesRequest::getFormat_disk()const
|
||||
{
|
||||
return format_disk_;
|
||||
}
|
||||
|
||||
void AttachInstancesRequest::setFormat_disk(bool format_disk)
|
||||
{
|
||||
format_disk_ = format_disk;
|
||||
setBodyParameter("Format_disk", format_disk ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,30 @@ void AttachInstancesResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto alllistNode = value["list"]["listItem"];
|
||||
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["message"].isNull())
|
||||
listObject.message = valuelistlistItem["message"].asString();
|
||||
list_.push_back(listObject);
|
||||
}
|
||||
if(!value["task_id"].isNull())
|
||||
task_id_ = value["task_id"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<AttachInstancesResult::ListItem> AttachInstancesResult::getlist()const
|
||||
{
|
||||
return list_;
|
||||
}
|
||||
|
||||
std::string AttachInstancesResult::getTask_id()const
|
||||
{
|
||||
return task_id_;
|
||||
}
|
||||
|
||||
|
||||
41
cs/src/model/CancelWorkflowRequest.cc
Normal file
41
cs/src/model/CancelWorkflowRequest.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/CancelWorkflowRequest.h>
|
||||
|
||||
using AlibabaCloud::CS::Model::CancelWorkflowRequest;
|
||||
|
||||
CancelWorkflowRequest::CancelWorkflowRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{
|
||||
setResourcePath("/gs/workflow/[workflowName]");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
CancelWorkflowRequest::~CancelWorkflowRequest()
|
||||
{}
|
||||
|
||||
std::string CancelWorkflowRequest::getWorkflowName()const
|
||||
{
|
||||
return workflowName_;
|
||||
}
|
||||
|
||||
void CancelWorkflowRequest::setWorkflowName(const std::string& workflowName)
|
||||
{
|
||||
workflowName_ = workflowName;
|
||||
setParameter("WorkflowName", workflowName);
|
||||
}
|
||||
|
||||
44
cs/src/model/CancelWorkflowResult.cc
Normal file
44
cs/src/model/CancelWorkflowResult.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/CancelWorkflowResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CS;
|
||||
using namespace AlibabaCloud::CS::Model;
|
||||
|
||||
CancelWorkflowResult::CancelWorkflowResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CancelWorkflowResult::CancelWorkflowResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CancelWorkflowResult::~CancelWorkflowResult()
|
||||
{}
|
||||
|
||||
void CancelWorkflowResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -20,8 +20,462 @@ using AlibabaCloud::CS::Model::CreateClusterRequest;
|
||||
|
||||
CreateClusterRequest::CreateClusterRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{}
|
||||
{
|
||||
setResourcePath("/clusters");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateClusterRequest::~CreateClusterRequest()
|
||||
{}
|
||||
|
||||
std::string CreateClusterRequest::getProxy_mode()const
|
||||
{
|
||||
return proxy_mode_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setProxy_mode(const std::string& proxy_mode)
|
||||
{
|
||||
proxy_mode_ = proxy_mode;
|
||||
setBodyParameter("Proxy_mode", proxy_mode);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getMaster_system_disk_category()const
|
||||
{
|
||||
return master_system_disk_category_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setMaster_system_disk_category(const std::string& master_system_disk_category)
|
||||
{
|
||||
master_system_disk_category_ = master_system_disk_category;
|
||||
setBodyParameter("Master_system_disk_category", master_system_disk_category);
|
||||
}
|
||||
|
||||
bool CreateClusterRequest::getCloud_monitor_flags()const
|
||||
{
|
||||
return cloud_monitor_flags_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setCloud_monitor_flags(bool cloud_monitor_flags)
|
||||
{
|
||||
cloud_monitor_flags_ = 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_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setSsh_flags(bool ssh_flags)
|
||||
{
|
||||
ssh_flags_ = ssh_flags;
|
||||
setBodyParameter("Ssh_flags", ssh_flags ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getSecurity_group_id()const
|
||||
{
|
||||
return security_group_id_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setSecurity_group_id(const std::string& security_group_id)
|
||||
{
|
||||
security_group_id_ = security_group_id;
|
||||
setBodyParameter("Security_group_id", security_group_id);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getContainer_cidr()const
|
||||
{
|
||||
return container_cidr_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setContainer_cidr(const std::string& container_cidr)
|
||||
{
|
||||
container_cidr_ = container_cidr;
|
||||
setBodyParameter("Container_cidr", container_cidr);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getCluster_type()const
|
||||
{
|
||||
return cluster_type_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setCluster_type(const std::string& cluster_type)
|
||||
{
|
||||
cluster_type_ = cluster_type;
|
||||
setBodyParameter("Cluster_type", cluster_type);
|
||||
}
|
||||
|
||||
bool CreateClusterRequest::getEndpoint_public_access()const
|
||||
{
|
||||
return endpoint_public_access_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setEndpoint_public_access(bool endpoint_public_access)
|
||||
{
|
||||
endpoint_public_access_ = endpoint_public_access;
|
||||
setBodyParameter("Endpoint_public_access", endpoint_public_access ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateClusterRequest::getWorker_auto_renew()const
|
||||
{
|
||||
return worker_auto_renew_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setWorker_auto_renew(bool worker_auto_renew)
|
||||
{
|
||||
worker_auto_renew_ = worker_auto_renew;
|
||||
setBodyParameter("Worker_auto_renew", worker_auto_renew ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getPlatform()const
|
||||
{
|
||||
return platform_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setPlatform(const std::string& platform)
|
||||
{
|
||||
platform_ = platform;
|
||||
setBodyParameter("Platform", platform);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getNode_port_range()const
|
||||
{
|
||||
return node_port_range_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setNode_port_range(const std::string& node_port_range)
|
||||
{
|
||||
node_port_range_ = node_port_range;
|
||||
setBodyParameter("Node_port_range", node_port_range);
|
||||
}
|
||||
|
||||
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::getLogin_password()const
|
||||
{
|
||||
return login_password_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setLogin_password(const std::string& login_password)
|
||||
{
|
||||
login_password_ = login_password;
|
||||
setBodyParameter("Login_password", login_password);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getKubernetes_version()const
|
||||
{
|
||||
return kubernetes_version_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setKubernetes_version(const std::string& kubernetes_version)
|
||||
{
|
||||
kubernetes_version_ = kubernetes_version;
|
||||
setBodyParameter("Kubernetes_version", kubernetes_version);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getMaster_period_unit()const
|
||||
{
|
||||
return master_period_unit_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setMaster_period_unit(const std::string& master_period_unit)
|
||||
{
|
||||
master_period_unit_ = master_period_unit;
|
||||
setBodyParameter("Master_period_unit", master_period_unit);
|
||||
}
|
||||
|
||||
int CreateClusterRequest::getMaster_system_disk_size()const
|
||||
{
|
||||
return master_system_disk_size_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setMaster_system_disk_size(int 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
|
||||
{
|
||||
return master_count_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setMaster_count(int master_count)
|
||||
{
|
||||
master_count_ = master_count;
|
||||
setBodyParameter("Master_count", std::to_string(master_count));
|
||||
}
|
||||
|
||||
int CreateClusterRequest::getNum_of_nodes()const
|
||||
{
|
||||
return num_of_nodes_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setNum_of_nodes(int num_of_nodes)
|
||||
{
|
||||
num_of_nodes_ = num_of_nodes;
|
||||
setBodyParameter("Num_of_nodes", std::to_string(num_of_nodes));
|
||||
}
|
||||
|
||||
bool CreateClusterRequest::getDeletion_protection()const
|
||||
{
|
||||
return deletion_protection_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setDeletion_protection(bool deletion_protection)
|
||||
{
|
||||
deletion_protection_ = deletion_protection;
|
||||
setBodyParameter("Deletion_protection", deletion_protection ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getKey_pair()const
|
||||
{
|
||||
return key_pair_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setKey_pair(const std::string& key_pair)
|
||||
{
|
||||
key_pair_ = 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_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setMaster_auto_renew(bool master_auto_renew)
|
||||
{
|
||||
master_auto_renew_ = master_auto_renew;
|
||||
setBodyParameter("Master_auto_renew", master_auto_renew ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getRegion_id()const
|
||||
{
|
||||
return region_id_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setRegion_id(const std::string& region_id)
|
||||
{
|
||||
region_id_ = region_id;
|
||||
setBodyParameter("Region_id", region_id);
|
||||
}
|
||||
|
||||
bool CreateClusterRequest::getSnat_entry()const
|
||||
{
|
||||
return snat_entry_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setSnat_entry(bool snat_entry)
|
||||
{
|
||||
snat_entry_ = snat_entry;
|
||||
setBodyParameter("Snat_entry", snat_entry ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getWorker_system_disk_category()const
|
||||
{
|
||||
return worker_system_disk_category_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setWorker_system_disk_category(const std::string& worker_system_disk_category)
|
||||
{
|
||||
worker_system_disk_category_ = worker_system_disk_category;
|
||||
setBodyParameter("Worker_system_disk_category", worker_system_disk_category);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getRuntime()const
|
||||
{
|
||||
return runtime_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setRuntime(const std::string& runtime)
|
||||
{
|
||||
runtime_ = runtime;
|
||||
setBodyParameter("Runtime", runtime);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getWorker_period_unit()const
|
||||
{
|
||||
return worker_period_unit_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setWorker_period_unit(const std::string& worker_period_unit)
|
||||
{
|
||||
worker_period_unit_ = worker_period_unit;
|
||||
setBodyParameter("Worker_period_unit", worker_period_unit);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getMaster_instance_charge_type()const
|
||||
{
|
||||
return master_instance_charge_type_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setMaster_instance_charge_type(const std::string& master_instance_charge_type)
|
||||
{
|
||||
master_instance_charge_type_ = master_instance_charge_type;
|
||||
setBodyParameter("Master_instance_charge_type", master_instance_charge_type);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getNode_cidr_mask()const
|
||||
{
|
||||
return node_cidr_mask_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setNode_cidr_mask(const std::string& node_cidr_mask)
|
||||
{
|
||||
node_cidr_mask_ = node_cidr_mask;
|
||||
setBodyParameter("Node_cidr_mask", node_cidr_mask);
|
||||
}
|
||||
|
||||
int CreateClusterRequest::getWorker_auto_renew_period()const
|
||||
{
|
||||
return worker_auto_renew_period_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setWorker_auto_renew_period(int 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
|
||||
{
|
||||
return master_auto_renew_period_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setMaster_auto_renew_period(int 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::getTimeout_mins()const
|
||||
{
|
||||
return timeout_mins_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setTimeout_mins(int timeout_mins)
|
||||
{
|
||||
timeout_mins_ = timeout_mins;
|
||||
setBodyParameter("Timeout_mins", std::to_string(timeout_mins));
|
||||
}
|
||||
|
||||
int CreateClusterRequest::getWorker_period()const
|
||||
{
|
||||
return worker_period_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setWorker_period(int worker_period)
|
||||
{
|
||||
worker_period_ = worker_period;
|
||||
setBodyParameter("Worker_period", std::to_string(worker_period));
|
||||
}
|
||||
|
||||
int CreateClusterRequest::getWorker_system_disk_size()const
|
||||
{
|
||||
return worker_system_disk_size_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setWorker_system_disk_size(int 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::getOs_type()const
|
||||
{
|
||||
return os_type_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setOs_type(const std::string& os_type)
|
||||
{
|
||||
os_type_ = os_type;
|
||||
setBodyParameter("Os_type", os_type);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getCpu_policy()const
|
||||
{
|
||||
return cpu_policy_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setCpu_policy(const std::string& cpu_policy)
|
||||
{
|
||||
cpu_policy_ = 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_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
bool CreateClusterRequest::getDisable_rollback()const
|
||||
{
|
||||
return disable_rollback_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setDisable_rollback(bool disable_rollback)
|
||||
{
|
||||
disable_rollback_ = disable_rollback;
|
||||
setBodyParameter("Disable_rollback", disable_rollback ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getWorker_instance_charge_type()const
|
||||
{
|
||||
return worker_instance_charge_type_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setWorker_instance_charge_type(const std::string& worker_instance_charge_type)
|
||||
{
|
||||
worker_instance_charge_type_ = worker_instance_charge_type;
|
||||
setBodyParameter("Worker_instance_charge_type", worker_instance_charge_type);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,27 @@ void CreateClusterResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
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();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateClusterResult::getRequest_id()const
|
||||
{
|
||||
return request_id_;
|
||||
}
|
||||
|
||||
std::string CreateClusterResult::getCluster_id()const
|
||||
{
|
||||
return cluster_id_;
|
||||
}
|
||||
|
||||
std::string CreateClusterResult::getTask_id()const
|
||||
{
|
||||
return task_id_;
|
||||
}
|
||||
|
||||
|
||||
30
cs/src/model/CreateServiceMeshRequest.cc
Normal file
30
cs/src/model/CreateServiceMeshRequest.cc
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* 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/CreateServiceMeshRequest.h>
|
||||
|
||||
using AlibabaCloud::CS::Model::CreateServiceMeshRequest;
|
||||
|
||||
CreateServiceMeshRequest::CreateServiceMeshRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{
|
||||
setResourcePath("/servicemesh");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateServiceMeshRequest::~CreateServiceMeshRequest()
|
||||
{}
|
||||
|
||||
44
cs/src/model/CreateServiceMeshResult.cc
Normal file
44
cs/src/model/CreateServiceMeshResult.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/CreateServiceMeshResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CS;
|
||||
using namespace AlibabaCloud::CS::Model;
|
||||
|
||||
CreateServiceMeshResult::CreateServiceMeshResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateServiceMeshResult::CreateServiceMeshResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateServiceMeshResult::~CreateServiceMeshResult()
|
||||
{}
|
||||
|
||||
void CreateServiceMeshResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -20,19 +20,33 @@ using AlibabaCloud::CS::Model::DeleteClusterNodesRequest;
|
||||
|
||||
DeleteClusterNodesRequest::DeleteClusterNodesRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{}
|
||||
{
|
||||
setResourcePath("/clusters/[ClusterId]/nodes");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteClusterNodesRequest::~DeleteClusterNodesRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteClusterNodesRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteClusterNodesRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DeleteClusterNodesRequest::getRelease_node()const
|
||||
{
|
||||
return release_node_;
|
||||
}
|
||||
|
||||
void DeleteClusterNodesRequest::setRelease_node(const std::string& release_node)
|
||||
{
|
||||
release_node_ = release_node;
|
||||
setBodyParameter("Release_node", release_node);
|
||||
}
|
||||
|
||||
std::string DeleteClusterNodesRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteClusterNodesRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,10 @@ using AlibabaCloud::CS::Model::DeleteClusterRequest;
|
||||
|
||||
DeleteClusterRequest::DeleteClusterRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{}
|
||||
{
|
||||
setResourcePath("/clusters/[ClusterId]");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteClusterRequest::~DeleteClusterRequest()
|
||||
{}
|
||||
@@ -33,6 +36,6 @@ std::string DeleteClusterRequest::getClusterId()const
|
||||
void DeleteClusterRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
|
||||
41
cs/src/model/DescirbeWorkflowRequest.cc
Normal file
41
cs/src/model/DescirbeWorkflowRequest.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/DescirbeWorkflowRequest.h>
|
||||
|
||||
using AlibabaCloud::CS::Model::DescirbeWorkflowRequest;
|
||||
|
||||
DescirbeWorkflowRequest::DescirbeWorkflowRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{
|
||||
setResourcePath("/gs/workflow/[workflowName]");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescirbeWorkflowRequest::~DescirbeWorkflowRequest()
|
||||
{}
|
||||
|
||||
std::string DescirbeWorkflowRequest::getWorkflowName()const
|
||||
{
|
||||
return workflowName_;
|
||||
}
|
||||
|
||||
void DescirbeWorkflowRequest::setWorkflowName(const std::string& workflowName)
|
||||
{
|
||||
workflowName_ = workflowName;
|
||||
setParameter("WorkflowName", workflowName);
|
||||
}
|
||||
|
||||
44
cs/src/model/DescirbeWorkflowResult.cc
Normal file
44
cs/src/model/DescirbeWorkflowResult.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/DescirbeWorkflowResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CS;
|
||||
using namespace AlibabaCloud::CS::Model;
|
||||
|
||||
DescirbeWorkflowResult::DescirbeWorkflowResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescirbeWorkflowResult::DescirbeWorkflowResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescirbeWorkflowResult::~DescirbeWorkflowResult()
|
||||
{}
|
||||
|
||||
void DescirbeWorkflowResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
41
cs/src/model/DescribeAddonsRequest.cc
Normal file
41
cs/src/model/DescribeAddonsRequest.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/DescribeAddonsRequest.h>
|
||||
|
||||
using AlibabaCloud::CS::Model::DescribeAddonsRequest;
|
||||
|
||||
DescribeAddonsRequest::DescribeAddonsRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{
|
||||
setResourcePath("/clusters/components/metadata");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeAddonsRequest::~DescribeAddonsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAddonsRequest::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
}
|
||||
|
||||
void DescribeAddonsRequest::setRegion(const std::string& region)
|
||||
{
|
||||
region_ = region;
|
||||
setParameter("Region", region);
|
||||
}
|
||||
|
||||
93
cs/src/model/DescribeAddonsResult.cc
Normal file
93
cs/src/model/DescribeAddonsResult.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cs/model/DescribeAddonsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CS;
|
||||
using namespace AlibabaCloud::CS::Model;
|
||||
|
||||
DescribeAddonsResult::DescribeAddonsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAddonsResult::DescribeAddonsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAddonsResult::~DescribeAddonsResult()
|
||||
{}
|
||||
|
||||
void DescribeAddonsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allComponentGroupsNode = value["ComponentGroups"]["ComponentGroupsItem"];
|
||||
for (auto valueComponentGroupsComponentGroupsItem : allComponentGroupsNode)
|
||||
{
|
||||
ComponentGroupsItem componentGroupsObject;
|
||||
if(!valueComponentGroupsComponentGroupsItem["group_name"].isNull())
|
||||
componentGroupsObject.group_name = valueComponentGroupsComponentGroupsItem["group_name"].asString();
|
||||
auto allitemsNode = allComponentGroupsNode["items"]["itemsItem"];
|
||||
for (auto allComponentGroupsNodeitemsitemsItem : allitemsNode)
|
||||
{
|
||||
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["disabled"].isNull())
|
||||
itemsObject.disabled = allComponentGroupsNodeitemsitemsItem["disabled"].asString() == "true";
|
||||
if(!allComponentGroupsNodeitemsitemsItem["version"].isNull())
|
||||
itemsObject.version = allComponentGroupsNodeitemsitemsItem["version"].asString();
|
||||
componentGroupsObject.items.push_back(itemsObject);
|
||||
}
|
||||
auto all_Default = value["default"]["default_addon_name"];
|
||||
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();
|
||||
|
||||
}
|
||||
|
||||
DescribeAddonsResult::StandardComponents DescribeAddonsResult::getStandardComponents()const
|
||||
{
|
||||
return standardComponents_;
|
||||
}
|
||||
|
||||
std::vector<DescribeAddonsResult::ComponentGroupsItem> DescribeAddonsResult::getComponentGroups()const
|
||||
{
|
||||
return componentGroups_;
|
||||
}
|
||||
|
||||
52
cs/src/model/DescribeClusterAddonUpgradeStatusRequest.cc
Normal file
52
cs/src/model/DescribeClusterAddonUpgradeStatusRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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/DescribeClusterAddonUpgradeStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::CS::Model::DescribeClusterAddonUpgradeStatusRequest;
|
||||
|
||||
DescribeClusterAddonUpgradeStatusRequest::DescribeClusterAddonUpgradeStatusRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{
|
||||
setResourcePath("/clusters/[ClusterId]/components/[ComponentId]/upgradestatus");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeClusterAddonUpgradeStatusRequest::~DescribeClusterAddonUpgradeStatusRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeClusterAddonUpgradeStatusRequest::getComponentId()const
|
||||
{
|
||||
return componentId_;
|
||||
}
|
||||
|
||||
void DescribeClusterAddonUpgradeStatusRequest::setComponentId(const std::string& componentId)
|
||||
{
|
||||
componentId_ = componentId;
|
||||
setParameter("ComponentId", componentId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterAddonUpgradeStatusRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeClusterAddonUpgradeStatusRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
76
cs/src/model/DescribeClusterAddonUpgradeStatusResult.cc
Normal file
76
cs/src/model/DescribeClusterAddonUpgradeStatusResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cs/model/DescribeClusterAddonUpgradeStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CS;
|
||||
using namespace AlibabaCloud::CS::Model;
|
||||
|
||||
DescribeClusterAddonUpgradeStatusResult::DescribeClusterAddonUpgradeStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeClusterAddonUpgradeStatusResult::DescribeClusterAddonUpgradeStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeClusterAddonUpgradeStatusResult::~DescribeClusterAddonUpgradeStatusResult()
|
||||
{}
|
||||
|
||||
void DescribeClusterAddonUpgradeStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto componentIdNode = value["ComponentId"];
|
||||
if(!componentIdNode["template"].isNull())
|
||||
componentId_._template = componentIdNode["template"].asString();
|
||||
if(!componentIdNode["can_upgrade"].isNull())
|
||||
componentId_.can_upgrade = componentIdNode["can_upgrade"].asString() == "true";
|
||||
if(!componentIdNode["changed"].isNull())
|
||||
componentId_.changed = componentIdNode["changed"].asString();
|
||||
auto addon_infoNode = componentIdNode["addon_info"];
|
||||
if(!addon_infoNode["component_name"].isNull())
|
||||
componentId_.addon_info.component_name = addon_infoNode["component_name"].asString();
|
||||
if(!addon_infoNode["ready_to_upgrade"].isNull())
|
||||
componentId_.addon_info.ready_to_upgrade = addon_infoNode["ready_to_upgrade"].asString();
|
||||
if(!addon_infoNode["message"].isNull())
|
||||
componentId_.addon_info.message = addon_infoNode["message"].asString();
|
||||
if(!addon_infoNode["version"].isNull())
|
||||
componentId_.addon_info.version = addon_infoNode["version"].asString();
|
||||
if(!addon_infoNode["yaml"].isNull())
|
||||
componentId_.addon_info.yaml = addon_infoNode["yaml"].asString();
|
||||
auto tasksNode = componentIdNode["tasks"];
|
||||
if(!tasksNode["finished_at"].isNull())
|
||||
componentId_.tasks.finished_at = tasksNode["finished_at"].asString();
|
||||
if(!tasksNode["master_url"].isNull())
|
||||
componentId_.tasks.master_url = tasksNode["master_url"].asString();
|
||||
if(!tasksNode["created_at"].isNull())
|
||||
componentId_.tasks.created_at = tasksNode["created_at"].asString();
|
||||
if(!tasksNode["status"].isNull())
|
||||
componentId_.tasks.status = tasksNode["status"].asString();
|
||||
|
||||
}
|
||||
|
||||
DescribeClusterAddonUpgradeStatusResult::ComponentId DescribeClusterAddonUpgradeStatusResult::getComponentId()const
|
||||
{
|
||||
return componentId_;
|
||||
}
|
||||
|
||||
41
cs/src/model/DescribeClusterAddonsVersionRequest.cc
Normal file
41
cs/src/model/DescribeClusterAddonsVersionRequest.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/DescribeClusterAddonsVersionRequest.h>
|
||||
|
||||
using AlibabaCloud::CS::Model::DescribeClusterAddonsVersionRequest;
|
||||
|
||||
DescribeClusterAddonsVersionRequest::DescribeClusterAddonsVersionRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{
|
||||
setResourcePath("/clusters/[ClusterId]/components/version");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeClusterAddonsVersionRequest::~DescribeClusterAddonsVersionRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeClusterAddonsVersionRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeClusterAddonsVersionRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
128
cs/src/model/DescribeClusterAddonsVersionResult.cc
Normal file
128
cs/src/model/DescribeClusterAddonsVersionResult.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* 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/DescribeClusterAddonsVersionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CS;
|
||||
using namespace AlibabaCloud::CS::Model;
|
||||
|
||||
DescribeClusterAddonsVersionResult::DescribeClusterAddonsVersionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeClusterAddonsVersionResult::DescribeClusterAddonsVersionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeClusterAddonsVersionResult::~DescribeClusterAddonsVersionResult()
|
||||
{}
|
||||
|
||||
void DescribeClusterAddonsVersionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["template"].isNull())
|
||||
_template_ = value["template"].asString();
|
||||
if(!value["ready_to_upgrade"].isNull())
|
||||
ready_to_upgrade_ = value["ready_to_upgrade"].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["policy"].isNull())
|
||||
policy_ = value["policy"].asString();
|
||||
if(!value["force"].isNull())
|
||||
force_ = value["force"].asString() == "true";
|
||||
if(!value["required"].isNull())
|
||||
required_ = value["required"].asString() == "true";
|
||||
if(!value["exist"].isNull())
|
||||
exist_ = value["exist"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeClusterAddonsVersionResult::getPolicy()const
|
||||
{
|
||||
return policy_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterAddonsVersionResult::getNext_version()const
|
||||
{
|
||||
return next_version_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterAddonsVersionResult::get_Template()const
|
||||
{
|
||||
return _template_;
|
||||
}
|
||||
|
||||
bool DescribeClusterAddonsVersionResult::getCan_upgrade()const
|
||||
{
|
||||
return can_upgrade_;
|
||||
}
|
||||
|
||||
bool DescribeClusterAddonsVersionResult::getExist()const
|
||||
{
|
||||
return exist_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterAddonsVersionResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool DescribeClusterAddonsVersionResult::getRequired()const
|
||||
{
|
||||
return required_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterAddonsVersionResult::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
bool DescribeClusterAddonsVersionResult::getForce()const
|
||||
{
|
||||
return force_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterAddonsVersionResult::getReady_to_upgrade()const
|
||||
{
|
||||
return ready_to_upgrade_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterAddonsVersionResult::getChanged()const
|
||||
{
|
||||
return changed_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterAddonsVersionResult::getComponent_name()const
|
||||
{
|
||||
return component_name_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,10 @@ using AlibabaCloud::CS::Model::DescribeClusterUserKubeconfigRequest;
|
||||
|
||||
DescribeClusterUserKubeconfigRequest::DescribeClusterUserKubeconfigRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{}
|
||||
{
|
||||
setResourcePath("/k8s/[ClusterId]/user_config");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeClusterUserKubeconfigRequest::~DescribeClusterUserKubeconfigRequest()
|
||||
{}
|
||||
@@ -33,7 +36,7 @@ bool DescribeClusterUserKubeconfigRequest::getPrivateIpAddress()const
|
||||
void DescribeClusterUserKubeconfigRequest::setPrivateIpAddress(bool privateIpAddress)
|
||||
{
|
||||
privateIpAddress_ = privateIpAddress;
|
||||
setCoreParameter("PrivateIpAddress", privateIpAddress ? "true" : "false");
|
||||
setParameter("PrivateIpAddress", privateIpAddress ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeClusterUserKubeconfigRequest::getClusterId()const
|
||||
@@ -44,6 +47,6 @@ std::string DescribeClusterUserKubeconfigRequest::getClusterId()const
|
||||
void DescribeClusterUserKubeconfigRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,13 @@ void DescribeClusterUserKubeconfigResult::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 DescribeClusterUserKubeconfigResult::getConfig()const
|
||||
{
|
||||
return config_;
|
||||
}
|
||||
|
||||
|
||||
@@ -20,30 +20,33 @@ using AlibabaCloud::CS::Model::DescribeClusterV2UserKubeconfigRequest;
|
||||
|
||||
DescribeClusterV2UserKubeconfigRequest::DescribeClusterV2UserKubeconfigRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{}
|
||||
{
|
||||
setResourcePath("/api/v2/k8s/[ClusterId]/user_config");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeClusterV2UserKubeconfigRequest::~DescribeClusterV2UserKubeconfigRequest()
|
||||
{}
|
||||
|
||||
bool DescribeClusterV2UserKubeconfigRequest::getPrivateIpAddress()const
|
||||
{
|
||||
return privateIpAddress_;
|
||||
}
|
||||
|
||||
void DescribeClusterV2UserKubeconfigRequest::setPrivateIpAddress(bool privateIpAddress)
|
||||
{
|
||||
privateIpAddress_ = privateIpAddress;
|
||||
setCoreParameter("PrivateIpAddress", privateIpAddress ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeClusterV2UserKubeconfigRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeClusterV2UserKubeconfigRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
bool DescribeClusterV2UserKubeconfigRequest::getPrivateIpAddress()const
|
||||
{
|
||||
return privateIpAddress_;
|
||||
}
|
||||
|
||||
void DescribeClusterV2UserKubeconfigRequest::setPrivateIpAddress(bool privateIpAddress)
|
||||
{
|
||||
privateIpAddress_ = privateIpAddress;
|
||||
setParameter("PrivateIpAddress", privateIpAddress ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeClusterV2UserKubeconfigRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeClusterV2UserKubeconfigRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,10 @@ using AlibabaCloud::CS::Model::DescribeClustersRequest;
|
||||
|
||||
DescribeClustersRequest::DescribeClustersRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{}
|
||||
{
|
||||
setResourcePath("/clusters");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeClustersRequest::~DescribeClustersRequest()
|
||||
{}
|
||||
@@ -33,7 +36,7 @@ std::string DescribeClustersRequest::getClusterType()const
|
||||
void DescribeClustersRequest::setClusterType(const std::string& clusterType)
|
||||
{
|
||||
clusterType_ = clusterType;
|
||||
setCoreParameter("ClusterType", clusterType);
|
||||
setParameter("ClusterType", clusterType);
|
||||
}
|
||||
|
||||
std::string DescribeClustersRequest::getName()const
|
||||
@@ -44,6 +47,6 @@ std::string DescribeClustersRequest::getName()const
|
||||
void DescribeClustersRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,104 @@ void DescribeClustersResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["agent_version"].isNull())
|
||||
agent_version_ = value["agent_version"].asString();
|
||||
if(!value["cluster_id"].isNull())
|
||||
cluster_id_ = value["cluster_id"].asString();
|
||||
if(!value["created"].isNull())
|
||||
created_ = value["created"].asString();
|
||||
if(!value["external_loadbalancer_id"].isNull())
|
||||
external_loadbalancer_id_ = value["external_loadbalancer_id"].asString();
|
||||
if(!value["master_url"].isNull())
|
||||
master_url_ = value["master_url"].asString();
|
||||
if(!value["name"].isNull())
|
||||
name_ = value["name"].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["size"].isNull())
|
||||
size_ = value["size"].asString();
|
||||
if(!value["state"].isNull())
|
||||
state_ = value["state"].asString();
|
||||
if(!value["updated"].isNull())
|
||||
updated_ = value["updated"].asString();
|
||||
if(!value["vpc_id"].isNull())
|
||||
vpc_id_ = value["vpc_id"].asString();
|
||||
if(!value["vpc_id"].isNull())
|
||||
vpc_id1_ = value["vpc_id"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeClustersResult::getCluster_id()const
|
||||
{
|
||||
return cluster_id_;
|
||||
}
|
||||
|
||||
std::string DescribeClustersResult::getExternal_loadbalancer_id()const
|
||||
{
|
||||
return external_loadbalancer_id_;
|
||||
}
|
||||
|
||||
std::string DescribeClustersResult::getUpdated()const
|
||||
{
|
||||
return updated_;
|
||||
}
|
||||
|
||||
std::string DescribeClustersResult::getRegion_id()const
|
||||
{
|
||||
return region_id_;
|
||||
}
|
||||
|
||||
std::string DescribeClustersResult::getSize()const
|
||||
{
|
||||
return size_;
|
||||
}
|
||||
|
||||
std::string DescribeClustersResult::getVpc_id()const
|
||||
{
|
||||
return vpc_id_;
|
||||
}
|
||||
|
||||
std::string DescribeClustersResult::getNetwork_mode()const
|
||||
{
|
||||
return network_mode_;
|
||||
}
|
||||
|
||||
std::string DescribeClustersResult::getSecurity_group_id()const
|
||||
{
|
||||
return security_group_id_;
|
||||
}
|
||||
|
||||
std::string DescribeClustersResult::getCreated()const
|
||||
{
|
||||
return created_;
|
||||
}
|
||||
|
||||
std::string DescribeClustersResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
std::string DescribeClustersResult::getAgent_version()const
|
||||
{
|
||||
return agent_version_;
|
||||
}
|
||||
|
||||
std::string DescribeClustersResult::getState()const
|
||||
{
|
||||
return state_;
|
||||
}
|
||||
|
||||
std::string DescribeClustersResult::getVpc_id1()const
|
||||
{
|
||||
return vpc_id1_;
|
||||
}
|
||||
|
||||
std::string DescribeClustersResult::getMaster_url()const
|
||||
{
|
||||
return master_url_;
|
||||
}
|
||||
|
||||
|
||||
52
cs/src/model/DescribeEdgeClusterAttachScriptsRequest.cc
Normal file
52
cs/src/model/DescribeEdgeClusterAttachScriptsRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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/DescribeEdgeClusterAttachScriptsRequest.h>
|
||||
|
||||
using AlibabaCloud::CS::Model::DescribeEdgeClusterAttachScriptsRequest;
|
||||
|
||||
DescribeEdgeClusterAttachScriptsRequest::DescribeEdgeClusterAttachScriptsRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{
|
||||
setResourcePath("/clusters/[ClusterId]/attachscript");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeEdgeClusterAttachScriptsRequest::~DescribeEdgeClusterAttachScriptsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeEdgeClusterAttachScriptsRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeEdgeClusterAttachScriptsRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeEdgeClusterAttachScriptsRequest::getNamePrefix()const
|
||||
{
|
||||
return namePrefix_;
|
||||
}
|
||||
|
||||
void DescribeEdgeClusterAttachScriptsRequest::setNamePrefix(const std::string& namePrefix)
|
||||
{
|
||||
namePrefix_ = namePrefix;
|
||||
setParameter("NamePrefix", namePrefix);
|
||||
}
|
||||
|
||||
51
cs/src/model/DescribeEdgeClusterAttachScriptsResult.cc
Normal file
51
cs/src/model/DescribeEdgeClusterAttachScriptsResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cs/model/DescribeEdgeClusterAttachScriptsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CS;
|
||||
using namespace AlibabaCloud::CS::Model;
|
||||
|
||||
DescribeEdgeClusterAttachScriptsResult::DescribeEdgeClusterAttachScriptsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeEdgeClusterAttachScriptsResult::DescribeEdgeClusterAttachScriptsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeEdgeClusterAttachScriptsResult::~DescribeEdgeClusterAttachScriptsResult()
|
||||
{}
|
||||
|
||||
void DescribeEdgeClusterAttachScriptsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["config"].isNull())
|
||||
config_ = value["config"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeEdgeClusterAttachScriptsResult::getConfig()const
|
||||
{
|
||||
return config_;
|
||||
}
|
||||
|
||||
30
cs/src/model/DescribeWorkflowsRequest.cc
Normal file
30
cs/src/model/DescribeWorkflowsRequest.cc
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* 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/DescribeWorkflowsRequest.h>
|
||||
|
||||
using AlibabaCloud::CS::Model::DescribeWorkflowsRequest;
|
||||
|
||||
DescribeWorkflowsRequest::DescribeWorkflowsRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{
|
||||
setResourcePath("/gs/workflows");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeWorkflowsRequest::~DescribeWorkflowsRequest()
|
||||
{}
|
||||
|
||||
44
cs/src/model/DescribeWorkflowsResult.cc
Normal file
44
cs/src/model/DescribeWorkflowsResult.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/DescribeWorkflowsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CS;
|
||||
using namespace AlibabaCloud::CS::Model;
|
||||
|
||||
DescribeWorkflowsResult::DescribeWorkflowsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeWorkflowsResult::DescribeWorkflowsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeWorkflowsResult::~DescribeWorkflowsResult()
|
||||
{}
|
||||
|
||||
void DescribeWorkflowsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
63
cs/src/model/ModifyClusterTagsRequest.cc
Normal file
63
cs/src/model/ModifyClusterTagsRequest.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/cs/model/ModifyClusterTagsRequest.h>
|
||||
|
||||
using AlibabaCloud::CS::Model::ModifyClusterTagsRequest;
|
||||
|
||||
ModifyClusterTagsRequest::ModifyClusterTagsRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{
|
||||
setResourcePath("/clusters/[ClusterId]/tags");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyClusterTagsRequest::~ModifyClusterTagsRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyClusterTagsRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ModifyClusterTagsRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string ModifyClusterTagsRequest::getValue()const
|
||||
{
|
||||
return value_;
|
||||
}
|
||||
|
||||
void ModifyClusterTagsRequest::setValue(const std::string& value)
|
||||
{
|
||||
value_ = value;
|
||||
setBodyParameter("Value", value);
|
||||
}
|
||||
|
||||
std::string ModifyClusterTagsRequest::getKey()const
|
||||
{
|
||||
return key_;
|
||||
}
|
||||
|
||||
void ModifyClusterTagsRequest::setKey(const std::string& key)
|
||||
{
|
||||
key_ = key;
|
||||
setBodyParameter("Key", key);
|
||||
}
|
||||
|
||||
51
cs/src/model/ModifyClusterTagsResult.cc
Normal file
51
cs/src/model/ModifyClusterTagsResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cs/model/ModifyClusterTagsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CS;
|
||||
using namespace AlibabaCloud::CS::Model;
|
||||
|
||||
ModifyClusterTagsResult::ModifyClusterTagsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyClusterTagsResult::ModifyClusterTagsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyClusterTagsResult::~ModifyClusterTagsResult()
|
||||
{}
|
||||
|
||||
void ModifyClusterTagsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyClusterTagsResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
41
cs/src/model/RemoveWorkflowRequest.cc
Normal file
41
cs/src/model/RemoveWorkflowRequest.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/RemoveWorkflowRequest.h>
|
||||
|
||||
using AlibabaCloud::CS::Model::RemoveWorkflowRequest;
|
||||
|
||||
RemoveWorkflowRequest::RemoveWorkflowRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{
|
||||
setResourcePath("/gs/workflow/[workflowName]");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
RemoveWorkflowRequest::~RemoveWorkflowRequest()
|
||||
{}
|
||||
|
||||
std::string RemoveWorkflowRequest::getWorkflowName()const
|
||||
{
|
||||
return workflowName_;
|
||||
}
|
||||
|
||||
void RemoveWorkflowRequest::setWorkflowName(const std::string& workflowName)
|
||||
{
|
||||
workflowName_ = workflowName;
|
||||
setParameter("WorkflowName", workflowName);
|
||||
}
|
||||
|
||||
44
cs/src/model/RemoveWorkflowResult.cc
Normal file
44
cs/src/model/RemoveWorkflowResult.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/RemoveWorkflowResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CS;
|
||||
using namespace AlibabaCloud::CS::Model;
|
||||
|
||||
RemoveWorkflowResult::RemoveWorkflowResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RemoveWorkflowResult::RemoveWorkflowResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RemoveWorkflowResult::~RemoveWorkflowResult()
|
||||
{}
|
||||
|
||||
void RemoveWorkflowResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -20,7 +20,10 @@ using AlibabaCloud::CS::Model::ScaleClusterRequest;
|
||||
|
||||
ScaleClusterRequest::ScaleClusterRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{}
|
||||
{
|
||||
setResourcePath("/clusters/[ClusterId]");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
ScaleClusterRequest::~ScaleClusterRequest()
|
||||
{}
|
||||
@@ -33,6 +36,6 @@ std::string ScaleClusterRequest::getClusterId()const
|
||||
void ScaleClusterRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,19 +20,176 @@ using AlibabaCloud::CS::Model::ScaleOutClusterRequest;
|
||||
|
||||
ScaleOutClusterRequest::ScaleOutClusterRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{}
|
||||
{
|
||||
setResourcePath("/api/v2/clusters/[ClusterId]");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ScaleOutClusterRequest::~ScaleOutClusterRequest()
|
||||
{}
|
||||
|
||||
std::string ScaleOutClusterRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ScaleOutClusterRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
bool ScaleOutClusterRequest::getWorker_data_disk()const
|
||||
{
|
||||
return worker_data_disk_;
|
||||
}
|
||||
|
||||
void ScaleOutClusterRequest::setWorker_data_disk(bool worker_data_disk)
|
||||
{
|
||||
worker_data_disk_ = worker_data_disk;
|
||||
setBodyParameter("Worker_data_disk", worker_data_disk ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ScaleOutClusterRequest::getKey_pair()const
|
||||
{
|
||||
return key_pair_;
|
||||
}
|
||||
|
||||
void ScaleOutClusterRequest::setKey_pair(const std::string& key_pair)
|
||||
{
|
||||
key_pair_ = key_pair;
|
||||
setBodyParameter("Key_pair", key_pair);
|
||||
}
|
||||
|
||||
int ScaleOutClusterRequest::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
void ScaleOutClusterRequest::setCount(int count)
|
||||
{
|
||||
count_ = count;
|
||||
setBodyParameter("Count", std::to_string(count));
|
||||
}
|
||||
|
||||
std::string ScaleOutClusterRequest::getWorker_system_disk_category()const
|
||||
{
|
||||
return worker_system_disk_category_;
|
||||
}
|
||||
|
||||
void ScaleOutClusterRequest::setWorker_system_disk_category(const std::string& worker_system_disk_category)
|
||||
{
|
||||
worker_system_disk_category_ = worker_system_disk_category;
|
||||
setBodyParameter("Worker_system_disk_category", worker_system_disk_category);
|
||||
}
|
||||
|
||||
bool ScaleOutClusterRequest::getCloud_monitor_flags()const
|
||||
{
|
||||
return cloud_monitor_flags_;
|
||||
}
|
||||
|
||||
void ScaleOutClusterRequest::setCloud_monitor_flags(bool cloud_monitor_flags)
|
||||
{
|
||||
cloud_monitor_flags_ = cloud_monitor_flags;
|
||||
setBodyParameter("Cloud_monitor_flags", cloud_monitor_flags ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ScaleOutClusterRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ScaleOutClusterRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string ScaleOutClusterRequest::getWorker_period_unit()const
|
||||
{
|
||||
return worker_period_unit_;
|
||||
}
|
||||
|
||||
void ScaleOutClusterRequest::setWorker_period_unit(const std::string& worker_period_unit)
|
||||
{
|
||||
worker_period_unit_ = worker_period_unit;
|
||||
setBodyParameter("Worker_period_unit", worker_period_unit);
|
||||
}
|
||||
|
||||
bool ScaleOutClusterRequest::getWorker_auto_renew()const
|
||||
{
|
||||
return worker_auto_renew_;
|
||||
}
|
||||
|
||||
void ScaleOutClusterRequest::setWorker_auto_renew(bool worker_auto_renew)
|
||||
{
|
||||
worker_auto_renew_ = worker_auto_renew;
|
||||
setBodyParameter("Worker_auto_renew", worker_auto_renew ? "true" : "false");
|
||||
}
|
||||
|
||||
int ScaleOutClusterRequest::getWorker_auto_renew_period()const
|
||||
{
|
||||
return worker_auto_renew_period_;
|
||||
}
|
||||
|
||||
void ScaleOutClusterRequest::setWorker_auto_renew_period(int 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 ScaleOutClusterRequest::getWorker_period()const
|
||||
{
|
||||
return worker_period_;
|
||||
}
|
||||
|
||||
void ScaleOutClusterRequest::setWorker_period(int worker_period)
|
||||
{
|
||||
worker_period_ = worker_period;
|
||||
setBodyParameter("Worker_period", std::to_string(worker_period));
|
||||
}
|
||||
|
||||
std::string ScaleOutClusterRequest::getLogin_password()const
|
||||
{
|
||||
return login_password_;
|
||||
}
|
||||
|
||||
void ScaleOutClusterRequest::setLogin_password(const std::string& login_password)
|
||||
{
|
||||
login_password_ = login_password;
|
||||
setBodyParameter("Login_password", login_password);
|
||||
}
|
||||
|
||||
int ScaleOutClusterRequest::getWorker_system_disk_size()const
|
||||
{
|
||||
return worker_system_disk_size_;
|
||||
}
|
||||
|
||||
void ScaleOutClusterRequest::setWorker_system_disk_size(int 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 ScaleOutClusterRequest::getCpu_policy()const
|
||||
{
|
||||
return cpu_policy_;
|
||||
}
|
||||
|
||||
void ScaleOutClusterRequest::setCpu_policy(const std::string& cpu_policy)
|
||||
{
|
||||
cpu_policy_ = cpu_policy;
|
||||
setBodyParameter("Cpu_policy", cpu_policy);
|
||||
}
|
||||
|
||||
bool ScaleOutClusterRequest::getDisable_rollback()const
|
||||
{
|
||||
return disable_rollback_;
|
||||
}
|
||||
|
||||
void ScaleOutClusterRequest::setDisable_rollback(bool disable_rollback)
|
||||
{
|
||||
disable_rollback_ = disable_rollback;
|
||||
setBodyParameter("Disable_rollback", disable_rollback ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ScaleOutClusterRequest::getWorker_instance_charge_type()const
|
||||
{
|
||||
return worker_instance_charge_type_;
|
||||
}
|
||||
|
||||
void ScaleOutClusterRequest::setWorker_instance_charge_type(const std::string& worker_instance_charge_type)
|
||||
{
|
||||
worker_instance_charge_type_ = worker_instance_charge_type;
|
||||
setBodyParameter("Worker_instance_charge_type", worker_instance_charge_type);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,14 +35,38 @@ ScaleOutClusterResult::~ScaleOutClusterResult()
|
||||
|
||||
void ScaleOutClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
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["instanceId"].isNull())
|
||||
instanceId_ = value["instanceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ScaleOutClusterResult::getRequest_id()const
|
||||
{
|
||||
return request_id_;
|
||||
}
|
||||
|
||||
std::string ScaleOutClusterResult::getCluster_id()const
|
||||
{
|
||||
return cluster_id_;
|
||||
}
|
||||
|
||||
std::string ScaleOutClusterResult::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string ScaleOutClusterResult::getTask_id()const
|
||||
{
|
||||
return task_id_;
|
||||
}
|
||||
|
||||
|
||||
41
cs/src/model/ServiceMeshAddClusterRequest.cc
Normal file
41
cs/src/model/ServiceMeshAddClusterRequest.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/ServiceMeshAddClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::CS::Model::ServiceMeshAddClusterRequest;
|
||||
|
||||
ServiceMeshAddClusterRequest::ServiceMeshAddClusterRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{
|
||||
setResourcePath("/servicemesh/[ServiceMeshId]/add/clusters");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
ServiceMeshAddClusterRequest::~ServiceMeshAddClusterRequest()
|
||||
{}
|
||||
|
||||
std::string ServiceMeshAddClusterRequest::getServiceMeshId()const
|
||||
{
|
||||
return serviceMeshId_;
|
||||
}
|
||||
|
||||
void ServiceMeshAddClusterRequest::setServiceMeshId(const std::string& serviceMeshId)
|
||||
{
|
||||
serviceMeshId_ = serviceMeshId;
|
||||
setParameter("ServiceMeshId", serviceMeshId);
|
||||
}
|
||||
|
||||
44
cs/src/model/ServiceMeshAddClusterResult.cc
Normal file
44
cs/src/model/ServiceMeshAddClusterResult.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/ServiceMeshAddClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CS;
|
||||
using namespace AlibabaCloud::CS::Model;
|
||||
|
||||
ServiceMeshAddClusterResult::ServiceMeshAddClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ServiceMeshAddClusterResult::ServiceMeshAddClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ServiceMeshAddClusterResult::~ServiceMeshAddClusterResult()
|
||||
{}
|
||||
|
||||
void ServiceMeshAddClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
41
cs/src/model/ServiceMeshApiServerRequest.cc
Normal file
41
cs/src/model/ServiceMeshApiServerRequest.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/ServiceMeshApiServerRequest.h>
|
||||
|
||||
using AlibabaCloud::CS::Model::ServiceMeshApiServerRequest;
|
||||
|
||||
ServiceMeshApiServerRequest::ServiceMeshApiServerRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{
|
||||
setResourcePath("/servicemesh/[ServiceMeshId]/api_proxy");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ServiceMeshApiServerRequest::~ServiceMeshApiServerRequest()
|
||||
{}
|
||||
|
||||
std::string ServiceMeshApiServerRequest::getServiceMeshId()const
|
||||
{
|
||||
return serviceMeshId_;
|
||||
}
|
||||
|
||||
void ServiceMeshApiServerRequest::setServiceMeshId(const std::string& serviceMeshId)
|
||||
{
|
||||
serviceMeshId_ = serviceMeshId;
|
||||
setParameter("ServiceMeshId", serviceMeshId);
|
||||
}
|
||||
|
||||
44
cs/src/model/ServiceMeshApiServerResult.cc
Normal file
44
cs/src/model/ServiceMeshApiServerResult.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/ServiceMeshApiServerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CS;
|
||||
using namespace AlibabaCloud::CS::Model;
|
||||
|
||||
ServiceMeshApiServerResult::ServiceMeshApiServerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ServiceMeshApiServerResult::ServiceMeshApiServerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ServiceMeshApiServerResult::~ServiceMeshApiServerResult()
|
||||
{}
|
||||
|
||||
void ServiceMeshApiServerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
41
cs/src/model/ServiceMeshRemoveClusterRequest.cc
Normal file
41
cs/src/model/ServiceMeshRemoveClusterRequest.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/ServiceMeshRemoveClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::CS::Model::ServiceMeshRemoveClusterRequest;
|
||||
|
||||
ServiceMeshRemoveClusterRequest::ServiceMeshRemoveClusterRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{
|
||||
setResourcePath("/servicemesh/[ServiceMeshId]/remove/clusters");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
ServiceMeshRemoveClusterRequest::~ServiceMeshRemoveClusterRequest()
|
||||
{}
|
||||
|
||||
std::string ServiceMeshRemoveClusterRequest::getServiceMeshId()const
|
||||
{
|
||||
return serviceMeshId_;
|
||||
}
|
||||
|
||||
void ServiceMeshRemoveClusterRequest::setServiceMeshId(const std::string& serviceMeshId)
|
||||
{
|
||||
serviceMeshId_ = serviceMeshId;
|
||||
setParameter("ServiceMeshId", serviceMeshId);
|
||||
}
|
||||
|
||||
44
cs/src/model/ServiceMeshRemoveClusterResult.cc
Normal file
44
cs/src/model/ServiceMeshRemoveClusterResult.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/ServiceMeshRemoveClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CS;
|
||||
using namespace AlibabaCloud::CS::Model;
|
||||
|
||||
ServiceMeshRemoveClusterResult::ServiceMeshRemoveClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ServiceMeshRemoveClusterResult::ServiceMeshRemoveClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ServiceMeshRemoveClusterResult::~ServiceMeshRemoveClusterResult()
|
||||
{}
|
||||
|
||||
void ServiceMeshRemoveClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
30
cs/src/model/StartWorkflowRequest.cc
Normal file
30
cs/src/model/StartWorkflowRequest.cc
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* 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/StartWorkflowRequest.h>
|
||||
|
||||
using AlibabaCloud::CS::Model::StartWorkflowRequest;
|
||||
|
||||
StartWorkflowRequest::StartWorkflowRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{
|
||||
setResourcePath("/gs/workflow");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StartWorkflowRequest::~StartWorkflowRequest()
|
||||
{}
|
||||
|
||||
44
cs/src/model/StartWorkflowResult.cc
Normal file
44
cs/src/model/StartWorkflowResult.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/StartWorkflowResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CS;
|
||||
using namespace AlibabaCloud::CS::Model;
|
||||
|
||||
StartWorkflowResult::StartWorkflowResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StartWorkflowResult::StartWorkflowResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StartWorkflowResult::~StartWorkflowResult()
|
||||
{}
|
||||
|
||||
void StartWorkflowResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
52
cs/src/model/UnInstallClusterAddonsRequest.cc
Normal file
52
cs/src/model/UnInstallClusterAddonsRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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/UnInstallClusterAddonsRequest.h>
|
||||
|
||||
using AlibabaCloud::CS::Model::UnInstallClusterAddonsRequest;
|
||||
|
||||
UnInstallClusterAddonsRequest::UnInstallClusterAddonsRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{
|
||||
setResourcePath("/clusters/[ClusterId]/components/uninstall");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UnInstallClusterAddonsRequest::~UnInstallClusterAddonsRequest()
|
||||
{}
|
||||
|
||||
std::string UnInstallClusterAddonsRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void UnInstallClusterAddonsRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string UnInstallClusterAddonsRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void UnInstallClusterAddonsRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
44
cs/src/model/UnInstallClusterAddonsResult.cc
Normal file
44
cs/src/model/UnInstallClusterAddonsResult.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/UnInstallClusterAddonsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CS;
|
||||
using namespace AlibabaCloud::CS::Model;
|
||||
|
||||
UnInstallClusterAddonsResult::UnInstallClusterAddonsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UnInstallClusterAddonsResult::UnInstallClusterAddonsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UnInstallClusterAddonsResult::~UnInstallClusterAddonsResult()
|
||||
{}
|
||||
|
||||
void UnInstallClusterAddonsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
41
cs/src/model/UpdateK8sClusterUserConfigExpireRequest.cc
Normal file
41
cs/src/model/UpdateK8sClusterUserConfigExpireRequest.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/UpdateK8sClusterUserConfigExpireRequest.h>
|
||||
|
||||
using AlibabaCloud::CS::Model::UpdateK8sClusterUserConfigExpireRequest;
|
||||
|
||||
UpdateK8sClusterUserConfigExpireRequest::UpdateK8sClusterUserConfigExpireRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{
|
||||
setResourcePath("/k8s/[ClusterId]/user_config/expire");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateK8sClusterUserConfigExpireRequest::~UpdateK8sClusterUserConfigExpireRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateK8sClusterUserConfigExpireRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void UpdateK8sClusterUserConfigExpireRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
44
cs/src/model/UpdateK8sClusterUserConfigExpireResult.cc
Normal file
44
cs/src/model/UpdateK8sClusterUserConfigExpireResult.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/UpdateK8sClusterUserConfigExpireResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CS;
|
||||
using namespace AlibabaCloud::CS::Model;
|
||||
|
||||
UpdateK8sClusterUserConfigExpireResult::UpdateK8sClusterUserConfigExpireResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateK8sClusterUserConfigExpireResult::UpdateK8sClusterUserConfigExpireResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateK8sClusterUserConfigExpireResult::~UpdateK8sClusterUserConfigExpireResult()
|
||||
{}
|
||||
|
||||
void UpdateK8sClusterUserConfigExpireResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
41
cs/src/model/UpdateServiceMeshRequest.cc
Normal file
41
cs/src/model/UpdateServiceMeshRequest.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/UpdateServiceMeshRequest.h>
|
||||
|
||||
using AlibabaCloud::CS::Model::UpdateServiceMeshRequest;
|
||||
|
||||
UpdateServiceMeshRequest::UpdateServiceMeshRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{
|
||||
setResourcePath("/servicemesh/[ServiceMeshId]");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
UpdateServiceMeshRequest::~UpdateServiceMeshRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateServiceMeshRequest::getServiceMeshId()const
|
||||
{
|
||||
return serviceMeshId_;
|
||||
}
|
||||
|
||||
void UpdateServiceMeshRequest::setServiceMeshId(const std::string& serviceMeshId)
|
||||
{
|
||||
serviceMeshId_ = serviceMeshId;
|
||||
setParameter("ServiceMeshId", serviceMeshId);
|
||||
}
|
||||
|
||||
44
cs/src/model/UpdateServiceMeshResult.cc
Normal file
44
cs/src/model/UpdateServiceMeshResult.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/UpdateServiceMeshResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CS;
|
||||
using namespace AlibabaCloud::CS::Model;
|
||||
|
||||
UpdateServiceMeshResult::UpdateServiceMeshResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateServiceMeshResult::UpdateServiceMeshResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateServiceMeshResult::~UpdateServiceMeshResult()
|
||||
{}
|
||||
|
||||
void UpdateServiceMeshResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user