Add DescribePluginApis.
This commit is contained in:
@@ -207,6 +207,8 @@ set(cloudapi_public_header_model
|
||||
include/alibabacloud/cloudapi/model/DescribeMarketRemainsQuotaResult.h
|
||||
include/alibabacloud/cloudapi/model/DescribeModelsRequest.h
|
||||
include/alibabacloud/cloudapi/model/DescribeModelsResult.h
|
||||
include/alibabacloud/cloudapi/model/DescribePluginApisRequest.h
|
||||
include/alibabacloud/cloudapi/model/DescribePluginApisResult.h
|
||||
include/alibabacloud/cloudapi/model/DescribePluginSchemasRequest.h
|
||||
include/alibabacloud/cloudapi/model/DescribePluginSchemasResult.h
|
||||
include/alibabacloud/cloudapi/model/DescribePluginTemplatesRequest.h
|
||||
@@ -542,6 +544,8 @@ set(cloudapi_src
|
||||
src/model/DescribeMarketRemainsQuotaResult.cc
|
||||
src/model/DescribeModelsRequest.cc
|
||||
src/model/DescribeModelsResult.cc
|
||||
src/model/DescribePluginApisRequest.cc
|
||||
src/model/DescribePluginApisResult.cc
|
||||
src/model/DescribePluginSchemasRequest.cc
|
||||
src/model/DescribePluginSchemasResult.cc
|
||||
src/model/DescribePluginTemplatesRequest.cc
|
||||
|
||||
@@ -208,6 +208,8 @@
|
||||
#include "model/DescribeMarketRemainsQuotaResult.h"
|
||||
#include "model/DescribeModelsRequest.h"
|
||||
#include "model/DescribeModelsResult.h"
|
||||
#include "model/DescribePluginApisRequest.h"
|
||||
#include "model/DescribePluginApisResult.h"
|
||||
#include "model/DescribePluginSchemasRequest.h"
|
||||
#include "model/DescribePluginSchemasResult.h"
|
||||
#include "model/DescribePluginTemplatesRequest.h"
|
||||
@@ -642,6 +644,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeModelsResult> DescribeModelsOutcome;
|
||||
typedef std::future<DescribeModelsOutcome> DescribeModelsOutcomeCallable;
|
||||
typedef std::function<void(const CloudAPIClient*, const Model::DescribeModelsRequest&, const DescribeModelsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeModelsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePluginApisResult> DescribePluginApisOutcome;
|
||||
typedef std::future<DescribePluginApisOutcome> DescribePluginApisOutcomeCallable;
|
||||
typedef std::function<void(const CloudAPIClient*, const Model::DescribePluginApisRequest&, const DescribePluginApisOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePluginApisAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePluginSchemasResult> DescribePluginSchemasOutcome;
|
||||
typedef std::future<DescribePluginSchemasOutcome> DescribePluginSchemasOutcomeCallable;
|
||||
typedef std::function<void(const CloudAPIClient*, const Model::DescribePluginSchemasRequest&, const DescribePluginSchemasOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePluginSchemasAsyncHandler;
|
||||
@@ -1145,6 +1150,9 @@ namespace AlibabaCloud
|
||||
DescribeModelsOutcome describeModels(const Model::DescribeModelsRequest &request)const;
|
||||
void describeModelsAsync(const Model::DescribeModelsRequest& request, const DescribeModelsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeModelsOutcomeCallable describeModelsCallable(const Model::DescribeModelsRequest& request) const;
|
||||
DescribePluginApisOutcome describePluginApis(const Model::DescribePluginApisRequest &request)const;
|
||||
void describePluginApisAsync(const Model::DescribePluginApisRequest& request, const DescribePluginApisAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribePluginApisOutcomeCallable describePluginApisCallable(const Model::DescribePluginApisRequest& request) const;
|
||||
DescribePluginSchemasOutcome describePluginSchemas(const Model::DescribePluginSchemasRequest &request)const;
|
||||
void describePluginSchemasAsync(const Model::DescribePluginSchemasRequest& request, const DescribePluginSchemasAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribePluginSchemasOutcomeCallable describePluginSchemasCallable(const Model::DescribePluginSchemasRequest& request) const;
|
||||
|
||||
@@ -32,6 +32,8 @@ public:
|
||||
~CreateAccessControlListRequest();
|
||||
std::string getAclName() const;
|
||||
void setAclName(const std::string &aclName);
|
||||
std::string getAddressIPVersion() const;
|
||||
void setAddressIPVersion(const std::string &addressIPVersion);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getSecurityToken() const;
|
||||
@@ -39,6 +41,7 @@ public:
|
||||
|
||||
private:
|
||||
std::string aclName_;
|
||||
std::string addressIPVersion_;
|
||||
std::string accessKeyId_;
|
||||
std::string securityToken_;
|
||||
};
|
||||
|
||||
@@ -36,6 +36,8 @@ public:
|
||||
~CreateAppRequest();
|
||||
std::string getDescription() const;
|
||||
void setDescription(const std::string &description);
|
||||
long getAppOwnerUserId() const;
|
||||
void setAppOwnerUserId(long appOwnerUserId);
|
||||
std::string getSource() const;
|
||||
void setSource(const std::string &source);
|
||||
std::string getAccessKeyId() const;
|
||||
@@ -55,6 +57,7 @@ public:
|
||||
|
||||
private:
|
||||
std::string description_;
|
||||
long appOwnerUserId_;
|
||||
std::string source_;
|
||||
std::string accessKeyId_;
|
||||
std::string appName_;
|
||||
|
||||
@@ -34,6 +34,8 @@ public:
|
||||
};
|
||||
DeleteAppRequest();
|
||||
~DeleteAppRequest();
|
||||
long getAppOwnerUserId() const;
|
||||
void setAppOwnerUserId(long appOwnerUserId);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getSecurityToken() const;
|
||||
@@ -44,6 +46,7 @@ public:
|
||||
void setTag(const std::vector<Tag> &tag);
|
||||
|
||||
private:
|
||||
long appOwnerUserId_;
|
||||
std::string accessKeyId_;
|
||||
std::string securityToken_;
|
||||
long appId_;
|
||||
|
||||
@@ -32,6 +32,8 @@ public:
|
||||
~DescribeAccessControlListsRequest();
|
||||
std::string getAclName() const;
|
||||
void setAclName(const std::string &aclName);
|
||||
std::string getAddressIPVersion() const;
|
||||
void setAddressIPVersion(const std::string &addressIPVersion);
|
||||
int getPageNumber() const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getAccessKeyId() const;
|
||||
@@ -43,6 +45,7 @@ public:
|
||||
|
||||
private:
|
||||
std::string aclName_;
|
||||
std::string addressIPVersion_;
|
||||
int pageNumber_;
|
||||
std::string accessKeyId_;
|
||||
std::string securityToken_;
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
struct Acl
|
||||
{
|
||||
std::string aclId;
|
||||
std::string addressIPVersion;
|
||||
std::string aclName;
|
||||
};
|
||||
|
||||
|
||||
@@ -47,12 +47,14 @@ namespace AlibabaCloud
|
||||
std::string zoneLocalName;
|
||||
std::string instanceChargeType;
|
||||
int instanceRpsLimit;
|
||||
std::string iPV6AclName;
|
||||
bool vpcSlbIntranetEnable;
|
||||
std::string intranetSegments;
|
||||
std::string userVpcId;
|
||||
std::string expiredTime;
|
||||
std::string instanceType;
|
||||
std::string userVswitchId;
|
||||
std::string iPV6AclId;
|
||||
std::string status;
|
||||
std::string vpcEgressAddress;
|
||||
std::string zoneId;
|
||||
@@ -60,11 +62,13 @@ namespace AlibabaCloud
|
||||
std::string aclId;
|
||||
long vpcOwnerId;
|
||||
std::string aclName;
|
||||
std::string iPV6AclStatus;
|
||||
std::string instanceName;
|
||||
bool egressIpv6Enable;
|
||||
std::string aclStatus;
|
||||
bool vpcIntranetEnable;
|
||||
std::string httpsPolicies;
|
||||
std::string iPV6AclType;
|
||||
bool supportIpv6;
|
||||
std::string aclType;
|
||||
std::string regionId;
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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_CLOUDAPI_MODEL_DESCRIBEPLUGINAPISREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPLUGINAPISREQUEST_H_
|
||||
|
||||
#include <alibabacloud/cloudapi/CloudAPIExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace CloudAPI {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_CLOUDAPI_EXPORT DescribePluginApisRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribePluginApisRequest();
|
||||
~DescribePluginApisRequest();
|
||||
std::string getMethod() const;
|
||||
void setMethod(const std::string &method);
|
||||
std::string getPluginId() const;
|
||||
void setPluginId(const std::string &pluginId);
|
||||
std::string getGroupId() const;
|
||||
void setGroupId(const std::string &groupId);
|
||||
std::string getDescription() const;
|
||||
void setDescription(const std::string &description);
|
||||
int getPageNumber() const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getPath() const;
|
||||
void setPath(const std::string &path);
|
||||
std::string getApiName() const;
|
||||
void setApiName(const std::string &apiName);
|
||||
std::string getSecurityToken() const;
|
||||
void setSecurityToken(const std::string &securityToken);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getApiId() const;
|
||||
void setApiId(const std::string &apiId);
|
||||
|
||||
private:
|
||||
std::string method_;
|
||||
std::string pluginId_;
|
||||
std::string groupId_;
|
||||
std::string description_;
|
||||
int pageNumber_;
|
||||
std::string accessKeyId_;
|
||||
std::string path_;
|
||||
std::string apiName_;
|
||||
std::string securityToken_;
|
||||
int pageSize_;
|
||||
std::string apiId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace CloudAPI
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPLUGINAPISREQUEST_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPLUGINAPISRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPLUGINAPISRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudapi/CloudAPIExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CloudAPI
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAPI_EXPORT DescribePluginApisResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ApiPluginSummary
|
||||
{
|
||||
std::string groupName;
|
||||
std::string path;
|
||||
std::string description;
|
||||
std::string stageName;
|
||||
std::string apiName;
|
||||
std::string method;
|
||||
std::string regionId;
|
||||
std::string apiId;
|
||||
std::string groupId;
|
||||
};
|
||||
|
||||
|
||||
DescribePluginApisResult();
|
||||
explicit DescribePluginApisResult(const std::string &payload);
|
||||
~DescribePluginApisResult();
|
||||
int getTotalCount()const;
|
||||
int getPageSize()const;
|
||||
int getPageNumber()const;
|
||||
std::vector<ApiPluginSummary> getApiSummarys()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int totalCount_;
|
||||
int pageSize_;
|
||||
int pageNumber_;
|
||||
std::vector<ApiPluginSummary> apiSummarys_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPLUGINAPISRESULT_H_
|
||||
@@ -32,6 +32,8 @@ public:
|
||||
~DisableInstanceAccessControlRequest();
|
||||
std::string getAclId() const;
|
||||
void setAclId(const std::string &aclId);
|
||||
std::string getAddressIPVersion() const;
|
||||
void setAddressIPVersion(const std::string &addressIPVersion);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getInstanceId() const;
|
||||
@@ -41,6 +43,7 @@ public:
|
||||
|
||||
private:
|
||||
std::string aclId_;
|
||||
std::string addressIPVersion_;
|
||||
std::string accessKeyId_;
|
||||
std::string instanceId_;
|
||||
std::string securityToken_;
|
||||
|
||||
@@ -32,6 +32,8 @@ public:
|
||||
~EnableInstanceAccessControlRequest();
|
||||
std::string getAclId() const;
|
||||
void setAclId(const std::string &aclId);
|
||||
std::string getAddressIPVersion() const;
|
||||
void setAddressIPVersion(const std::string &addressIPVersion);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getAclType() const;
|
||||
@@ -43,6 +45,7 @@ public:
|
||||
|
||||
private:
|
||||
std::string aclId_;
|
||||
std::string addressIPVersion_;
|
||||
std::string accessKeyId_;
|
||||
std::string aclType_;
|
||||
std::string instanceId_;
|
||||
|
||||
@@ -3399,6 +3399,42 @@ CloudAPIClient::DescribeModelsOutcomeCallable CloudAPIClient::describeModelsCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudAPIClient::DescribePluginApisOutcome CloudAPIClient::describePluginApis(const DescribePluginApisRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribePluginApisOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribePluginApisOutcome(DescribePluginApisResult(outcome.result()));
|
||||
else
|
||||
return DescribePluginApisOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudAPIClient::describePluginApisAsync(const DescribePluginApisRequest& request, const DescribePluginApisAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describePluginApis(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudAPIClient::DescribePluginApisOutcomeCallable CloudAPIClient::describePluginApisCallable(const DescribePluginApisRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribePluginApisOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describePluginApis(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudAPIClient::DescribePluginSchemasOutcome CloudAPIClient::describePluginSchemas(const DescribePluginSchemasRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -34,6 +34,15 @@ void CreateAccessControlListRequest::setAclName(const std::string &aclName) {
|
||||
setParameter(std::string("AclName"), aclName);
|
||||
}
|
||||
|
||||
std::string CreateAccessControlListRequest::getAddressIPVersion() const {
|
||||
return addressIPVersion_;
|
||||
}
|
||||
|
||||
void CreateAccessControlListRequest::setAddressIPVersion(const std::string &addressIPVersion) {
|
||||
addressIPVersion_ = addressIPVersion;
|
||||
setParameter(std::string("AddressIPVersion"), addressIPVersion);
|
||||
}
|
||||
|
||||
std::string CreateAccessControlListRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void CreateAppRequest::setDescription(const std::string &description) {
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
long CreateAppRequest::getAppOwnerUserId() const {
|
||||
return appOwnerUserId_;
|
||||
}
|
||||
|
||||
void CreateAppRequest::setAppOwnerUserId(long appOwnerUserId) {
|
||||
appOwnerUserId_ = appOwnerUserId;
|
||||
setParameter(std::string("AppOwnerUserId"), std::to_string(appOwnerUserId));
|
||||
}
|
||||
|
||||
std::string CreateAppRequest::getSource() const {
|
||||
return source_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ DeleteAppRequest::DeleteAppRequest()
|
||||
|
||||
DeleteAppRequest::~DeleteAppRequest() {}
|
||||
|
||||
long DeleteAppRequest::getAppOwnerUserId() const {
|
||||
return appOwnerUserId_;
|
||||
}
|
||||
|
||||
void DeleteAppRequest::setAppOwnerUserId(long appOwnerUserId) {
|
||||
appOwnerUserId_ = appOwnerUserId;
|
||||
setParameter(std::string("AppOwnerUserId"), std::to_string(appOwnerUserId));
|
||||
}
|
||||
|
||||
std::string DeleteAppRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void DescribeAccessControlListsRequest::setAclName(const std::string &aclName) {
|
||||
setParameter(std::string("AclName"), aclName);
|
||||
}
|
||||
|
||||
std::string DescribeAccessControlListsRequest::getAddressIPVersion() const {
|
||||
return addressIPVersion_;
|
||||
}
|
||||
|
||||
void DescribeAccessControlListsRequest::setAddressIPVersion(const std::string &addressIPVersion) {
|
||||
addressIPVersion_ = addressIPVersion;
|
||||
setParameter(std::string("AddressIPVersion"), addressIPVersion);
|
||||
}
|
||||
|
||||
int DescribeAccessControlListsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
@@ -47,6 +47,8 @@ void DescribeAccessControlListsResult::parse(const std::string &payload)
|
||||
aclsObject.aclName = valueAclsAcl["AclName"].asString();
|
||||
if(!valueAclsAcl["AclId"].isNull())
|
||||
aclsObject.aclId = valueAclsAcl["AclId"].asString();
|
||||
if(!valueAclsAcl["AddressIPVersion"].isNull())
|
||||
aclsObject.addressIPVersion = valueAclsAcl["AddressIPVersion"].asString();
|
||||
acls_.push_back(aclsObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
|
||||
@@ -101,6 +101,14 @@ void DescribeInstancesResult::parse(const std::string &payload)
|
||||
instancesObject.aclId = valueInstancesInstanceAttribute["AclId"].asString();
|
||||
if(!valueInstancesInstanceAttribute["IntranetSegments"].isNull())
|
||||
instancesObject.intranetSegments = valueInstancesInstanceAttribute["IntranetSegments"].asString();
|
||||
if(!valueInstancesInstanceAttribute["IPV6AclName"].isNull())
|
||||
instancesObject.iPV6AclName = valueInstancesInstanceAttribute["IPV6AclName"].asString();
|
||||
if(!valueInstancesInstanceAttribute["IPV6AclId"].isNull())
|
||||
instancesObject.iPV6AclId = valueInstancesInstanceAttribute["IPV6AclId"].asString();
|
||||
if(!valueInstancesInstanceAttribute["IPV6AclType"].isNull())
|
||||
instancesObject.iPV6AclType = valueInstancesInstanceAttribute["IPV6AclType"].asString();
|
||||
if(!valueInstancesInstanceAttribute["IPV6AclStatus"].isNull())
|
||||
instancesObject.iPV6AclStatus = valueInstancesInstanceAttribute["IPV6AclStatus"].asString();
|
||||
auto allInstanceSpecAttributesNode = valueInstancesInstanceAttribute["InstanceSpecAttributes"]["SpecAttribute"];
|
||||
for (auto valueInstancesInstanceAttributeInstanceSpecAttributesSpecAttribute : allInstanceSpecAttributesNode)
|
||||
{
|
||||
|
||||
126
cloudapi/src/model/DescribePluginApisRequest.cc
Normal file
126
cloudapi/src/model/DescribePluginApisRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* 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/cloudapi/model/DescribePluginApisRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudAPI::Model::DescribePluginApisRequest;
|
||||
|
||||
DescribePluginApisRequest::DescribePluginApisRequest()
|
||||
: RpcServiceRequest("cloudapi", "2016-07-14", "DescribePluginApis") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribePluginApisRequest::~DescribePluginApisRequest() {}
|
||||
|
||||
std::string DescribePluginApisRequest::getMethod() const {
|
||||
return method_;
|
||||
}
|
||||
|
||||
void DescribePluginApisRequest::setMethod(const std::string &method) {
|
||||
method_ = method;
|
||||
setParameter(std::string("Method"), method);
|
||||
}
|
||||
|
||||
std::string DescribePluginApisRequest::getPluginId() const {
|
||||
return pluginId_;
|
||||
}
|
||||
|
||||
void DescribePluginApisRequest::setPluginId(const std::string &pluginId) {
|
||||
pluginId_ = pluginId;
|
||||
setParameter(std::string("PluginId"), pluginId);
|
||||
}
|
||||
|
||||
std::string DescribePluginApisRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DescribePluginApisRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
std::string DescribePluginApisRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void DescribePluginApisRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
int DescribePluginApisRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribePluginApisRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribePluginApisRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribePluginApisRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribePluginApisRequest::getPath() const {
|
||||
return path_;
|
||||
}
|
||||
|
||||
void DescribePluginApisRequest::setPath(const std::string &path) {
|
||||
path_ = path;
|
||||
setParameter(std::string("Path"), path);
|
||||
}
|
||||
|
||||
std::string DescribePluginApisRequest::getApiName() const {
|
||||
return apiName_;
|
||||
}
|
||||
|
||||
void DescribePluginApisRequest::setApiName(const std::string &apiName) {
|
||||
apiName_ = apiName;
|
||||
setParameter(std::string("ApiName"), apiName);
|
||||
}
|
||||
|
||||
std::string DescribePluginApisRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribePluginApisRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
int DescribePluginApisRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribePluginApisRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribePluginApisRequest::getApiId() const {
|
||||
return apiId_;
|
||||
}
|
||||
|
||||
void DescribePluginApisRequest::setApiId(const std::string &apiId) {
|
||||
apiId_ = apiId;
|
||||
setParameter(std::string("ApiId"), apiId);
|
||||
}
|
||||
|
||||
94
cloudapi/src/model/DescribePluginApisResult.cc
Normal file
94
cloudapi/src/model/DescribePluginApisResult.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/cloudapi/model/DescribePluginApisResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CloudAPI;
|
||||
using namespace AlibabaCloud::CloudAPI::Model;
|
||||
|
||||
DescribePluginApisResult::DescribePluginApisResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribePluginApisResult::DescribePluginApisResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribePluginApisResult::~DescribePluginApisResult()
|
||||
{}
|
||||
|
||||
void DescribePluginApisResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allApiSummarysNode = value["ApiSummarys"]["ApiPluginSummary"];
|
||||
for (auto valueApiSummarysApiPluginSummary : allApiSummarysNode)
|
||||
{
|
||||
ApiPluginSummary apiSummarysObject;
|
||||
if(!valueApiSummarysApiPluginSummary["ApiId"].isNull())
|
||||
apiSummarysObject.apiId = valueApiSummarysApiPluginSummary["ApiId"].asString();
|
||||
if(!valueApiSummarysApiPluginSummary["Description"].isNull())
|
||||
apiSummarysObject.description = valueApiSummarysApiPluginSummary["Description"].asString();
|
||||
if(!valueApiSummarysApiPluginSummary["GroupName"].isNull())
|
||||
apiSummarysObject.groupName = valueApiSummarysApiPluginSummary["GroupName"].asString();
|
||||
if(!valueApiSummarysApiPluginSummary["GroupId"].isNull())
|
||||
apiSummarysObject.groupId = valueApiSummarysApiPluginSummary["GroupId"].asString();
|
||||
if(!valueApiSummarysApiPluginSummary["Path"].isNull())
|
||||
apiSummarysObject.path = valueApiSummarysApiPluginSummary["Path"].asString();
|
||||
if(!valueApiSummarysApiPluginSummary["Method"].isNull())
|
||||
apiSummarysObject.method = valueApiSummarysApiPluginSummary["Method"].asString();
|
||||
if(!valueApiSummarysApiPluginSummary["StageName"].isNull())
|
||||
apiSummarysObject.stageName = valueApiSummarysApiPluginSummary["StageName"].asString();
|
||||
if(!valueApiSummarysApiPluginSummary["ApiName"].isNull())
|
||||
apiSummarysObject.apiName = valueApiSummarysApiPluginSummary["ApiName"].asString();
|
||||
if(!valueApiSummarysApiPluginSummary["RegionId"].isNull())
|
||||
apiSummarysObject.regionId = valueApiSummarysApiPluginSummary["RegionId"].asString();
|
||||
apiSummarys_.push_back(apiSummarysObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribePluginApisResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribePluginApisResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribePluginApisResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribePluginApisResult::ApiPluginSummary> DescribePluginApisResult::getApiSummarys()const
|
||||
{
|
||||
return apiSummarys_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void DisableInstanceAccessControlRequest::setAclId(const std::string &aclId) {
|
||||
setParameter(std::string("AclId"), aclId);
|
||||
}
|
||||
|
||||
std::string DisableInstanceAccessControlRequest::getAddressIPVersion() const {
|
||||
return addressIPVersion_;
|
||||
}
|
||||
|
||||
void DisableInstanceAccessControlRequest::setAddressIPVersion(const std::string &addressIPVersion) {
|
||||
addressIPVersion_ = addressIPVersion;
|
||||
setParameter(std::string("AddressIPVersion"), addressIPVersion);
|
||||
}
|
||||
|
||||
std::string DisableInstanceAccessControlRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void EnableInstanceAccessControlRequest::setAclId(const std::string &aclId) {
|
||||
setParameter(std::string("AclId"), aclId);
|
||||
}
|
||||
|
||||
std::string EnableInstanceAccessControlRequest::getAddressIPVersion() const {
|
||||
return addressIPVersion_;
|
||||
}
|
||||
|
||||
void EnableInstanceAccessControlRequest::setAddressIPVersion(const std::string &addressIPVersion) {
|
||||
addressIPVersion_ = addressIPVersion;
|
||||
setParameter(std::string("AddressIPVersion"), addressIPVersion);
|
||||
}
|
||||
|
||||
std::string EnableInstanceAccessControlRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user