Support multi language.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2021-11-02 Version: 1.36.918
|
||||
- Support multi language.
|
||||
|
||||
2021-11-02 Version: 1.36.917
|
||||
- Add API UploadStreamByURL.
|
||||
|
||||
|
||||
@@ -93,8 +93,6 @@ set(foas_public_header_model
|
||||
include/alibabacloud/foas/model/GetInstanceResourceResult.h
|
||||
include/alibabacloud/foas/model/GetInstanceRunSummaryRequest.h
|
||||
include/alibabacloud/foas/model/GetInstanceRunSummaryResult.h
|
||||
include/alibabacloud/foas/model/GetInstanceVertexTaskManagersRequest.h
|
||||
include/alibabacloud/foas/model/GetInstanceVertexTaskManagersResult.h
|
||||
include/alibabacloud/foas/model/GetJobRequest.h
|
||||
include/alibabacloud/foas/model/GetJobResult.h
|
||||
include/alibabacloud/foas/model/GetJobLatestAutoScalePlanRequest.h
|
||||
@@ -123,6 +121,8 @@ set(foas_public_header_model
|
||||
include/alibabacloud/foas/model/ListProjectBindQueueResult.h
|
||||
include/alibabacloud/foas/model/ListProjectBindQueueResourceRequest.h
|
||||
include/alibabacloud/foas/model/ListProjectBindQueueResourceResult.h
|
||||
include/alibabacloud/foas/model/ListTagResourcesRequest.h
|
||||
include/alibabacloud/foas/model/ListTagResourcesResult.h
|
||||
include/alibabacloud/foas/model/MVFolderRequest.h
|
||||
include/alibabacloud/foas/model/MVFolderResult.h
|
||||
include/alibabacloud/foas/model/ModifyInstanceStateRequest.h
|
||||
@@ -135,14 +135,22 @@ set(foas_public_header_model
|
||||
include/alibabacloud/foas/model/ShrinkClusterResult.h
|
||||
include/alibabacloud/foas/model/StartJobRequest.h
|
||||
include/alibabacloud/foas/model/StartJobResult.h
|
||||
include/alibabacloud/foas/model/TagResourcesRequest.h
|
||||
include/alibabacloud/foas/model/TagResourcesResult.h
|
||||
include/alibabacloud/foas/model/UnbindQueueRequest.h
|
||||
include/alibabacloud/foas/model/UnbindQueueResult.h
|
||||
include/alibabacloud/foas/model/UntagResourcesRequest.h
|
||||
include/alibabacloud/foas/model/UntagResourcesResult.h
|
||||
include/alibabacloud/foas/model/UpdateAutoScaleConfigRequest.h
|
||||
include/alibabacloud/foas/model/UpdateAutoScaleConfigResult.h
|
||||
include/alibabacloud/foas/model/UpdateJobRequest.h
|
||||
include/alibabacloud/foas/model/UpdateJobResult.h
|
||||
include/alibabacloud/foas/model/UpdatePackageRequest.h
|
||||
include/alibabacloud/foas/model/UpdatePackageResult.h
|
||||
include/alibabacloud/foas/model/UpdateProjectRequest.h
|
||||
include/alibabacloud/foas/model/UpdateProjectResult.h
|
||||
include/alibabacloud/foas/model/UpdateProjectConfigRequest.h
|
||||
include/alibabacloud/foas/model/UpdateProjectConfigResult.h
|
||||
include/alibabacloud/foas/model/UpdateQueueRequest.h
|
||||
include/alibabacloud/foas/model/UpdateQueueResult.h
|
||||
include/alibabacloud/foas/model/ValidateJobRequest.h
|
||||
@@ -222,8 +230,6 @@ set(foas_src
|
||||
src/model/GetInstanceResourceResult.cc
|
||||
src/model/GetInstanceRunSummaryRequest.cc
|
||||
src/model/GetInstanceRunSummaryResult.cc
|
||||
src/model/GetInstanceVertexTaskManagersRequest.cc
|
||||
src/model/GetInstanceVertexTaskManagersResult.cc
|
||||
src/model/GetJobRequest.cc
|
||||
src/model/GetJobResult.cc
|
||||
src/model/GetJobLatestAutoScalePlanRequest.cc
|
||||
@@ -252,6 +258,8 @@ set(foas_src
|
||||
src/model/ListProjectBindQueueResult.cc
|
||||
src/model/ListProjectBindQueueResourceRequest.cc
|
||||
src/model/ListProjectBindQueueResourceResult.cc
|
||||
src/model/ListTagResourcesRequest.cc
|
||||
src/model/ListTagResourcesResult.cc
|
||||
src/model/MVFolderRequest.cc
|
||||
src/model/MVFolderResult.cc
|
||||
src/model/ModifyInstanceStateRequest.cc
|
||||
@@ -264,14 +272,22 @@ set(foas_src
|
||||
src/model/ShrinkClusterResult.cc
|
||||
src/model/StartJobRequest.cc
|
||||
src/model/StartJobResult.cc
|
||||
src/model/TagResourcesRequest.cc
|
||||
src/model/TagResourcesResult.cc
|
||||
src/model/UnbindQueueRequest.cc
|
||||
src/model/UnbindQueueResult.cc
|
||||
src/model/UntagResourcesRequest.cc
|
||||
src/model/UntagResourcesResult.cc
|
||||
src/model/UpdateAutoScaleConfigRequest.cc
|
||||
src/model/UpdateAutoScaleConfigResult.cc
|
||||
src/model/UpdateJobRequest.cc
|
||||
src/model/UpdateJobResult.cc
|
||||
src/model/UpdatePackageRequest.cc
|
||||
src/model/UpdatePackageResult.cc
|
||||
src/model/UpdateProjectRequest.cc
|
||||
src/model/UpdateProjectResult.cc
|
||||
src/model/UpdateProjectConfigRequest.cc
|
||||
src/model/UpdateProjectConfigResult.cc
|
||||
src/model/UpdateQueueRequest.cc
|
||||
src/model/UpdateQueueResult.cc
|
||||
src/model/ValidateJobRequest.cc
|
||||
|
||||
@@ -94,8 +94,6 @@
|
||||
#include "model/GetInstanceResourceResult.h"
|
||||
#include "model/GetInstanceRunSummaryRequest.h"
|
||||
#include "model/GetInstanceRunSummaryResult.h"
|
||||
#include "model/GetInstanceVertexTaskManagersRequest.h"
|
||||
#include "model/GetInstanceVertexTaskManagersResult.h"
|
||||
#include "model/GetJobRequest.h"
|
||||
#include "model/GetJobResult.h"
|
||||
#include "model/GetJobLatestAutoScalePlanRequest.h"
|
||||
@@ -124,6 +122,8 @@
|
||||
#include "model/ListProjectBindQueueResult.h"
|
||||
#include "model/ListProjectBindQueueResourceRequest.h"
|
||||
#include "model/ListProjectBindQueueResourceResult.h"
|
||||
#include "model/ListTagResourcesRequest.h"
|
||||
#include "model/ListTagResourcesResult.h"
|
||||
#include "model/MVFolderRequest.h"
|
||||
#include "model/MVFolderResult.h"
|
||||
#include "model/ModifyInstanceStateRequest.h"
|
||||
@@ -136,14 +136,22 @@
|
||||
#include "model/ShrinkClusterResult.h"
|
||||
#include "model/StartJobRequest.h"
|
||||
#include "model/StartJobResult.h"
|
||||
#include "model/TagResourcesRequest.h"
|
||||
#include "model/TagResourcesResult.h"
|
||||
#include "model/UnbindQueueRequest.h"
|
||||
#include "model/UnbindQueueResult.h"
|
||||
#include "model/UntagResourcesRequest.h"
|
||||
#include "model/UntagResourcesResult.h"
|
||||
#include "model/UpdateAutoScaleConfigRequest.h"
|
||||
#include "model/UpdateAutoScaleConfigResult.h"
|
||||
#include "model/UpdateJobRequest.h"
|
||||
#include "model/UpdateJobResult.h"
|
||||
#include "model/UpdatePackageRequest.h"
|
||||
#include "model/UpdatePackageResult.h"
|
||||
#include "model/UpdateProjectRequest.h"
|
||||
#include "model/UpdateProjectResult.h"
|
||||
#include "model/UpdateProjectConfigRequest.h"
|
||||
#include "model/UpdateProjectConfigResult.h"
|
||||
#include "model/UpdateQueueRequest.h"
|
||||
#include "model/UpdateQueueResult.h"
|
||||
#include "model/ValidateJobRequest.h"
|
||||
@@ -265,9 +273,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetInstanceRunSummaryResult> GetInstanceRunSummaryOutcome;
|
||||
typedef std::future<GetInstanceRunSummaryOutcome> GetInstanceRunSummaryOutcomeCallable;
|
||||
typedef std::function<void(const FoasClient*, const Model::GetInstanceRunSummaryRequest&, const GetInstanceRunSummaryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetInstanceRunSummaryAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetInstanceVertexTaskManagersResult> GetInstanceVertexTaskManagersOutcome;
|
||||
typedef std::future<GetInstanceVertexTaskManagersOutcome> GetInstanceVertexTaskManagersOutcomeCallable;
|
||||
typedef std::function<void(const FoasClient*, const Model::GetInstanceVertexTaskManagersRequest&, const GetInstanceVertexTaskManagersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetInstanceVertexTaskManagersAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetJobResult> GetJobOutcome;
|
||||
typedef std::future<GetJobOutcome> GetJobOutcomeCallable;
|
||||
typedef std::function<void(const FoasClient*, const Model::GetJobRequest&, const GetJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetJobAsyncHandler;
|
||||
@@ -310,6 +315,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListProjectBindQueueResourceResult> ListProjectBindQueueResourceOutcome;
|
||||
typedef std::future<ListProjectBindQueueResourceOutcome> ListProjectBindQueueResourceOutcomeCallable;
|
||||
typedef std::function<void(const FoasClient*, const Model::ListProjectBindQueueResourceRequest&, const ListProjectBindQueueResourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListProjectBindQueueResourceAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListTagResourcesResult> ListTagResourcesOutcome;
|
||||
typedef std::future<ListTagResourcesOutcome> ListTagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const FoasClient*, const Model::ListTagResourcesRequest&, const ListTagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::MVFolderResult> MVFolderOutcome;
|
||||
typedef std::future<MVFolderOutcome> MVFolderOutcomeCallable;
|
||||
typedef std::function<void(const FoasClient*, const Model::MVFolderRequest&, const MVFolderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MVFolderAsyncHandler;
|
||||
@@ -328,9 +336,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::StartJobResult> StartJobOutcome;
|
||||
typedef std::future<StartJobOutcome> StartJobOutcomeCallable;
|
||||
typedef std::function<void(const FoasClient*, const Model::StartJobRequest&, const StartJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartJobAsyncHandler;
|
||||
typedef Outcome<Error, Model::TagResourcesResult> TagResourcesOutcome;
|
||||
typedef std::future<TagResourcesOutcome> TagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const FoasClient*, const Model::TagResourcesRequest&, const TagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TagResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::UnbindQueueResult> UnbindQueueOutcome;
|
||||
typedef std::future<UnbindQueueOutcome> UnbindQueueOutcomeCallable;
|
||||
typedef std::function<void(const FoasClient*, const Model::UnbindQueueRequest&, const UnbindQueueOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnbindQueueAsyncHandler;
|
||||
typedef Outcome<Error, Model::UntagResourcesResult> UntagResourcesOutcome;
|
||||
typedef std::future<UntagResourcesOutcome> UntagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const FoasClient*, const Model::UntagResourcesRequest&, const UntagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UntagResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateAutoScaleConfigResult> UpdateAutoScaleConfigOutcome;
|
||||
typedef std::future<UpdateAutoScaleConfigOutcome> UpdateAutoScaleConfigOutcomeCallable;
|
||||
typedef std::function<void(const FoasClient*, const Model::UpdateAutoScaleConfigRequest&, const UpdateAutoScaleConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateAutoScaleConfigAsyncHandler;
|
||||
@@ -340,6 +354,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdatePackageResult> UpdatePackageOutcome;
|
||||
typedef std::future<UpdatePackageOutcome> UpdatePackageOutcomeCallable;
|
||||
typedef std::function<void(const FoasClient*, const Model::UpdatePackageRequest&, const UpdatePackageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdatePackageAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateProjectResult> UpdateProjectOutcome;
|
||||
typedef std::future<UpdateProjectOutcome> UpdateProjectOutcomeCallable;
|
||||
typedef std::function<void(const FoasClient*, const Model::UpdateProjectRequest&, const UpdateProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateProjectAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateProjectConfigResult> UpdateProjectConfigOutcome;
|
||||
typedef std::future<UpdateProjectConfigOutcome> UpdateProjectConfigOutcomeCallable;
|
||||
typedef std::function<void(const FoasClient*, const Model::UpdateProjectConfigRequest&, const UpdateProjectConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateProjectConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateQueueResult> UpdateQueueOutcome;
|
||||
typedef std::future<UpdateQueueOutcome> UpdateQueueOutcomeCallable;
|
||||
typedef std::function<void(const FoasClient*, const Model::UpdateQueueRequest&, const UpdateQueueOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateQueueAsyncHandler;
|
||||
@@ -459,9 +479,6 @@ namespace AlibabaCloud
|
||||
GetInstanceRunSummaryOutcome getInstanceRunSummary(const Model::GetInstanceRunSummaryRequest &request)const;
|
||||
void getInstanceRunSummaryAsync(const Model::GetInstanceRunSummaryRequest& request, const GetInstanceRunSummaryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetInstanceRunSummaryOutcomeCallable getInstanceRunSummaryCallable(const Model::GetInstanceRunSummaryRequest& request) const;
|
||||
GetInstanceVertexTaskManagersOutcome getInstanceVertexTaskManagers(const Model::GetInstanceVertexTaskManagersRequest &request)const;
|
||||
void getInstanceVertexTaskManagersAsync(const Model::GetInstanceVertexTaskManagersRequest& request, const GetInstanceVertexTaskManagersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetInstanceVertexTaskManagersOutcomeCallable getInstanceVertexTaskManagersCallable(const Model::GetInstanceVertexTaskManagersRequest& request) const;
|
||||
GetJobOutcome getJob(const Model::GetJobRequest &request)const;
|
||||
void getJobAsync(const Model::GetJobRequest& request, const GetJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetJobOutcomeCallable getJobCallable(const Model::GetJobRequest& request) const;
|
||||
@@ -504,6 +521,9 @@ namespace AlibabaCloud
|
||||
ListProjectBindQueueResourceOutcome listProjectBindQueueResource(const Model::ListProjectBindQueueResourceRequest &request)const;
|
||||
void listProjectBindQueueResourceAsync(const Model::ListProjectBindQueueResourceRequest& request, const ListProjectBindQueueResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListProjectBindQueueResourceOutcomeCallable listProjectBindQueueResourceCallable(const Model::ListProjectBindQueueResourceRequest& request) const;
|
||||
ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const;
|
||||
void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const;
|
||||
MVFolderOutcome mVFolder(const Model::MVFolderRequest &request)const;
|
||||
void mVFolderAsync(const Model::MVFolderRequest& request, const MVFolderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
MVFolderOutcomeCallable mVFolderCallable(const Model::MVFolderRequest& request) const;
|
||||
@@ -522,9 +542,15 @@ namespace AlibabaCloud
|
||||
StartJobOutcome startJob(const Model::StartJobRequest &request)const;
|
||||
void startJobAsync(const Model::StartJobRequest& request, const StartJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartJobOutcomeCallable startJobCallable(const Model::StartJobRequest& request) const;
|
||||
TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const;
|
||||
void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const;
|
||||
UnbindQueueOutcome unbindQueue(const Model::UnbindQueueRequest &request)const;
|
||||
void unbindQueueAsync(const Model::UnbindQueueRequest& request, const UnbindQueueAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UnbindQueueOutcomeCallable unbindQueueCallable(const Model::UnbindQueueRequest& request) const;
|
||||
UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const;
|
||||
void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const;
|
||||
UpdateAutoScaleConfigOutcome updateAutoScaleConfig(const Model::UpdateAutoScaleConfigRequest &request)const;
|
||||
void updateAutoScaleConfigAsync(const Model::UpdateAutoScaleConfigRequest& request, const UpdateAutoScaleConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateAutoScaleConfigOutcomeCallable updateAutoScaleConfigCallable(const Model::UpdateAutoScaleConfigRequest& request) const;
|
||||
@@ -534,6 +560,12 @@ namespace AlibabaCloud
|
||||
UpdatePackageOutcome updatePackage(const Model::UpdatePackageRequest &request)const;
|
||||
void updatePackageAsync(const Model::UpdatePackageRequest& request, const UpdatePackageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdatePackageOutcomeCallable updatePackageCallable(const Model::UpdatePackageRequest& request) const;
|
||||
UpdateProjectOutcome updateProject(const Model::UpdateProjectRequest &request)const;
|
||||
void updateProjectAsync(const Model::UpdateProjectRequest& request, const UpdateProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateProjectOutcomeCallable updateProjectCallable(const Model::UpdateProjectRequest& request) const;
|
||||
UpdateProjectConfigOutcome updateProjectConfig(const Model::UpdateProjectConfigRequest &request)const;
|
||||
void updateProjectConfigAsync(const Model::UpdateProjectConfigRequest& request, const UpdateProjectConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateProjectConfigOutcomeCallable updateProjectConfigCallable(const Model::UpdateProjectConfigRequest& request) const;
|
||||
UpdateQueueOutcome updateQueue(const Model::UpdateQueueRequest &request)const;
|
||||
void updateQueueAsync(const Model::UpdateQueueRequest& request, const UpdateQueueAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateQueueOutcomeCallable updateQueueCallable(const Model::UpdateQueueRequest& request) const;
|
||||
|
||||
@@ -30,6 +30,14 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_FOAS_EXPORT CommitJobRequest : public RoaServiceRequest
|
||||
{
|
||||
public:
|
||||
struct suspendPeriodParam
|
||||
{
|
||||
std::string endTime;
|
||||
std::string startTime;
|
||||
std::string plan;
|
||||
std::string policy;
|
||||
};
|
||||
|
||||
public:
|
||||
CommitJobRequest();
|
||||
@@ -37,8 +45,12 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getProjectName()const;
|
||||
void setProjectName(const std::string& projectName);
|
||||
bool getRecommendOnly()const;
|
||||
void setRecommendOnly(bool recommendOnly);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getSuspendPeriods()const;
|
||||
void setSuspendPeriods(const std::string& suspendPeriods);
|
||||
float getMaxCU()const;
|
||||
void setMaxCU(float maxCU);
|
||||
std::string getConfigure()const;
|
||||
@@ -47,14 +59,19 @@ namespace AlibabaCloud
|
||||
void setIsOnOff(bool isOnOff);
|
||||
std::string getJobName()const;
|
||||
void setJobName(const std::string& jobName);
|
||||
std::vector<suspendPeriodParam> getSuspendPeriodParam()const;
|
||||
void setSuspendPeriodParam(const std::vector<suspendPeriodParam>& suspendPeriodParam);
|
||||
|
||||
private:
|
||||
std::string projectName_;
|
||||
bool recommendOnly_;
|
||||
std::string regionId_;
|
||||
std::string suspendPeriods_;
|
||||
float maxCU_;
|
||||
std::string configure_;
|
||||
bool isOnOff_;
|
||||
std::string jobName_;
|
||||
std::vector<suspendPeriodParam> suspendPeriodParam_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
int maxMem;
|
||||
int usedGpu;
|
||||
std::string externalInfo;
|
||||
int usedMem;
|
||||
std::string clusterId;
|
||||
int minGpu;
|
||||
|
||||
@@ -36,27 +36,29 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string lastErrorMessage;
|
||||
std::string expectState;
|
||||
std::string engineVersion;
|
||||
long endTime;
|
||||
std::string projectName;
|
||||
std::string clusterId;
|
||||
std::string planJson;
|
||||
std::string jobName;
|
||||
long startTime;
|
||||
std::string properties;
|
||||
std::string starter;
|
||||
long inputDelay;
|
||||
std::string code;
|
||||
std::string actualState;
|
||||
long lastErrorTime;
|
||||
std::string engineJobHandler;
|
||||
std::string jobType;
|
||||
std::string lastOperator;
|
||||
std::string packages;
|
||||
std::string apiType;
|
||||
std::string queueName;
|
||||
std::string engineVersion;
|
||||
std::string clusterId;
|
||||
int priority;
|
||||
std::string planJson;
|
||||
long startTime;
|
||||
std::string code;
|
||||
std::string actualState;
|
||||
std::string engineJobHandler;
|
||||
std::string jobType;
|
||||
std::string autoScaleParams;
|
||||
long id;
|
||||
long lastOperateTime;
|
||||
std::string queueName;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -50,6 +50,7 @@ namespace AlibabaCloud
|
||||
std::string packages;
|
||||
std::string apiType;
|
||||
bool isCommitted;
|
||||
std::string fileId;
|
||||
std::string modifier;
|
||||
std::string queueName;
|
||||
std::string jobId;
|
||||
|
||||
@@ -35,17 +35,21 @@ namespace AlibabaCloud
|
||||
struct Package
|
||||
{
|
||||
long modifyTime;
|
||||
std::string scanErrorMessage;
|
||||
std::string description;
|
||||
std::string projectName;
|
||||
std::string packageName;
|
||||
long createTime;
|
||||
std::string ossBucket;
|
||||
std::string scanState;
|
||||
std::string creator;
|
||||
std::string originName;
|
||||
std::string type;
|
||||
std::string ossOwner;
|
||||
std::string ossEndpoint;
|
||||
std::string scanLink;
|
||||
std::string ossPath;
|
||||
std::string scanExtBizNo;
|
||||
std::string tag;
|
||||
std::string modifier;
|
||||
std::string md5;
|
||||
|
||||
@@ -39,13 +39,14 @@ namespace AlibabaCloud
|
||||
std::string managerIds;
|
||||
std::string description;
|
||||
std::string clusterId;
|
||||
std::string state;
|
||||
long createTime;
|
||||
std::string region;
|
||||
std::string creator;
|
||||
std::string globalJobConfig;
|
||||
std::string name;
|
||||
std::string state;
|
||||
std::string region;
|
||||
std::string id;
|
||||
std::string modifier;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -43,6 +43,8 @@ namespace AlibabaCloud
|
||||
void setExpectedGB(float expectedGB);
|
||||
float getExpectedCore()const;
|
||||
void setExpectedCore(float expectedCore);
|
||||
std::string getAdvisorAction()const;
|
||||
void setAdvisorAction(const std::string& advisorAction);
|
||||
std::string getJobName()const;
|
||||
void setJobName(const std::string& jobName);
|
||||
bool getAutoconfEnable()const;
|
||||
@@ -53,6 +55,7 @@ namespace AlibabaCloud
|
||||
std::string regionId_;
|
||||
float expectedGB_;
|
||||
float expectedCore_;
|
||||
std::string advisorAction_;
|
||||
std::string jobName_;
|
||||
bool autoconfEnable_;
|
||||
|
||||
|
||||
@@ -40,6 +40,7 @@ namespace AlibabaCloud
|
||||
long endTime;
|
||||
std::string projectName;
|
||||
std::string clusterId;
|
||||
int priority;
|
||||
std::string planJson;
|
||||
std::string jobName;
|
||||
long startTime;
|
||||
|
||||
@@ -35,17 +35,21 @@ namespace AlibabaCloud
|
||||
struct Package
|
||||
{
|
||||
long modifyTime;
|
||||
std::string scanErrorMessage;
|
||||
std::string description;
|
||||
std::string projectName;
|
||||
std::string packageName;
|
||||
long createTime;
|
||||
std::string ossBucket;
|
||||
std::string scanState;
|
||||
std::string creator;
|
||||
std::string originName;
|
||||
std::string type;
|
||||
std::string ossOwner;
|
||||
std::string ossEndpoint;
|
||||
std::string scanLink;
|
||||
std::string ossPath;
|
||||
std::string scanExtBizNo;
|
||||
std::string tag;
|
||||
std::string modifier;
|
||||
std::string md5;
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FOAS_MODEL_LISTTAGRESOURCESREQUEST_H_
|
||||
#define ALIBABACLOUD_FOAS_MODEL_LISTTAGRESOURCESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/foas/FoasExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Foas
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FOAS_EXPORT ListTagResourcesRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListTagResourcesRequest();
|
||||
~ListTagResourcesRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
std::string getResourceType()const;
|
||||
void setResourceType(const std::string& resourceType);
|
||||
std::string getResourceIds()const;
|
||||
void setResourceIds(const std::string& resourceIds);
|
||||
std::string getTags()const;
|
||||
void setTags(const std::string& tags);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string nextToken_;
|
||||
std::string resourceType_;
|
||||
std::string resourceIds_;
|
||||
std::string tags_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FOAS_MODEL_LISTTAGRESOURCESREQUEST_H_
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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_FOAS_MODEL_LISTTAGRESOURCESRESULT_H_
|
||||
#define ALIBABACLOUD_FOAS_MODEL_LISTTAGRESOURCESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/foas/FoasExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Foas
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FOAS_EXPORT ListTagResourcesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct TagResource
|
||||
{
|
||||
std::string resourceId;
|
||||
std::string tagKey;
|
||||
std::string resourceType;
|
||||
std::string tagValue;
|
||||
};
|
||||
std::string nextToken;
|
||||
std::vector<TagResource> tagResources;
|
||||
};
|
||||
|
||||
|
||||
ListTagResourcesResult();
|
||||
explicit ListTagResourcesResult(const std::string &payload);
|
||||
~ListTagResourcesResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FOAS_MODEL_LISTTAGRESOURCESRESULT_H_
|
||||
@@ -43,6 +43,8 @@ namespace AlibabaCloud
|
||||
void setInstanceId(long instanceId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
bool getTriggerCheckpoint()const;
|
||||
void setTriggerCheckpoint(bool triggerCheckpoint);
|
||||
std::string getExpectState()const;
|
||||
void setExpectState(const std::string& expectState);
|
||||
std::string getJobName()const;
|
||||
@@ -53,6 +55,7 @@ namespace AlibabaCloud
|
||||
std::string projectName_;
|
||||
long instanceId_;
|
||||
std::string regionId_;
|
||||
bool triggerCheckpoint_;
|
||||
std::string expectState_;
|
||||
std::string jobName_;
|
||||
|
||||
|
||||
48
foas/include/alibabacloud/foas/model/TagResourcesRequest.h
Normal file
48
foas/include/alibabacloud/foas/model/TagResourcesRequest.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_FOAS_MODEL_TAGRESOURCESREQUEST_H_
|
||||
#define ALIBABACLOUD_FOAS_MODEL_TAGRESOURCESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/foas/FoasExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Foas
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FOAS_EXPORT TagResourcesRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
TagResourcesRequest();
|
||||
~TagResourcesRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FOAS_MODEL_TAGRESOURCESREQUEST_H_
|
||||
59
foas/include/alibabacloud/foas/model/TagResourcesResult.h
Normal file
59
foas/include/alibabacloud/foas/model/TagResourcesResult.h
Normal file
@@ -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_FOAS_MODEL_TAGRESOURCESRESULT_H_
|
||||
#define ALIBABACLOUD_FOAS_MODEL_TAGRESOURCESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/foas/FoasExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Foas
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FOAS_EXPORT TagResourcesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
TagResourcesResult();
|
||||
explicit TagResourcesResult(const std::string &payload);
|
||||
~TagResourcesResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
bool getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
bool data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FOAS_MODEL_TAGRESOURCESRESULT_H_
|
||||
60
foas/include/alibabacloud/foas/model/UntagResourcesRequest.h
Normal file
60
foas/include/alibabacloud/foas/model/UntagResourcesRequest.h
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FOAS_MODEL_UNTAGRESOURCESREQUEST_H_
|
||||
#define ALIBABACLOUD_FOAS_MODEL_UNTAGRESOURCESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/foas/FoasExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Foas
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FOAS_EXPORT UntagResourcesRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UntagResourcesRequest();
|
||||
~UntagResourcesRequest();
|
||||
|
||||
bool getAll()const;
|
||||
void setAll(bool all);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getTagKeys()const;
|
||||
void setTagKeys(const std::string& tagKeys);
|
||||
std::string getResourceType()const;
|
||||
void setResourceType(const std::string& resourceType);
|
||||
std::string getResourceIds()const;
|
||||
void setResourceIds(const std::string& resourceIds);
|
||||
|
||||
private:
|
||||
bool all_;
|
||||
std::string regionId_;
|
||||
std::string tagKeys_;
|
||||
std::string resourceType_;
|
||||
std::string resourceIds_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FOAS_MODEL_UNTAGRESOURCESREQUEST_H_
|
||||
59
foas/include/alibabacloud/foas/model/UntagResourcesResult.h
Normal file
59
foas/include/alibabacloud/foas/model/UntagResourcesResult.h
Normal file
@@ -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_FOAS_MODEL_UNTAGRESOURCESRESULT_H_
|
||||
#define ALIBABACLOUD_FOAS_MODEL_UNTAGRESOURCESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/foas/FoasExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Foas
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FOAS_EXPORT UntagResourcesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UntagResourcesResult();
|
||||
explicit UntagResourcesResult(const std::string &payload);
|
||||
~UntagResourcesResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
bool getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
bool data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FOAS_MODEL_UNTAGRESOURCESRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FOAS_MODEL_UPDATEPROJECTCONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_FOAS_MODEL_UPDATEPROJECTCONFIGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/foas/FoasExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Foas
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FOAS_EXPORT UpdateProjectConfigRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateProjectConfigRequest();
|
||||
~UpdateProjectConfigRequest();
|
||||
|
||||
std::string getProjectName()const;
|
||||
void setProjectName(const std::string& projectName);
|
||||
bool getIsOpenBatchSQL()const;
|
||||
void setIsOpenBatchSQL(bool isOpenBatchSQL);
|
||||
|
||||
private:
|
||||
std::string projectName_;
|
||||
bool isOpenBatchSQL_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FOAS_MODEL_UPDATEPROJECTCONFIGREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FOAS_MODEL_GETINSTANCEVERTEXTASKMANAGERSRESULT_H_
|
||||
#define ALIBABACLOUD_FOAS_MODEL_GETINSTANCEVERTEXTASKMANAGERSRESULT_H_
|
||||
#ifndef ALIBABACLOUD_FOAS_MODEL_UPDATEPROJECTCONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_FOAS_MODEL_UPDATEPROJECTCONFIGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,23 +29,23 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FOAS_EXPORT GetInstanceVertexTaskManagersResult : public ServiceResult
|
||||
class ALIBABACLOUD_FOAS_EXPORT UpdateProjectConfigResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetInstanceVertexTaskManagersResult();
|
||||
explicit GetInstanceVertexTaskManagersResult(const std::string &payload);
|
||||
~GetInstanceVertexTaskManagersResult();
|
||||
std::string getTaskManagers()const;
|
||||
UpdateProjectConfigResult();
|
||||
explicit UpdateProjectConfigResult(const std::string &payload);
|
||||
~UpdateProjectConfigResult();
|
||||
bool getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string taskManagers_;
|
||||
bool data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FOAS_MODEL_GETINSTANCEVERTEXTASKMANAGERSRESULT_H_
|
||||
#endif // !ALIBABACLOUD_FOAS_MODEL_UPDATEPROJECTCONFIGRESULT_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FOAS_MODEL_GETINSTANCEVERTEXTASKMANAGERSREQUEST_H_
|
||||
#define ALIBABACLOUD_FOAS_MODEL_GETINSTANCEVERTEXTASKMANAGERSREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_FOAS_MODEL_UPDATEPROJECTREQUEST_H_
|
||||
#define ALIBABACLOUD_FOAS_MODEL_UPDATEPROJECTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,33 +28,27 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FOAS_EXPORT GetInstanceVertexTaskManagersRequest : public RoaServiceRequest
|
||||
class ALIBABACLOUD_FOAS_EXPORT UpdateProjectRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetInstanceVertexTaskManagersRequest();
|
||||
~GetInstanceVertexTaskManagersRequest();
|
||||
UpdateProjectRequest();
|
||||
~UpdateProjectRequest();
|
||||
|
||||
std::string getProjectName()const;
|
||||
void setProjectName(const std::string& projectName);
|
||||
long getInstanceId()const;
|
||||
void setInstanceId(long instanceId);
|
||||
std::string getGlobalJobConfig()const;
|
||||
void setGlobalJobConfig(const std::string& globalJobConfig);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getVertexId()const;
|
||||
void setVertexId(const std::string& vertexId);
|
||||
std::string getJobName()const;
|
||||
void setJobName(const std::string& jobName);
|
||||
|
||||
private:
|
||||
std::string projectName_;
|
||||
long instanceId_;
|
||||
std::string globalJobConfig_;
|
||||
std::string regionId_;
|
||||
std::string vertexId_;
|
||||
std::string jobName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FOAS_MODEL_GETINSTANCEVERTEXTASKMANAGERSREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_FOAS_MODEL_UPDATEPROJECTREQUEST_H_
|
||||
49
foas/include/alibabacloud/foas/model/UpdateProjectResult.h
Normal file
49
foas/include/alibabacloud/foas/model/UpdateProjectResult.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_FOAS_MODEL_UPDATEPROJECTRESULT_H_
|
||||
#define ALIBABACLOUD_FOAS_MODEL_UPDATEPROJECTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/foas/FoasExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Foas
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FOAS_EXPORT UpdateProjectResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateProjectResult();
|
||||
explicit UpdateProjectResult(const std::string &payload);
|
||||
~UpdateProjectResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FOAS_MODEL_UPDATEPROJECTRESULT_H_
|
||||
@@ -1347,42 +1347,6 @@ FoasClient::GetInstanceRunSummaryOutcomeCallable FoasClient::getInstanceRunSumma
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FoasClient::GetInstanceVertexTaskManagersOutcome FoasClient::getInstanceVertexTaskManagers(const GetInstanceVertexTaskManagersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetInstanceVertexTaskManagersOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetInstanceVertexTaskManagersOutcome(GetInstanceVertexTaskManagersResult(outcome.result()));
|
||||
else
|
||||
return GetInstanceVertexTaskManagersOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FoasClient::getInstanceVertexTaskManagersAsync(const GetInstanceVertexTaskManagersRequest& request, const GetInstanceVertexTaskManagersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getInstanceVertexTaskManagers(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FoasClient::GetInstanceVertexTaskManagersOutcomeCallable FoasClient::getInstanceVertexTaskManagersCallable(const GetInstanceVertexTaskManagersRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetInstanceVertexTaskManagersOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getInstanceVertexTaskManagers(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FoasClient::GetJobOutcome FoasClient::getJob(const GetJobRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1887,6 +1851,42 @@ FoasClient::ListProjectBindQueueResourceOutcomeCallable FoasClient::listProjectB
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FoasClient::ListTagResourcesOutcome FoasClient::listTagResources(const ListTagResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListTagResourcesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result()));
|
||||
else
|
||||
return ListTagResourcesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FoasClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listTagResources(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FoasClient::ListTagResourcesOutcomeCallable FoasClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListTagResourcesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listTagResources(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FoasClient::MVFolderOutcome FoasClient::mVFolder(const MVFolderRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2103,6 +2103,42 @@ FoasClient::StartJobOutcomeCallable FoasClient::startJobCallable(const StartJobR
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FoasClient::TagResourcesOutcome FoasClient::tagResources(const TagResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return TagResourcesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return TagResourcesOutcome(TagResourcesResult(outcome.result()));
|
||||
else
|
||||
return TagResourcesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FoasClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, tagResources(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FoasClient::TagResourcesOutcomeCallable FoasClient::tagResourcesCallable(const TagResourcesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<TagResourcesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->tagResources(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FoasClient::UnbindQueueOutcome FoasClient::unbindQueue(const UnbindQueueRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2139,6 +2175,42 @@ FoasClient::UnbindQueueOutcomeCallable FoasClient::unbindQueueCallable(const Unb
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FoasClient::UntagResourcesOutcome FoasClient::untagResources(const UntagResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UntagResourcesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UntagResourcesOutcome(UntagResourcesResult(outcome.result()));
|
||||
else
|
||||
return UntagResourcesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FoasClient::untagResourcesAsync(const UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, untagResources(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FoasClient::UntagResourcesOutcomeCallable FoasClient::untagResourcesCallable(const UntagResourcesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UntagResourcesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->untagResources(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FoasClient::UpdateAutoScaleConfigOutcome FoasClient::updateAutoScaleConfig(const UpdateAutoScaleConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2247,6 +2319,78 @@ FoasClient::UpdatePackageOutcomeCallable FoasClient::updatePackageCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FoasClient::UpdateProjectOutcome FoasClient::updateProject(const UpdateProjectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateProjectOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateProjectOutcome(UpdateProjectResult(outcome.result()));
|
||||
else
|
||||
return UpdateProjectOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FoasClient::updateProjectAsync(const UpdateProjectRequest& request, const UpdateProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateProject(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FoasClient::UpdateProjectOutcomeCallable FoasClient::updateProjectCallable(const UpdateProjectRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateProjectOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateProject(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FoasClient::UpdateProjectConfigOutcome FoasClient::updateProjectConfig(const UpdateProjectConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateProjectConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateProjectConfigOutcome(UpdateProjectConfigResult(outcome.result()));
|
||||
else
|
||||
return UpdateProjectConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FoasClient::updateProjectConfigAsync(const UpdateProjectConfigRequest& request, const UpdateProjectConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateProjectConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FoasClient::UpdateProjectConfigOutcomeCallable FoasClient::updateProjectConfigCallable(const UpdateProjectConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateProjectConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateProjectConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FoasClient::UpdateQueueOutcome FoasClient::updateQueue(const UpdateQueueRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -39,6 +39,17 @@ void CommitJobRequest::setProjectName(const std::string& projectName)
|
||||
setParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
bool CommitJobRequest::getRecommendOnly()const
|
||||
{
|
||||
return recommendOnly_;
|
||||
}
|
||||
|
||||
void CommitJobRequest::setRecommendOnly(bool recommendOnly)
|
||||
{
|
||||
recommendOnly_ = recommendOnly;
|
||||
setBodyParameter("RecommendOnly", recommendOnly ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CommitJobRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
@@ -50,6 +61,17 @@ void CommitJobRequest::setRegionId(const std::string& regionId)
|
||||
setHeader("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CommitJobRequest::getSuspendPeriods()const
|
||||
{
|
||||
return suspendPeriods_;
|
||||
}
|
||||
|
||||
void CommitJobRequest::setSuspendPeriods(const std::string& suspendPeriods)
|
||||
{
|
||||
suspendPeriods_ = suspendPeriods;
|
||||
setBodyParameter("SuspendPeriods", suspendPeriods);
|
||||
}
|
||||
|
||||
float CommitJobRequest::getMaxCU()const
|
||||
{
|
||||
return maxCU_;
|
||||
@@ -94,3 +116,21 @@ void CommitJobRequest::setJobName(const std::string& jobName)
|
||||
setParameter("JobName", jobName);
|
||||
}
|
||||
|
||||
std::vector<CommitJobRequest::suspendPeriodParam> CommitJobRequest::getSuspendPeriodParam()const
|
||||
{
|
||||
return suspendPeriodParam_;
|
||||
}
|
||||
|
||||
void CommitJobRequest::setSuspendPeriodParam(const std::vector<suspendPeriodParam>& suspendPeriodParam)
|
||||
{
|
||||
suspendPeriodParam_ = suspendPeriodParam;
|
||||
for(int dep1 = 0; dep1!= suspendPeriodParam.size(); dep1++) {
|
||||
auto suspendPeriodParamObj = suspendPeriodParam.at(dep1);
|
||||
std::string suspendPeriodParamObjStr = "suspendPeriodParam." + std::to_string(dep1 + 1);
|
||||
setParameter(suspendPeriodParamObjStr + ".EndTime", suspendPeriodParamObj.endTime);
|
||||
setParameter(suspendPeriodParamObjStr + ".StartTime", suspendPeriodParamObj.startTime);
|
||||
setParameter(suspendPeriodParamObjStr + ".Plan", suspendPeriodParamObj.plan);
|
||||
setParameter(suspendPeriodParamObjStr + ".Policy", suspendPeriodParamObj.policy);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -65,6 +65,8 @@ void GetClusterQueueInfoResult::parse(const std::string &payload)
|
||||
queuesObject.maxVCore = std::stoi(valueQueuesQueue["MaxVCore"].asString());
|
||||
if(!valueQueuesQueue["MaxMem"].isNull())
|
||||
queuesObject.maxMem = std::stoi(valueQueuesQueue["MaxMem"].asString());
|
||||
if(!valueQueuesQueue["ExternalInfo"].isNull())
|
||||
queuesObject.externalInfo = valueQueuesQueue["ExternalInfo"].asString();
|
||||
queues_.push_back(queuesObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -86,6 +86,10 @@ void GetInstanceResult::parse(const std::string &payload)
|
||||
instance_.queueName = instanceNode["QueueName"].asString();
|
||||
if(!instanceNode["EndTime"].isNull())
|
||||
instance_.endTime = std::stol(instanceNode["EndTime"].asString());
|
||||
if(!instanceNode["AutoScaleParams"].isNull())
|
||||
instance_.autoScaleParams = instanceNode["AutoScaleParams"].asString();
|
||||
if(!instanceNode["Priority"].isNull())
|
||||
instance_.priority = std::stoi(instanceNode["Priority"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,82 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetInstanceVertexTaskManagersRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::GetInstanceVertexTaskManagersRequest;
|
||||
|
||||
GetInstanceVertexTaskManagersRequest::GetInstanceVertexTaskManagersRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
GetInstanceVertexTaskManagersRequest::~GetInstanceVertexTaskManagersRequest()
|
||||
{}
|
||||
|
||||
std::string GetInstanceVertexTaskManagersRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void GetInstanceVertexTaskManagersRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
long GetInstanceVertexTaskManagersRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetInstanceVertexTaskManagersRequest::setInstanceId(long instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", std::to_string(instanceId));
|
||||
}
|
||||
|
||||
std::string GetInstanceVertexTaskManagersRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetInstanceVertexTaskManagersRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetInstanceVertexTaskManagersRequest::getVertexId()const
|
||||
{
|
||||
return vertexId_;
|
||||
}
|
||||
|
||||
void GetInstanceVertexTaskManagersRequest::setVertexId(const std::string& vertexId)
|
||||
{
|
||||
vertexId_ = vertexId;
|
||||
setCoreParameter("VertexId", vertexId);
|
||||
}
|
||||
|
||||
std::string GetInstanceVertexTaskManagersRequest::getJobName()const
|
||||
{
|
||||
return jobName_;
|
||||
}
|
||||
|
||||
void GetInstanceVertexTaskManagersRequest::setJobName(const std::string& jobName)
|
||||
{
|
||||
jobName_ = jobName;
|
||||
setCoreParameter("JobName", jobName);
|
||||
}
|
||||
|
||||
@@ -78,6 +78,8 @@ void GetJobResult::parse(const std::string &payload)
|
||||
job_.folderId = std::stol(jobNode["FolderId"].asString());
|
||||
if(!jobNode["JobId"].isNull())
|
||||
job_.jobId = jobNode["JobId"].asString();
|
||||
if(!jobNode["FileId"].isNull())
|
||||
job_.fileId = jobNode["FileId"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -70,6 +70,14 @@ void GetPackageResult::parse(const std::string &payload)
|
||||
package_.ossPath = packageNode["OssPath"].asString();
|
||||
if(!packageNode["Tag"].isNull())
|
||||
package_.tag = packageNode["Tag"].asString();
|
||||
if(!packageNode["ScanLink"].isNull())
|
||||
package_.scanLink = packageNode["ScanLink"].asString();
|
||||
if(!packageNode["ScanState"].isNull())
|
||||
package_.scanState = packageNode["ScanState"].asString();
|
||||
if(!packageNode["ScanErrorMessage"].isNull())
|
||||
package_.scanErrorMessage = packageNode["ScanErrorMessage"].asString();
|
||||
if(!packageNode["ScanExtBizNo"].isNull())
|
||||
package_.scanExtBizNo = packageNode["ScanExtBizNo"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -64,6 +64,8 @@ void GetProjectResult::parse(const std::string &payload)
|
||||
project_.region = projectNode["Region"].asString();
|
||||
if(!projectNode["Id"].isNull())
|
||||
project_.id = projectNode["Id"].asString();
|
||||
if(!projectNode["GlobalJobConfig"].isNull())
|
||||
project_.globalJobConfig = projectNode["GlobalJobConfig"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -72,6 +72,17 @@ void GetRawPlanJsonRequest::setExpectedCore(float expectedCore)
|
||||
setParameter("ExpectedCore", std::to_string(expectedCore));
|
||||
}
|
||||
|
||||
std::string GetRawPlanJsonRequest::getAdvisorAction()const
|
||||
{
|
||||
return advisorAction_;
|
||||
}
|
||||
|
||||
void GetRawPlanJsonRequest::setAdvisorAction(const std::string& advisorAction)
|
||||
{
|
||||
advisorAction_ = advisorAction;
|
||||
setParameter("AdvisorAction", advisorAction);
|
||||
}
|
||||
|
||||
std::string GetRawPlanJsonRequest::getJobName()const
|
||||
{
|
||||
return jobName_;
|
||||
|
||||
@@ -89,6 +89,8 @@ void ListInstanceResult::parse(const std::string &payload)
|
||||
instancesObject.queueName = valueInstancesInstance["QueueName"].asString();
|
||||
if(!valueInstancesInstance["EndTime"].isNull())
|
||||
instancesObject.endTime = std::stol(valueInstancesInstance["EndTime"].asString());
|
||||
if(!valueInstancesInstance["Priority"].isNull())
|
||||
instancesObject.priority = std::stoi(valueInstancesInstance["Priority"].asString());
|
||||
instances_.push_back(instancesObject);
|
||||
}
|
||||
if(!value["PageIndex"].isNull())
|
||||
|
||||
@@ -73,6 +73,14 @@ void ListPackageResult::parse(const std::string &payload)
|
||||
packagesObject.ossPath = valuePackagesPackage["OssPath"].asString();
|
||||
if(!valuePackagesPackage["Tag"].isNull())
|
||||
packagesObject.tag = valuePackagesPackage["Tag"].asString();
|
||||
if(!valuePackagesPackage["ScanState"].isNull())
|
||||
packagesObject.scanState = valuePackagesPackage["ScanState"].asString();
|
||||
if(!valuePackagesPackage["ScanLink"].isNull())
|
||||
packagesObject.scanLink = valuePackagesPackage["ScanLink"].asString();
|
||||
if(!valuePackagesPackage["ScanExtBizNo"].isNull())
|
||||
packagesObject.scanExtBizNo = valuePackagesPackage["ScanExtBizNo"].asString();
|
||||
if(!valuePackagesPackage["ScanErrorMessage"].isNull())
|
||||
packagesObject.scanErrorMessage = valuePackagesPackage["ScanErrorMessage"].asString();
|
||||
packages_.push_back(packagesObject);
|
||||
}
|
||||
if(!value["PageIndex"].isNull())
|
||||
|
||||
85
foas/src/model/ListTagResourcesRequest.cc
Normal file
85
foas/src/model/ListTagResourcesRequest.cc
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/ListTagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::ListTagResourcesRequest;
|
||||
|
||||
ListTagResourcesRequest::ListTagResourcesRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{
|
||||
setResourcePath("/api/v2/cluster/tags");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListTagResourcesRequest::~ListTagResourcesRequest()
|
||||
{}
|
||||
|
||||
std::string ListTagResourcesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setHeader("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getResourceIds()const
|
||||
{
|
||||
return resourceIds_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceIds(const std::string& resourceIds)
|
||||
{
|
||||
resourceIds_ = resourceIds;
|
||||
setParameter("ResourceIds", resourceIds);
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setTags(const std::string& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setParameter("Tags", tags);
|
||||
}
|
||||
|
||||
94
foas/src/model/ListTagResourcesResult.cc
Normal file
94
foas/src/model/ListTagResourcesResult.cc
Normal file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* 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/foas/model/ListTagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
ListTagResourcesResult::ListTagResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTagResourcesResult::~ListTagResourcesResult()
|
||||
{}
|
||||
|
||||
void ListTagResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["NextToken"].isNull())
|
||||
data_.nextToken = dataNode["NextToken"].asString();
|
||||
auto allTagResourcesNode = dataNode["TagResources"]["TagResource"];
|
||||
for (auto dataNodeTagResourcesTagResource : allTagResourcesNode)
|
||||
{
|
||||
Data::TagResource tagResourceObject;
|
||||
if(!dataNodeTagResourcesTagResource["ResourceType"].isNull())
|
||||
tagResourceObject.resourceType = dataNodeTagResourcesTagResource["ResourceType"].asString();
|
||||
if(!dataNodeTagResourcesTagResource["TagKey"].isNull())
|
||||
tagResourceObject.tagKey = dataNodeTagResourcesTagResource["TagKey"].asString();
|
||||
if(!dataNodeTagResourcesTagResource["TagValue"].isNull())
|
||||
tagResourceObject.tagValue = dataNodeTagResourcesTagResource["TagValue"].asString();
|
||||
if(!dataNodeTagResourcesTagResource["ResourceId"].isNull())
|
||||
tagResourceObject.resourceId = dataNodeTagResourcesTagResource["ResourceId"].asString();
|
||||
data_.tagResources.push_back(tagResourceObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListTagResourcesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListTagResourcesResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
ListTagResourcesResult::Data ListTagResourcesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListTagResourcesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListTagResourcesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -72,6 +72,17 @@ void ModifyInstanceStateRequest::setRegionId(const std::string& regionId)
|
||||
setHeader("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool ModifyInstanceStateRequest::getTriggerCheckpoint()const
|
||||
{
|
||||
return triggerCheckpoint_;
|
||||
}
|
||||
|
||||
void ModifyInstanceStateRequest::setTriggerCheckpoint(bool triggerCheckpoint)
|
||||
{
|
||||
triggerCheckpoint_ = triggerCheckpoint;
|
||||
setBodyParameter("TriggerCheckpoint", triggerCheckpoint ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyInstanceStateRequest::getExpectState()const
|
||||
{
|
||||
return expectState_;
|
||||
|
||||
41
foas/src/model/TagResourcesRequest.cc
Normal file
41
foas/src/model/TagResourcesRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/TagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::TagResourcesRequest;
|
||||
|
||||
TagResourcesRequest::TagResourcesRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{
|
||||
setResourcePath("/api/v2/cluster/tags");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TagResourcesRequest::~TagResourcesRequest()
|
||||
{}
|
||||
|
||||
std::string TagResourcesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setHeader("RegionId", regionId);
|
||||
}
|
||||
|
||||
79
foas/src/model/TagResourcesResult.cc
Normal file
79
foas/src/model/TagResourcesResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/TagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
TagResourcesResult::TagResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TagResourcesResult::TagResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TagResourcesResult::~TagResourcesResult()
|
||||
{}
|
||||
|
||||
void TagResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string TagResourcesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int TagResourcesResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
bool TagResourcesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string TagResourcesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool TagResourcesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
85
foas/src/model/UntagResourcesRequest.cc
Normal file
85
foas/src/model/UntagResourcesRequest.cc
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/UntagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::UntagResourcesRequest;
|
||||
|
||||
UntagResourcesRequest::UntagResourcesRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{
|
||||
setResourcePath("/api/v2/cluster/tags");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
UntagResourcesRequest::~UntagResourcesRequest()
|
||||
{}
|
||||
|
||||
bool UntagResourcesRequest::getAll()const
|
||||
{
|
||||
return all_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setAll(bool all)
|
||||
{
|
||||
all_ = all;
|
||||
setParameter("All", all ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setHeader("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getTagKeys()const
|
||||
{
|
||||
return tagKeys_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setTagKeys(const std::string& tagKeys)
|
||||
{
|
||||
tagKeys_ = tagKeys;
|
||||
setParameter("TagKeys", tagKeys);
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getResourceIds()const
|
||||
{
|
||||
return resourceIds_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setResourceIds(const std::string& resourceIds)
|
||||
{
|
||||
resourceIds_ = resourceIds;
|
||||
setParameter("ResourceIds", resourceIds);
|
||||
}
|
||||
|
||||
79
foas/src/model/UntagResourcesResult.cc
Normal file
79
foas/src/model/UntagResourcesResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/UntagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
UntagResourcesResult::UntagResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UntagResourcesResult::UntagResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UntagResourcesResult::~UntagResourcesResult()
|
||||
{}
|
||||
|
||||
void UntagResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string UntagResourcesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int UntagResourcesResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
bool UntagResourcesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string UntagResourcesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UntagResourcesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
52
foas/src/model/UpdateProjectConfigRequest.cc
Normal file
52
foas/src/model/UpdateProjectConfigRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/UpdateProjectConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::UpdateProjectConfigRequest;
|
||||
|
||||
UpdateProjectConfigRequest::UpdateProjectConfigRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{
|
||||
setResourcePath("/api/v2/project/config");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
UpdateProjectConfigRequest::~UpdateProjectConfigRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateProjectConfigRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void UpdateProjectConfigRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
bool UpdateProjectConfigRequest::getIsOpenBatchSQL()const
|
||||
{
|
||||
return isOpenBatchSQL_;
|
||||
}
|
||||
|
||||
void UpdateProjectConfigRequest::setIsOpenBatchSQL(bool isOpenBatchSQL)
|
||||
{
|
||||
isOpenBatchSQL_ = isOpenBatchSQL;
|
||||
setParameter("IsOpenBatchSQL", isOpenBatchSQL ? "true" : "false");
|
||||
}
|
||||
|
||||
@@ -14,38 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetInstanceVertexTaskManagersResult.h>
|
||||
#include <alibabacloud/foas/model/UpdateProjectConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
GetInstanceVertexTaskManagersResult::GetInstanceVertexTaskManagersResult() :
|
||||
UpdateProjectConfigResult::UpdateProjectConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetInstanceVertexTaskManagersResult::GetInstanceVertexTaskManagersResult(const std::string &payload) :
|
||||
UpdateProjectConfigResult::UpdateProjectConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetInstanceVertexTaskManagersResult::~GetInstanceVertexTaskManagersResult()
|
||||
UpdateProjectConfigResult::~UpdateProjectConfigResult()
|
||||
{}
|
||||
|
||||
void GetInstanceVertexTaskManagersResult::parse(const std::string &payload)
|
||||
void UpdateProjectConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskManagers"].isNull())
|
||||
taskManagers_ = value["TaskManagers"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string GetInstanceVertexTaskManagersResult::getTaskManagers()const
|
||||
bool UpdateProjectConfigResult::getData()const
|
||||
{
|
||||
return taskManagers_;
|
||||
return data_;
|
||||
}
|
||||
|
||||
63
foas/src/model/UpdateProjectRequest.cc
Normal file
63
foas/src/model/UpdateProjectRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/UpdateProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::UpdateProjectRequest;
|
||||
|
||||
UpdateProjectRequest::UpdateProjectRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{
|
||||
setResourcePath("/api/v2/projects/[projectName]");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
UpdateProjectRequest::~UpdateProjectRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateProjectRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void UpdateProjectRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string UpdateProjectRequest::getGlobalJobConfig()const
|
||||
{
|
||||
return globalJobConfig_;
|
||||
}
|
||||
|
||||
void UpdateProjectRequest::setGlobalJobConfig(const std::string& globalJobConfig)
|
||||
{
|
||||
globalJobConfig_ = globalJobConfig;
|
||||
setBodyParameter("GlobalJobConfig", globalJobConfig);
|
||||
}
|
||||
|
||||
std::string UpdateProjectRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpdateProjectRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setHeader("RegionId", regionId);
|
||||
}
|
||||
|
||||
44
foas/src/model/UpdateProjectResult.cc
Normal file
44
foas/src/model/UpdateProjectResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/UpdateProjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
UpdateProjectResult::UpdateProjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateProjectResult::UpdateProjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateProjectResult::~UpdateProjectResult()
|
||||
{}
|
||||
|
||||
void UpdateProjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user