Generated 2018-03-13 for retailcloud.
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
#include "RetailcloudExport.h"
|
||||
#include "model/AddClusterNodeRequest.h"
|
||||
#include "model/AddClusterNodeResult.h"
|
||||
#include "model/AllocatePodConfigRequest.h"
|
||||
#include "model/AllocatePodConfigResult.h"
|
||||
#include "model/BatchAddServersRequest.h"
|
||||
#include "model/BatchAddServersResult.h"
|
||||
#include "model/BindNodeLabelRequest.h"
|
||||
@@ -86,6 +88,8 @@
|
||||
#include "model/DescribeAppEnvironmentDetailResult.h"
|
||||
#include "model/DescribeAppResourceAllocRequest.h"
|
||||
#include "model/DescribeAppResourceAllocResult.h"
|
||||
#include "model/DescribeClusterDetailRequest.h"
|
||||
#include "model/DescribeClusterDetailResult.h"
|
||||
#include "model/DescribeDatabasesRequest.h"
|
||||
#include "model/DescribeDatabasesResult.h"
|
||||
#include "model/DescribeDeployOrderDetailRequest.h"
|
||||
@@ -166,6 +170,10 @@
|
||||
#include "model/ScaleAppResult.h"
|
||||
#include "model/SetDeployPauseTypeRequest.h"
|
||||
#include "model/SetDeployPauseTypeResult.h"
|
||||
#include "model/SubmitInfoRequest.h"
|
||||
#include "model/SubmitInfoResult.h"
|
||||
#include "model/SyncPodInfoRequest.h"
|
||||
#include "model/SyncPodInfoResult.h"
|
||||
#include "model/UnbindNodeLabelRequest.h"
|
||||
#include "model/UnbindNodeLabelResult.h"
|
||||
#include "model/UpdateAppRequest.h"
|
||||
@@ -186,6 +194,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::AddClusterNodeResult> AddClusterNodeOutcome;
|
||||
typedef std::future<AddClusterNodeOutcome> AddClusterNodeOutcomeCallable;
|
||||
typedef std::function<void(const RetailcloudClient*, const Model::AddClusterNodeRequest&, const AddClusterNodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddClusterNodeAsyncHandler;
|
||||
typedef Outcome<Error, Model::AllocatePodConfigResult> AllocatePodConfigOutcome;
|
||||
typedef std::future<AllocatePodConfigOutcome> AllocatePodConfigOutcomeCallable;
|
||||
typedef std::function<void(const RetailcloudClient*, const Model::AllocatePodConfigRequest&, const AllocatePodConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AllocatePodConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::BatchAddServersResult> BatchAddServersOutcome;
|
||||
typedef std::future<BatchAddServersOutcome> BatchAddServersOutcomeCallable;
|
||||
typedef std::function<void(const RetailcloudClient*, const Model::BatchAddServersRequest&, const BatchAddServersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchAddServersAsyncHandler;
|
||||
@@ -279,6 +290,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeAppResourceAllocResult> DescribeAppResourceAllocOutcome;
|
||||
typedef std::future<DescribeAppResourceAllocOutcome> DescribeAppResourceAllocOutcomeCallable;
|
||||
typedef std::function<void(const RetailcloudClient*, const Model::DescribeAppResourceAllocRequest&, const DescribeAppResourceAllocOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAppResourceAllocAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeClusterDetailResult> DescribeClusterDetailOutcome;
|
||||
typedef std::future<DescribeClusterDetailOutcome> DescribeClusterDetailOutcomeCallable;
|
||||
typedef std::function<void(const RetailcloudClient*, const Model::DescribeClusterDetailRequest&, const DescribeClusterDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeClusterDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDatabasesResult> DescribeDatabasesOutcome;
|
||||
typedef std::future<DescribeDatabasesOutcome> DescribeDatabasesOutcomeCallable;
|
||||
typedef std::function<void(const RetailcloudClient*, const Model::DescribeDatabasesRequest&, const DescribeDatabasesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDatabasesAsyncHandler;
|
||||
@@ -399,6 +413,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::SetDeployPauseTypeResult> SetDeployPauseTypeOutcome;
|
||||
typedef std::future<SetDeployPauseTypeOutcome> SetDeployPauseTypeOutcomeCallable;
|
||||
typedef std::function<void(const RetailcloudClient*, const Model::SetDeployPauseTypeRequest&, const SetDeployPauseTypeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetDeployPauseTypeAsyncHandler;
|
||||
typedef Outcome<Error, Model::SubmitInfoResult> SubmitInfoOutcome;
|
||||
typedef std::future<SubmitInfoOutcome> SubmitInfoOutcomeCallable;
|
||||
typedef std::function<void(const RetailcloudClient*, const Model::SubmitInfoRequest&, const SubmitInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::SyncPodInfoResult> SyncPodInfoOutcome;
|
||||
typedef std::future<SyncPodInfoOutcome> SyncPodInfoOutcomeCallable;
|
||||
typedef std::function<void(const RetailcloudClient*, const Model::SyncPodInfoRequest&, const SyncPodInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SyncPodInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::UnbindNodeLabelResult> UnbindNodeLabelOutcome;
|
||||
typedef std::future<UnbindNodeLabelOutcome> UnbindNodeLabelOutcomeCallable;
|
||||
typedef std::function<void(const RetailcloudClient*, const Model::UnbindNodeLabelRequest&, const UnbindNodeLabelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnbindNodeLabelAsyncHandler;
|
||||
@@ -419,6 +439,9 @@ namespace AlibabaCloud
|
||||
AddClusterNodeOutcome addClusterNode(const Model::AddClusterNodeRequest &request)const;
|
||||
void addClusterNodeAsync(const Model::AddClusterNodeRequest& request, const AddClusterNodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddClusterNodeOutcomeCallable addClusterNodeCallable(const Model::AddClusterNodeRequest& request) const;
|
||||
AllocatePodConfigOutcome allocatePodConfig(const Model::AllocatePodConfigRequest &request)const;
|
||||
void allocatePodConfigAsync(const Model::AllocatePodConfigRequest& request, const AllocatePodConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AllocatePodConfigOutcomeCallable allocatePodConfigCallable(const Model::AllocatePodConfigRequest& request) const;
|
||||
BatchAddServersOutcome batchAddServers(const Model::BatchAddServersRequest &request)const;
|
||||
void batchAddServersAsync(const Model::BatchAddServersRequest& request, const BatchAddServersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BatchAddServersOutcomeCallable batchAddServersCallable(const Model::BatchAddServersRequest& request) const;
|
||||
@@ -512,6 +535,9 @@ namespace AlibabaCloud
|
||||
DescribeAppResourceAllocOutcome describeAppResourceAlloc(const Model::DescribeAppResourceAllocRequest &request)const;
|
||||
void describeAppResourceAllocAsync(const Model::DescribeAppResourceAllocRequest& request, const DescribeAppResourceAllocAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAppResourceAllocOutcomeCallable describeAppResourceAllocCallable(const Model::DescribeAppResourceAllocRequest& 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;
|
||||
DescribeDatabasesOutcome describeDatabases(const Model::DescribeDatabasesRequest &request)const;
|
||||
void describeDatabasesAsync(const Model::DescribeDatabasesRequest& request, const DescribeDatabasesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDatabasesOutcomeCallable describeDatabasesCallable(const Model::DescribeDatabasesRequest& request) const;
|
||||
@@ -632,6 +658,12 @@ namespace AlibabaCloud
|
||||
SetDeployPauseTypeOutcome setDeployPauseType(const Model::SetDeployPauseTypeRequest &request)const;
|
||||
void setDeployPauseTypeAsync(const Model::SetDeployPauseTypeRequest& request, const SetDeployPauseTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetDeployPauseTypeOutcomeCallable setDeployPauseTypeCallable(const Model::SetDeployPauseTypeRequest& request) const;
|
||||
SubmitInfoOutcome submitInfo(const Model::SubmitInfoRequest &request)const;
|
||||
void submitInfoAsync(const Model::SubmitInfoRequest& request, const SubmitInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubmitInfoOutcomeCallable submitInfoCallable(const Model::SubmitInfoRequest& request) const;
|
||||
SyncPodInfoOutcome syncPodInfo(const Model::SyncPodInfoRequest &request)const;
|
||||
void syncPodInfoAsync(const Model::SyncPodInfoRequest& request, const SyncPodInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SyncPodInfoOutcomeCallable syncPodInfoCallable(const Model::SyncPodInfoRequest& request) const;
|
||||
UnbindNodeLabelOutcome unbindNodeLabel(const Model::UnbindNodeLabelRequest &request)const;
|
||||
void unbindNodeLabelAsync(const Model::UnbindNodeLabelRequest& request, const UnbindNodeLabelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UnbindNodeLabelOutcomeCallable unbindNodeLabelCallable(const Model::UnbindNodeLabelRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_ALLOCATEPODCONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_RETAILCLOUD_MODEL_ALLOCATEPODCONFIGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/retailcloud/RetailcloudExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Retailcloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RETAILCLOUD_EXPORT AllocatePodConfigRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AllocatePodConfigRequest();
|
||||
~AllocatePodConfigRequest();
|
||||
|
||||
std::string getRequestId()const;
|
||||
void setRequestId(const std::string& requestId);
|
||||
long getAppId()const;
|
||||
void setAppId(long appId);
|
||||
long getEnvId()const;
|
||||
void setEnvId(long envId);
|
||||
|
||||
private:
|
||||
std::string requestId_;
|
||||
long appId_;
|
||||
long envId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_ALLOCATEPODCONFIGREQUEST_H_
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* 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_RETAILCLOUD_MODEL_ALLOCATEPODCONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_RETAILCLOUD_MODEL_ALLOCATEPODCONFIGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/retailcloud/RetailcloudExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Retailcloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RETAILCLOUD_EXPORT AllocatePodConfigResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::string configData;
|
||||
};
|
||||
|
||||
|
||||
AllocatePodConfigResult();
|
||||
explicit AllocatePodConfigResult(const std::string &payload);
|
||||
~AllocatePodConfigResult();
|
||||
std::string getErrMsg()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
Result getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errMsg_;
|
||||
int code_;
|
||||
bool success_;
|
||||
Result result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_ALLOCATEPODCONFIGRESULT_H_
|
||||
@@ -35,31 +35,40 @@ namespace AlibabaCloud
|
||||
DeployAppRequest();
|
||||
~DeployAppRequest();
|
||||
|
||||
long getDeployPacketId()const;
|
||||
void setDeployPacketId(long deployPacketId);
|
||||
std::string getDeployPacketUrl()const;
|
||||
void setDeployPacketUrl(const std::string& deployPacketUrl);
|
||||
int getTotalPartitions()const;
|
||||
void setTotalPartitions(int totalPartitions);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
long getEnvId()const;
|
||||
void setEnvId(long envId);
|
||||
std::string getUpdateStrategyType()const;
|
||||
void setUpdateStrategyType(const std::string& updateStrategyType);
|
||||
std::string getPauseType()const;
|
||||
void setPauseType(const std::string& pauseType);
|
||||
long getDeployPacketId()const;
|
||||
void setDeployPacketId(long deployPacketId);
|
||||
std::vector<std::string> getContainerImageList()const;
|
||||
void setContainerImageList(const std::vector<std::string>& containerImageList);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::vector<std::string> getInitContainerImageList()const;
|
||||
void setInitContainerImageList(const std::vector<std::string>& initContainerImageList);
|
||||
bool getArmsFlag()const;
|
||||
void setArmsFlag(bool armsFlag);
|
||||
|
||||
private:
|
||||
long deployPacketId_;
|
||||
std::string deployPacketUrl_;
|
||||
int totalPartitions_;
|
||||
std::string name_;
|
||||
std::string description_;
|
||||
long envId_;
|
||||
std::string updateStrategyType_;
|
||||
std::string pauseType_;
|
||||
long deployPacketId_;
|
||||
std::vector<std::string> containerImageList_;
|
||||
std::string name_;
|
||||
std::vector<std::string> initContainerImageList_;
|
||||
bool armsFlag_;
|
||||
|
||||
};
|
||||
|
||||
@@ -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_RETAILCLOUD_MODEL_DESCRIBECLUSTERDETAILREQUEST_H_
|
||||
#define ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBECLUSTERDETAILREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/retailcloud/RetailcloudExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Retailcloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RETAILCLOUD_EXPORT DescribeClusterDetailRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeClusterDetailRequest();
|
||||
~DescribeClusterDetailRequest();
|
||||
|
||||
std::string getClusterInstanceId()const;
|
||||
void setClusterInstanceId(const std::string& clusterInstanceId);
|
||||
|
||||
private:
|
||||
std::string clusterInstanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBECLUSTERDETAILREQUEST_H_
|
||||
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* 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_RETAILCLOUD_MODEL_DESCRIBECLUSTERDETAILRESULT_H_
|
||||
#define ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBECLUSTERDETAILRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/retailcloud/RetailcloudExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Retailcloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RETAILCLOUD_EXPORT DescribeClusterDetailResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
struct BasicInfo
|
||||
{
|
||||
std::string clusterInstanceId;
|
||||
std::string mainUserId;
|
||||
bool installLogInProcess;
|
||||
long clusterId;
|
||||
bool hasInstallLogController;
|
||||
std::vector<std::string> ecsIds;
|
||||
std::string businessCode;
|
||||
std::vector<std::string> vswitchs;
|
||||
bool hasInstallArmsPilot;
|
||||
std::string envType;
|
||||
std::string vpcId;
|
||||
bool installArmsInProcess;
|
||||
std::string regionName;
|
||||
std::string clusterName;
|
||||
std::string regionId;
|
||||
std::string userNick;
|
||||
};
|
||||
struct InstanceInfo
|
||||
{
|
||||
struct AllocatedPodInstanceInfo
|
||||
{
|
||||
int podCount;
|
||||
long appId;
|
||||
std::string memRequest;
|
||||
long envId;
|
||||
std::string cupRequest;
|
||||
std::string envName;
|
||||
std::string appName;
|
||||
};
|
||||
struct AvailablePodInstanceInfo
|
||||
{
|
||||
int availablePodCount;
|
||||
std::string memRequest;
|
||||
std::string cupRequest;
|
||||
};
|
||||
std::vector<AllocatedPodInstanceInfo> allocatedPodInfoList;
|
||||
int allocatePodCount;
|
||||
int appCount;
|
||||
std::vector<AvailablePodInstanceInfo> availablePodInfoList;
|
||||
};
|
||||
struct NetInfo
|
||||
{
|
||||
std::string prodCIDR;
|
||||
std::string netPlugType;
|
||||
std::string serviceCIDR;
|
||||
};
|
||||
struct WorkLoad
|
||||
{
|
||||
std::string memLevel;
|
||||
int allocateAppPodCount;
|
||||
std::string cpuRequestPercent;
|
||||
std::string memRequest;
|
||||
std::string memUsePercent;
|
||||
std::string cpuUsePercent;
|
||||
std::string cpuUse;
|
||||
std::string memTotal;
|
||||
std::string cpuLevel;
|
||||
std::string memUse;
|
||||
std::string memRequestPercent;
|
||||
int allNodeCount;
|
||||
int allocateAllPodCount;
|
||||
std::string cpuCapacityTotal;
|
||||
std::string memCapacityTotal;
|
||||
std::string cpuRequest;
|
||||
std::string cpuTotal;
|
||||
};
|
||||
struct ClusterNodeWorkLoad
|
||||
{
|
||||
int podCount;
|
||||
bool ready;
|
||||
std::string memRequest;
|
||||
int appPodCount;
|
||||
std::string instanceId;
|
||||
std::string memUse;
|
||||
std::string nodeName;
|
||||
std::string cpuUse;
|
||||
std::string memTotal;
|
||||
std::string cpuRequest;
|
||||
bool unschedulable;
|
||||
std::string cpuTotal;
|
||||
};
|
||||
BasicInfo basicInfo;
|
||||
InstanceInfo instanceInfo;
|
||||
WorkLoad workLoad;
|
||||
NetInfo netInfo;
|
||||
std::vector<ClusterNodeWorkLoad> nodeWorkLoadList;
|
||||
};
|
||||
|
||||
|
||||
DescribeClusterDetailResult();
|
||||
explicit DescribeClusterDetailResult(const std::string &payload);
|
||||
~DescribeClusterDetailResult();
|
||||
std::string getErrMsg()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
Result getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errMsg_;
|
||||
int code_;
|
||||
bool success_;
|
||||
Result result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBECLUSTERDETAILRESULT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* 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_RETAILCLOUD_MODEL_SUBMITINFOREQUEST_H_
|
||||
#define ALIBABACLOUD_RETAILCLOUD_MODEL_SUBMITINFOREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/retailcloud/RetailcloudExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Retailcloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RETAILCLOUD_EXPORT SubmitInfoRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct EcsDescList
|
||||
{
|
||||
std::string resourceId;
|
||||
std::string bussinessDesc;
|
||||
std::string middleWareDesc;
|
||||
std::string otherMiddleWareDesc;
|
||||
std::string bussinessType;
|
||||
std::string appType;
|
||||
std::string envType;
|
||||
std::string userId;
|
||||
};
|
||||
|
||||
public:
|
||||
SubmitInfoRequest();
|
||||
~SubmitInfoRequest();
|
||||
|
||||
std::string getRequestId()const;
|
||||
void setRequestId(const std::string& requestId);
|
||||
long getMainUserId()const;
|
||||
void setMainUserId(long mainUserId);
|
||||
std::vector<EcsDescList> getEcsDescList()const;
|
||||
void setEcsDescList(const std::vector<EcsDescList>& ecsDescList);
|
||||
long getCallerUid()const;
|
||||
void setCallerUid(long callerUid);
|
||||
|
||||
private:
|
||||
std::string requestId_;
|
||||
long mainUserId_;
|
||||
std::vector<EcsDescList> ecsDescList_;
|
||||
long callerUid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_SUBMITINFOREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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_RETAILCLOUD_MODEL_SUBMITINFORESULT_H_
|
||||
#define ALIBABACLOUD_RETAILCLOUD_MODEL_SUBMITINFORESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/retailcloud/RetailcloudExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Retailcloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RETAILCLOUD_EXPORT SubmitInfoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
SubmitInfoResult();
|
||||
explicit SubmitInfoResult(const std::string &payload);
|
||||
~SubmitInfoResult();
|
||||
std::string getErrMsg()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errMsg_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_SUBMITINFORESULT_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_SYNCPODINFOREQUEST_H_
|
||||
#define ALIBABACLOUD_RETAILCLOUD_MODEL_SYNCPODINFOREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/retailcloud/RetailcloudExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Retailcloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RETAILCLOUD_EXPORT SyncPodInfoRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SyncPodInfoRequest();
|
||||
~SyncPodInfoRequest();
|
||||
|
||||
std::string getReason()const;
|
||||
void setReason(const std::string& reason);
|
||||
std::string getRequestId()const;
|
||||
void setRequestId(const std::string& requestId);
|
||||
std::string getPodName()const;
|
||||
void setPodName(const std::string& podName);
|
||||
std::string getSideCarType()const;
|
||||
void setSideCarType(const std::string& sideCarType);
|
||||
long getTaskId()const;
|
||||
void setTaskId(long taskId);
|
||||
bool getStatus()const;
|
||||
void setStatus(bool status);
|
||||
|
||||
private:
|
||||
std::string reason_;
|
||||
std::string requestId_;
|
||||
std::string podName_;
|
||||
std::string sideCarType_;
|
||||
long taskId_;
|
||||
bool status_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_SYNCPODINFOREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_SYNCPODINFORESULT_H_
|
||||
#define ALIBABACLOUD_RETAILCLOUD_MODEL_SYNCPODINFORESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/retailcloud/RetailcloudExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Retailcloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RETAILCLOUD_EXPORT SyncPodInfoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
bool success;
|
||||
};
|
||||
|
||||
|
||||
SyncPodInfoResult();
|
||||
explicit SyncPodInfoResult(const std::string &payload);
|
||||
~SyncPodInfoResult();
|
||||
std::string getErrMsg()const;
|
||||
int getCode()const;
|
||||
Result getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errMsg_;
|
||||
int code_;
|
||||
Result result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_SYNCPODINFORESULT_H_
|
||||
Reference in New Issue
Block a user