Support multi language.

This commit is contained in:
sdk-team
2021-11-02 07:14:08 +00:00
parent e4fc46970b
commit 5f1578fdbe
46 changed files with 1489 additions and 176 deletions

View File

@@ -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;

View File

@@ -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_;
};
}

View File

@@ -36,6 +36,7 @@ namespace AlibabaCloud
{
int maxMem;
int usedGpu;
std::string externalInfo;
int usedMem;
std::string clusterId;
int minGpu;

View File

@@ -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;
};

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;
};

View File

@@ -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_;

View File

@@ -40,6 +40,7 @@ namespace AlibabaCloud
long endTime;
std::string projectName;
std::string clusterId;
int priority;
std::string planJson;
std::string jobName;
long startTime;

View File

@@ -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;

View 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_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_

View File

@@ -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_

View File

@@ -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_;

View 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_

View 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_

View 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_

View 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_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#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_

View File

@@ -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_

View File

@@ -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_

View 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_