Add API ListQuotaReviewTasks.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2021-05-17 Version: 1.36.741
|
||||
- Add API ListQuotaReviewTasks.
|
||||
|
||||
2021-05-17 Version: 1.36.740
|
||||
- Support DescribeInstallCaptcha API.
|
||||
|
||||
|
||||
@@ -165,6 +165,8 @@ set(opensearch_public_header_model
|
||||
include/alibabacloud/opensearch/model/ListQueryProcessorNersResult.h
|
||||
include/alibabacloud/opensearch/model/ListQueryProcessorsRequest.h
|
||||
include/alibabacloud/opensearch/model/ListQueryProcessorsResult.h
|
||||
include/alibabacloud/opensearch/model/ListQuotaReviewTasksRequest.h
|
||||
include/alibabacloud/opensearch/model/ListQuotaReviewTasksResult.h
|
||||
include/alibabacloud/opensearch/model/ListRamRolesRequest.h
|
||||
include/alibabacloud/opensearch/model/ListRamRolesResult.h
|
||||
include/alibabacloud/opensearch/model/ListScheduledTasksRequest.h
|
||||
@@ -249,6 +251,8 @@ set(opensearch_public_header_model
|
||||
include/alibabacloud/opensearch/model/UpdateABTestSceneResult.h
|
||||
include/alibabacloud/opensearch/model/UpdateFetchFieldsRequest.h
|
||||
include/alibabacloud/opensearch/model/UpdateFetchFieldsResult.h
|
||||
include/alibabacloud/opensearch/model/UpdateSortScriptRequest.h
|
||||
include/alibabacloud/opensearch/model/UpdateSortScriptResult.h
|
||||
include/alibabacloud/opensearch/model/UpdateSummariesRequest.h
|
||||
include/alibabacloud/opensearch/model/UpdateSummariesResult.h )
|
||||
|
||||
@@ -398,6 +402,8 @@ set(opensearch_src
|
||||
src/model/ListQueryProcessorNersResult.cc
|
||||
src/model/ListQueryProcessorsRequest.cc
|
||||
src/model/ListQueryProcessorsResult.cc
|
||||
src/model/ListQuotaReviewTasksRequest.cc
|
||||
src/model/ListQuotaReviewTasksResult.cc
|
||||
src/model/ListRamRolesRequest.cc
|
||||
src/model/ListRamRolesResult.cc
|
||||
src/model/ListScheduledTasksRequest.cc
|
||||
@@ -482,6 +488,8 @@ set(opensearch_src
|
||||
src/model/UpdateABTestSceneResult.cc
|
||||
src/model/UpdateFetchFieldsRequest.cc
|
||||
src/model/UpdateFetchFieldsResult.cc
|
||||
src/model/UpdateSortScriptRequest.cc
|
||||
src/model/UpdateSortScriptResult.cc
|
||||
src/model/UpdateSummariesRequest.cc
|
||||
src/model/UpdateSummariesResult.cc )
|
||||
|
||||
|
||||
@@ -166,6 +166,8 @@
|
||||
#include "model/ListQueryProcessorNersResult.h"
|
||||
#include "model/ListQueryProcessorsRequest.h"
|
||||
#include "model/ListQueryProcessorsResult.h"
|
||||
#include "model/ListQuotaReviewTasksRequest.h"
|
||||
#include "model/ListQuotaReviewTasksResult.h"
|
||||
#include "model/ListRamRolesRequest.h"
|
||||
#include "model/ListRamRolesResult.h"
|
||||
#include "model/ListScheduledTasksRequest.h"
|
||||
@@ -250,6 +252,8 @@
|
||||
#include "model/UpdateABTestSceneResult.h"
|
||||
#include "model/UpdateFetchFieldsRequest.h"
|
||||
#include "model/UpdateFetchFieldsResult.h"
|
||||
#include "model/UpdateSortScriptRequest.h"
|
||||
#include "model/UpdateSortScriptResult.h"
|
||||
#include "model/UpdateSummariesRequest.h"
|
||||
#include "model/UpdateSummariesResult.h"
|
||||
|
||||
@@ -477,6 +481,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListQueryProcessorsResult> ListQueryProcessorsOutcome;
|
||||
typedef std::future<ListQueryProcessorsOutcome> ListQueryProcessorsOutcomeCallable;
|
||||
typedef std::function<void(const OpenSearchClient*, const Model::ListQueryProcessorsRequest&, const ListQueryProcessorsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListQueryProcessorsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListQuotaReviewTasksResult> ListQuotaReviewTasksOutcome;
|
||||
typedef std::future<ListQuotaReviewTasksOutcome> ListQuotaReviewTasksOutcomeCallable;
|
||||
typedef std::function<void(const OpenSearchClient*, const Model::ListQuotaReviewTasksRequest&, const ListQuotaReviewTasksOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListQuotaReviewTasksAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListRamRolesResult> ListRamRolesOutcome;
|
||||
typedef std::future<ListRamRolesOutcome> ListRamRolesOutcomeCallable;
|
||||
typedef std::function<void(const OpenSearchClient*, const Model::ListRamRolesRequest&, const ListRamRolesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRamRolesAsyncHandler;
|
||||
@@ -603,6 +610,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateFetchFieldsResult> UpdateFetchFieldsOutcome;
|
||||
typedef std::future<UpdateFetchFieldsOutcome> UpdateFetchFieldsOutcomeCallable;
|
||||
typedef std::function<void(const OpenSearchClient*, const Model::UpdateFetchFieldsRequest&, const UpdateFetchFieldsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateFetchFieldsAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateSortScriptResult> UpdateSortScriptOutcome;
|
||||
typedef std::future<UpdateSortScriptOutcome> UpdateSortScriptOutcomeCallable;
|
||||
typedef std::function<void(const OpenSearchClient*, const Model::UpdateSortScriptRequest&, const UpdateSortScriptOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateSortScriptAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateSummariesResult> UpdateSummariesOutcome;
|
||||
typedef std::future<UpdateSummariesOutcome> UpdateSummariesOutcomeCallable;
|
||||
typedef std::function<void(const OpenSearchClient*, const Model::UpdateSummariesRequest&, const UpdateSummariesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateSummariesAsyncHandler;
|
||||
@@ -827,6 +837,9 @@ namespace AlibabaCloud
|
||||
ListQueryProcessorsOutcome listQueryProcessors(const Model::ListQueryProcessorsRequest &request)const;
|
||||
void listQueryProcessorsAsync(const Model::ListQueryProcessorsRequest& request, const ListQueryProcessorsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListQueryProcessorsOutcomeCallable listQueryProcessorsCallable(const Model::ListQueryProcessorsRequest& request) const;
|
||||
ListQuotaReviewTasksOutcome listQuotaReviewTasks(const Model::ListQuotaReviewTasksRequest &request)const;
|
||||
void listQuotaReviewTasksAsync(const Model::ListQuotaReviewTasksRequest& request, const ListQuotaReviewTasksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListQuotaReviewTasksOutcomeCallable listQuotaReviewTasksCallable(const Model::ListQuotaReviewTasksRequest& request) const;
|
||||
ListRamRolesOutcome listRamRoles(const Model::ListRamRolesRequest &request)const;
|
||||
void listRamRolesAsync(const Model::ListRamRolesRequest& request, const ListRamRolesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListRamRolesOutcomeCallable listRamRolesCallable(const Model::ListRamRolesRequest& request) const;
|
||||
@@ -953,6 +966,9 @@ namespace AlibabaCloud
|
||||
UpdateFetchFieldsOutcome updateFetchFields(const Model::UpdateFetchFieldsRequest &request)const;
|
||||
void updateFetchFieldsAsync(const Model::UpdateFetchFieldsRequest& request, const UpdateFetchFieldsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateFetchFieldsOutcomeCallable updateFetchFieldsCallable(const Model::UpdateFetchFieldsRequest& request) const;
|
||||
UpdateSortScriptOutcome updateSortScript(const Model::UpdateSortScriptRequest &request)const;
|
||||
void updateSortScriptAsync(const Model::UpdateSortScriptRequest& request, const UpdateSortScriptAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateSortScriptOutcomeCallable updateSortScriptCallable(const Model::UpdateSortScriptRequest& request) const;
|
||||
UpdateSummariesOutcome updateSummaries(const Model::UpdateSummariesRequest &request)const;
|
||||
void updateSummariesAsync(const Model::UpdateSummariesRequest& request, const UpdateSummariesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateSummariesOutcomeCallable updateSummariesCallable(const Model::UpdateSummariesRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_LISTQUOTAREVIEWTASKSREQUEST_H_
|
||||
#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTQUOTAREVIEWTASKSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/opensearch/OpenSearchExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OpenSearch
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OPENSEARCH_EXPORT ListQuotaReviewTasksRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListQuotaReviewTasksRequest();
|
||||
~ListQuotaReviewTasksRequest();
|
||||
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getAppGroupIdentity()const;
|
||||
void setAppGroupIdentity(const std::string& appGroupIdentity);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
|
||||
private:
|
||||
int pageSize_;
|
||||
std::string appGroupIdentity_;
|
||||
int pageNumber_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTQUOTAREVIEWTASKSREQUEST_H_
|
||||
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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_OPENSEARCH_MODEL_LISTQUOTAREVIEWTASKSRESULT_H_
|
||||
#define ALIBABACLOUD_OPENSEARCH_MODEL_LISTQUOTAREVIEWTASKSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/opensearch/OpenSearchExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OpenSearch
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OPENSEARCH_EXPORT ListQuotaReviewTasksResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResultItem
|
||||
{
|
||||
std::string appGroupType;
|
||||
std::string oldSpec;
|
||||
std::string newSpec;
|
||||
bool approved;
|
||||
std::string gmtModified;
|
||||
int oldComputeResource;
|
||||
std::string gmtCreate;
|
||||
int newComputeResource;
|
||||
int appGroupId;
|
||||
int oldDocSize;
|
||||
bool available;
|
||||
int id;
|
||||
std::string appGroupName;
|
||||
int newSocSize;
|
||||
std::string memo;
|
||||
bool pending;
|
||||
};
|
||||
|
||||
|
||||
ListQuotaReviewTasksResult();
|
||||
explicit ListQuotaReviewTasksResult(const std::string &payload);
|
||||
~ListQuotaReviewTasksResult();
|
||||
std::vector<ResultItem> getresult()const;
|
||||
int getTotalCount()const;
|
||||
std::string getRequestId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<ResultItem> result_;
|
||||
int totalCount_;
|
||||
std::string requestId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_LISTQUOTAREVIEWTASKSRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OPENSEARCH_MODEL_UPDATESORTSCRIPTREQUEST_H_
|
||||
#define ALIBABACLOUD_OPENSEARCH_MODEL_UPDATESORTSCRIPTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/opensearch/OpenSearchExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OpenSearch
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OPENSEARCH_EXPORT UpdateSortScriptRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateSortScriptRequest();
|
||||
~UpdateSortScriptRequest();
|
||||
|
||||
std::string getAppVersionId()const;
|
||||
void setAppVersionId(const std::string& appVersionId);
|
||||
std::string getScriptName()const;
|
||||
void setScriptName(const std::string& scriptName);
|
||||
std::string getAppGroupIdentity()const;
|
||||
void setAppGroupIdentity(const std::string& appGroupIdentity);
|
||||
|
||||
private:
|
||||
std::string appVersionId_;
|
||||
std::string scriptName_;
|
||||
std::string appGroupIdentity_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UPDATESORTSCRIPTREQUEST_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_OPENSEARCH_MODEL_UPDATESORTSCRIPTRESULT_H_
|
||||
#define ALIBABACLOUD_OPENSEARCH_MODEL_UPDATESORTSCRIPTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/opensearch/OpenSearchExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OpenSearch
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OPENSEARCH_EXPORT UpdateSortScriptResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateSortScriptResult();
|
||||
explicit UpdateSortScriptResult(const std::string &payload);
|
||||
~UpdateSortScriptResult();
|
||||
std::string getRequestId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string requestId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OPENSEARCH_MODEL_UPDATESORTSCRIPTRESULT_H_
|
||||
@@ -2643,6 +2643,42 @@ OpenSearchClient::ListQueryProcessorsOutcomeCallable OpenSearchClient::listQuery
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::ListQuotaReviewTasksOutcome OpenSearchClient::listQuotaReviewTasks(const ListQuotaReviewTasksRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListQuotaReviewTasksOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListQuotaReviewTasksOutcome(ListQuotaReviewTasksResult(outcome.result()));
|
||||
else
|
||||
return ListQuotaReviewTasksOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenSearchClient::listQuotaReviewTasksAsync(const ListQuotaReviewTasksRequest& request, const ListQuotaReviewTasksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listQuotaReviewTasks(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenSearchClient::ListQuotaReviewTasksOutcomeCallable OpenSearchClient::listQuotaReviewTasksCallable(const ListQuotaReviewTasksRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListQuotaReviewTasksOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listQuotaReviewTasks(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::ListRamRolesOutcome OpenSearchClient::listRamRoles(const ListRamRolesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4155,6 +4191,42 @@ OpenSearchClient::UpdateFetchFieldsOutcomeCallable OpenSearchClient::updateFetch
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::UpdateSortScriptOutcome OpenSearchClient::updateSortScript(const UpdateSortScriptRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateSortScriptOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateSortScriptOutcome(UpdateSortScriptResult(outcome.result()));
|
||||
else
|
||||
return UpdateSortScriptOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenSearchClient::updateSortScriptAsync(const UpdateSortScriptRequest& request, const UpdateSortScriptAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateSortScript(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenSearchClient::UpdateSortScriptOutcomeCallable OpenSearchClient::updateSortScriptCallable(const UpdateSortScriptRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateSortScriptOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateSortScript(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::UpdateSummariesOutcome OpenSearchClient::updateSummaries(const UpdateSummariesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
63
opensearch/src/model/ListQuotaReviewTasksRequest.cc
Normal file
63
opensearch/src/model/ListQuotaReviewTasksRequest.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/opensearch/model/ListQuotaReviewTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::OpenSearch::Model::ListQuotaReviewTasksRequest;
|
||||
|
||||
ListQuotaReviewTasksRequest::ListQuotaReviewTasksRequest() :
|
||||
RoaServiceRequest("opensearch", "2017-12-25")
|
||||
{
|
||||
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/quota-review-tasks");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListQuotaReviewTasksRequest::~ListQuotaReviewTasksRequest()
|
||||
{}
|
||||
|
||||
int ListQuotaReviewTasksRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListQuotaReviewTasksRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListQuotaReviewTasksRequest::getAppGroupIdentity()const
|
||||
{
|
||||
return appGroupIdentity_;
|
||||
}
|
||||
|
||||
void ListQuotaReviewTasksRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
|
||||
{
|
||||
appGroupIdentity_ = appGroupIdentity;
|
||||
setParameter("AppGroupIdentity", appGroupIdentity);
|
||||
}
|
||||
|
||||
int ListQuotaReviewTasksRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListQuotaReviewTasksRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
101
opensearch/src/model/ListQuotaReviewTasksResult.cc
Normal file
101
opensearch/src/model/ListQuotaReviewTasksResult.cc
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* 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/opensearch/model/ListQuotaReviewTasksResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OpenSearch;
|
||||
using namespace AlibabaCloud::OpenSearch::Model;
|
||||
|
||||
ListQuotaReviewTasksResult::ListQuotaReviewTasksResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListQuotaReviewTasksResult::ListQuotaReviewTasksResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListQuotaReviewTasksResult::~ListQuotaReviewTasksResult()
|
||||
{}
|
||||
|
||||
void ListQuotaReviewTasksResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allresultNode = value["result"]["resultItem"];
|
||||
for (auto valueresultresultItem : allresultNode)
|
||||
{
|
||||
ResultItem resultObject;
|
||||
if(!valueresultresultItem["id"].isNull())
|
||||
resultObject.id = std::stoi(valueresultresultItem["id"].asString());
|
||||
if(!valueresultresultItem["appGroupId"].isNull())
|
||||
resultObject.appGroupId = std::stoi(valueresultresultItem["appGroupId"].asString());
|
||||
if(!valueresultresultItem["appGroupName"].isNull())
|
||||
resultObject.appGroupName = valueresultresultItem["appGroupName"].asString();
|
||||
if(!valueresultresultItem["appGroupType"].isNull())
|
||||
resultObject.appGroupType = valueresultresultItem["appGroupType"].asString();
|
||||
if(!valueresultresultItem["oldSpec"].isNull())
|
||||
resultObject.oldSpec = valueresultresultItem["oldSpec"].asString();
|
||||
if(!valueresultresultItem["oldComputeResource"].isNull())
|
||||
resultObject.oldComputeResource = std::stoi(valueresultresultItem["oldComputeResource"].asString());
|
||||
if(!valueresultresultItem["oldDocSize"].isNull())
|
||||
resultObject.oldDocSize = std::stoi(valueresultresultItem["oldDocSize"].asString());
|
||||
if(!valueresultresultItem["newSpec"].isNull())
|
||||
resultObject.newSpec = valueresultresultItem["newSpec"].asString();
|
||||
if(!valueresultresultItem["newComputeResource"].isNull())
|
||||
resultObject.newComputeResource = std::stoi(valueresultresultItem["newComputeResource"].asString());
|
||||
if(!valueresultresultItem["newSocSize"].isNull())
|
||||
resultObject.newSocSize = std::stoi(valueresultresultItem["newSocSize"].asString());
|
||||
if(!valueresultresultItem["memo"].isNull())
|
||||
resultObject.memo = valueresultresultItem["memo"].asString();
|
||||
if(!valueresultresultItem["available"].isNull())
|
||||
resultObject.available = valueresultresultItem["available"].asString() == "true";
|
||||
if(!valueresultresultItem["pending"].isNull())
|
||||
resultObject.pending = valueresultresultItem["pending"].asString() == "true";
|
||||
if(!valueresultresultItem["approved"].isNull())
|
||||
resultObject.approved = valueresultresultItem["approved"].asString() == "true";
|
||||
if(!valueresultresultItem["gmtCreate"].isNull())
|
||||
resultObject.gmtCreate = valueresultresultItem["gmtCreate"].asString();
|
||||
if(!valueresultresultItem["gmtModified"].isNull())
|
||||
resultObject.gmtModified = valueresultresultItem["gmtModified"].asString();
|
||||
result_.push_back(resultObject);
|
||||
}
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
if(!value["totalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["totalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListQuotaReviewTasksResult::ResultItem> ListQuotaReviewTasksResult::getresult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
int ListQuotaReviewTasksResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListQuotaReviewTasksResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
63
opensearch/src/model/UpdateSortScriptRequest.cc
Normal file
63
opensearch/src/model/UpdateSortScriptRequest.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/opensearch/model/UpdateSortScriptRequest.h>
|
||||
|
||||
using AlibabaCloud::OpenSearch::Model::UpdateSortScriptRequest;
|
||||
|
||||
UpdateSortScriptRequest::UpdateSortScriptRequest() :
|
||||
RoaServiceRequest("opensearch", "2017-12-25")
|
||||
{
|
||||
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
UpdateSortScriptRequest::~UpdateSortScriptRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateSortScriptRequest::getAppVersionId()const
|
||||
{
|
||||
return appVersionId_;
|
||||
}
|
||||
|
||||
void UpdateSortScriptRequest::setAppVersionId(const std::string& appVersionId)
|
||||
{
|
||||
appVersionId_ = appVersionId;
|
||||
setParameter("AppVersionId", appVersionId);
|
||||
}
|
||||
|
||||
std::string UpdateSortScriptRequest::getScriptName()const
|
||||
{
|
||||
return scriptName_;
|
||||
}
|
||||
|
||||
void UpdateSortScriptRequest::setScriptName(const std::string& scriptName)
|
||||
{
|
||||
scriptName_ = scriptName;
|
||||
setParameter("ScriptName", scriptName);
|
||||
}
|
||||
|
||||
std::string UpdateSortScriptRequest::getAppGroupIdentity()const
|
||||
{
|
||||
return appGroupIdentity_;
|
||||
}
|
||||
|
||||
void UpdateSortScriptRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
|
||||
{
|
||||
appGroupIdentity_ = appGroupIdentity;
|
||||
setParameter("AppGroupIdentity", appGroupIdentity);
|
||||
}
|
||||
|
||||
51
opensearch/src/model/UpdateSortScriptResult.cc
Normal file
51
opensearch/src/model/UpdateSortScriptResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/UpdateSortScriptResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OpenSearch;
|
||||
using namespace AlibabaCloud::OpenSearch::Model;
|
||||
|
||||
UpdateSortScriptResult::UpdateSortScriptResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateSortScriptResult::UpdateSortScriptResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateSortScriptResult::~UpdateSortScriptResult()
|
||||
{}
|
||||
|
||||
void UpdateSortScriptResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateSortScriptResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user