@@ -27,22 +27,30 @@ set(cs_public_header_model
|
||||
include/alibabacloud/cs/model/RevokeClusterTokenResult.h
|
||||
include/alibabacloud/cs/model/AttachInstancesRequest.h
|
||||
include/alibabacloud/cs/model/AttachInstancesResult.h
|
||||
include/alibabacloud/cs/model/CreateClusterByResourcesGroupRequest.h
|
||||
include/alibabacloud/cs/model/CreateClusterByResourcesGroupResult.h
|
||||
include/alibabacloud/cs/model/CheckAliyunCSServiceRoleRequest.h
|
||||
include/alibabacloud/cs/model/CheckAliyunCSServiceRoleResult.h
|
||||
include/alibabacloud/cs/model/DescribeClusterCertsRequest.h
|
||||
include/alibabacloud/cs/model/DescribeClusterCertsResult.h
|
||||
include/alibabacloud/cs/model/DescribeClusterAttachScriptsRequest.h
|
||||
include/alibabacloud/cs/model/DescribeClusterAttachScriptsResult.h
|
||||
include/alibabacloud/cs/model/DeleteClusterRequest.h
|
||||
include/alibabacloud/cs/model/DeleteClusterResult.h
|
||||
include/alibabacloud/cs/model/DescribeClusterNodesRequest.h
|
||||
include/alibabacloud/cs/model/DescribeClusterNodesResult.h
|
||||
include/alibabacloud/cs/model/ModifyClusterRequest.h
|
||||
include/alibabacloud/cs/model/ModifyClusterResult.h
|
||||
include/alibabacloud/cs/model/DescribeApiVersionRequest.h
|
||||
include/alibabacloud/cs/model/DescribeApiVersionResult.h
|
||||
include/alibabacloud/cs/model/ScaleOutClusterRequest.h
|
||||
include/alibabacloud/cs/model/ScaleOutClusterResult.h
|
||||
include/alibabacloud/cs/model/DescribeClusterLogsRequest.h
|
||||
include/alibabacloud/cs/model/DescribeClusterLogsResult.h
|
||||
include/alibabacloud/cs/model/DescribeClusterDetailRequest.h
|
||||
include/alibabacloud/cs/model/DescribeClusterDetailResult.h
|
||||
include/alibabacloud/cs/model/DescribeClusterUserKubeconfigRequest.h
|
||||
include/alibabacloud/cs/model/DescribeClusterUserKubeconfigResult.h
|
||||
include/alibabacloud/cs/model/DescribeClusterDetailRequest.h
|
||||
include/alibabacloud/cs/model/DescribeClusterDetailResult.h
|
||||
include/alibabacloud/cs/model/ResetClusterNodeRequest.h
|
||||
include/alibabacloud/cs/model/ResetClusterNodeResult.h
|
||||
include/alibabacloud/cs/model/ScaleClusterRequest.h
|
||||
@@ -53,6 +61,8 @@ set(cs_public_header_model
|
||||
include/alibabacloud/cs/model/DownloadClusterNodeCertsResult.h
|
||||
include/alibabacloud/cs/model/CreateClusterRequest.h
|
||||
include/alibabacloud/cs/model/CreateClusterResult.h
|
||||
include/alibabacloud/cs/model/DeleteClusterNodesRequest.h
|
||||
include/alibabacloud/cs/model/DeleteClusterNodesResult.h
|
||||
include/alibabacloud/cs/model/DeleteClusterNodeRequest.h
|
||||
include/alibabacloud/cs/model/DeleteClusterNodeResult.h )
|
||||
|
||||
@@ -64,22 +74,30 @@ set(cs_src
|
||||
src/model/RevokeClusterTokenResult.cc
|
||||
src/model/AttachInstancesRequest.cc
|
||||
src/model/AttachInstancesResult.cc
|
||||
src/model/CreateClusterByResourcesGroupRequest.cc
|
||||
src/model/CreateClusterByResourcesGroupResult.cc
|
||||
src/model/CheckAliyunCSServiceRoleRequest.cc
|
||||
src/model/CheckAliyunCSServiceRoleResult.cc
|
||||
src/model/DescribeClusterCertsRequest.cc
|
||||
src/model/DescribeClusterCertsResult.cc
|
||||
src/model/DescribeClusterAttachScriptsRequest.cc
|
||||
src/model/DescribeClusterAttachScriptsResult.cc
|
||||
src/model/DeleteClusterRequest.cc
|
||||
src/model/DeleteClusterResult.cc
|
||||
src/model/DescribeClusterNodesRequest.cc
|
||||
src/model/DescribeClusterNodesResult.cc
|
||||
src/model/ModifyClusterRequest.cc
|
||||
src/model/ModifyClusterResult.cc
|
||||
src/model/DescribeApiVersionRequest.cc
|
||||
src/model/DescribeApiVersionResult.cc
|
||||
src/model/ScaleOutClusterRequest.cc
|
||||
src/model/ScaleOutClusterResult.cc
|
||||
src/model/DescribeClusterLogsRequest.cc
|
||||
src/model/DescribeClusterLogsResult.cc
|
||||
src/model/DescribeClusterDetailRequest.cc
|
||||
src/model/DescribeClusterDetailResult.cc
|
||||
src/model/DescribeClusterUserKubeconfigRequest.cc
|
||||
src/model/DescribeClusterUserKubeconfigResult.cc
|
||||
src/model/DescribeClusterDetailRequest.cc
|
||||
src/model/DescribeClusterDetailResult.cc
|
||||
src/model/ResetClusterNodeRequest.cc
|
||||
src/model/ResetClusterNodeResult.cc
|
||||
src/model/ScaleClusterRequest.cc
|
||||
@@ -90,6 +108,8 @@ set(cs_src
|
||||
src/model/DownloadClusterNodeCertsResult.cc
|
||||
src/model/CreateClusterRequest.cc
|
||||
src/model/CreateClusterResult.cc
|
||||
src/model/DeleteClusterNodesRequest.cc
|
||||
src/model/DeleteClusterNodesResult.cc
|
||||
src/model/DeleteClusterNodeRequest.cc
|
||||
src/model/DeleteClusterNodeResult.cc )
|
||||
|
||||
|
||||
@@ -28,22 +28,30 @@
|
||||
#include "model/RevokeClusterTokenResult.h"
|
||||
#include "model/AttachInstancesRequest.h"
|
||||
#include "model/AttachInstancesResult.h"
|
||||
#include "model/CreateClusterByResourcesGroupRequest.h"
|
||||
#include "model/CreateClusterByResourcesGroupResult.h"
|
||||
#include "model/CheckAliyunCSServiceRoleRequest.h"
|
||||
#include "model/CheckAliyunCSServiceRoleResult.h"
|
||||
#include "model/DescribeClusterCertsRequest.h"
|
||||
#include "model/DescribeClusterCertsResult.h"
|
||||
#include "model/DescribeClusterAttachScriptsRequest.h"
|
||||
#include "model/DescribeClusterAttachScriptsResult.h"
|
||||
#include "model/DeleteClusterRequest.h"
|
||||
#include "model/DeleteClusterResult.h"
|
||||
#include "model/DescribeClusterNodesRequest.h"
|
||||
#include "model/DescribeClusterNodesResult.h"
|
||||
#include "model/ModifyClusterRequest.h"
|
||||
#include "model/ModifyClusterResult.h"
|
||||
#include "model/DescribeApiVersionRequest.h"
|
||||
#include "model/DescribeApiVersionResult.h"
|
||||
#include "model/ScaleOutClusterRequest.h"
|
||||
#include "model/ScaleOutClusterResult.h"
|
||||
#include "model/DescribeClusterLogsRequest.h"
|
||||
#include "model/DescribeClusterLogsResult.h"
|
||||
#include "model/DescribeClusterDetailRequest.h"
|
||||
#include "model/DescribeClusterDetailResult.h"
|
||||
#include "model/DescribeClusterUserKubeconfigRequest.h"
|
||||
#include "model/DescribeClusterUserKubeconfigResult.h"
|
||||
#include "model/DescribeClusterDetailRequest.h"
|
||||
#include "model/DescribeClusterDetailResult.h"
|
||||
#include "model/ResetClusterNodeRequest.h"
|
||||
#include "model/ResetClusterNodeResult.h"
|
||||
#include "model/ScaleClusterRequest.h"
|
||||
@@ -54,6 +62,8 @@
|
||||
#include "model/DownloadClusterNodeCertsResult.h"
|
||||
#include "model/CreateClusterRequest.h"
|
||||
#include "model/CreateClusterResult.h"
|
||||
#include "model/DeleteClusterNodesRequest.h"
|
||||
#include "model/DeleteClusterNodesResult.h"
|
||||
#include "model/DeleteClusterNodeRequest.h"
|
||||
#include "model/DeleteClusterNodeResult.h"
|
||||
|
||||
@@ -74,30 +84,42 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::AttachInstancesResult> AttachInstancesOutcome;
|
||||
typedef std::future<AttachInstancesOutcome> AttachInstancesOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::AttachInstancesRequest&, const AttachInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AttachInstancesAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateClusterByResourcesGroupResult> CreateClusterByResourcesGroupOutcome;
|
||||
typedef std::future<CreateClusterByResourcesGroupOutcome> CreateClusterByResourcesGroupOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::CreateClusterByResourcesGroupRequest&, const CreateClusterByResourcesGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateClusterByResourcesGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::CheckAliyunCSServiceRoleResult> CheckAliyunCSServiceRoleOutcome;
|
||||
typedef std::future<CheckAliyunCSServiceRoleOutcome> CheckAliyunCSServiceRoleOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::CheckAliyunCSServiceRoleRequest&, const CheckAliyunCSServiceRoleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckAliyunCSServiceRoleAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeClusterCertsResult> DescribeClusterCertsOutcome;
|
||||
typedef std::future<DescribeClusterCertsOutcome> DescribeClusterCertsOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::DescribeClusterCertsRequest&, const DescribeClusterCertsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeClusterCertsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeClusterAttachScriptsResult> DescribeClusterAttachScriptsOutcome;
|
||||
typedef std::future<DescribeClusterAttachScriptsOutcome> DescribeClusterAttachScriptsOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::DescribeClusterAttachScriptsRequest&, const DescribeClusterAttachScriptsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeClusterAttachScriptsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteClusterResult> DeleteClusterOutcome;
|
||||
typedef std::future<DeleteClusterOutcome> DeleteClusterOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::DeleteClusterRequest&, const DeleteClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteClusterAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeClusterNodesResult> DescribeClusterNodesOutcome;
|
||||
typedef std::future<DescribeClusterNodesOutcome> DescribeClusterNodesOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::DescribeClusterNodesRequest&, const DescribeClusterNodesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeClusterNodesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyClusterResult> ModifyClusterOutcome;
|
||||
typedef std::future<ModifyClusterOutcome> ModifyClusterOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::ModifyClusterRequest&, const ModifyClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyClusterAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeApiVersionResult> DescribeApiVersionOutcome;
|
||||
typedef std::future<DescribeApiVersionOutcome> DescribeApiVersionOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::DescribeApiVersionRequest&, const DescribeApiVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeApiVersionAsyncHandler;
|
||||
typedef Outcome<Error, Model::ScaleOutClusterResult> ScaleOutClusterOutcome;
|
||||
typedef std::future<ScaleOutClusterOutcome> ScaleOutClusterOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::ScaleOutClusterRequest&, const ScaleOutClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ScaleOutClusterAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeClusterLogsResult> DescribeClusterLogsOutcome;
|
||||
typedef std::future<DescribeClusterLogsOutcome> DescribeClusterLogsOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::DescribeClusterLogsRequest&, const DescribeClusterLogsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeClusterLogsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeClusterDetailResult> DescribeClusterDetailOutcome;
|
||||
typedef std::future<DescribeClusterDetailOutcome> DescribeClusterDetailOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::DescribeClusterDetailRequest&, const DescribeClusterDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeClusterDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeClusterUserKubeconfigResult> DescribeClusterUserKubeconfigOutcome;
|
||||
typedef std::future<DescribeClusterUserKubeconfigOutcome> DescribeClusterUserKubeconfigOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::DescribeClusterUserKubeconfigRequest&, const DescribeClusterUserKubeconfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeClusterUserKubeconfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeClusterDetailResult> DescribeClusterDetailOutcome;
|
||||
typedef std::future<DescribeClusterDetailOutcome> DescribeClusterDetailOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::DescribeClusterDetailRequest&, const DescribeClusterDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeClusterDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::ResetClusterNodeResult> ResetClusterNodeOutcome;
|
||||
typedef std::future<ResetClusterNodeOutcome> ResetClusterNodeOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::ResetClusterNodeRequest&, const ResetClusterNodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResetClusterNodeAsyncHandler;
|
||||
@@ -113,6 +135,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateClusterResult> CreateClusterOutcome;
|
||||
typedef std::future<CreateClusterOutcome> CreateClusterOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::CreateClusterRequest&, const CreateClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateClusterAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteClusterNodesResult> DeleteClusterNodesOutcome;
|
||||
typedef std::future<DeleteClusterNodesOutcome> DeleteClusterNodesOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::DeleteClusterNodesRequest&, const DeleteClusterNodesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteClusterNodesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteClusterNodeResult> DeleteClusterNodeOutcome;
|
||||
typedef std::future<DeleteClusterNodeOutcome> DeleteClusterNodeOutcomeCallable;
|
||||
typedef std::function<void(const CSClient*, const Model::DeleteClusterNodeRequest&, const DeleteClusterNodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteClusterNodeAsyncHandler;
|
||||
@@ -130,30 +155,42 @@ namespace AlibabaCloud
|
||||
AttachInstancesOutcome attachInstances(const Model::AttachInstancesRequest &request)const;
|
||||
void attachInstancesAsync(const Model::AttachInstancesRequest& request, const AttachInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AttachInstancesOutcomeCallable attachInstancesCallable(const Model::AttachInstancesRequest& request) const;
|
||||
CreateClusterByResourcesGroupOutcome createClusterByResourcesGroup(const Model::CreateClusterByResourcesGroupRequest &request)const;
|
||||
void createClusterByResourcesGroupAsync(const Model::CreateClusterByResourcesGroupRequest& request, const CreateClusterByResourcesGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateClusterByResourcesGroupOutcomeCallable createClusterByResourcesGroupCallable(const Model::CreateClusterByResourcesGroupRequest& request) const;
|
||||
CheckAliyunCSServiceRoleOutcome checkAliyunCSServiceRole(const Model::CheckAliyunCSServiceRoleRequest &request)const;
|
||||
void checkAliyunCSServiceRoleAsync(const Model::CheckAliyunCSServiceRoleRequest& request, const CheckAliyunCSServiceRoleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CheckAliyunCSServiceRoleOutcomeCallable checkAliyunCSServiceRoleCallable(const Model::CheckAliyunCSServiceRoleRequest& request) const;
|
||||
DescribeClusterCertsOutcome describeClusterCerts(const Model::DescribeClusterCertsRequest &request)const;
|
||||
void describeClusterCertsAsync(const Model::DescribeClusterCertsRequest& request, const DescribeClusterCertsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeClusterCertsOutcomeCallable describeClusterCertsCallable(const Model::DescribeClusterCertsRequest& request) const;
|
||||
DescribeClusterAttachScriptsOutcome describeClusterAttachScripts(const Model::DescribeClusterAttachScriptsRequest &request)const;
|
||||
void describeClusterAttachScriptsAsync(const Model::DescribeClusterAttachScriptsRequest& request, const DescribeClusterAttachScriptsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeClusterAttachScriptsOutcomeCallable describeClusterAttachScriptsCallable(const Model::DescribeClusterAttachScriptsRequest& request) const;
|
||||
DeleteClusterOutcome deleteCluster(const Model::DeleteClusterRequest &request)const;
|
||||
void deleteClusterAsync(const Model::DeleteClusterRequest& request, const DeleteClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteClusterOutcomeCallable deleteClusterCallable(const Model::DeleteClusterRequest& request) const;
|
||||
DescribeClusterNodesOutcome describeClusterNodes(const Model::DescribeClusterNodesRequest &request)const;
|
||||
void describeClusterNodesAsync(const Model::DescribeClusterNodesRequest& request, const DescribeClusterNodesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeClusterNodesOutcomeCallable describeClusterNodesCallable(const Model::DescribeClusterNodesRequest& request) const;
|
||||
ModifyClusterOutcome modifyCluster(const Model::ModifyClusterRequest &request)const;
|
||||
void modifyClusterAsync(const Model::ModifyClusterRequest& request, const ModifyClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyClusterOutcomeCallable modifyClusterCallable(const Model::ModifyClusterRequest& request) const;
|
||||
DescribeApiVersionOutcome describeApiVersion(const Model::DescribeApiVersionRequest &request)const;
|
||||
void describeApiVersionAsync(const Model::DescribeApiVersionRequest& request, const DescribeApiVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeApiVersionOutcomeCallable describeApiVersionCallable(const Model::DescribeApiVersionRequest& request) const;
|
||||
ScaleOutClusterOutcome scaleOutCluster(const Model::ScaleOutClusterRequest &request)const;
|
||||
void scaleOutClusterAsync(const Model::ScaleOutClusterRequest& request, const ScaleOutClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ScaleOutClusterOutcomeCallable scaleOutClusterCallable(const Model::ScaleOutClusterRequest& request) const;
|
||||
DescribeClusterLogsOutcome describeClusterLogs(const Model::DescribeClusterLogsRequest &request)const;
|
||||
void describeClusterLogsAsync(const Model::DescribeClusterLogsRequest& request, const DescribeClusterLogsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeClusterLogsOutcomeCallable describeClusterLogsCallable(const Model::DescribeClusterLogsRequest& request) const;
|
||||
DescribeClusterDetailOutcome describeClusterDetail(const Model::DescribeClusterDetailRequest &request)const;
|
||||
void describeClusterDetailAsync(const Model::DescribeClusterDetailRequest& request, const DescribeClusterDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeClusterDetailOutcomeCallable describeClusterDetailCallable(const Model::DescribeClusterDetailRequest& request) const;
|
||||
DescribeClusterUserKubeconfigOutcome describeClusterUserKubeconfig(const Model::DescribeClusterUserKubeconfigRequest &request)const;
|
||||
void describeClusterUserKubeconfigAsync(const Model::DescribeClusterUserKubeconfigRequest& request, const DescribeClusterUserKubeconfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeClusterUserKubeconfigOutcomeCallable describeClusterUserKubeconfigCallable(const Model::DescribeClusterUserKubeconfigRequest& request) const;
|
||||
DescribeClusterDetailOutcome describeClusterDetail(const Model::DescribeClusterDetailRequest &request)const;
|
||||
void describeClusterDetailAsync(const Model::DescribeClusterDetailRequest& request, const DescribeClusterDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeClusterDetailOutcomeCallable describeClusterDetailCallable(const Model::DescribeClusterDetailRequest& request) const;
|
||||
ResetClusterNodeOutcome resetClusterNode(const Model::ResetClusterNodeRequest &request)const;
|
||||
void resetClusterNodeAsync(const Model::ResetClusterNodeRequest& request, const ResetClusterNodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ResetClusterNodeOutcomeCallable resetClusterNodeCallable(const Model::ResetClusterNodeRequest& request) const;
|
||||
@@ -169,6 +206,9 @@ namespace AlibabaCloud
|
||||
CreateClusterOutcome createCluster(const Model::CreateClusterRequest &request)const;
|
||||
void createClusterAsync(const Model::CreateClusterRequest& request, const CreateClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateClusterOutcomeCallable createClusterCallable(const Model::CreateClusterRequest& request) const;
|
||||
DeleteClusterNodesOutcome deleteClusterNodes(const Model::DeleteClusterNodesRequest &request)const;
|
||||
void deleteClusterNodesAsync(const Model::DeleteClusterNodesRequest& request, const DeleteClusterNodesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteClusterNodesOutcomeCallable deleteClusterNodesCallable(const Model::DeleteClusterNodesRequest& request) const;
|
||||
DeleteClusterNodeOutcome deleteClusterNode(const Model::DeleteClusterNodeRequest &request)const;
|
||||
void deleteClusterNodeAsync(const Model::DeleteClusterNodeRequest& request, const DeleteClusterNodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteClusterNodeOutcomeCallable deleteClusterNodeCallable(const Model::DeleteClusterNodeRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CS_MODEL_CREATECLUSTERBYRESOURCESGROUPREQUEST_H_
|
||||
#define ALIBABACLOUD_CS_MODEL_CREATECLUSTERBYRESOURCESGROUPREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/cs/CSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CS_EXPORT CreateClusterByResourcesGroupRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateClusterByResourcesGroupRequest();
|
||||
~CreateClusterByResourcesGroupRequest();
|
||||
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
|
||||
private:
|
||||
std::string resourceGroupId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CS_MODEL_CREATECLUSTERBYRESOURCESGROUPREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CS_MODEL_CREATECLUSTERBYRESOURCESGROUPRESULT_H_
|
||||
#define ALIBABACLOUD_CS_MODEL_CREATECLUSTERBYRESOURCESGROUPRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cs/CSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CS_EXPORT CreateClusterByResourcesGroupResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateClusterByResourcesGroupResult();
|
||||
explicit CreateClusterByResourcesGroupResult(const std::string &payload);
|
||||
~CreateClusterByResourcesGroupResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CS_MODEL_CREATECLUSTERBYRESOURCESGROUPRESULT_H_
|
||||
48
cs/include/alibabacloud/cs/model/DeleteClusterNodesRequest.h
Normal file
48
cs/include/alibabacloud/cs/model/DeleteClusterNodesRequest.h
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CS_MODEL_DELETECLUSTERNODESREQUEST_H_
|
||||
#define ALIBABACLOUD_CS_MODEL_DELETECLUSTERNODESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/cs/CSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CS_EXPORT DeleteClusterNodesRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteClusterNodesRequest();
|
||||
~DeleteClusterNodesRequest();
|
||||
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CS_MODEL_DELETECLUSTERNODESREQUEST_H_
|
||||
49
cs/include/alibabacloud/cs/model/DeleteClusterNodesResult.h
Normal file
49
cs/include/alibabacloud/cs/model/DeleteClusterNodesResult.h
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CS_MODEL_DELETECLUSTERNODESRESULT_H_
|
||||
#define ALIBABACLOUD_CS_MODEL_DELETECLUSTERNODESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cs/CSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CS_EXPORT DeleteClusterNodesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteClusterNodesResult();
|
||||
explicit DeleteClusterNodesResult(const std::string &payload);
|
||||
~DeleteClusterNodesResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CS_MODEL_DELETECLUSTERNODESRESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CS_MODEL_DESCRIBECLUSTERATTACHSCRIPTSREQUEST_H_
|
||||
#define ALIBABACLOUD_CS_MODEL_DESCRIBECLUSTERATTACHSCRIPTSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/cs/CSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CS_EXPORT DescribeClusterAttachScriptsRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeClusterAttachScriptsRequest();
|
||||
~DescribeClusterAttachScriptsRequest();
|
||||
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CS_MODEL_DESCRIBECLUSTERATTACHSCRIPTSREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CS_MODEL_DESCRIBECLUSTERATTACHSCRIPTSRESULT_H_
|
||||
#define ALIBABACLOUD_CS_MODEL_DESCRIBECLUSTERATTACHSCRIPTSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cs/CSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CS_EXPORT DescribeClusterAttachScriptsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeClusterAttachScriptsResult();
|
||||
explicit DescribeClusterAttachScriptsResult(const std::string &payload);
|
||||
~DescribeClusterAttachScriptsResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CS_MODEL_DESCRIBECLUSTERATTACHSCRIPTSRESULT_H_
|
||||
@@ -35,10 +35,13 @@ namespace AlibabaCloud
|
||||
DescribeClusterUserKubeconfigRequest();
|
||||
~DescribeClusterUserKubeconfigRequest();
|
||||
|
||||
bool getPrivateIpAddress()const;
|
||||
void setPrivateIpAddress(bool privateIpAddress);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
bool privateIpAddress_;
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
|
||||
48
cs/include/alibabacloud/cs/model/ModifyClusterRequest.h
Normal file
48
cs/include/alibabacloud/cs/model/ModifyClusterRequest.h
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CS_MODEL_MODIFYCLUSTERREQUEST_H_
|
||||
#define ALIBABACLOUD_CS_MODEL_MODIFYCLUSTERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/cs/CSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CS_EXPORT ModifyClusterRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyClusterRequest();
|
||||
~ModifyClusterRequest();
|
||||
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CS_MODEL_MODIFYCLUSTERREQUEST_H_
|
||||
49
cs/include/alibabacloud/cs/model/ModifyClusterResult.h
Normal file
49
cs/include/alibabacloud/cs/model/ModifyClusterResult.h
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CS_MODEL_MODIFYCLUSTERRESULT_H_
|
||||
#define ALIBABACLOUD_CS_MODEL_MODIFYCLUSTERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cs/CSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CS_EXPORT ModifyClusterResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyClusterResult();
|
||||
explicit ModifyClusterResult(const std::string &payload);
|
||||
~ModifyClusterResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CS_MODEL_MODIFYCLUSTERRESULT_H_
|
||||
48
cs/include/alibabacloud/cs/model/ScaleOutClusterRequest.h
Normal file
48
cs/include/alibabacloud/cs/model/ScaleOutClusterRequest.h
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CS_MODEL_SCALEOUTCLUSTERREQUEST_H_
|
||||
#define ALIBABACLOUD_CS_MODEL_SCALEOUTCLUSTERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/cs/CSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CS_EXPORT ScaleOutClusterRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ScaleOutClusterRequest();
|
||||
~ScaleOutClusterRequest();
|
||||
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CS_MODEL_SCALEOUTCLUSTERREQUEST_H_
|
||||
49
cs/include/alibabacloud/cs/model/ScaleOutClusterResult.h
Normal file
49
cs/include/alibabacloud/cs/model/ScaleOutClusterResult.h
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CS_MODEL_SCALEOUTCLUSTERRESULT_H_
|
||||
#define ALIBABACLOUD_CS_MODEL_SCALEOUTCLUSTERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cs/CSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CS_EXPORT ScaleOutClusterResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ScaleOutClusterResult();
|
||||
explicit ScaleOutClusterResult(const std::string &payload);
|
||||
~ScaleOutClusterResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CS_MODEL_SCALEOUTCLUSTERRESULT_H_
|
||||
@@ -159,6 +159,42 @@ CSClient::AttachInstancesOutcomeCallable CSClient::attachInstancesCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::CreateClusterByResourcesGroupOutcome CSClient::createClusterByResourcesGroup(const CreateClusterByResourcesGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateClusterByResourcesGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateClusterByResourcesGroupOutcome(CreateClusterByResourcesGroupResult(outcome.result()));
|
||||
else
|
||||
return CreateClusterByResourcesGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::createClusterByResourcesGroupAsync(const CreateClusterByResourcesGroupRequest& request, const CreateClusterByResourcesGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createClusterByResourcesGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::CreateClusterByResourcesGroupOutcomeCallable CSClient::createClusterByResourcesGroupCallable(const CreateClusterByResourcesGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateClusterByResourcesGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createClusterByResourcesGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::CheckAliyunCSServiceRoleOutcome CSClient::checkAliyunCSServiceRole(const CheckAliyunCSServiceRoleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -231,6 +267,42 @@ CSClient::DescribeClusterCertsOutcomeCallable CSClient::describeClusterCertsCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::DescribeClusterAttachScriptsOutcome CSClient::describeClusterAttachScripts(const DescribeClusterAttachScriptsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeClusterAttachScriptsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeClusterAttachScriptsOutcome(DescribeClusterAttachScriptsResult(outcome.result()));
|
||||
else
|
||||
return DescribeClusterAttachScriptsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::describeClusterAttachScriptsAsync(const DescribeClusterAttachScriptsRequest& request, const DescribeClusterAttachScriptsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeClusterAttachScripts(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::DescribeClusterAttachScriptsOutcomeCallable CSClient::describeClusterAttachScriptsCallable(const DescribeClusterAttachScriptsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeClusterAttachScriptsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeClusterAttachScripts(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,42 @@ CSClient::DescribeClusterNodesOutcomeCallable CSClient::describeClusterNodesCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::ModifyClusterOutcome CSClient::modifyCluster(const ModifyClusterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyClusterOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyClusterOutcome(ModifyClusterResult(outcome.result()));
|
||||
else
|
||||
return ModifyClusterOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::modifyClusterAsync(const ModifyClusterRequest& request, const ModifyClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyCluster(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::ModifyClusterOutcomeCallable CSClient::modifyClusterCallable(const ModifyClusterRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyClusterOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyCluster(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::DescribeApiVersionOutcome CSClient::describeApiVersion(const DescribeApiVersionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -339,6 +447,42 @@ CSClient::DescribeApiVersionOutcomeCallable CSClient::describeApiVersionCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::ScaleOutClusterOutcome CSClient::scaleOutCluster(const ScaleOutClusterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ScaleOutClusterOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ScaleOutClusterOutcome(ScaleOutClusterResult(outcome.result()));
|
||||
else
|
||||
return ScaleOutClusterOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::scaleOutClusterAsync(const ScaleOutClusterRequest& request, const ScaleOutClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, scaleOutCluster(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::ScaleOutClusterOutcomeCallable CSClient::scaleOutClusterCallable(const ScaleOutClusterRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ScaleOutClusterOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->scaleOutCluster(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::DescribeClusterLogsOutcome CSClient::describeClusterLogs(const DescribeClusterLogsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -375,42 +519,6 @@ CSClient::DescribeClusterLogsOutcomeCallable CSClient::describeClusterLogsCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::DescribeClusterDetailOutcome CSClient::describeClusterDetail(const DescribeClusterDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeClusterDetailOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeClusterDetailOutcome(DescribeClusterDetailResult(outcome.result()));
|
||||
else
|
||||
return DescribeClusterDetailOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::describeClusterDetailAsync(const DescribeClusterDetailRequest& request, const DescribeClusterDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeClusterDetail(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::DescribeClusterDetailOutcomeCallable CSClient::describeClusterDetailCallable(const DescribeClusterDetailRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeClusterDetailOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeClusterDetail(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::DescribeClusterUserKubeconfigOutcome CSClient::describeClusterUserKubeconfig(const DescribeClusterUserKubeconfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -447,6 +555,42 @@ CSClient::DescribeClusterUserKubeconfigOutcomeCallable CSClient::describeCluster
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::DescribeClusterDetailOutcome CSClient::describeClusterDetail(const DescribeClusterDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeClusterDetailOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeClusterDetailOutcome(DescribeClusterDetailResult(outcome.result()));
|
||||
else
|
||||
return DescribeClusterDetailOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::describeClusterDetailAsync(const DescribeClusterDetailRequest& request, const DescribeClusterDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeClusterDetail(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::DescribeClusterDetailOutcomeCallable CSClient::describeClusterDetailCallable(const DescribeClusterDetailRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeClusterDetailOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeClusterDetail(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::ResetClusterNodeOutcome CSClient::resetClusterNode(const ResetClusterNodeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -627,6 +771,42 @@ CSClient::CreateClusterOutcomeCallable CSClient::createClusterCallable(const Cre
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::DeleteClusterNodesOutcome CSClient::deleteClusterNodes(const DeleteClusterNodesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteClusterNodesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteClusterNodesOutcome(DeleteClusterNodesResult(outcome.result()));
|
||||
else
|
||||
return DeleteClusterNodesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CSClient::deleteClusterNodesAsync(const DeleteClusterNodesRequest& request, const DeleteClusterNodesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteClusterNodes(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CSClient::DeleteClusterNodesOutcomeCallable CSClient::deleteClusterNodesCallable(const DeleteClusterNodesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteClusterNodesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteClusterNodes(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CSClient::DeleteClusterNodeOutcome CSClient::deleteClusterNode(const DeleteClusterNodeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -33,6 +33,6 @@ std::string AttachInstancesRequest::getClusterId()const
|
||||
void AttachInstancesRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ AttachInstancesResult::~AttachInstancesResult()
|
||||
|
||||
void AttachInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
38
cs/src/model/CreateClusterByResourcesGroupRequest.cc
Normal file
38
cs/src/model/CreateClusterByResourcesGroupRequest.cc
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* 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/CreateClusterByResourcesGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::CS::Model::CreateClusterByResourcesGroupRequest;
|
||||
|
||||
CreateClusterByResourcesGroupRequest::CreateClusterByResourcesGroupRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{}
|
||||
|
||||
CreateClusterByResourcesGroupRequest::~CreateClusterByResourcesGroupRequest()
|
||||
{}
|
||||
|
||||
std::string CreateClusterByResourcesGroupRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateClusterByResourcesGroupRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setCoreParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
48
cs/src/model/CreateClusterByResourcesGroupResult.cc
Normal file
48
cs/src/model/CreateClusterByResourcesGroupResult.cc
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cs/model/CreateClusterByResourcesGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CS;
|
||||
using namespace AlibabaCloud::CS::Model;
|
||||
|
||||
CreateClusterByResourcesGroupResult::CreateClusterByResourcesGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateClusterByResourcesGroupResult::CreateClusterByResourcesGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateClusterByResourcesGroupResult::~CreateClusterByResourcesGroupResult()
|
||||
{}
|
||||
|
||||
void CreateClusterByResourcesGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateClusterResult::~CreateClusterResult()
|
||||
|
||||
void CreateClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
38
cs/src/model/DeleteClusterNodesRequest.cc
Normal file
38
cs/src/model/DeleteClusterNodesRequest.cc
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* 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/DeleteClusterNodesRequest.h>
|
||||
|
||||
using AlibabaCloud::CS::Model::DeleteClusterNodesRequest;
|
||||
|
||||
DeleteClusterNodesRequest::DeleteClusterNodesRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{}
|
||||
|
||||
DeleteClusterNodesRequest::~DeleteClusterNodesRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteClusterNodesRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteClusterNodesRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
48
cs/src/model/DeleteClusterNodesResult.cc
Normal file
48
cs/src/model/DeleteClusterNodesResult.cc
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cs/model/DeleteClusterNodesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CS;
|
||||
using namespace AlibabaCloud::CS::Model;
|
||||
|
||||
DeleteClusterNodesResult::DeleteClusterNodesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteClusterNodesResult::DeleteClusterNodesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteClusterNodesResult::~DeleteClusterNodesResult()
|
||||
{}
|
||||
|
||||
void DeleteClusterNodesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,6 +33,6 @@ std::string DeleteClusterRequest::getClusterId()const
|
||||
void DeleteClusterRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DeleteClusterResult::~DeleteClusterResult()
|
||||
|
||||
void DeleteClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeApiVersionResult::~DescribeApiVersionResult()
|
||||
|
||||
void DescribeApiVersionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
38
cs/src/model/DescribeClusterAttachScriptsRequest.cc
Normal file
38
cs/src/model/DescribeClusterAttachScriptsRequest.cc
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* 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/DescribeClusterAttachScriptsRequest.h>
|
||||
|
||||
using AlibabaCloud::CS::Model::DescribeClusterAttachScriptsRequest;
|
||||
|
||||
DescribeClusterAttachScriptsRequest::DescribeClusterAttachScriptsRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{}
|
||||
|
||||
DescribeClusterAttachScriptsRequest::~DescribeClusterAttachScriptsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeClusterAttachScriptsRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeClusterAttachScriptsRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
48
cs/src/model/DescribeClusterAttachScriptsResult.cc
Normal file
48
cs/src/model/DescribeClusterAttachScriptsResult.cc
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cs/model/DescribeClusterAttachScriptsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CS;
|
||||
using namespace AlibabaCloud::CS::Model;
|
||||
|
||||
DescribeClusterAttachScriptsResult::DescribeClusterAttachScriptsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeClusterAttachScriptsResult::DescribeClusterAttachScriptsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeClusterAttachScriptsResult::~DescribeClusterAttachScriptsResult()
|
||||
{}
|
||||
|
||||
void DescribeClusterAttachScriptsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,6 +33,6 @@ std::string DescribeClusterCertsRequest::getClusterId()const
|
||||
void DescribeClusterCertsRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeClusterCertsResult::~DescribeClusterCertsResult()
|
||||
|
||||
void DescribeClusterCertsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,6 +33,6 @@ std::string DescribeClusterDetailRequest::getClusterId()const
|
||||
void DescribeClusterDetailRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeClusterDetailResult::~DescribeClusterDetailResult()
|
||||
|
||||
void DescribeClusterDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,6 +33,6 @@ std::string DescribeClusterEndpointsRequest::getClusterId()const
|
||||
void DescribeClusterEndpointsRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeClusterEndpointsResult::~DescribeClusterEndpointsResult()
|
||||
|
||||
void DescribeClusterEndpointsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,6 +33,6 @@ std::string DescribeClusterLogsRequest::getClusterId()const
|
||||
void DescribeClusterLogsRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeClusterLogsResult::~DescribeClusterLogsResult()
|
||||
|
||||
void DescribeClusterLogsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -25,6 +25,17 @@ DescribeClusterUserKubeconfigRequest::DescribeClusterUserKubeconfigRequest() :
|
||||
DescribeClusterUserKubeconfigRequest::~DescribeClusterUserKubeconfigRequest()
|
||||
{}
|
||||
|
||||
bool DescribeClusterUserKubeconfigRequest::getPrivateIpAddress()const
|
||||
{
|
||||
return privateIpAddress_;
|
||||
}
|
||||
|
||||
void DescribeClusterUserKubeconfigRequest::setPrivateIpAddress(bool privateIpAddress)
|
||||
{
|
||||
privateIpAddress_ = privateIpAddress;
|
||||
setCoreParameter("PrivateIpAddress", privateIpAddress ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeClusterUserKubeconfigRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
@@ -33,6 +44,6 @@ std::string DescribeClusterUserKubeconfigRequest::getClusterId()const
|
||||
void DescribeClusterUserKubeconfigRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeClusterUserKubeconfigResult::~DescribeClusterUserKubeconfigResult()
|
||||
|
||||
void DescribeClusterUserKubeconfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string DescribeClustersRequest::getClusterType()const
|
||||
void DescribeClustersRequest::setClusterType(const std::string& clusterType)
|
||||
{
|
||||
clusterType_ = clusterType;
|
||||
setParameter("ClusterType", clusterType);
|
||||
setCoreParameter("ClusterType", clusterType);
|
||||
}
|
||||
|
||||
std::string DescribeClustersRequest::getName()const
|
||||
@@ -44,6 +44,6 @@ std::string DescribeClustersRequest::getName()const
|
||||
void DescribeClustersRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeClustersResult::~DescribeClustersResult()
|
||||
|
||||
void DescribeClustersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
38
cs/src/model/ModifyClusterRequest.cc
Normal file
38
cs/src/model/ModifyClusterRequest.cc
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* 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/ModifyClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::CS::Model::ModifyClusterRequest;
|
||||
|
||||
ModifyClusterRequest::ModifyClusterRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{}
|
||||
|
||||
ModifyClusterRequest::~ModifyClusterRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyClusterRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ModifyClusterRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
48
cs/src/model/ModifyClusterResult.cc
Normal file
48
cs/src/model/ModifyClusterResult.cc
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cs/model/ModifyClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CS;
|
||||
using namespace AlibabaCloud::CS::Model;
|
||||
|
||||
ModifyClusterResult::ModifyClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyClusterResult::ModifyClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyClusterResult::~ModifyClusterResult()
|
||||
{}
|
||||
|
||||
void ModifyClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,6 +33,6 @@ std::string ScaleClusterRequest::getClusterId()const
|
||||
void ScaleClusterRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ ScaleClusterResult::~ScaleClusterResult()
|
||||
|
||||
void ScaleClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
38
cs/src/model/ScaleOutClusterRequest.cc
Normal file
38
cs/src/model/ScaleOutClusterRequest.cc
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* 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/ScaleOutClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::CS::Model::ScaleOutClusterRequest;
|
||||
|
||||
ScaleOutClusterRequest::ScaleOutClusterRequest() :
|
||||
RoaServiceRequest("cs", "2015-12-15")
|
||||
{}
|
||||
|
||||
ScaleOutClusterRequest::~ScaleOutClusterRequest()
|
||||
{}
|
||||
|
||||
std::string ScaleOutClusterRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ScaleOutClusterRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
48
cs/src/model/ScaleOutClusterResult.cc
Normal file
48
cs/src/model/ScaleOutClusterResult.cc
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cs/model/ScaleOutClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CS;
|
||||
using namespace AlibabaCloud::CS::Model;
|
||||
|
||||
ScaleOutClusterResult::ScaleOutClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ScaleOutClusterResult::ScaleOutClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ScaleOutClusterResult::~ScaleOutClusterResult()
|
||||
{}
|
||||
|
||||
void ScaleOutClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user