Support Async parameter in DescribeJob API.
This commit is contained in:
@@ -39,12 +39,15 @@ public:
|
||||
void setClusterId(const std::string &clusterId);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
bool getAsync() const;
|
||||
void setAsync(bool async);
|
||||
std::vector<User> getUser() const;
|
||||
void setUser(const std::vector<User> &user);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
std::string accessKeyId_;
|
||||
bool async_;
|
||||
std::vector<User> user_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -37,12 +37,15 @@ public:
|
||||
void setClusterId(const std::string &clusterId);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
bool getAsync() const;
|
||||
void setAsync(bool async);
|
||||
std::vector<User> getUser() const;
|
||||
void setUser(const std::vector<User> &user);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
std::string accessKeyId_;
|
||||
bool async_;
|
||||
std::vector<User> user_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -36,11 +36,14 @@ public:
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getJobId() const;
|
||||
void setJobId(const std::string &jobId);
|
||||
bool getAsync() const;
|
||||
void setAsync(bool async);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
std::string accessKeyId_;
|
||||
std::string jobId_;
|
||||
bool async_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace EHPC
|
||||
|
||||
@@ -38,12 +38,15 @@ public:
|
||||
void setClusterId(const std::string &clusterId);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
bool getAsync() const;
|
||||
void setAsync(bool async);
|
||||
std::vector<User> getUser() const;
|
||||
void setUser(const std::vector<User> &user);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
std::string accessKeyId_;
|
||||
bool async_;
|
||||
std::vector<User> user_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -38,12 +38,15 @@ public:
|
||||
void setClusterId(const std::string &clusterId);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
bool getAsync() const;
|
||||
void setAsync(bool async);
|
||||
std::vector<User> getUser() const;
|
||||
void setUser(const std::vector<User> &user);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
std::string accessKeyId_;
|
||||
bool async_;
|
||||
std::vector<User> user_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -43,6 +43,15 @@ void AddUsersRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
bool AddUsersRequest::getAsync() const {
|
||||
return async_;
|
||||
}
|
||||
|
||||
void AddUsersRequest::setAsync(bool async) {
|
||||
async_ = async;
|
||||
setParameter(std::string("Async"), async ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<AddUsersRequest::User> AddUsersRequest::getUser() const {
|
||||
return user_;
|
||||
}
|
||||
|
||||
@@ -43,6 +43,15 @@ void DeleteUsersRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
bool DeleteUsersRequest::getAsync() const {
|
||||
return async_;
|
||||
}
|
||||
|
||||
void DeleteUsersRequest::setAsync(bool async) {
|
||||
async_ = async;
|
||||
setParameter(std::string("Async"), async ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<DeleteUsersRequest::User> DeleteUsersRequest::getUser() const {
|
||||
return user_;
|
||||
}
|
||||
|
||||
@@ -52,3 +52,12 @@ void DescribeJobRequest::setJobId(const std::string &jobId) {
|
||||
setParameter(std::string("JobId"), jobId);
|
||||
}
|
||||
|
||||
bool DescribeJobRequest::getAsync() const {
|
||||
return async_;
|
||||
}
|
||||
|
||||
void DescribeJobRequest::setAsync(bool async) {
|
||||
async_ = async;
|
||||
setParameter(std::string("Async"), async ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -43,6 +43,15 @@ void ModifyUserGroupsRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
bool ModifyUserGroupsRequest::getAsync() const {
|
||||
return async_;
|
||||
}
|
||||
|
||||
void ModifyUserGroupsRequest::setAsync(bool async) {
|
||||
async_ = async;
|
||||
setParameter(std::string("Async"), async ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<ModifyUserGroupsRequest::User> ModifyUserGroupsRequest::getUser() const {
|
||||
return user_;
|
||||
}
|
||||
|
||||
@@ -43,6 +43,15 @@ void ModifyUserPasswordsRequest::setAccessKeyId(const std::string &accessKeyId)
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
bool ModifyUserPasswordsRequest::getAsync() const {
|
||||
return async_;
|
||||
}
|
||||
|
||||
void ModifyUserPasswordsRequest::setAsync(bool async) {
|
||||
async_ = async;
|
||||
setParameter(std::string("Async"), async ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<ModifyUserPasswordsRequest::User> ModifyUserPasswordsRequest::getUser() const {
|
||||
return user_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user