Supported CPFS Protocol.
This commit is contained in:
@@ -807,6 +807,78 @@ NASClient::CreateMountTargetOutcomeCallable NASClient::createMountTargetCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
NASClient::CreateProtocolMountTargetOutcome NASClient::createProtocolMountTarget(const CreateProtocolMountTargetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateProtocolMountTargetOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateProtocolMountTargetOutcome(CreateProtocolMountTargetResult(outcome.result()));
|
||||
else
|
||||
return CreateProtocolMountTargetOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void NASClient::createProtocolMountTargetAsync(const CreateProtocolMountTargetRequest& request, const CreateProtocolMountTargetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createProtocolMountTarget(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
NASClient::CreateProtocolMountTargetOutcomeCallable NASClient::createProtocolMountTargetCallable(const CreateProtocolMountTargetRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateProtocolMountTargetOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createProtocolMountTarget(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
NASClient::CreateProtocolServiceOutcome NASClient::createProtocolService(const CreateProtocolServiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateProtocolServiceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateProtocolServiceOutcome(CreateProtocolServiceResult(outcome.result()));
|
||||
else
|
||||
return CreateProtocolServiceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void NASClient::createProtocolServiceAsync(const CreateProtocolServiceRequest& request, const CreateProtocolServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createProtocolService(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
NASClient::CreateProtocolServiceOutcomeCallable NASClient::createProtocolServiceCallable(const CreateProtocolServiceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateProtocolServiceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createProtocolService(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
NASClient::CreateRecycleBinDeleteJobOutcome NASClient::createRecycleBinDeleteJob(const CreateRecycleBinDeleteJobRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1239,6 +1311,78 @@ NASClient::DeleteMountTargetOutcomeCallable NASClient::deleteMountTargetCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
NASClient::DeleteProtocolMountTargetOutcome NASClient::deleteProtocolMountTarget(const DeleteProtocolMountTargetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteProtocolMountTargetOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteProtocolMountTargetOutcome(DeleteProtocolMountTargetResult(outcome.result()));
|
||||
else
|
||||
return DeleteProtocolMountTargetOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void NASClient::deleteProtocolMountTargetAsync(const DeleteProtocolMountTargetRequest& request, const DeleteProtocolMountTargetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteProtocolMountTarget(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
NASClient::DeleteProtocolMountTargetOutcomeCallable NASClient::deleteProtocolMountTargetCallable(const DeleteProtocolMountTargetRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteProtocolMountTargetOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteProtocolMountTarget(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
NASClient::DeleteProtocolServiceOutcome NASClient::deleteProtocolService(const DeleteProtocolServiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteProtocolServiceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteProtocolServiceOutcome(DeleteProtocolServiceResult(outcome.result()));
|
||||
else
|
||||
return DeleteProtocolServiceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void NASClient::deleteProtocolServiceAsync(const DeleteProtocolServiceRequest& request, const DeleteProtocolServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteProtocolService(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
NASClient::DeleteProtocolServiceOutcomeCallable NASClient::deleteProtocolServiceCallable(const DeleteProtocolServiceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteProtocolServiceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteProtocolService(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
NASClient::DeleteSnapshotOutcome NASClient::deleteSnapshot(const DeleteSnapshotRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1851,6 +1995,78 @@ NASClient::DescribeMountedClientsOutcomeCallable NASClient::describeMountedClien
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
NASClient::DescribeProtocolMountTargetOutcome NASClient::describeProtocolMountTarget(const DescribeProtocolMountTargetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeProtocolMountTargetOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeProtocolMountTargetOutcome(DescribeProtocolMountTargetResult(outcome.result()));
|
||||
else
|
||||
return DescribeProtocolMountTargetOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void NASClient::describeProtocolMountTargetAsync(const DescribeProtocolMountTargetRequest& request, const DescribeProtocolMountTargetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeProtocolMountTarget(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
NASClient::DescribeProtocolMountTargetOutcomeCallable NASClient::describeProtocolMountTargetCallable(const DescribeProtocolMountTargetRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeProtocolMountTargetOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeProtocolMountTarget(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
NASClient::DescribeProtocolServiceOutcome NASClient::describeProtocolService(const DescribeProtocolServiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeProtocolServiceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeProtocolServiceOutcome(DescribeProtocolServiceResult(outcome.result()));
|
||||
else
|
||||
return DescribeProtocolServiceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void NASClient::describeProtocolServiceAsync(const DescribeProtocolServiceRequest& request, const DescribeProtocolServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeProtocolService(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
NASClient::DescribeProtocolServiceOutcomeCallable NASClient::describeProtocolServiceCallable(const DescribeProtocolServiceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeProtocolServiceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeProtocolService(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
NASClient::DescribeRegionsOutcome NASClient::describeRegions(const DescribeRegionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2859,6 +3075,78 @@ NASClient::ModifyMountTargetOutcomeCallable NASClient::modifyMountTargetCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
NASClient::ModifyProtocolMountTargetOutcome NASClient::modifyProtocolMountTarget(const ModifyProtocolMountTargetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyProtocolMountTargetOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyProtocolMountTargetOutcome(ModifyProtocolMountTargetResult(outcome.result()));
|
||||
else
|
||||
return ModifyProtocolMountTargetOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void NASClient::modifyProtocolMountTargetAsync(const ModifyProtocolMountTargetRequest& request, const ModifyProtocolMountTargetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyProtocolMountTarget(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
NASClient::ModifyProtocolMountTargetOutcomeCallable NASClient::modifyProtocolMountTargetCallable(const ModifyProtocolMountTargetRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyProtocolMountTargetOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyProtocolMountTarget(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
NASClient::ModifyProtocolServiceOutcome NASClient::modifyProtocolService(const ModifyProtocolServiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyProtocolServiceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyProtocolServiceOutcome(ModifyProtocolServiceResult(outcome.result()));
|
||||
else
|
||||
return ModifyProtocolServiceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void NASClient::modifyProtocolServiceAsync(const ModifyProtocolServiceRequest& request, const ModifyProtocolServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyProtocolService(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
NASClient::ModifyProtocolServiceOutcomeCallable NASClient::modifyProtocolServiceCallable(const ModifyProtocolServiceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyProtocolServiceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyProtocolService(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
NASClient::ModifySmbAclOutcome NASClient::modifySmbAcl(const ModifySmbAclRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -1,73 +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/nas/model/AddClientToBlackListRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::AddClientToBlackListRequest;
|
||||
|
||||
AddClientToBlackListRequest::AddClientToBlackListRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "AddClientToBlackList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddClientToBlackListRequest::~AddClientToBlackListRequest()
|
||||
{}
|
||||
|
||||
std::string AddClientToBlackListRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/AddClientToBlackListRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::AddClientToBlackListRequest;
|
||||
|
||||
AddClientToBlackListRequest::AddClientToBlackListRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "AddClientToBlackList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void AddClientToBlackListRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
AddClientToBlackListRequest::~AddClientToBlackListRequest() {}
|
||||
|
||||
std::string AddClientToBlackListRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::string AddClientToBlackListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void AddClientToBlackListRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
void AddClientToBlackListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string AddClientToBlackListRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string AddClientToBlackListRequest::getClientIP()const
|
||||
{
|
||||
return clientIP_;
|
||||
void AddClientToBlackListRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void AddClientToBlackListRequest::setClientIP(const std::string& clientIP)
|
||||
{
|
||||
clientIP_ = clientIP;
|
||||
setParameter("ClientIP", clientIP);
|
||||
std::string AddClientToBlackListRequest::getClientIP() const {
|
||||
return clientIP_;
|
||||
}
|
||||
|
||||
std::string AddClientToBlackListRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void AddClientToBlackListRequest::setClientIP(const std::string &clientIP) {
|
||||
clientIP_ = clientIP;
|
||||
setParameter(std::string("ClientIP"), clientIP);
|
||||
}
|
||||
|
||||
void AddClientToBlackListRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string AddClientToBlackListRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
void AddClientToBlackListRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,56 +1,50 @@
|
||||
/*
|
||||
* 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/nas/model/AddTagsRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::AddTagsRequest;
|
||||
|
||||
AddTagsRequest::AddTagsRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "AddTags")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddTagsRequest::~AddTagsRequest()
|
||||
{}
|
||||
|
||||
std::vector<AddTagsRequest::Tag> AddTagsRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/AddTagsRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::AddTagsRequest;
|
||||
|
||||
AddTagsRequest::AddTagsRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "AddTags") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void AddTagsRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
AddTagsRequest::~AddTagsRequest() {}
|
||||
|
||||
std::vector<AddTagsRequest::Tag> AddTagsRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
std::string AddTagsRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void AddTagsRequest::setTag(const std::vector<AddTagsRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
void AddTagsRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string AddTagsRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
void AddTagsRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/nas/model/ApplyAutoSnapshotPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::ApplyAutoSnapshotPolicyRequest;
|
||||
|
||||
ApplyAutoSnapshotPolicyRequest::ApplyAutoSnapshotPolicyRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "ApplyAutoSnapshotPolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ApplyAutoSnapshotPolicyRequest::~ApplyAutoSnapshotPolicyRequest()
|
||||
{}
|
||||
|
||||
std::string ApplyAutoSnapshotPolicyRequest::getAutoSnapshotPolicyId()const
|
||||
{
|
||||
return autoSnapshotPolicyId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/ApplyAutoSnapshotPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::ApplyAutoSnapshotPolicyRequest;
|
||||
|
||||
ApplyAutoSnapshotPolicyRequest::ApplyAutoSnapshotPolicyRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "ApplyAutoSnapshotPolicy") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ApplyAutoSnapshotPolicyRequest::setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId)
|
||||
{
|
||||
autoSnapshotPolicyId_ = autoSnapshotPolicyId;
|
||||
setParameter("AutoSnapshotPolicyId", autoSnapshotPolicyId);
|
||||
ApplyAutoSnapshotPolicyRequest::~ApplyAutoSnapshotPolicyRequest() {}
|
||||
|
||||
std::string ApplyAutoSnapshotPolicyRequest::getAutoSnapshotPolicyId() const {
|
||||
return autoSnapshotPolicyId_;
|
||||
}
|
||||
|
||||
std::string ApplyAutoSnapshotPolicyRequest::getFileSystemIds()const
|
||||
{
|
||||
return fileSystemIds_;
|
||||
void ApplyAutoSnapshotPolicyRequest::setAutoSnapshotPolicyId(const std::string &autoSnapshotPolicyId) {
|
||||
autoSnapshotPolicyId_ = autoSnapshotPolicyId;
|
||||
setParameter(std::string("AutoSnapshotPolicyId"), autoSnapshotPolicyId);
|
||||
}
|
||||
|
||||
void ApplyAutoSnapshotPolicyRequest::setFileSystemIds(const std::string& fileSystemIds)
|
||||
{
|
||||
fileSystemIds_ = fileSystemIds;
|
||||
setParameter("FileSystemIds", fileSystemIds);
|
||||
std::string ApplyAutoSnapshotPolicyRequest::getFileSystemIds() const {
|
||||
return fileSystemIds_;
|
||||
}
|
||||
|
||||
void ApplyAutoSnapshotPolicyRequest::setFileSystemIds(const std::string &fileSystemIds) {
|
||||
fileSystemIds_ = fileSystemIds;
|
||||
setParameter(std::string("FileSystemIds"), fileSystemIds);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,110 +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/nas/model/ApplyDataFlowAutoRefreshRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::ApplyDataFlowAutoRefreshRequest;
|
||||
|
||||
ApplyDataFlowAutoRefreshRequest::ApplyDataFlowAutoRefreshRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "ApplyDataFlowAutoRefresh")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ApplyDataFlowAutoRefreshRequest::~ApplyDataFlowAutoRefreshRequest()
|
||||
{}
|
||||
|
||||
std::string ApplyDataFlowAutoRefreshRequest::getAutoRefreshPolicy()const
|
||||
{
|
||||
return autoRefreshPolicy_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/ApplyDataFlowAutoRefreshRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::ApplyDataFlowAutoRefreshRequest;
|
||||
|
||||
ApplyDataFlowAutoRefreshRequest::ApplyDataFlowAutoRefreshRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "ApplyDataFlowAutoRefresh") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ApplyDataFlowAutoRefreshRequest::setAutoRefreshPolicy(const std::string& autoRefreshPolicy)
|
||||
{
|
||||
autoRefreshPolicy_ = autoRefreshPolicy;
|
||||
setParameter("AutoRefreshPolicy", autoRefreshPolicy);
|
||||
ApplyDataFlowAutoRefreshRequest::~ApplyDataFlowAutoRefreshRequest() {}
|
||||
|
||||
std::string ApplyDataFlowAutoRefreshRequest::getAutoRefreshPolicy() const {
|
||||
return autoRefreshPolicy_;
|
||||
}
|
||||
|
||||
std::string ApplyDataFlowAutoRefreshRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void ApplyDataFlowAutoRefreshRequest::setAutoRefreshPolicy(const std::string &autoRefreshPolicy) {
|
||||
autoRefreshPolicy_ = autoRefreshPolicy;
|
||||
setParameter(std::string("AutoRefreshPolicy"), autoRefreshPolicy);
|
||||
}
|
||||
|
||||
void ApplyDataFlowAutoRefreshRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
std::string ApplyDataFlowAutoRefreshRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::vector<ApplyDataFlowAutoRefreshRequest::AutoRefreshs> ApplyDataFlowAutoRefreshRequest::getAutoRefreshs()const
|
||||
{
|
||||
return autoRefreshs_;
|
||||
void ApplyDataFlowAutoRefreshRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
void ApplyDataFlowAutoRefreshRequest::setAutoRefreshs(const std::vector<AutoRefreshs>& autoRefreshs)
|
||||
{
|
||||
autoRefreshs_ = autoRefreshs;
|
||||
for(int dep1 = 0; dep1!= autoRefreshs.size(); dep1++) {
|
||||
auto autoRefreshsObj = autoRefreshs.at(dep1);
|
||||
std::string autoRefreshsObjStr = "AutoRefreshs." + std::to_string(dep1 + 1);
|
||||
setParameter(autoRefreshsObjStr + ".RefreshPath", autoRefreshsObj.refreshPath);
|
||||
}
|
||||
std::vector<ApplyDataFlowAutoRefreshRequest::AutoRefreshs> ApplyDataFlowAutoRefreshRequest::getAutoRefreshs() const {
|
||||
return autoRefreshs_;
|
||||
}
|
||||
|
||||
std::string ApplyDataFlowAutoRefreshRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void ApplyDataFlowAutoRefreshRequest::setAutoRefreshs(const std::vector<ApplyDataFlowAutoRefreshRequest::AutoRefreshs> &autoRefreshs) {
|
||||
autoRefreshs_ = autoRefreshs;
|
||||
for(int dep1 = 0; dep1 != autoRefreshs.size(); dep1++) {
|
||||
auto autoRefreshsObj = autoRefreshs.at(dep1);
|
||||
std::string autoRefreshsObjStr = std::string("AutoRefreshs") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(autoRefreshsObjStr + ".RefreshPath", autoRefreshsObj.refreshPath);
|
||||
}
|
||||
}
|
||||
|
||||
void ApplyDataFlowAutoRefreshRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string ApplyDataFlowAutoRefreshRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
bool ApplyDataFlowAutoRefreshRequest::getDryRun()const
|
||||
{
|
||||
return dryRun_;
|
||||
void ApplyDataFlowAutoRefreshRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
void ApplyDataFlowAutoRefreshRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setParameter("DryRun", dryRun ? "true" : "false");
|
||||
bool ApplyDataFlowAutoRefreshRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
std::string ApplyDataFlowAutoRefreshRequest::getDataFlowId()const
|
||||
{
|
||||
return dataFlowId_;
|
||||
void ApplyDataFlowAutoRefreshRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
void ApplyDataFlowAutoRefreshRequest::setDataFlowId(const std::string& dataFlowId)
|
||||
{
|
||||
dataFlowId_ = dataFlowId;
|
||||
setParameter("DataFlowId", dataFlowId);
|
||||
std::string ApplyDataFlowAutoRefreshRequest::getDataFlowId() const {
|
||||
return dataFlowId_;
|
||||
}
|
||||
|
||||
long ApplyDataFlowAutoRefreshRequest::getAutoRefreshInterval()const
|
||||
{
|
||||
return autoRefreshInterval_;
|
||||
void ApplyDataFlowAutoRefreshRequest::setDataFlowId(const std::string &dataFlowId) {
|
||||
dataFlowId_ = dataFlowId;
|
||||
setParameter(std::string("DataFlowId"), dataFlowId);
|
||||
}
|
||||
|
||||
void ApplyDataFlowAutoRefreshRequest::setAutoRefreshInterval(long autoRefreshInterval)
|
||||
{
|
||||
autoRefreshInterval_ = autoRefreshInterval;
|
||||
setParameter("AutoRefreshInterval", std::to_string(autoRefreshInterval));
|
||||
long ApplyDataFlowAutoRefreshRequest::getAutoRefreshInterval() const {
|
||||
return autoRefreshInterval_;
|
||||
}
|
||||
|
||||
void ApplyDataFlowAutoRefreshRequest::setAutoRefreshInterval(long autoRefreshInterval) {
|
||||
autoRefreshInterval_ = autoRefreshInterval;
|
||||
setParameter(std::string("AutoRefreshInterval"), std::to_string(autoRefreshInterval));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* 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/nas/model/CancelAutoSnapshotPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CancelAutoSnapshotPolicyRequest;
|
||||
|
||||
CancelAutoSnapshotPolicyRequest::CancelAutoSnapshotPolicyRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "CancelAutoSnapshotPolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CancelAutoSnapshotPolicyRequest::~CancelAutoSnapshotPolicyRequest()
|
||||
{}
|
||||
|
||||
std::string CancelAutoSnapshotPolicyRequest::getFileSystemIds()const
|
||||
{
|
||||
return fileSystemIds_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/CancelAutoSnapshotPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CancelAutoSnapshotPolicyRequest;
|
||||
|
||||
CancelAutoSnapshotPolicyRequest::CancelAutoSnapshotPolicyRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "CancelAutoSnapshotPolicy") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CancelAutoSnapshotPolicyRequest::setFileSystemIds(const std::string& fileSystemIds)
|
||||
{
|
||||
fileSystemIds_ = fileSystemIds;
|
||||
setParameter("FileSystemIds", fileSystemIds);
|
||||
CancelAutoSnapshotPolicyRequest::~CancelAutoSnapshotPolicyRequest() {}
|
||||
|
||||
std::string CancelAutoSnapshotPolicyRequest::getFileSystemIds() const {
|
||||
return fileSystemIds_;
|
||||
}
|
||||
|
||||
void CancelAutoSnapshotPolicyRequest::setFileSystemIds(const std::string &fileSystemIds) {
|
||||
fileSystemIds_ = fileSystemIds;
|
||||
setParameter(std::string("FileSystemIds"), fileSystemIds);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/CancelDataFlowAutoRefreshRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CancelDataFlowAutoRefreshRequest;
|
||||
|
||||
CancelDataFlowAutoRefreshRequest::CancelDataFlowAutoRefreshRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "CancelDataFlowAutoRefresh")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CancelDataFlowAutoRefreshRequest::~CancelDataFlowAutoRefreshRequest()
|
||||
{}
|
||||
|
||||
std::string CancelDataFlowAutoRefreshRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/CancelDataFlowAutoRefreshRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CancelDataFlowAutoRefreshRequest;
|
||||
|
||||
CancelDataFlowAutoRefreshRequest::CancelDataFlowAutoRefreshRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "CancelDataFlowAutoRefresh") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CancelDataFlowAutoRefreshRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
CancelDataFlowAutoRefreshRequest::~CancelDataFlowAutoRefreshRequest() {}
|
||||
|
||||
std::string CancelDataFlowAutoRefreshRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::string CancelDataFlowAutoRefreshRequest::getRefreshPath()const
|
||||
{
|
||||
return refreshPath_;
|
||||
void CancelDataFlowAutoRefreshRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
void CancelDataFlowAutoRefreshRequest::setRefreshPath(const std::string& refreshPath)
|
||||
{
|
||||
refreshPath_ = refreshPath;
|
||||
setParameter("RefreshPath", refreshPath);
|
||||
std::string CancelDataFlowAutoRefreshRequest::getRefreshPath() const {
|
||||
return refreshPath_;
|
||||
}
|
||||
|
||||
std::string CancelDataFlowAutoRefreshRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void CancelDataFlowAutoRefreshRequest::setRefreshPath(const std::string &refreshPath) {
|
||||
refreshPath_ = refreshPath;
|
||||
setParameter(std::string("RefreshPath"), refreshPath);
|
||||
}
|
||||
|
||||
void CancelDataFlowAutoRefreshRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string CancelDataFlowAutoRefreshRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
bool CancelDataFlowAutoRefreshRequest::getDryRun()const
|
||||
{
|
||||
return dryRun_;
|
||||
void CancelDataFlowAutoRefreshRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
void CancelDataFlowAutoRefreshRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setParameter("DryRun", dryRun ? "true" : "false");
|
||||
bool CancelDataFlowAutoRefreshRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
std::string CancelDataFlowAutoRefreshRequest::getDataFlowId()const
|
||||
{
|
||||
return dataFlowId_;
|
||||
void CancelDataFlowAutoRefreshRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
void CancelDataFlowAutoRefreshRequest::setDataFlowId(const std::string& dataFlowId)
|
||||
{
|
||||
dataFlowId_ = dataFlowId;
|
||||
setParameter("DataFlowId", dataFlowId);
|
||||
std::string CancelDataFlowAutoRefreshRequest::getDataFlowId() const {
|
||||
return dataFlowId_;
|
||||
}
|
||||
|
||||
void CancelDataFlowAutoRefreshRequest::setDataFlowId(const std::string &dataFlowId) {
|
||||
dataFlowId_ = dataFlowId;
|
||||
setParameter(std::string("DataFlowId"), dataFlowId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/CancelDataFlowTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CancelDataFlowTaskRequest;
|
||||
|
||||
CancelDataFlowTaskRequest::CancelDataFlowTaskRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "CancelDataFlowTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CancelDataFlowTaskRequest::~CancelDataFlowTaskRequest()
|
||||
{}
|
||||
|
||||
std::string CancelDataFlowTaskRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/CancelDataFlowTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CancelDataFlowTaskRequest;
|
||||
|
||||
CancelDataFlowTaskRequest::CancelDataFlowTaskRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "CancelDataFlowTask") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CancelDataFlowTaskRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
CancelDataFlowTaskRequest::~CancelDataFlowTaskRequest() {}
|
||||
|
||||
std::string CancelDataFlowTaskRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::string CancelDataFlowTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
void CancelDataFlowTaskRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
void CancelDataFlowTaskRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
std::string CancelDataFlowTaskRequest::getTaskId() const {
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
std::string CancelDataFlowTaskRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void CancelDataFlowTaskRequest::setTaskId(const std::string &taskId) {
|
||||
taskId_ = taskId;
|
||||
setParameter(std::string("TaskId"), taskId);
|
||||
}
|
||||
|
||||
void CancelDataFlowTaskRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string CancelDataFlowTaskRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
bool CancelDataFlowTaskRequest::getDryRun()const
|
||||
{
|
||||
return dryRun_;
|
||||
void CancelDataFlowTaskRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
void CancelDataFlowTaskRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setParameter("DryRun", dryRun ? "true" : "false");
|
||||
bool CancelDataFlowTaskRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
std::string CancelDataFlowTaskRequest::getDataFlowId()const
|
||||
{
|
||||
return dataFlowId_;
|
||||
void CancelDataFlowTaskRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
void CancelDataFlowTaskRequest::setDataFlowId(const std::string& dataFlowId)
|
||||
{
|
||||
dataFlowId_ = dataFlowId;
|
||||
setParameter("DataFlowId", dataFlowId);
|
||||
std::string CancelDataFlowTaskRequest::getDataFlowId() const {
|
||||
return dataFlowId_;
|
||||
}
|
||||
|
||||
void CancelDataFlowTaskRequest::setDataFlowId(const std::string &dataFlowId) {
|
||||
dataFlowId_ = dataFlowId;
|
||||
setParameter(std::string("DataFlowId"), dataFlowId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +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/nas/model/CancelDirQuotaRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CancelDirQuotaRequest;
|
||||
|
||||
CancelDirQuotaRequest::CancelDirQuotaRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "CancelDirQuota")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CancelDirQuotaRequest::~CancelDirQuotaRequest()
|
||||
{}
|
||||
|
||||
std::string CancelDirQuotaRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/CancelDirQuotaRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CancelDirQuotaRequest;
|
||||
|
||||
CancelDirQuotaRequest::CancelDirQuotaRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "CancelDirQuota") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CancelDirQuotaRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
CancelDirQuotaRequest::~CancelDirQuotaRequest() {}
|
||||
|
||||
std::string CancelDirQuotaRequest::getUserId() const {
|
||||
return userId_;
|
||||
}
|
||||
|
||||
std::string CancelDirQuotaRequest::getPath()const
|
||||
{
|
||||
return path_;
|
||||
void CancelDirQuotaRequest::setUserId(const std::string &userId) {
|
||||
userId_ = userId;
|
||||
setParameter(std::string("UserId"), userId);
|
||||
}
|
||||
|
||||
void CancelDirQuotaRequest::setPath(const std::string& path)
|
||||
{
|
||||
path_ = path;
|
||||
setParameter("Path", path);
|
||||
std::string CancelDirQuotaRequest::getPath() const {
|
||||
return path_;
|
||||
}
|
||||
|
||||
std::string CancelDirQuotaRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void CancelDirQuotaRequest::setPath(const std::string &path) {
|
||||
path_ = path;
|
||||
setParameter(std::string("Path"), path);
|
||||
}
|
||||
|
||||
void CancelDirQuotaRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string CancelDirQuotaRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
std::string CancelDirQuotaRequest::getUserType()const
|
||||
{
|
||||
return userType_;
|
||||
void CancelDirQuotaRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
void CancelDirQuotaRequest::setUserType(const std::string& userType)
|
||||
{
|
||||
userType_ = userType;
|
||||
setParameter("UserType", userType);
|
||||
std::string CancelDirQuotaRequest::getUserType() const {
|
||||
return userType_;
|
||||
}
|
||||
|
||||
void CancelDirQuotaRequest::setUserType(const std::string &userType) {
|
||||
userType_ = userType;
|
||||
setParameter(std::string("UserType"), userType);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* 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/nas/model/CancelLifecycleRetrieveJobRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CancelLifecycleRetrieveJobRequest;
|
||||
|
||||
CancelLifecycleRetrieveJobRequest::CancelLifecycleRetrieveJobRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "CancelLifecycleRetrieveJob")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CancelLifecycleRetrieveJobRequest::~CancelLifecycleRetrieveJobRequest()
|
||||
{}
|
||||
|
||||
std::string CancelLifecycleRetrieveJobRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/CancelLifecycleRetrieveJobRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CancelLifecycleRetrieveJobRequest;
|
||||
|
||||
CancelLifecycleRetrieveJobRequest::CancelLifecycleRetrieveJobRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "CancelLifecycleRetrieveJob") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CancelLifecycleRetrieveJobRequest::setJobId(const std::string& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setParameter("JobId", jobId);
|
||||
CancelLifecycleRetrieveJobRequest::~CancelLifecycleRetrieveJobRequest() {}
|
||||
|
||||
std::string CancelLifecycleRetrieveJobRequest::getJobId() const {
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void CancelLifecycleRetrieveJobRequest::setJobId(const std::string &jobId) {
|
||||
jobId_ = jobId;
|
||||
setParameter(std::string("JobId"), jobId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* 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/nas/model/CancelRecycleBinJobRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CancelRecycleBinJobRequest;
|
||||
|
||||
CancelRecycleBinJobRequest::CancelRecycleBinJobRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "CancelRecycleBinJob")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
CancelRecycleBinJobRequest::~CancelRecycleBinJobRequest()
|
||||
{}
|
||||
|
||||
std::string CancelRecycleBinJobRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/CancelRecycleBinJobRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CancelRecycleBinJobRequest;
|
||||
|
||||
CancelRecycleBinJobRequest::CancelRecycleBinJobRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "CancelRecycleBinJob") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void CancelRecycleBinJobRequest::setJobId(const std::string& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setParameter("JobId", jobId);
|
||||
CancelRecycleBinJobRequest::~CancelRecycleBinJobRequest() {}
|
||||
|
||||
std::string CancelRecycleBinJobRequest::getJobId() const {
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void CancelRecycleBinJobRequest::setJobId(const std::string &jobId) {
|
||||
jobId_ = jobId;
|
||||
setParameter(std::string("JobId"), jobId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +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/nas/model/CreateAccessGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CreateAccessGroupRequest;
|
||||
|
||||
CreateAccessGroupRequest::CreateAccessGroupRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "CreateAccessGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateAccessGroupRequest::~CreateAccessGroupRequest()
|
||||
{}
|
||||
|
||||
std::string CreateAccessGroupRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/CreateAccessGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CreateAccessGroupRequest;
|
||||
|
||||
CreateAccessGroupRequest::CreateAccessGroupRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "CreateAccessGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateAccessGroupRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
CreateAccessGroupRequest::~CreateAccessGroupRequest() {}
|
||||
|
||||
std::string CreateAccessGroupRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string CreateAccessGroupRequest::getFileSystemType()const
|
||||
{
|
||||
return fileSystemType_;
|
||||
void CreateAccessGroupRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
void CreateAccessGroupRequest::setFileSystemType(const std::string& fileSystemType)
|
||||
{
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter("FileSystemType", fileSystemType);
|
||||
std::string CreateAccessGroupRequest::getFileSystemType() const {
|
||||
return fileSystemType_;
|
||||
}
|
||||
|
||||
std::string CreateAccessGroupRequest::getAccessGroupType()const
|
||||
{
|
||||
return accessGroupType_;
|
||||
void CreateAccessGroupRequest::setFileSystemType(const std::string &fileSystemType) {
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter(std::string("FileSystemType"), fileSystemType);
|
||||
}
|
||||
|
||||
void CreateAccessGroupRequest::setAccessGroupType(const std::string& accessGroupType)
|
||||
{
|
||||
accessGroupType_ = accessGroupType;
|
||||
setParameter("AccessGroupType", accessGroupType);
|
||||
std::string CreateAccessGroupRequest::getAccessGroupType() const {
|
||||
return accessGroupType_;
|
||||
}
|
||||
|
||||
std::string CreateAccessGroupRequest::getAccessGroupName()const
|
||||
{
|
||||
return accessGroupName_;
|
||||
void CreateAccessGroupRequest::setAccessGroupType(const std::string &accessGroupType) {
|
||||
accessGroupType_ = accessGroupType;
|
||||
setParameter(std::string("AccessGroupType"), accessGroupType);
|
||||
}
|
||||
|
||||
void CreateAccessGroupRequest::setAccessGroupName(const std::string& accessGroupName)
|
||||
{
|
||||
accessGroupName_ = accessGroupName;
|
||||
setParameter("AccessGroupName", accessGroupName);
|
||||
std::string CreateAccessGroupRequest::getAccessGroupName() const {
|
||||
return accessGroupName_;
|
||||
}
|
||||
|
||||
void CreateAccessGroupRequest::setAccessGroupName(const std::string &accessGroupName) {
|
||||
accessGroupName_ = accessGroupName;
|
||||
setParameter(std::string("AccessGroupName"), accessGroupName);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,106 +1,90 @@
|
||||
/*
|
||||
* 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/nas/model/CreateAccessRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CreateAccessRuleRequest;
|
||||
|
||||
CreateAccessRuleRequest::CreateAccessRuleRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "CreateAccessRule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateAccessRuleRequest::~CreateAccessRuleRequest()
|
||||
{}
|
||||
|
||||
std::string CreateAccessRuleRequest::getRWAccessType()const
|
||||
{
|
||||
return rWAccessType_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/CreateAccessRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CreateAccessRuleRequest;
|
||||
|
||||
CreateAccessRuleRequest::CreateAccessRuleRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "CreateAccessRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateAccessRuleRequest::setRWAccessType(const std::string& rWAccessType)
|
||||
{
|
||||
rWAccessType_ = rWAccessType;
|
||||
setParameter("RWAccessType", rWAccessType);
|
||||
CreateAccessRuleRequest::~CreateAccessRuleRequest() {}
|
||||
|
||||
std::string CreateAccessRuleRequest::getRWAccessType() const {
|
||||
return rWAccessType_;
|
||||
}
|
||||
|
||||
std::string CreateAccessRuleRequest::getUserAccessType()const
|
||||
{
|
||||
return userAccessType_;
|
||||
void CreateAccessRuleRequest::setRWAccessType(const std::string &rWAccessType) {
|
||||
rWAccessType_ = rWAccessType;
|
||||
setParameter(std::string("RWAccessType"), rWAccessType);
|
||||
}
|
||||
|
||||
void CreateAccessRuleRequest::setUserAccessType(const std::string& userAccessType)
|
||||
{
|
||||
userAccessType_ = userAccessType;
|
||||
setParameter("UserAccessType", userAccessType);
|
||||
std::string CreateAccessRuleRequest::getUserAccessType() const {
|
||||
return userAccessType_;
|
||||
}
|
||||
|
||||
std::string CreateAccessRuleRequest::getFileSystemType()const
|
||||
{
|
||||
return fileSystemType_;
|
||||
void CreateAccessRuleRequest::setUserAccessType(const std::string &userAccessType) {
|
||||
userAccessType_ = userAccessType;
|
||||
setParameter(std::string("UserAccessType"), userAccessType);
|
||||
}
|
||||
|
||||
void CreateAccessRuleRequest::setFileSystemType(const std::string& fileSystemType)
|
||||
{
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter("FileSystemType", fileSystemType);
|
||||
std::string CreateAccessRuleRequest::getFileSystemType() const {
|
||||
return fileSystemType_;
|
||||
}
|
||||
|
||||
std::string CreateAccessRuleRequest::getIpv6SourceCidrIp()const
|
||||
{
|
||||
return ipv6SourceCidrIp_;
|
||||
void CreateAccessRuleRequest::setFileSystemType(const std::string &fileSystemType) {
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter(std::string("FileSystemType"), fileSystemType);
|
||||
}
|
||||
|
||||
void CreateAccessRuleRequest::setIpv6SourceCidrIp(const std::string& ipv6SourceCidrIp)
|
||||
{
|
||||
ipv6SourceCidrIp_ = ipv6SourceCidrIp;
|
||||
setParameter("Ipv6SourceCidrIp", ipv6SourceCidrIp);
|
||||
std::string CreateAccessRuleRequest::getIpv6SourceCidrIp() const {
|
||||
return ipv6SourceCidrIp_;
|
||||
}
|
||||
|
||||
std::string CreateAccessRuleRequest::getSourceCidrIp()const
|
||||
{
|
||||
return sourceCidrIp_;
|
||||
void CreateAccessRuleRequest::setIpv6SourceCidrIp(const std::string &ipv6SourceCidrIp) {
|
||||
ipv6SourceCidrIp_ = ipv6SourceCidrIp;
|
||||
setParameter(std::string("Ipv6SourceCidrIp"), ipv6SourceCidrIp);
|
||||
}
|
||||
|
||||
void CreateAccessRuleRequest::setSourceCidrIp(const std::string& sourceCidrIp)
|
||||
{
|
||||
sourceCidrIp_ = sourceCidrIp;
|
||||
setParameter("SourceCidrIp", sourceCidrIp);
|
||||
std::string CreateAccessRuleRequest::getSourceCidrIp() const {
|
||||
return sourceCidrIp_;
|
||||
}
|
||||
|
||||
int CreateAccessRuleRequest::getPriority()const
|
||||
{
|
||||
return priority_;
|
||||
void CreateAccessRuleRequest::setSourceCidrIp(const std::string &sourceCidrIp) {
|
||||
sourceCidrIp_ = sourceCidrIp;
|
||||
setParameter(std::string("SourceCidrIp"), sourceCidrIp);
|
||||
}
|
||||
|
||||
void CreateAccessRuleRequest::setPriority(int priority)
|
||||
{
|
||||
priority_ = priority;
|
||||
setParameter("Priority", std::to_string(priority));
|
||||
int CreateAccessRuleRequest::getPriority() const {
|
||||
return priority_;
|
||||
}
|
||||
|
||||
std::string CreateAccessRuleRequest::getAccessGroupName()const
|
||||
{
|
||||
return accessGroupName_;
|
||||
void CreateAccessRuleRequest::setPriority(int priority) {
|
||||
priority_ = priority;
|
||||
setParameter(std::string("Priority"), std::to_string(priority));
|
||||
}
|
||||
|
||||
void CreateAccessRuleRequest::setAccessGroupName(const std::string& accessGroupName)
|
||||
{
|
||||
accessGroupName_ = accessGroupName;
|
||||
setParameter("AccessGroupName", accessGroupName);
|
||||
std::string CreateAccessRuleRequest::getAccessGroupName() const {
|
||||
return accessGroupName_;
|
||||
}
|
||||
|
||||
void CreateAccessRuleRequest::setAccessGroupName(const std::string &accessGroupName) {
|
||||
accessGroupName_ = accessGroupName;
|
||||
setParameter(std::string("AccessGroupName"), accessGroupName);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/CreateAutoSnapshotPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CreateAutoSnapshotPolicyRequest;
|
||||
|
||||
CreateAutoSnapshotPolicyRequest::CreateAutoSnapshotPolicyRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "CreateAutoSnapshotPolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateAutoSnapshotPolicyRequest::~CreateAutoSnapshotPolicyRequest()
|
||||
{}
|
||||
|
||||
std::string CreateAutoSnapshotPolicyRequest::getTimePoints()const
|
||||
{
|
||||
return timePoints_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/CreateAutoSnapshotPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CreateAutoSnapshotPolicyRequest;
|
||||
|
||||
CreateAutoSnapshotPolicyRequest::CreateAutoSnapshotPolicyRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "CreateAutoSnapshotPolicy") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateAutoSnapshotPolicyRequest::setTimePoints(const std::string& timePoints)
|
||||
{
|
||||
timePoints_ = timePoints;
|
||||
setParameter("TimePoints", timePoints);
|
||||
CreateAutoSnapshotPolicyRequest::~CreateAutoSnapshotPolicyRequest() {}
|
||||
|
||||
std::string CreateAutoSnapshotPolicyRequest::getTimePoints() const {
|
||||
return timePoints_;
|
||||
}
|
||||
|
||||
std::string CreateAutoSnapshotPolicyRequest::getRepeatWeekdays()const
|
||||
{
|
||||
return repeatWeekdays_;
|
||||
void CreateAutoSnapshotPolicyRequest::setTimePoints(const std::string &timePoints) {
|
||||
timePoints_ = timePoints;
|
||||
setParameter(std::string("TimePoints"), timePoints);
|
||||
}
|
||||
|
||||
void CreateAutoSnapshotPolicyRequest::setRepeatWeekdays(const std::string& repeatWeekdays)
|
||||
{
|
||||
repeatWeekdays_ = repeatWeekdays;
|
||||
setParameter("RepeatWeekdays", repeatWeekdays);
|
||||
std::string CreateAutoSnapshotPolicyRequest::getRepeatWeekdays() const {
|
||||
return repeatWeekdays_;
|
||||
}
|
||||
|
||||
std::string CreateAutoSnapshotPolicyRequest::getFileSystemType()const
|
||||
{
|
||||
return fileSystemType_;
|
||||
void CreateAutoSnapshotPolicyRequest::setRepeatWeekdays(const std::string &repeatWeekdays) {
|
||||
repeatWeekdays_ = repeatWeekdays;
|
||||
setParameter(std::string("RepeatWeekdays"), repeatWeekdays);
|
||||
}
|
||||
|
||||
void CreateAutoSnapshotPolicyRequest::setFileSystemType(const std::string& fileSystemType)
|
||||
{
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter("FileSystemType", fileSystemType);
|
||||
std::string CreateAutoSnapshotPolicyRequest::getFileSystemType() const {
|
||||
return fileSystemType_;
|
||||
}
|
||||
|
||||
std::string CreateAutoSnapshotPolicyRequest::getAutoSnapshotPolicyName()const
|
||||
{
|
||||
return autoSnapshotPolicyName_;
|
||||
void CreateAutoSnapshotPolicyRequest::setFileSystemType(const std::string &fileSystemType) {
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter(std::string("FileSystemType"), fileSystemType);
|
||||
}
|
||||
|
||||
void CreateAutoSnapshotPolicyRequest::setAutoSnapshotPolicyName(const std::string& autoSnapshotPolicyName)
|
||||
{
|
||||
autoSnapshotPolicyName_ = autoSnapshotPolicyName;
|
||||
setParameter("AutoSnapshotPolicyName", autoSnapshotPolicyName);
|
||||
std::string CreateAutoSnapshotPolicyRequest::getAutoSnapshotPolicyName() const {
|
||||
return autoSnapshotPolicyName_;
|
||||
}
|
||||
|
||||
int CreateAutoSnapshotPolicyRequest::getRetentionDays()const
|
||||
{
|
||||
return retentionDays_;
|
||||
void CreateAutoSnapshotPolicyRequest::setAutoSnapshotPolicyName(const std::string &autoSnapshotPolicyName) {
|
||||
autoSnapshotPolicyName_ = autoSnapshotPolicyName;
|
||||
setParameter(std::string("AutoSnapshotPolicyName"), autoSnapshotPolicyName);
|
||||
}
|
||||
|
||||
void CreateAutoSnapshotPolicyRequest::setRetentionDays(int retentionDays)
|
||||
{
|
||||
retentionDays_ = retentionDays;
|
||||
setParameter("RetentionDays", std::to_string(retentionDays));
|
||||
int CreateAutoSnapshotPolicyRequest::getRetentionDays() const {
|
||||
return retentionDays_;
|
||||
}
|
||||
|
||||
void CreateAutoSnapshotPolicyRequest::setRetentionDays(int retentionDays) {
|
||||
retentionDays_ = retentionDays;
|
||||
setParameter(std::string("RetentionDays"), std::to_string(retentionDays));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,154 +1,130 @@
|
||||
/*
|
||||
* 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/nas/model/CreateDataFlowRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CreateDataFlowRequest;
|
||||
|
||||
CreateDataFlowRequest::CreateDataFlowRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "CreateDataFlow")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDataFlowRequest::~CreateDataFlowRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDataFlowRequest::getAutoRefreshPolicy()const
|
||||
{
|
||||
return autoRefreshPolicy_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/CreateDataFlowRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CreateDataFlowRequest;
|
||||
|
||||
CreateDataFlowRequest::CreateDataFlowRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "CreateDataFlow") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateDataFlowRequest::setAutoRefreshPolicy(const std::string& autoRefreshPolicy)
|
||||
{
|
||||
autoRefreshPolicy_ = autoRefreshPolicy;
|
||||
setParameter("AutoRefreshPolicy", autoRefreshPolicy);
|
||||
CreateDataFlowRequest::~CreateDataFlowRequest() {}
|
||||
|
||||
std::string CreateDataFlowRequest::getAutoRefreshPolicy() const {
|
||||
return autoRefreshPolicy_;
|
||||
}
|
||||
|
||||
std::string CreateDataFlowRequest::getFsetId()const
|
||||
{
|
||||
return fsetId_;
|
||||
void CreateDataFlowRequest::setAutoRefreshPolicy(const std::string &autoRefreshPolicy) {
|
||||
autoRefreshPolicy_ = autoRefreshPolicy;
|
||||
setParameter(std::string("AutoRefreshPolicy"), autoRefreshPolicy);
|
||||
}
|
||||
|
||||
void CreateDataFlowRequest::setFsetId(const std::string& fsetId)
|
||||
{
|
||||
fsetId_ = fsetId;
|
||||
setParameter("FsetId", fsetId);
|
||||
std::string CreateDataFlowRequest::getFsetId() const {
|
||||
return fsetId_;
|
||||
}
|
||||
|
||||
std::string CreateDataFlowRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void CreateDataFlowRequest::setFsetId(const std::string &fsetId) {
|
||||
fsetId_ = fsetId;
|
||||
setParameter(std::string("FsetId"), fsetId);
|
||||
}
|
||||
|
||||
void CreateDataFlowRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
std::string CreateDataFlowRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::string CreateDataFlowRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
void CreateDataFlowRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
void CreateDataFlowRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
std::string CreateDataFlowRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::vector<CreateDataFlowRequest::AutoRefreshs> CreateDataFlowRequest::getAutoRefreshs()const
|
||||
{
|
||||
return autoRefreshs_;
|
||||
void CreateDataFlowRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
void CreateDataFlowRequest::setAutoRefreshs(const std::vector<AutoRefreshs>& autoRefreshs)
|
||||
{
|
||||
autoRefreshs_ = autoRefreshs;
|
||||
for(int dep1 = 0; dep1!= autoRefreshs.size(); dep1++) {
|
||||
auto autoRefreshsObj = autoRefreshs.at(dep1);
|
||||
std::string autoRefreshsObjStr = "AutoRefreshs." + std::to_string(dep1 + 1);
|
||||
setParameter(autoRefreshsObjStr + ".RefreshPath", autoRefreshsObj.refreshPath);
|
||||
}
|
||||
std::vector<CreateDataFlowRequest::AutoRefreshs> CreateDataFlowRequest::getAutoRefreshs() const {
|
||||
return autoRefreshs_;
|
||||
}
|
||||
|
||||
std::string CreateDataFlowRequest::getSourceSecurityType()const
|
||||
{
|
||||
return sourceSecurityType_;
|
||||
void CreateDataFlowRequest::setAutoRefreshs(const std::vector<CreateDataFlowRequest::AutoRefreshs> &autoRefreshs) {
|
||||
autoRefreshs_ = autoRefreshs;
|
||||
for(int dep1 = 0; dep1 != autoRefreshs.size(); dep1++) {
|
||||
auto autoRefreshsObj = autoRefreshs.at(dep1);
|
||||
std::string autoRefreshsObjStr = std::string("AutoRefreshs") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(autoRefreshsObjStr + ".RefreshPath", autoRefreshsObj.refreshPath);
|
||||
}
|
||||
}
|
||||
|
||||
void CreateDataFlowRequest::setSourceSecurityType(const std::string& sourceSecurityType)
|
||||
{
|
||||
sourceSecurityType_ = sourceSecurityType;
|
||||
setParameter("SourceSecurityType", sourceSecurityType);
|
||||
std::string CreateDataFlowRequest::getSourceSecurityType() const {
|
||||
return sourceSecurityType_;
|
||||
}
|
||||
|
||||
std::string CreateDataFlowRequest::getSourceStorage()const
|
||||
{
|
||||
return sourceStorage_;
|
||||
void CreateDataFlowRequest::setSourceSecurityType(const std::string &sourceSecurityType) {
|
||||
sourceSecurityType_ = sourceSecurityType;
|
||||
setParameter(std::string("SourceSecurityType"), sourceSecurityType);
|
||||
}
|
||||
|
||||
void CreateDataFlowRequest::setSourceStorage(const std::string& sourceStorage)
|
||||
{
|
||||
sourceStorage_ = sourceStorage;
|
||||
setParameter("SourceStorage", sourceStorage);
|
||||
std::string CreateDataFlowRequest::getSourceStorage() const {
|
||||
return sourceStorage_;
|
||||
}
|
||||
|
||||
long CreateDataFlowRequest::getThroughput()const
|
||||
{
|
||||
return throughput_;
|
||||
void CreateDataFlowRequest::setSourceStorage(const std::string &sourceStorage) {
|
||||
sourceStorage_ = sourceStorage;
|
||||
setParameter(std::string("SourceStorage"), sourceStorage);
|
||||
}
|
||||
|
||||
void CreateDataFlowRequest::setThroughput(long throughput)
|
||||
{
|
||||
throughput_ = throughput;
|
||||
setParameter("Throughput", std::to_string(throughput));
|
||||
long CreateDataFlowRequest::getThroughput() const {
|
||||
return throughput_;
|
||||
}
|
||||
|
||||
std::string CreateDataFlowRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void CreateDataFlowRequest::setThroughput(long throughput) {
|
||||
throughput_ = throughput;
|
||||
setParameter(std::string("Throughput"), std::to_string(throughput));
|
||||
}
|
||||
|
||||
void CreateDataFlowRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string CreateDataFlowRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
bool CreateDataFlowRequest::getDryRun()const
|
||||
{
|
||||
return dryRun_;
|
||||
void CreateDataFlowRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
void CreateDataFlowRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setParameter("DryRun", dryRun ? "true" : "false");
|
||||
bool CreateDataFlowRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
long CreateDataFlowRequest::getAutoRefreshInterval()const
|
||||
{
|
||||
return autoRefreshInterval_;
|
||||
void CreateDataFlowRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreateDataFlowRequest::setAutoRefreshInterval(long autoRefreshInterval)
|
||||
{
|
||||
autoRefreshInterval_ = autoRefreshInterval;
|
||||
setParameter("AutoRefreshInterval", std::to_string(autoRefreshInterval));
|
||||
long CreateDataFlowRequest::getAutoRefreshInterval() const {
|
||||
return autoRefreshInterval_;
|
||||
}
|
||||
|
||||
void CreateDataFlowRequest::setAutoRefreshInterval(long autoRefreshInterval) {
|
||||
autoRefreshInterval_ = autoRefreshInterval;
|
||||
setParameter(std::string("AutoRefreshInterval"), std::to_string(autoRefreshInterval));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,128 +1,108 @@
|
||||
/*
|
||||
* 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/nas/model/CreateDataFlowTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CreateDataFlowTaskRequest;
|
||||
|
||||
CreateDataFlowTaskRequest::CreateDataFlowTaskRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "CreateDataFlowTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDataFlowTaskRequest::~CreateDataFlowTaskRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDataFlowTaskRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/CreateDataFlowTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CreateDataFlowTaskRequest;
|
||||
|
||||
CreateDataFlowTaskRequest::CreateDataFlowTaskRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "CreateDataFlowTask") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateDataFlowTaskRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
CreateDataFlowTaskRequest::~CreateDataFlowTaskRequest() {}
|
||||
|
||||
std::string CreateDataFlowTaskRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::string CreateDataFlowTaskRequest::getDirectory()const
|
||||
{
|
||||
return directory_;
|
||||
void CreateDataFlowTaskRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
void CreateDataFlowTaskRequest::setDirectory(const std::string& directory)
|
||||
{
|
||||
directory_ = directory;
|
||||
setParameter("Directory", directory);
|
||||
std::string CreateDataFlowTaskRequest::getDirectory() const {
|
||||
return directory_;
|
||||
}
|
||||
|
||||
std::string CreateDataFlowTaskRequest::getSrcTaskId()const
|
||||
{
|
||||
return srcTaskId_;
|
||||
void CreateDataFlowTaskRequest::setDirectory(const std::string &directory) {
|
||||
directory_ = directory;
|
||||
setParameter(std::string("Directory"), directory);
|
||||
}
|
||||
|
||||
void CreateDataFlowTaskRequest::setSrcTaskId(const std::string& srcTaskId)
|
||||
{
|
||||
srcTaskId_ = srcTaskId;
|
||||
setParameter("SrcTaskId", srcTaskId);
|
||||
std::string CreateDataFlowTaskRequest::getSrcTaskId() const {
|
||||
return srcTaskId_;
|
||||
}
|
||||
|
||||
std::string CreateDataFlowTaskRequest::getDataType()const
|
||||
{
|
||||
return dataType_;
|
||||
void CreateDataFlowTaskRequest::setSrcTaskId(const std::string &srcTaskId) {
|
||||
srcTaskId_ = srcTaskId;
|
||||
setParameter(std::string("SrcTaskId"), srcTaskId);
|
||||
}
|
||||
|
||||
void CreateDataFlowTaskRequest::setDataType(const std::string& dataType)
|
||||
{
|
||||
dataType_ = dataType;
|
||||
setParameter("DataType", dataType);
|
||||
std::string CreateDataFlowTaskRequest::getDataType() const {
|
||||
return dataType_;
|
||||
}
|
||||
|
||||
std::string CreateDataFlowTaskRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void CreateDataFlowTaskRequest::setDataType(const std::string &dataType) {
|
||||
dataType_ = dataType;
|
||||
setParameter(std::string("DataType"), dataType);
|
||||
}
|
||||
|
||||
void CreateDataFlowTaskRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string CreateDataFlowTaskRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
bool CreateDataFlowTaskRequest::getDryRun()const
|
||||
{
|
||||
return dryRun_;
|
||||
void CreateDataFlowTaskRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
void CreateDataFlowTaskRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setParameter("DryRun", dryRun ? "true" : "false");
|
||||
bool CreateDataFlowTaskRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
std::string CreateDataFlowTaskRequest::getDataFlowId()const
|
||||
{
|
||||
return dataFlowId_;
|
||||
void CreateDataFlowTaskRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreateDataFlowTaskRequest::setDataFlowId(const std::string& dataFlowId)
|
||||
{
|
||||
dataFlowId_ = dataFlowId;
|
||||
setParameter("DataFlowId", dataFlowId);
|
||||
std::string CreateDataFlowTaskRequest::getDataFlowId() const {
|
||||
return dataFlowId_;
|
||||
}
|
||||
|
||||
std::string CreateDataFlowTaskRequest::getEntryList()const
|
||||
{
|
||||
return entryList_;
|
||||
void CreateDataFlowTaskRequest::setDataFlowId(const std::string &dataFlowId) {
|
||||
dataFlowId_ = dataFlowId;
|
||||
setParameter(std::string("DataFlowId"), dataFlowId);
|
||||
}
|
||||
|
||||
void CreateDataFlowTaskRequest::setEntryList(const std::string& entryList)
|
||||
{
|
||||
entryList_ = entryList;
|
||||
setParameter("EntryList", entryList);
|
||||
std::string CreateDataFlowTaskRequest::getEntryList() const {
|
||||
return entryList_;
|
||||
}
|
||||
|
||||
std::string CreateDataFlowTaskRequest::getTaskAction()const
|
||||
{
|
||||
return taskAction_;
|
||||
void CreateDataFlowTaskRequest::setEntryList(const std::string &entryList) {
|
||||
entryList_ = entryList;
|
||||
setParameter(std::string("EntryList"), entryList);
|
||||
}
|
||||
|
||||
void CreateDataFlowTaskRequest::setTaskAction(const std::string& taskAction)
|
||||
{
|
||||
taskAction_ = taskAction;
|
||||
setParameter("TaskAction", taskAction);
|
||||
std::string CreateDataFlowTaskRequest::getTaskAction() const {
|
||||
return taskAction_;
|
||||
}
|
||||
|
||||
void CreateDataFlowTaskRequest::setTaskAction(const std::string &taskAction) {
|
||||
taskAction_ = taskAction;
|
||||
setParameter(std::string("TaskAction"), taskAction);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,205 +1,171 @@
|
||||
/*
|
||||
* 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/nas/model/CreateFileSystemRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CreateFileSystemRequest;
|
||||
|
||||
CreateFileSystemRequest::CreateFileSystemRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "CreateFileSystem")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateFileSystemRequest::~CreateFileSystemRequest()
|
||||
{}
|
||||
|
||||
std::string CreateFileSystemRequest::getSnapshotId()const
|
||||
{
|
||||
return snapshotId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/CreateFileSystemRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CreateFileSystemRequest;
|
||||
|
||||
CreateFileSystemRequest::CreateFileSystemRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "CreateFileSystem") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateFileSystemRequest::setSnapshotId(const std::string& snapshotId)
|
||||
{
|
||||
snapshotId_ = snapshotId;
|
||||
setParameter("SnapshotId", snapshotId);
|
||||
CreateFileSystemRequest::~CreateFileSystemRequest() {}
|
||||
|
||||
std::string CreateFileSystemRequest::getSnapshotId() const {
|
||||
return snapshotId_;
|
||||
}
|
||||
|
||||
std::string CreateFileSystemRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void CreateFileSystemRequest::setSnapshotId(const std::string &snapshotId) {
|
||||
snapshotId_ = snapshotId;
|
||||
setParameter(std::string("SnapshotId"), snapshotId);
|
||||
}
|
||||
|
||||
void CreateFileSystemRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
std::string CreateFileSystemRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::string CreateFileSystemRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
void CreateFileSystemRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
void CreateFileSystemRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
std::string CreateFileSystemRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string CreateFileSystemRequest::getFileSystemType()const
|
||||
{
|
||||
return fileSystemType_;
|
||||
void CreateFileSystemRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
void CreateFileSystemRequest::setFileSystemType(const std::string& fileSystemType)
|
||||
{
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter("FileSystemType", fileSystemType);
|
||||
std::string CreateFileSystemRequest::getFileSystemType() const {
|
||||
return fileSystemType_;
|
||||
}
|
||||
|
||||
std::string CreateFileSystemRequest::getStorageType()const
|
||||
{
|
||||
return storageType_;
|
||||
void CreateFileSystemRequest::setFileSystemType(const std::string &fileSystemType) {
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter(std::string("FileSystemType"), fileSystemType);
|
||||
}
|
||||
|
||||
void CreateFileSystemRequest::setStorageType(const std::string& storageType)
|
||||
{
|
||||
storageType_ = storageType;
|
||||
setParameter("StorageType", storageType);
|
||||
std::string CreateFileSystemRequest::getStorageType() const {
|
||||
return storageType_;
|
||||
}
|
||||
|
||||
long CreateFileSystemRequest::getCapacity()const
|
||||
{
|
||||
return capacity_;
|
||||
void CreateFileSystemRequest::setStorageType(const std::string &storageType) {
|
||||
storageType_ = storageType;
|
||||
setParameter(std::string("StorageType"), storageType);
|
||||
}
|
||||
|
||||
void CreateFileSystemRequest::setCapacity(long capacity)
|
||||
{
|
||||
capacity_ = capacity;
|
||||
setParameter("Capacity", std::to_string(capacity));
|
||||
long CreateFileSystemRequest::getCapacity() const {
|
||||
return capacity_;
|
||||
}
|
||||
|
||||
int CreateFileSystemRequest::getEncryptType()const
|
||||
{
|
||||
return encryptType_;
|
||||
void CreateFileSystemRequest::setCapacity(long capacity) {
|
||||
capacity_ = capacity;
|
||||
setParameter(std::string("Capacity"), std::to_string(capacity));
|
||||
}
|
||||
|
||||
void CreateFileSystemRequest::setEncryptType(int encryptType)
|
||||
{
|
||||
encryptType_ = encryptType;
|
||||
setParameter("EncryptType", std::to_string(encryptType));
|
||||
int CreateFileSystemRequest::getEncryptType() const {
|
||||
return encryptType_;
|
||||
}
|
||||
|
||||
int CreateFileSystemRequest::getDuration()const
|
||||
{
|
||||
return duration_;
|
||||
void CreateFileSystemRequest::setEncryptType(int encryptType) {
|
||||
encryptType_ = encryptType;
|
||||
setParameter(std::string("EncryptType"), std::to_string(encryptType));
|
||||
}
|
||||
|
||||
void CreateFileSystemRequest::setDuration(int duration)
|
||||
{
|
||||
duration_ = duration;
|
||||
setParameter("Duration", std::to_string(duration));
|
||||
int CreateFileSystemRequest::getDuration() const {
|
||||
return duration_;
|
||||
}
|
||||
|
||||
bool CreateFileSystemRequest::getDryRun()const
|
||||
{
|
||||
return dryRun_;
|
||||
void CreateFileSystemRequest::setDuration(int duration) {
|
||||
duration_ = duration;
|
||||
setParameter(std::string("Duration"), std::to_string(duration));
|
||||
}
|
||||
|
||||
void CreateFileSystemRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setParameter("DryRun", dryRun ? "true" : "false");
|
||||
bool CreateFileSystemRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
long CreateFileSystemRequest::getBandwidth()const
|
||||
{
|
||||
return bandwidth_;
|
||||
void CreateFileSystemRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreateFileSystemRequest::setBandwidth(long bandwidth)
|
||||
{
|
||||
bandwidth_ = bandwidth;
|
||||
setParameter("Bandwidth", std::to_string(bandwidth));
|
||||
long CreateFileSystemRequest::getBandwidth() const {
|
||||
return bandwidth_;
|
||||
}
|
||||
|
||||
std::string CreateFileSystemRequest::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
void CreateFileSystemRequest::setBandwidth(long bandwidth) {
|
||||
bandwidth_ = bandwidth;
|
||||
setParameter(std::string("Bandwidth"), std::to_string(bandwidth));
|
||||
}
|
||||
|
||||
void CreateFileSystemRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter("VSwitchId", vSwitchId);
|
||||
std::string CreateFileSystemRequest::getVSwitchId() const {
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
std::string CreateFileSystemRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
void CreateFileSystemRequest::setVSwitchId(const std::string &vSwitchId) {
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter(std::string("VSwitchId"), vSwitchId);
|
||||
}
|
||||
|
||||
void CreateFileSystemRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
std::string CreateFileSystemRequest::getVpcId() const {
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
std::string CreateFileSystemRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
void CreateFileSystemRequest::setVpcId(const std::string &vpcId) {
|
||||
vpcId_ = vpcId;
|
||||
setParameter(std::string("VpcId"), vpcId);
|
||||
}
|
||||
|
||||
void CreateFileSystemRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
std::string CreateFileSystemRequest::getZoneId() const {
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
std::string CreateFileSystemRequest::getProtocolType()const
|
||||
{
|
||||
return protocolType_;
|
||||
void CreateFileSystemRequest::setZoneId(const std::string &zoneId) {
|
||||
zoneId_ = zoneId;
|
||||
setParameter(std::string("ZoneId"), zoneId);
|
||||
}
|
||||
|
||||
void CreateFileSystemRequest::setProtocolType(const std::string& protocolType)
|
||||
{
|
||||
protocolType_ = protocolType;
|
||||
setParameter("ProtocolType", protocolType);
|
||||
std::string CreateFileSystemRequest::getProtocolType() const {
|
||||
return protocolType_;
|
||||
}
|
||||
|
||||
std::string CreateFileSystemRequest::getChargeType()const
|
||||
{
|
||||
return chargeType_;
|
||||
void CreateFileSystemRequest::setProtocolType(const std::string &protocolType) {
|
||||
protocolType_ = protocolType;
|
||||
setParameter(std::string("ProtocolType"), protocolType);
|
||||
}
|
||||
|
||||
void CreateFileSystemRequest::setChargeType(const std::string& chargeType)
|
||||
{
|
||||
chargeType_ = chargeType;
|
||||
setParameter("ChargeType", chargeType);
|
||||
std::string CreateFileSystemRequest::getChargeType() const {
|
||||
return chargeType_;
|
||||
}
|
||||
|
||||
std::string CreateFileSystemRequest::getKmsKeyId()const
|
||||
{
|
||||
return kmsKeyId_;
|
||||
void CreateFileSystemRequest::setChargeType(const std::string &chargeType) {
|
||||
chargeType_ = chargeType;
|
||||
setParameter(std::string("ChargeType"), chargeType);
|
||||
}
|
||||
|
||||
void CreateFileSystemRequest::setKmsKeyId(const std::string& kmsKeyId)
|
||||
{
|
||||
kmsKeyId_ = kmsKeyId;
|
||||
setParameter("KmsKeyId", kmsKeyId);
|
||||
std::string CreateFileSystemRequest::getKmsKeyId() const {
|
||||
return kmsKeyId_;
|
||||
}
|
||||
|
||||
void CreateFileSystemRequest::setKmsKeyId(const std::string &kmsKeyId) {
|
||||
kmsKeyId_ = kmsKeyId;
|
||||
setParameter(std::string("KmsKeyId"), kmsKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/CreateFilesetRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CreateFilesetRequest;
|
||||
|
||||
CreateFilesetRequest::CreateFilesetRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "CreateFileset")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateFilesetRequest::~CreateFilesetRequest()
|
||||
{}
|
||||
|
||||
std::string CreateFilesetRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/CreateFilesetRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CreateFilesetRequest;
|
||||
|
||||
CreateFilesetRequest::CreateFilesetRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "CreateFileset") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateFilesetRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
CreateFilesetRequest::~CreateFilesetRequest() {}
|
||||
|
||||
std::string CreateFilesetRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::string CreateFilesetRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
void CreateFilesetRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
void CreateFilesetRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
std::string CreateFilesetRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string CreateFilesetRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void CreateFilesetRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
void CreateFilesetRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string CreateFilesetRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
bool CreateFilesetRequest::getDryRun()const
|
||||
{
|
||||
return dryRun_;
|
||||
void CreateFilesetRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
void CreateFilesetRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setParameter("DryRun", dryRun ? "true" : "false");
|
||||
bool CreateFilesetRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
std::string CreateFilesetRequest::getFileSystemPath()const
|
||||
{
|
||||
return fileSystemPath_;
|
||||
void CreateFilesetRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreateFilesetRequest::setFileSystemPath(const std::string& fileSystemPath)
|
||||
{
|
||||
fileSystemPath_ = fileSystemPath;
|
||||
setParameter("FileSystemPath", fileSystemPath);
|
||||
std::string CreateFilesetRequest::getFileSystemPath() const {
|
||||
return fileSystemPath_;
|
||||
}
|
||||
|
||||
void CreateFilesetRequest::setFileSystemPath(const std::string &fileSystemPath) {
|
||||
fileSystemPath_ = fileSystemPath;
|
||||
setParameter(std::string("FileSystemPath"), fileSystemPath);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +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/nas/model/CreateLDAPConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CreateLDAPConfigRequest;
|
||||
|
||||
CreateLDAPConfigRequest::CreateLDAPConfigRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "CreateLDAPConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateLDAPConfigRequest::~CreateLDAPConfigRequest()
|
||||
{}
|
||||
|
||||
std::string CreateLDAPConfigRequest::getSearchBase()const
|
||||
{
|
||||
return searchBase_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/CreateLDAPConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CreateLDAPConfigRequest;
|
||||
|
||||
CreateLDAPConfigRequest::CreateLDAPConfigRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "CreateLDAPConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateLDAPConfigRequest::setSearchBase(const std::string& searchBase)
|
||||
{
|
||||
searchBase_ = searchBase;
|
||||
setParameter("SearchBase", searchBase);
|
||||
CreateLDAPConfigRequest::~CreateLDAPConfigRequest() {}
|
||||
|
||||
std::string CreateLDAPConfigRequest::getSearchBase() const {
|
||||
return searchBase_;
|
||||
}
|
||||
|
||||
std::string CreateLDAPConfigRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void CreateLDAPConfigRequest::setSearchBase(const std::string &searchBase) {
|
||||
searchBase_ = searchBase;
|
||||
setParameter(std::string("SearchBase"), searchBase);
|
||||
}
|
||||
|
||||
void CreateLDAPConfigRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string CreateLDAPConfigRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
std::string CreateLDAPConfigRequest::getURI()const
|
||||
{
|
||||
return uRI_;
|
||||
void CreateLDAPConfigRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
void CreateLDAPConfigRequest::setURI(const std::string& uRI)
|
||||
{
|
||||
uRI_ = uRI;
|
||||
setParameter("URI", uRI);
|
||||
std::string CreateLDAPConfigRequest::getURI() const {
|
||||
return uRI_;
|
||||
}
|
||||
|
||||
std::string CreateLDAPConfigRequest::getBindDN()const
|
||||
{
|
||||
return bindDN_;
|
||||
void CreateLDAPConfigRequest::setURI(const std::string &uRI) {
|
||||
uRI_ = uRI;
|
||||
setParameter(std::string("URI"), uRI);
|
||||
}
|
||||
|
||||
void CreateLDAPConfigRequest::setBindDN(const std::string& bindDN)
|
||||
{
|
||||
bindDN_ = bindDN;
|
||||
setParameter("BindDN", bindDN);
|
||||
std::string CreateLDAPConfigRequest::getBindDN() const {
|
||||
return bindDN_;
|
||||
}
|
||||
|
||||
void CreateLDAPConfigRequest::setBindDN(const std::string &bindDN) {
|
||||
bindDN_ = bindDN;
|
||||
setParameter(std::string("BindDN"), bindDN);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,97 +1,80 @@
|
||||
/*
|
||||
* 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/nas/model/CreateLifecyclePolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CreateLifecyclePolicyRequest;
|
||||
|
||||
CreateLifecyclePolicyRequest::CreateLifecyclePolicyRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "CreateLifecyclePolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateLifecyclePolicyRequest::~CreateLifecyclePolicyRequest()
|
||||
{}
|
||||
|
||||
std::string CreateLifecyclePolicyRequest::getStorageType()const
|
||||
{
|
||||
return storageType_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/CreateLifecyclePolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CreateLifecyclePolicyRequest;
|
||||
|
||||
CreateLifecyclePolicyRequest::CreateLifecyclePolicyRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "CreateLifecyclePolicy") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateLifecyclePolicyRequest::setStorageType(const std::string& storageType)
|
||||
{
|
||||
storageType_ = storageType;
|
||||
setParameter("StorageType", storageType);
|
||||
CreateLifecyclePolicyRequest::~CreateLifecyclePolicyRequest() {}
|
||||
|
||||
std::string CreateLifecyclePolicyRequest::getStorageType() const {
|
||||
return storageType_;
|
||||
}
|
||||
|
||||
std::string CreateLifecyclePolicyRequest::getPath()const
|
||||
{
|
||||
return path_;
|
||||
void CreateLifecyclePolicyRequest::setStorageType(const std::string &storageType) {
|
||||
storageType_ = storageType;
|
||||
setParameter(std::string("StorageType"), storageType);
|
||||
}
|
||||
|
||||
void CreateLifecyclePolicyRequest::setPath(const std::string& path)
|
||||
{
|
||||
path_ = path;
|
||||
setParameter("Path", path);
|
||||
std::string CreateLifecyclePolicyRequest::getPath() const {
|
||||
return path_;
|
||||
}
|
||||
|
||||
std::string CreateLifecyclePolicyRequest::getLifecyclePolicyName()const
|
||||
{
|
||||
return lifecyclePolicyName_;
|
||||
void CreateLifecyclePolicyRequest::setPath(const std::string &path) {
|
||||
path_ = path;
|
||||
setParameter(std::string("Path"), path);
|
||||
}
|
||||
|
||||
void CreateLifecyclePolicyRequest::setLifecyclePolicyName(const std::string& lifecyclePolicyName)
|
||||
{
|
||||
lifecyclePolicyName_ = lifecyclePolicyName;
|
||||
setParameter("LifecyclePolicyName", lifecyclePolicyName);
|
||||
std::string CreateLifecyclePolicyRequest::getLifecyclePolicyName() const {
|
||||
return lifecyclePolicyName_;
|
||||
}
|
||||
|
||||
std::string CreateLifecyclePolicyRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void CreateLifecyclePolicyRequest::setLifecyclePolicyName(const std::string &lifecyclePolicyName) {
|
||||
lifecyclePolicyName_ = lifecyclePolicyName;
|
||||
setParameter(std::string("LifecyclePolicyName"), lifecyclePolicyName);
|
||||
}
|
||||
|
||||
void CreateLifecyclePolicyRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string CreateLifecyclePolicyRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
std::string CreateLifecyclePolicyRequest::getLifecycleRuleName()const
|
||||
{
|
||||
return lifecycleRuleName_;
|
||||
void CreateLifecyclePolicyRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
void CreateLifecyclePolicyRequest::setLifecycleRuleName(const std::string& lifecycleRuleName)
|
||||
{
|
||||
lifecycleRuleName_ = lifecycleRuleName;
|
||||
setParameter("LifecycleRuleName", lifecycleRuleName);
|
||||
std::string CreateLifecyclePolicyRequest::getLifecycleRuleName() const {
|
||||
return lifecycleRuleName_;
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateLifecyclePolicyRequest::getPaths()const
|
||||
{
|
||||
return paths_;
|
||||
void CreateLifecyclePolicyRequest::setLifecycleRuleName(const std::string &lifecycleRuleName) {
|
||||
lifecycleRuleName_ = lifecycleRuleName;
|
||||
setParameter(std::string("LifecycleRuleName"), lifecycleRuleName);
|
||||
}
|
||||
|
||||
void CreateLifecyclePolicyRequest::setPaths(const std::vector<std::string>& paths)
|
||||
{
|
||||
paths_ = paths;
|
||||
for(int dep1 = 0; dep1!= paths.size(); dep1++) {
|
||||
setParameter("Paths."+ std::to_string(dep1), paths.at(dep1));
|
||||
}
|
||||
std::vector<std::string> CreateLifecyclePolicyRequest::getPaths() const {
|
||||
return paths_;
|
||||
}
|
||||
|
||||
void CreateLifecyclePolicyRequest::setPaths(const std::vector<std::string> &paths) {
|
||||
paths_ = paths;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,53 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/CreateLifecycleRetrieveJobRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CreateLifecycleRetrieveJobRequest;
|
||||
|
||||
CreateLifecycleRetrieveJobRequest::CreateLifecycleRetrieveJobRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "CreateLifecycleRetrieveJob")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateLifecycleRetrieveJobRequest::~CreateLifecycleRetrieveJobRequest()
|
||||
{}
|
||||
|
||||
std::string CreateLifecycleRetrieveJobRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/CreateLifecycleRetrieveJobRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CreateLifecycleRetrieveJobRequest;
|
||||
|
||||
CreateLifecycleRetrieveJobRequest::CreateLifecycleRetrieveJobRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "CreateLifecycleRetrieveJob") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateLifecycleRetrieveJobRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
CreateLifecycleRetrieveJobRequest::~CreateLifecycleRetrieveJobRequest() {}
|
||||
|
||||
std::string CreateLifecycleRetrieveJobRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateLifecycleRetrieveJobRequest::getPaths()const
|
||||
{
|
||||
return paths_;
|
||||
void CreateLifecycleRetrieveJobRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
void CreateLifecycleRetrieveJobRequest::setPaths(const std::vector<std::string>& paths)
|
||||
{
|
||||
paths_ = paths;
|
||||
for(int dep1 = 0; dep1!= paths.size(); dep1++) {
|
||||
setParameter("Paths."+ std::to_string(dep1), paths.at(dep1));
|
||||
}
|
||||
std::vector<std::string> CreateLifecycleRetrieveJobRequest::getPaths() const {
|
||||
return paths_;
|
||||
}
|
||||
|
||||
void CreateLifecycleRetrieveJobRequest::setPaths(const std::vector<std::string> &paths) {
|
||||
paths_ = paths;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,117 +1,99 @@
|
||||
/*
|
||||
* 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/nas/model/CreateMountTargetRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CreateMountTargetRequest;
|
||||
|
||||
CreateMountTargetRequest::CreateMountTargetRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "CreateMountTarget")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateMountTargetRequest::~CreateMountTargetRequest()
|
||||
{}
|
||||
|
||||
std::string CreateMountTargetRequest::getSecurityGroupId()const
|
||||
{
|
||||
return securityGroupId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/CreateMountTargetRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CreateMountTargetRequest;
|
||||
|
||||
CreateMountTargetRequest::CreateMountTargetRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "CreateMountTarget") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateMountTargetRequest::setSecurityGroupId(const std::string& securityGroupId)
|
||||
{
|
||||
securityGroupId_ = securityGroupId;
|
||||
setParameter("SecurityGroupId", securityGroupId);
|
||||
CreateMountTargetRequest::~CreateMountTargetRequest() {}
|
||||
|
||||
std::string CreateMountTargetRequest::getSecurityGroupId() const {
|
||||
return securityGroupId_;
|
||||
}
|
||||
|
||||
bool CreateMountTargetRequest::getEnableIpv6()const
|
||||
{
|
||||
return enableIpv6_;
|
||||
void CreateMountTargetRequest::setSecurityGroupId(const std::string &securityGroupId) {
|
||||
securityGroupId_ = securityGroupId;
|
||||
setParameter(std::string("SecurityGroupId"), securityGroupId);
|
||||
}
|
||||
|
||||
void CreateMountTargetRequest::setEnableIpv6(bool enableIpv6)
|
||||
{
|
||||
enableIpv6_ = enableIpv6;
|
||||
setParameter("EnableIpv6", enableIpv6 ? "true" : "false");
|
||||
bool CreateMountTargetRequest::getEnableIpv6() const {
|
||||
return enableIpv6_;
|
||||
}
|
||||
|
||||
std::string CreateMountTargetRequest::getNetworkType()const
|
||||
{
|
||||
return networkType_;
|
||||
void CreateMountTargetRequest::setEnableIpv6(bool enableIpv6) {
|
||||
enableIpv6_ = enableIpv6;
|
||||
setParameter(std::string("EnableIpv6"), enableIpv6 ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreateMountTargetRequest::setNetworkType(const std::string& networkType)
|
||||
{
|
||||
networkType_ = networkType;
|
||||
setParameter("NetworkType", networkType);
|
||||
std::string CreateMountTargetRequest::getNetworkType() const {
|
||||
return networkType_;
|
||||
}
|
||||
|
||||
std::string CreateMountTargetRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void CreateMountTargetRequest::setNetworkType(const std::string &networkType) {
|
||||
networkType_ = networkType;
|
||||
setParameter(std::string("NetworkType"), networkType);
|
||||
}
|
||||
|
||||
void CreateMountTargetRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string CreateMountTargetRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
bool CreateMountTargetRequest::getDryRun()const
|
||||
{
|
||||
return dryRun_;
|
||||
void CreateMountTargetRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
void CreateMountTargetRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setParameter("DryRun", dryRun ? "true" : "false");
|
||||
bool CreateMountTargetRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
std::string CreateMountTargetRequest::getAccessGroupName()const
|
||||
{
|
||||
return accessGroupName_;
|
||||
void CreateMountTargetRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreateMountTargetRequest::setAccessGroupName(const std::string& accessGroupName)
|
||||
{
|
||||
accessGroupName_ = accessGroupName;
|
||||
setParameter("AccessGroupName", accessGroupName);
|
||||
std::string CreateMountTargetRequest::getAccessGroupName() const {
|
||||
return accessGroupName_;
|
||||
}
|
||||
|
||||
std::string CreateMountTargetRequest::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
void CreateMountTargetRequest::setAccessGroupName(const std::string &accessGroupName) {
|
||||
accessGroupName_ = accessGroupName;
|
||||
setParameter(std::string("AccessGroupName"), accessGroupName);
|
||||
}
|
||||
|
||||
void CreateMountTargetRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter("VSwitchId", vSwitchId);
|
||||
std::string CreateMountTargetRequest::getVSwitchId() const {
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
std::string CreateMountTargetRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
void CreateMountTargetRequest::setVSwitchId(const std::string &vSwitchId) {
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter(std::string("VSwitchId"), vSwitchId);
|
||||
}
|
||||
|
||||
void CreateMountTargetRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
std::string CreateMountTargetRequest::getVpcId() const {
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreateMountTargetRequest::setVpcId(const std::string &vpcId) {
|
||||
vpcId_ = vpcId;
|
||||
setParameter(std::string("VpcId"), vpcId);
|
||||
}
|
||||
|
||||
|
||||
117
nas/src/model/CreateProtocolMountTargetRequest.cc
Normal file
117
nas/src/model/CreateProtocolMountTargetRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* 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/nas/model/CreateProtocolMountTargetRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CreateProtocolMountTargetRequest;
|
||||
|
||||
CreateProtocolMountTargetRequest::CreateProtocolMountTargetRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "CreateProtocolMountTarget") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateProtocolMountTargetRequest::~CreateProtocolMountTargetRequest() {}
|
||||
|
||||
std::string CreateProtocolMountTargetRequest::getProtocolServiceId() const {
|
||||
return protocolServiceId_;
|
||||
}
|
||||
|
||||
void CreateProtocolMountTargetRequest::setProtocolServiceId(const std::string &protocolServiceId) {
|
||||
protocolServiceId_ = protocolServiceId;
|
||||
setParameter(std::string("ProtocolServiceId"), protocolServiceId);
|
||||
}
|
||||
|
||||
std::string CreateProtocolMountTargetRequest::getFsetId() const {
|
||||
return fsetId_;
|
||||
}
|
||||
|
||||
void CreateProtocolMountTargetRequest::setFsetId(const std::string &fsetId) {
|
||||
fsetId_ = fsetId;
|
||||
setParameter(std::string("FsetId"), fsetId);
|
||||
}
|
||||
|
||||
std::string CreateProtocolMountTargetRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateProtocolMountTargetRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string CreateProtocolMountTargetRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateProtocolMountTargetRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateProtocolMountTargetRequest::getPath() const {
|
||||
return path_;
|
||||
}
|
||||
|
||||
void CreateProtocolMountTargetRequest::setPath(const std::string &path) {
|
||||
path_ = path;
|
||||
setParameter(std::string("Path"), path);
|
||||
}
|
||||
|
||||
std::string CreateProtocolMountTargetRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
void CreateProtocolMountTargetRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
bool CreateProtocolMountTargetRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void CreateProtocolMountTargetRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateProtocolMountTargetRequest::getAccessGroupName() const {
|
||||
return accessGroupName_;
|
||||
}
|
||||
|
||||
void CreateProtocolMountTargetRequest::setAccessGroupName(const std::string &accessGroupName) {
|
||||
accessGroupName_ = accessGroupName;
|
||||
setParameter(std::string("AccessGroupName"), accessGroupName);
|
||||
}
|
||||
|
||||
std::string CreateProtocolMountTargetRequest::getVSwitchId() const {
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void CreateProtocolMountTargetRequest::setVSwitchId(const std::string &vSwitchId) {
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter(std::string("VSwitchId"), vSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateProtocolMountTargetRequest::getVpcId() const {
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreateProtocolMountTargetRequest::setVpcId(const std::string &vpcId) {
|
||||
vpcId_ = vpcId;
|
||||
setParameter(std::string("VpcId"), vpcId);
|
||||
}
|
||||
|
||||
51
nas/src/model/CreateProtocolMountTargetResult.cc
Normal file
51
nas/src/model/CreateProtocolMountTargetResult.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/nas/model/CreateProtocolMountTargetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::NAS;
|
||||
using namespace AlibabaCloud::NAS::Model;
|
||||
|
||||
CreateProtocolMountTargetResult::CreateProtocolMountTargetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateProtocolMountTargetResult::CreateProtocolMountTargetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateProtocolMountTargetResult::~CreateProtocolMountTargetResult()
|
||||
{}
|
||||
|
||||
void CreateProtocolMountTargetResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ExportId"].isNull())
|
||||
exportId_ = value["ExportId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateProtocolMountTargetResult::getExportId()const
|
||||
{
|
||||
return exportId_;
|
||||
}
|
||||
|
||||
162
nas/src/model/CreateProtocolServiceRequest.cc
Normal file
162
nas/src/model/CreateProtocolServiceRequest.cc
Normal file
@@ -0,0 +1,162 @@
|
||||
/*
|
||||
* 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/nas/model/CreateProtocolServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CreateProtocolServiceRequest;
|
||||
|
||||
CreateProtocolServiceRequest::CreateProtocolServiceRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "CreateProtocolService") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateProtocolServiceRequest::~CreateProtocolServiceRequest() {}
|
||||
|
||||
std::string CreateProtocolServiceRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateProtocolServiceRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string CreateProtocolServiceRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateProtocolServiceRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateProtocolServiceRequest::getMountTargetDescription() const {
|
||||
return mountTargetDescription_;
|
||||
}
|
||||
|
||||
void CreateProtocolServiceRequest::setMountTargetDescription(const std::string &mountTargetDescription) {
|
||||
mountTargetDescription_ = mountTargetDescription;
|
||||
setParameter(std::string("MountTargetDescription"), mountTargetDescription);
|
||||
}
|
||||
|
||||
std::string CreateProtocolServiceRequest::getMountTargetAccessGroupName() const {
|
||||
return mountTargetAccessGroupName_;
|
||||
}
|
||||
|
||||
void CreateProtocolServiceRequest::setMountTargetAccessGroupName(const std::string &mountTargetAccessGroupName) {
|
||||
mountTargetAccessGroupName_ = mountTargetAccessGroupName;
|
||||
setParameter(std::string("MountTargetAccessGroupName"), mountTargetAccessGroupName);
|
||||
}
|
||||
|
||||
std::string CreateProtocolServiceRequest::getMountTargetVSwitchId() const {
|
||||
return mountTargetVSwitchId_;
|
||||
}
|
||||
|
||||
void CreateProtocolServiceRequest::setMountTargetVSwitchId(const std::string &mountTargetVSwitchId) {
|
||||
mountTargetVSwitchId_ = mountTargetVSwitchId;
|
||||
setParameter(std::string("MountTargetVSwitchId"), mountTargetVSwitchId);
|
||||
}
|
||||
|
||||
int CreateProtocolServiceRequest::getThroughput() const {
|
||||
return throughput_;
|
||||
}
|
||||
|
||||
void CreateProtocolServiceRequest::setThroughput(int throughput) {
|
||||
throughput_ = throughput;
|
||||
setParameter(std::string("Throughput"), std::to_string(throughput));
|
||||
}
|
||||
|
||||
std::string CreateProtocolServiceRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
void CreateProtocolServiceRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
bool CreateProtocolServiceRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void CreateProtocolServiceRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateProtocolServiceRequest::getMountTargetFsetId() const {
|
||||
return mountTargetFsetId_;
|
||||
}
|
||||
|
||||
void CreateProtocolServiceRequest::setMountTargetFsetId(const std::string &mountTargetFsetId) {
|
||||
mountTargetFsetId_ = mountTargetFsetId;
|
||||
setParameter(std::string("MountTargetFsetId"), mountTargetFsetId);
|
||||
}
|
||||
|
||||
std::string CreateProtocolServiceRequest::getVSwitchId() const {
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void CreateProtocolServiceRequest::setVSwitchId(const std::string &vSwitchId) {
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter(std::string("VSwitchId"), vSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateProtocolServiceRequest::getMountTargetVpcId() const {
|
||||
return mountTargetVpcId_;
|
||||
}
|
||||
|
||||
void CreateProtocolServiceRequest::setMountTargetVpcId(const std::string &mountTargetVpcId) {
|
||||
mountTargetVpcId_ = mountTargetVpcId;
|
||||
setParameter(std::string("MountTargetVpcId"), mountTargetVpcId);
|
||||
}
|
||||
|
||||
std::string CreateProtocolServiceRequest::getMountTargetPath() const {
|
||||
return mountTargetPath_;
|
||||
}
|
||||
|
||||
void CreateProtocolServiceRequest::setMountTargetPath(const std::string &mountTargetPath) {
|
||||
mountTargetPath_ = mountTargetPath;
|
||||
setParameter(std::string("MountTargetPath"), mountTargetPath);
|
||||
}
|
||||
|
||||
std::string CreateProtocolServiceRequest::getProtocolSpec() const {
|
||||
return protocolSpec_;
|
||||
}
|
||||
|
||||
void CreateProtocolServiceRequest::setProtocolSpec(const std::string &protocolSpec) {
|
||||
protocolSpec_ = protocolSpec;
|
||||
setParameter(std::string("ProtocolSpec"), protocolSpec);
|
||||
}
|
||||
|
||||
std::string CreateProtocolServiceRequest::getVpcId() const {
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreateProtocolServiceRequest::setVpcId(const std::string &vpcId) {
|
||||
vpcId_ = vpcId;
|
||||
setParameter(std::string("VpcId"), vpcId);
|
||||
}
|
||||
|
||||
std::string CreateProtocolServiceRequest::getProtocolType() const {
|
||||
return protocolType_;
|
||||
}
|
||||
|
||||
void CreateProtocolServiceRequest::setProtocolType(const std::string &protocolType) {
|
||||
protocolType_ = protocolType;
|
||||
setParameter(std::string("ProtocolType"), protocolType);
|
||||
}
|
||||
|
||||
51
nas/src/model/CreateProtocolServiceResult.cc
Normal file
51
nas/src/model/CreateProtocolServiceResult.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/nas/model/CreateProtocolServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::NAS;
|
||||
using namespace AlibabaCloud::NAS::Model;
|
||||
|
||||
CreateProtocolServiceResult::CreateProtocolServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateProtocolServiceResult::CreateProtocolServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateProtocolServiceResult::~CreateProtocolServiceResult()
|
||||
{}
|
||||
|
||||
void CreateProtocolServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ProtocolServiceId"].isNull())
|
||||
protocolServiceId_ = value["ProtocolServiceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateProtocolServiceResult::getProtocolServiceId()const
|
||||
{
|
||||
return protocolServiceId_;
|
||||
}
|
||||
|
||||
@@ -1,62 +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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/CreateRecycleBinDeleteJobRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CreateRecycleBinDeleteJobRequest;
|
||||
|
||||
CreateRecycleBinDeleteJobRequest::CreateRecycleBinDeleteJobRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "CreateRecycleBinDeleteJob")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
CreateRecycleBinDeleteJobRequest::~CreateRecycleBinDeleteJobRequest()
|
||||
{}
|
||||
|
||||
std::string CreateRecycleBinDeleteJobRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/CreateRecycleBinDeleteJobRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CreateRecycleBinDeleteJobRequest;
|
||||
|
||||
CreateRecycleBinDeleteJobRequest::CreateRecycleBinDeleteJobRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "CreateRecycleBinDeleteJob") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void CreateRecycleBinDeleteJobRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
CreateRecycleBinDeleteJobRequest::~CreateRecycleBinDeleteJobRequest() {}
|
||||
|
||||
std::string CreateRecycleBinDeleteJobRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::string CreateRecycleBinDeleteJobRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void CreateRecycleBinDeleteJobRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
void CreateRecycleBinDeleteJobRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string CreateRecycleBinDeleteJobRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
std::string CreateRecycleBinDeleteJobRequest::getFileId()const
|
||||
{
|
||||
return fileId_;
|
||||
void CreateRecycleBinDeleteJobRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
void CreateRecycleBinDeleteJobRequest::setFileId(const std::string& fileId)
|
||||
{
|
||||
fileId_ = fileId;
|
||||
setParameter("FileId", fileId);
|
||||
std::string CreateRecycleBinDeleteJobRequest::getFileId() const {
|
||||
return fileId_;
|
||||
}
|
||||
|
||||
void CreateRecycleBinDeleteJobRequest::setFileId(const std::string &fileId) {
|
||||
fileId_ = fileId;
|
||||
setParameter(std::string("FileId"), fileId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +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/nas/model/CreateRecycleBinRestoreJobRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CreateRecycleBinRestoreJobRequest;
|
||||
|
||||
CreateRecycleBinRestoreJobRequest::CreateRecycleBinRestoreJobRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "CreateRecycleBinRestoreJob")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
CreateRecycleBinRestoreJobRequest::~CreateRecycleBinRestoreJobRequest()
|
||||
{}
|
||||
|
||||
std::string CreateRecycleBinRestoreJobRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/CreateRecycleBinRestoreJobRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CreateRecycleBinRestoreJobRequest;
|
||||
|
||||
CreateRecycleBinRestoreJobRequest::CreateRecycleBinRestoreJobRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "CreateRecycleBinRestoreJob") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void CreateRecycleBinRestoreJobRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
CreateRecycleBinRestoreJobRequest::~CreateRecycleBinRestoreJobRequest() {}
|
||||
|
||||
std::string CreateRecycleBinRestoreJobRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::string CreateRecycleBinRestoreJobRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void CreateRecycleBinRestoreJobRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
void CreateRecycleBinRestoreJobRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string CreateRecycleBinRestoreJobRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
std::string CreateRecycleBinRestoreJobRequest::getFileId()const
|
||||
{
|
||||
return fileId_;
|
||||
void CreateRecycleBinRestoreJobRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
void CreateRecycleBinRestoreJobRequest::setFileId(const std::string& fileId)
|
||||
{
|
||||
fileId_ = fileId;
|
||||
setParameter("FileId", fileId);
|
||||
std::string CreateRecycleBinRestoreJobRequest::getFileId() const {
|
||||
return fileId_;
|
||||
}
|
||||
|
||||
std::string CreateRecycleBinRestoreJobRequest::getTargetFileId()const
|
||||
{
|
||||
return targetFileId_;
|
||||
void CreateRecycleBinRestoreJobRequest::setFileId(const std::string &fileId) {
|
||||
fileId_ = fileId;
|
||||
setParameter(std::string("FileId"), fileId);
|
||||
}
|
||||
|
||||
void CreateRecycleBinRestoreJobRequest::setTargetFileId(const std::string& targetFileId)
|
||||
{
|
||||
targetFileId_ = targetFileId;
|
||||
setParameter("TargetFileId", targetFileId);
|
||||
std::string CreateRecycleBinRestoreJobRequest::getTargetFileId() const {
|
||||
return targetFileId_;
|
||||
}
|
||||
|
||||
void CreateRecycleBinRestoreJobRequest::setTargetFileId(const std::string &targetFileId) {
|
||||
targetFileId_ = targetFileId;
|
||||
setParameter(std::string("TargetFileId"), targetFileId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +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/nas/model/CreateSnapshotRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CreateSnapshotRequest;
|
||||
|
||||
CreateSnapshotRequest::CreateSnapshotRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "CreateSnapshot")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateSnapshotRequest::~CreateSnapshotRequest()
|
||||
{}
|
||||
|
||||
std::string CreateSnapshotRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/CreateSnapshotRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::CreateSnapshotRequest;
|
||||
|
||||
CreateSnapshotRequest::CreateSnapshotRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "CreateSnapshot") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateSnapshotRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
CreateSnapshotRequest::~CreateSnapshotRequest() {}
|
||||
|
||||
std::string CreateSnapshotRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string CreateSnapshotRequest::getSnapshotName()const
|
||||
{
|
||||
return snapshotName_;
|
||||
void CreateSnapshotRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
void CreateSnapshotRequest::setSnapshotName(const std::string& snapshotName)
|
||||
{
|
||||
snapshotName_ = snapshotName;
|
||||
setParameter("SnapshotName", snapshotName);
|
||||
std::string CreateSnapshotRequest::getSnapshotName() const {
|
||||
return snapshotName_;
|
||||
}
|
||||
|
||||
std::string CreateSnapshotRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void CreateSnapshotRequest::setSnapshotName(const std::string &snapshotName) {
|
||||
snapshotName_ = snapshotName;
|
||||
setParameter(std::string("SnapshotName"), snapshotName);
|
||||
}
|
||||
|
||||
void CreateSnapshotRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string CreateSnapshotRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
int CreateSnapshotRequest::getRetentionDays()const
|
||||
{
|
||||
return retentionDays_;
|
||||
void CreateSnapshotRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
void CreateSnapshotRequest::setRetentionDays(int retentionDays)
|
||||
{
|
||||
retentionDays_ = retentionDays;
|
||||
setParameter("RetentionDays", std::to_string(retentionDays));
|
||||
int CreateSnapshotRequest::getRetentionDays() const {
|
||||
return retentionDays_;
|
||||
}
|
||||
|
||||
void CreateSnapshotRequest::setRetentionDays(int retentionDays) {
|
||||
retentionDays_ = retentionDays;
|
||||
setParameter(std::string("RetentionDays"), std::to_string(retentionDays));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/nas/model/DeleteAccessGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DeleteAccessGroupRequest;
|
||||
|
||||
DeleteAccessGroupRequest::DeleteAccessGroupRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DeleteAccessGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAccessGroupRequest::~DeleteAccessGroupRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteAccessGroupRequest::getFileSystemType()const
|
||||
{
|
||||
return fileSystemType_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DeleteAccessGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DeleteAccessGroupRequest;
|
||||
|
||||
DeleteAccessGroupRequest::DeleteAccessGroupRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DeleteAccessGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteAccessGroupRequest::setFileSystemType(const std::string& fileSystemType)
|
||||
{
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter("FileSystemType", fileSystemType);
|
||||
DeleteAccessGroupRequest::~DeleteAccessGroupRequest() {}
|
||||
|
||||
std::string DeleteAccessGroupRequest::getFileSystemType() const {
|
||||
return fileSystemType_;
|
||||
}
|
||||
|
||||
std::string DeleteAccessGroupRequest::getAccessGroupName()const
|
||||
{
|
||||
return accessGroupName_;
|
||||
void DeleteAccessGroupRequest::setFileSystemType(const std::string &fileSystemType) {
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter(std::string("FileSystemType"), fileSystemType);
|
||||
}
|
||||
|
||||
void DeleteAccessGroupRequest::setAccessGroupName(const std::string& accessGroupName)
|
||||
{
|
||||
accessGroupName_ = accessGroupName;
|
||||
setParameter("AccessGroupName", accessGroupName);
|
||||
std::string DeleteAccessGroupRequest::getAccessGroupName() const {
|
||||
return accessGroupName_;
|
||||
}
|
||||
|
||||
void DeleteAccessGroupRequest::setAccessGroupName(const std::string &accessGroupName) {
|
||||
accessGroupName_ = accessGroupName;
|
||||
setParameter(std::string("AccessGroupName"), accessGroupName);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DeleteAccessRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DeleteAccessRuleRequest;
|
||||
|
||||
DeleteAccessRuleRequest::DeleteAccessRuleRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DeleteAccessRule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAccessRuleRequest::~DeleteAccessRuleRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteAccessRuleRequest::getFileSystemType()const
|
||||
{
|
||||
return fileSystemType_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DeleteAccessRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DeleteAccessRuleRequest;
|
||||
|
||||
DeleteAccessRuleRequest::DeleteAccessRuleRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DeleteAccessRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteAccessRuleRequest::setFileSystemType(const std::string& fileSystemType)
|
||||
{
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter("FileSystemType", fileSystemType);
|
||||
DeleteAccessRuleRequest::~DeleteAccessRuleRequest() {}
|
||||
|
||||
std::string DeleteAccessRuleRequest::getFileSystemType() const {
|
||||
return fileSystemType_;
|
||||
}
|
||||
|
||||
std::string DeleteAccessRuleRequest::getAccessRuleId()const
|
||||
{
|
||||
return accessRuleId_;
|
||||
void DeleteAccessRuleRequest::setFileSystemType(const std::string &fileSystemType) {
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter(std::string("FileSystemType"), fileSystemType);
|
||||
}
|
||||
|
||||
void DeleteAccessRuleRequest::setAccessRuleId(const std::string& accessRuleId)
|
||||
{
|
||||
accessRuleId_ = accessRuleId;
|
||||
setParameter("AccessRuleId", accessRuleId);
|
||||
std::string DeleteAccessRuleRequest::getAccessRuleId() const {
|
||||
return accessRuleId_;
|
||||
}
|
||||
|
||||
std::string DeleteAccessRuleRequest::getAccessGroupName()const
|
||||
{
|
||||
return accessGroupName_;
|
||||
void DeleteAccessRuleRequest::setAccessRuleId(const std::string &accessRuleId) {
|
||||
accessRuleId_ = accessRuleId;
|
||||
setParameter(std::string("AccessRuleId"), accessRuleId);
|
||||
}
|
||||
|
||||
void DeleteAccessRuleRequest::setAccessGroupName(const std::string& accessGroupName)
|
||||
{
|
||||
accessGroupName_ = accessGroupName;
|
||||
setParameter("AccessGroupName", accessGroupName);
|
||||
std::string DeleteAccessRuleRequest::getAccessGroupName() const {
|
||||
return accessGroupName_;
|
||||
}
|
||||
|
||||
void DeleteAccessRuleRequest::setAccessGroupName(const std::string &accessGroupName) {
|
||||
accessGroupName_ = accessGroupName;
|
||||
setParameter(std::string("AccessGroupName"), accessGroupName);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* 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/nas/model/DeleteAutoSnapshotPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DeleteAutoSnapshotPolicyRequest;
|
||||
|
||||
DeleteAutoSnapshotPolicyRequest::DeleteAutoSnapshotPolicyRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DeleteAutoSnapshotPolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAutoSnapshotPolicyRequest::~DeleteAutoSnapshotPolicyRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteAutoSnapshotPolicyRequest::getAutoSnapshotPolicyId()const
|
||||
{
|
||||
return autoSnapshotPolicyId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DeleteAutoSnapshotPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DeleteAutoSnapshotPolicyRequest;
|
||||
|
||||
DeleteAutoSnapshotPolicyRequest::DeleteAutoSnapshotPolicyRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DeleteAutoSnapshotPolicy") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteAutoSnapshotPolicyRequest::setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId)
|
||||
{
|
||||
autoSnapshotPolicyId_ = autoSnapshotPolicyId;
|
||||
setParameter("AutoSnapshotPolicyId", autoSnapshotPolicyId);
|
||||
DeleteAutoSnapshotPolicyRequest::~DeleteAutoSnapshotPolicyRequest() {}
|
||||
|
||||
std::string DeleteAutoSnapshotPolicyRequest::getAutoSnapshotPolicyId() const {
|
||||
return autoSnapshotPolicyId_;
|
||||
}
|
||||
|
||||
void DeleteAutoSnapshotPolicyRequest::setAutoSnapshotPolicyId(const std::string &autoSnapshotPolicyId) {
|
||||
autoSnapshotPolicyId_ = autoSnapshotPolicyId;
|
||||
setParameter(std::string("AutoSnapshotPolicyId"), autoSnapshotPolicyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +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/nas/model/DeleteDataFlowRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DeleteDataFlowRequest;
|
||||
|
||||
DeleteDataFlowRequest::DeleteDataFlowRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DeleteDataFlow")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDataFlowRequest::~DeleteDataFlowRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteDataFlowRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DeleteDataFlowRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DeleteDataFlowRequest;
|
||||
|
||||
DeleteDataFlowRequest::DeleteDataFlowRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DeleteDataFlow") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteDataFlowRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
DeleteDataFlowRequest::~DeleteDataFlowRequest() {}
|
||||
|
||||
std::string DeleteDataFlowRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::string DeleteDataFlowRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void DeleteDataFlowRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
void DeleteDataFlowRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string DeleteDataFlowRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
bool DeleteDataFlowRequest::getDryRun()const
|
||||
{
|
||||
return dryRun_;
|
||||
void DeleteDataFlowRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
void DeleteDataFlowRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setParameter("DryRun", dryRun ? "true" : "false");
|
||||
bool DeleteDataFlowRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
std::string DeleteDataFlowRequest::getDataFlowId()const
|
||||
{
|
||||
return dataFlowId_;
|
||||
void DeleteDataFlowRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
void DeleteDataFlowRequest::setDataFlowId(const std::string& dataFlowId)
|
||||
{
|
||||
dataFlowId_ = dataFlowId;
|
||||
setParameter("DataFlowId", dataFlowId);
|
||||
std::string DeleteDataFlowRequest::getDataFlowId() const {
|
||||
return dataFlowId_;
|
||||
}
|
||||
|
||||
void DeleteDataFlowRequest::setDataFlowId(const std::string &dataFlowId) {
|
||||
dataFlowId_ = dataFlowId;
|
||||
setParameter(std::string("DataFlowId"), dataFlowId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* 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/nas/model/DeleteFileSystemRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DeleteFileSystemRequest;
|
||||
|
||||
DeleteFileSystemRequest::DeleteFileSystemRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DeleteFileSystem")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteFileSystemRequest::~DeleteFileSystemRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteFileSystemRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DeleteFileSystemRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DeleteFileSystemRequest;
|
||||
|
||||
DeleteFileSystemRequest::DeleteFileSystemRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DeleteFileSystem") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteFileSystemRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
DeleteFileSystemRequest::~DeleteFileSystemRequest() {}
|
||||
|
||||
std::string DeleteFileSystemRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
void DeleteFileSystemRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +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/nas/model/DeleteFilesetRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DeleteFilesetRequest;
|
||||
|
||||
DeleteFilesetRequest::DeleteFilesetRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DeleteFileset")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteFilesetRequest::~DeleteFilesetRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteFilesetRequest::getFsetId()const
|
||||
{
|
||||
return fsetId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DeleteFilesetRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DeleteFilesetRequest;
|
||||
|
||||
DeleteFilesetRequest::DeleteFilesetRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DeleteFileset") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteFilesetRequest::setFsetId(const std::string& fsetId)
|
||||
{
|
||||
fsetId_ = fsetId;
|
||||
setParameter("FsetId", fsetId);
|
||||
DeleteFilesetRequest::~DeleteFilesetRequest() {}
|
||||
|
||||
std::string DeleteFilesetRequest::getFsetId() const {
|
||||
return fsetId_;
|
||||
}
|
||||
|
||||
std::string DeleteFilesetRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void DeleteFilesetRequest::setFsetId(const std::string &fsetId) {
|
||||
fsetId_ = fsetId;
|
||||
setParameter(std::string("FsetId"), fsetId);
|
||||
}
|
||||
|
||||
void DeleteFilesetRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
std::string DeleteFilesetRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::string DeleteFilesetRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void DeleteFilesetRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
void DeleteFilesetRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string DeleteFilesetRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
bool DeleteFilesetRequest::getDryRun()const
|
||||
{
|
||||
return dryRun_;
|
||||
void DeleteFilesetRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
void DeleteFilesetRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setParameter("DryRun", dryRun ? "true" : "false");
|
||||
bool DeleteFilesetRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void DeleteFilesetRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* 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/nas/model/DeleteLDAPConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DeleteLDAPConfigRequest;
|
||||
|
||||
DeleteLDAPConfigRequest::DeleteLDAPConfigRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DeleteLDAPConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteLDAPConfigRequest::~DeleteLDAPConfigRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteLDAPConfigRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DeleteLDAPConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DeleteLDAPConfigRequest;
|
||||
|
||||
DeleteLDAPConfigRequest::DeleteLDAPConfigRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DeleteLDAPConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteLDAPConfigRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
DeleteLDAPConfigRequest::~DeleteLDAPConfigRequest() {}
|
||||
|
||||
std::string DeleteLDAPConfigRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
void DeleteLDAPConfigRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/nas/model/DeleteLifecyclePolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DeleteLifecyclePolicyRequest;
|
||||
|
||||
DeleteLifecyclePolicyRequest::DeleteLifecyclePolicyRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DeleteLifecyclePolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteLifecyclePolicyRequest::~DeleteLifecyclePolicyRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteLifecyclePolicyRequest::getLifecyclePolicyName()const
|
||||
{
|
||||
return lifecyclePolicyName_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DeleteLifecyclePolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DeleteLifecyclePolicyRequest;
|
||||
|
||||
DeleteLifecyclePolicyRequest::DeleteLifecyclePolicyRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DeleteLifecyclePolicy") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteLifecyclePolicyRequest::setLifecyclePolicyName(const std::string& lifecyclePolicyName)
|
||||
{
|
||||
lifecyclePolicyName_ = lifecyclePolicyName;
|
||||
setParameter("LifecyclePolicyName", lifecyclePolicyName);
|
||||
DeleteLifecyclePolicyRequest::~DeleteLifecyclePolicyRequest() {}
|
||||
|
||||
std::string DeleteLifecyclePolicyRequest::getLifecyclePolicyName() const {
|
||||
return lifecyclePolicyName_;
|
||||
}
|
||||
|
||||
std::string DeleteLifecyclePolicyRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void DeleteLifecyclePolicyRequest::setLifecyclePolicyName(const std::string &lifecyclePolicyName) {
|
||||
lifecyclePolicyName_ = lifecyclePolicyName;
|
||||
setParameter(std::string("LifecyclePolicyName"), lifecyclePolicyName);
|
||||
}
|
||||
|
||||
void DeleteLifecyclePolicyRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string DeleteLifecyclePolicyRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
void DeleteLifecyclePolicyRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/nas/model/DeleteMountTargetRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DeleteMountTargetRequest;
|
||||
|
||||
DeleteMountTargetRequest::DeleteMountTargetRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DeleteMountTarget")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteMountTargetRequest::~DeleteMountTargetRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteMountTargetRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DeleteMountTargetRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DeleteMountTargetRequest;
|
||||
|
||||
DeleteMountTargetRequest::DeleteMountTargetRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DeleteMountTarget") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteMountTargetRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
DeleteMountTargetRequest::~DeleteMountTargetRequest() {}
|
||||
|
||||
std::string DeleteMountTargetRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
std::string DeleteMountTargetRequest::getMountTargetDomain()const
|
||||
{
|
||||
return mountTargetDomain_;
|
||||
void DeleteMountTargetRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
void DeleteMountTargetRequest::setMountTargetDomain(const std::string& mountTargetDomain)
|
||||
{
|
||||
mountTargetDomain_ = mountTargetDomain;
|
||||
setParameter("MountTargetDomain", mountTargetDomain);
|
||||
std::string DeleteMountTargetRequest::getMountTargetDomain() const {
|
||||
return mountTargetDomain_;
|
||||
}
|
||||
|
||||
void DeleteMountTargetRequest::setMountTargetDomain(const std::string &mountTargetDomain) {
|
||||
mountTargetDomain_ = mountTargetDomain;
|
||||
setParameter(std::string("MountTargetDomain"), mountTargetDomain);
|
||||
}
|
||||
|
||||
|
||||
72
nas/src/model/DeleteProtocolMountTargetRequest.cc
Normal file
72
nas/src/model/DeleteProtocolMountTargetRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DeleteProtocolMountTargetRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DeleteProtocolMountTargetRequest;
|
||||
|
||||
DeleteProtocolMountTargetRequest::DeleteProtocolMountTargetRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DeleteProtocolMountTarget") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteProtocolMountTargetRequest::~DeleteProtocolMountTargetRequest() {}
|
||||
|
||||
std::string DeleteProtocolMountTargetRequest::getProtocolServiceId() const {
|
||||
return protocolServiceId_;
|
||||
}
|
||||
|
||||
void DeleteProtocolMountTargetRequest::setProtocolServiceId(const std::string &protocolServiceId) {
|
||||
protocolServiceId_ = protocolServiceId;
|
||||
setParameter(std::string("ProtocolServiceId"), protocolServiceId);
|
||||
}
|
||||
|
||||
std::string DeleteProtocolMountTargetRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeleteProtocolMountTargetRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DeleteProtocolMountTargetRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
void DeleteProtocolMountTargetRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
bool DeleteProtocolMountTargetRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void DeleteProtocolMountTargetRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteProtocolMountTargetRequest::getExportId() const {
|
||||
return exportId_;
|
||||
}
|
||||
|
||||
void DeleteProtocolMountTargetRequest::setExportId(const std::string &exportId) {
|
||||
exportId_ = exportId;
|
||||
setParameter(std::string("ExportId"), exportId);
|
||||
}
|
||||
|
||||
44
nas/src/model/DeleteProtocolMountTargetResult.cc
Normal file
44
nas/src/model/DeleteProtocolMountTargetResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DeleteProtocolMountTargetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::NAS;
|
||||
using namespace AlibabaCloud::NAS::Model;
|
||||
|
||||
DeleteProtocolMountTargetResult::DeleteProtocolMountTargetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteProtocolMountTargetResult::DeleteProtocolMountTargetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteProtocolMountTargetResult::~DeleteProtocolMountTargetResult()
|
||||
{}
|
||||
|
||||
void DeleteProtocolMountTargetResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
63
nas/src/model/DeleteProtocolServiceRequest.cc
Normal file
63
nas/src/model/DeleteProtocolServiceRequest.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/nas/model/DeleteProtocolServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DeleteProtocolServiceRequest;
|
||||
|
||||
DeleteProtocolServiceRequest::DeleteProtocolServiceRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DeleteProtocolService") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteProtocolServiceRequest::~DeleteProtocolServiceRequest() {}
|
||||
|
||||
std::string DeleteProtocolServiceRequest::getProtocolServiceId() const {
|
||||
return protocolServiceId_;
|
||||
}
|
||||
|
||||
void DeleteProtocolServiceRequest::setProtocolServiceId(const std::string &protocolServiceId) {
|
||||
protocolServiceId_ = protocolServiceId;
|
||||
setParameter(std::string("ProtocolServiceId"), protocolServiceId);
|
||||
}
|
||||
|
||||
std::string DeleteProtocolServiceRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeleteProtocolServiceRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DeleteProtocolServiceRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
void DeleteProtocolServiceRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
bool DeleteProtocolServiceRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void DeleteProtocolServiceRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
44
nas/src/model/DeleteProtocolServiceResult.cc
Normal file
44
nas/src/model/DeleteProtocolServiceResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DeleteProtocolServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::NAS;
|
||||
using namespace AlibabaCloud::NAS::Model;
|
||||
|
||||
DeleteProtocolServiceResult::DeleteProtocolServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteProtocolServiceResult::DeleteProtocolServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteProtocolServiceResult::~DeleteProtocolServiceResult()
|
||||
{}
|
||||
|
||||
void DeleteProtocolServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* 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/nas/model/DeleteSnapshotRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DeleteSnapshotRequest;
|
||||
|
||||
DeleteSnapshotRequest::DeleteSnapshotRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DeleteSnapshot")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteSnapshotRequest::~DeleteSnapshotRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteSnapshotRequest::getSnapshotId()const
|
||||
{
|
||||
return snapshotId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DeleteSnapshotRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DeleteSnapshotRequest;
|
||||
|
||||
DeleteSnapshotRequest::DeleteSnapshotRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DeleteSnapshot") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteSnapshotRequest::setSnapshotId(const std::string& snapshotId)
|
||||
{
|
||||
snapshotId_ = snapshotId;
|
||||
setParameter("SnapshotId", snapshotId);
|
||||
DeleteSnapshotRequest::~DeleteSnapshotRequest() {}
|
||||
|
||||
std::string DeleteSnapshotRequest::getSnapshotId() const {
|
||||
return snapshotId_;
|
||||
}
|
||||
|
||||
void DeleteSnapshotRequest::setSnapshotId(const std::string &snapshotId) {
|
||||
snapshotId_ = snapshotId;
|
||||
setParameter(std::string("SnapshotId"), snapshotId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DescribeAccessGroupsRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeAccessGroupsRequest;
|
||||
|
||||
DescribeAccessGroupsRequest::DescribeAccessGroupsRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DescribeAccessGroups")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAccessGroupsRequest::~DescribeAccessGroupsRequest()
|
||||
{}
|
||||
|
||||
bool DescribeAccessGroupsRequest::getUseUTCDateTime()const
|
||||
{
|
||||
return useUTCDateTime_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DescribeAccessGroupsRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeAccessGroupsRequest;
|
||||
|
||||
DescribeAccessGroupsRequest::DescribeAccessGroupsRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DescribeAccessGroups") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeAccessGroupsRequest::setUseUTCDateTime(bool useUTCDateTime)
|
||||
{
|
||||
useUTCDateTime_ = useUTCDateTime;
|
||||
setParameter("UseUTCDateTime", useUTCDateTime ? "true" : "false");
|
||||
DescribeAccessGroupsRequest::~DescribeAccessGroupsRequest() {}
|
||||
|
||||
bool DescribeAccessGroupsRequest::getUseUTCDateTime() const {
|
||||
return useUTCDateTime_;
|
||||
}
|
||||
|
||||
std::string DescribeAccessGroupsRequest::getFileSystemType()const
|
||||
{
|
||||
return fileSystemType_;
|
||||
void DescribeAccessGroupsRequest::setUseUTCDateTime(bool useUTCDateTime) {
|
||||
useUTCDateTime_ = useUTCDateTime;
|
||||
setParameter(std::string("UseUTCDateTime"), useUTCDateTime ? "true" : "false");
|
||||
}
|
||||
|
||||
void DescribeAccessGroupsRequest::setFileSystemType(const std::string& fileSystemType)
|
||||
{
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter("FileSystemType", fileSystemType);
|
||||
std::string DescribeAccessGroupsRequest::getFileSystemType() const {
|
||||
return fileSystemType_;
|
||||
}
|
||||
|
||||
int DescribeAccessGroupsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
void DescribeAccessGroupsRequest::setFileSystemType(const std::string &fileSystemType) {
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter(std::string("FileSystemType"), fileSystemType);
|
||||
}
|
||||
|
||||
void DescribeAccessGroupsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
int DescribeAccessGroupsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int DescribeAccessGroupsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void DescribeAccessGroupsRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
void DescribeAccessGroupsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int DescribeAccessGroupsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeAccessGroupsRequest::getAccessGroupName()const
|
||||
{
|
||||
return accessGroupName_;
|
||||
void DescribeAccessGroupsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void DescribeAccessGroupsRequest::setAccessGroupName(const std::string& accessGroupName)
|
||||
{
|
||||
accessGroupName_ = accessGroupName;
|
||||
setParameter("AccessGroupName", accessGroupName);
|
||||
std::string DescribeAccessGroupsRequest::getAccessGroupName() const {
|
||||
return accessGroupName_;
|
||||
}
|
||||
|
||||
void DescribeAccessGroupsRequest::setAccessGroupName(const std::string &accessGroupName) {
|
||||
accessGroupName_ = accessGroupName;
|
||||
setParameter(std::string("AccessGroupName"), accessGroupName);
|
||||
}
|
||||
|
||||
|
||||
@@ -45,16 +45,16 @@ void DescribeAccessGroupsResult::parse(const std::string &payload)
|
||||
AccessGroup accessGroupsObject;
|
||||
if(!valueAccessGroupsAccessGroup["AccessGroupName"].isNull())
|
||||
accessGroupsObject.accessGroupName = valueAccessGroupsAccessGroup["AccessGroupName"].asString();
|
||||
if(!valueAccessGroupsAccessGroup["Description"].isNull())
|
||||
accessGroupsObject.description = valueAccessGroupsAccessGroup["Description"].asString();
|
||||
if(!valueAccessGroupsAccessGroup["CreateTime"].isNull())
|
||||
accessGroupsObject.createTime = valueAccessGroupsAccessGroup["CreateTime"].asString();
|
||||
if(!valueAccessGroupsAccessGroup["AccessGroupType"].isNull())
|
||||
accessGroupsObject.accessGroupType = valueAccessGroupsAccessGroup["AccessGroupType"].asString();
|
||||
if(!valueAccessGroupsAccessGroup["RuleCount"].isNull())
|
||||
accessGroupsObject.ruleCount = std::stoi(valueAccessGroupsAccessGroup["RuleCount"].asString());
|
||||
if(!valueAccessGroupsAccessGroup["MountTargetCount"].isNull())
|
||||
accessGroupsObject.mountTargetCount = std::stoi(valueAccessGroupsAccessGroup["MountTargetCount"].asString());
|
||||
if(!valueAccessGroupsAccessGroup["Description"].isNull())
|
||||
accessGroupsObject.description = valueAccessGroupsAccessGroup["Description"].asString();
|
||||
if(!valueAccessGroupsAccessGroup["CreateTime"].isNull())
|
||||
accessGroupsObject.createTime = valueAccessGroupsAccessGroup["CreateTime"].asString();
|
||||
auto allTagsNode = valueAccessGroupsAccessGroup["Tags"]["Tag"];
|
||||
for (auto valueAccessGroupsAccessGroupTagsTag : allTagsNode)
|
||||
{
|
||||
|
||||
@@ -1,106 +1,90 @@
|
||||
/*
|
||||
* 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/nas/model/DescribeAccessRulesRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeAccessRulesRequest;
|
||||
|
||||
DescribeAccessRulesRequest::DescribeAccessRulesRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DescribeAccessRules")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAccessRulesRequest::~DescribeAccessRulesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAccessRulesRequest::getFileSystemType()const
|
||||
{
|
||||
return fileSystemType_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DescribeAccessRulesRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeAccessRulesRequest;
|
||||
|
||||
DescribeAccessRulesRequest::DescribeAccessRulesRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DescribeAccessRules") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeAccessRulesRequest::setFileSystemType(const std::string& fileSystemType)
|
||||
{
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter("FileSystemType", fileSystemType);
|
||||
DescribeAccessRulesRequest::~DescribeAccessRulesRequest() {}
|
||||
|
||||
std::string DescribeAccessRulesRequest::getFileSystemType() const {
|
||||
return fileSystemType_;
|
||||
}
|
||||
|
||||
int DescribeAccessRulesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
void DescribeAccessRulesRequest::setFileSystemType(const std::string &fileSystemType) {
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter(std::string("FileSystemType"), fileSystemType);
|
||||
}
|
||||
|
||||
void DescribeAccessRulesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
int DescribeAccessRulesRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int DescribeAccessRulesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void DescribeAccessRulesRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
void DescribeAccessRulesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int DescribeAccessRulesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeAccessRulesRequest::getAccessRuleId()const
|
||||
{
|
||||
return accessRuleId_;
|
||||
void DescribeAccessRulesRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void DescribeAccessRulesRequest::setAccessRuleId(const std::string& accessRuleId)
|
||||
{
|
||||
accessRuleId_ = accessRuleId;
|
||||
setParameter("AccessRuleId", accessRuleId);
|
||||
std::string DescribeAccessRulesRequest::getAccessRuleId() const {
|
||||
return accessRuleId_;
|
||||
}
|
||||
|
||||
std::string DescribeAccessRulesRequest::getSourceCidrIpFilter()const
|
||||
{
|
||||
return sourceCidrIpFilter_;
|
||||
void DescribeAccessRulesRequest::setAccessRuleId(const std::string &accessRuleId) {
|
||||
accessRuleId_ = accessRuleId;
|
||||
setParameter(std::string("AccessRuleId"), accessRuleId);
|
||||
}
|
||||
|
||||
void DescribeAccessRulesRequest::setSourceCidrIpFilter(const std::string& sourceCidrIpFilter)
|
||||
{
|
||||
sourceCidrIpFilter_ = sourceCidrIpFilter;
|
||||
setParameter("SourceCidrIpFilter", sourceCidrIpFilter);
|
||||
std::string DescribeAccessRulesRequest::getSourceCidrIpFilter() const {
|
||||
return sourceCidrIpFilter_;
|
||||
}
|
||||
|
||||
std::string DescribeAccessRulesRequest::getSourceCidrIp()const
|
||||
{
|
||||
return sourceCidrIp_;
|
||||
void DescribeAccessRulesRequest::setSourceCidrIpFilter(const std::string &sourceCidrIpFilter) {
|
||||
sourceCidrIpFilter_ = sourceCidrIpFilter;
|
||||
setParameter(std::string("SourceCidrIpFilter"), sourceCidrIpFilter);
|
||||
}
|
||||
|
||||
void DescribeAccessRulesRequest::setSourceCidrIp(const std::string& sourceCidrIp)
|
||||
{
|
||||
sourceCidrIp_ = sourceCidrIp;
|
||||
setParameter("SourceCidrIp", sourceCidrIp);
|
||||
std::string DescribeAccessRulesRequest::getSourceCidrIp() const {
|
||||
return sourceCidrIp_;
|
||||
}
|
||||
|
||||
std::string DescribeAccessRulesRequest::getAccessGroupName()const
|
||||
{
|
||||
return accessGroupName_;
|
||||
void DescribeAccessRulesRequest::setSourceCidrIp(const std::string &sourceCidrIp) {
|
||||
sourceCidrIp_ = sourceCidrIp;
|
||||
setParameter(std::string("SourceCidrIp"), sourceCidrIp);
|
||||
}
|
||||
|
||||
void DescribeAccessRulesRequest::setAccessGroupName(const std::string& accessGroupName)
|
||||
{
|
||||
accessGroupName_ = accessGroupName;
|
||||
setParameter("AccessGroupName", accessGroupName);
|
||||
std::string DescribeAccessRulesRequest::getAccessGroupName() const {
|
||||
return accessGroupName_;
|
||||
}
|
||||
|
||||
void DescribeAccessRulesRequest::setAccessGroupName(const std::string &accessGroupName) {
|
||||
accessGroupName_ = accessGroupName;
|
||||
setParameter(std::string("AccessGroupName"), accessGroupName);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,18 +43,18 @@ void DescribeAccessRulesResult::parse(const std::string &payload)
|
||||
for (auto valueAccessRulesAccessRule : allAccessRulesNode)
|
||||
{
|
||||
AccessRule accessRulesObject;
|
||||
if(!valueAccessRulesAccessRule["SourceCidrIp"].isNull())
|
||||
accessRulesObject.sourceCidrIp = valueAccessRulesAccessRule["SourceCidrIp"].asString();
|
||||
if(!valueAccessRulesAccessRule["Priority"].isNull())
|
||||
accessRulesObject.priority = std::stoi(valueAccessRulesAccessRule["Priority"].asString());
|
||||
if(!valueAccessRulesAccessRule["AccessRuleId"].isNull())
|
||||
accessRulesObject.accessRuleId = valueAccessRulesAccessRule["AccessRuleId"].asString();
|
||||
if(!valueAccessRulesAccessRule["SourceCidrIp"].isNull())
|
||||
accessRulesObject.sourceCidrIp = valueAccessRulesAccessRule["SourceCidrIp"].asString();
|
||||
if(!valueAccessRulesAccessRule["Ipv6SourceCidrIp"].isNull())
|
||||
accessRulesObject.ipv6SourceCidrIp = valueAccessRulesAccessRule["Ipv6SourceCidrIp"].asString();
|
||||
if(!valueAccessRulesAccessRule["RWAccess"].isNull())
|
||||
accessRulesObject.rWAccess = valueAccessRulesAccessRule["RWAccess"].asString();
|
||||
if(!valueAccessRulesAccessRule["UserAccess"].isNull())
|
||||
accessRulesObject.userAccess = valueAccessRulesAccessRule["UserAccess"].asString();
|
||||
if(!valueAccessRulesAccessRule["Ipv6SourceCidrIp"].isNull())
|
||||
accessRulesObject.ipv6SourceCidrIp = valueAccessRulesAccessRule["Ipv6SourceCidrIp"].asString();
|
||||
if(!valueAccessRulesAccessRule["Priority"].isNull())
|
||||
accessRulesObject.priority = std::stoi(valueAccessRulesAccessRule["Priority"].asString());
|
||||
accessRules_.push_back(accessRulesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
|
||||
@@ -1,73 +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/nas/model/DescribeAutoSnapshotPoliciesRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeAutoSnapshotPoliciesRequest;
|
||||
|
||||
DescribeAutoSnapshotPoliciesRequest::DescribeAutoSnapshotPoliciesRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DescribeAutoSnapshotPolicies")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAutoSnapshotPoliciesRequest::~DescribeAutoSnapshotPoliciesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAutoSnapshotPoliciesRequest::getAutoSnapshotPolicyId()const
|
||||
{
|
||||
return autoSnapshotPolicyId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DescribeAutoSnapshotPoliciesRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeAutoSnapshotPoliciesRequest;
|
||||
|
||||
DescribeAutoSnapshotPoliciesRequest::DescribeAutoSnapshotPoliciesRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DescribeAutoSnapshotPolicies") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeAutoSnapshotPoliciesRequest::setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId)
|
||||
{
|
||||
autoSnapshotPolicyId_ = autoSnapshotPolicyId;
|
||||
setParameter("AutoSnapshotPolicyId", autoSnapshotPolicyId);
|
||||
DescribeAutoSnapshotPoliciesRequest::~DescribeAutoSnapshotPoliciesRequest() {}
|
||||
|
||||
std::string DescribeAutoSnapshotPoliciesRequest::getAutoSnapshotPolicyId() const {
|
||||
return autoSnapshotPolicyId_;
|
||||
}
|
||||
|
||||
std::string DescribeAutoSnapshotPoliciesRequest::getFileSystemType()const
|
||||
{
|
||||
return fileSystemType_;
|
||||
void DescribeAutoSnapshotPoliciesRequest::setAutoSnapshotPolicyId(const std::string &autoSnapshotPolicyId) {
|
||||
autoSnapshotPolicyId_ = autoSnapshotPolicyId;
|
||||
setParameter(std::string("AutoSnapshotPolicyId"), autoSnapshotPolicyId);
|
||||
}
|
||||
|
||||
void DescribeAutoSnapshotPoliciesRequest::setFileSystemType(const std::string& fileSystemType)
|
||||
{
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter("FileSystemType", fileSystemType);
|
||||
std::string DescribeAutoSnapshotPoliciesRequest::getFileSystemType() const {
|
||||
return fileSystemType_;
|
||||
}
|
||||
|
||||
int DescribeAutoSnapshotPoliciesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
void DescribeAutoSnapshotPoliciesRequest::setFileSystemType(const std::string &fileSystemType) {
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter(std::string("FileSystemType"), fileSystemType);
|
||||
}
|
||||
|
||||
void DescribeAutoSnapshotPoliciesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
int DescribeAutoSnapshotPoliciesRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int DescribeAutoSnapshotPoliciesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void DescribeAutoSnapshotPoliciesRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
void DescribeAutoSnapshotPoliciesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int DescribeAutoSnapshotPoliciesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeAutoSnapshotPoliciesRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
@@ -43,24 +43,24 @@ void DescribeAutoSnapshotPoliciesResult::parse(const std::string &payload)
|
||||
for (auto valueAutoSnapshotPoliciesAutoSnapshotPolicy : allAutoSnapshotPoliciesNode)
|
||||
{
|
||||
AutoSnapshotPolicy autoSnapshotPoliciesObject;
|
||||
if(!valueAutoSnapshotPoliciesAutoSnapshotPolicy["AutoSnapshotPolicyId"].isNull())
|
||||
autoSnapshotPoliciesObject.autoSnapshotPolicyId = valueAutoSnapshotPoliciesAutoSnapshotPolicy["AutoSnapshotPolicyId"].asString();
|
||||
if(!valueAutoSnapshotPoliciesAutoSnapshotPolicy["TimePoints"].isNull())
|
||||
autoSnapshotPoliciesObject.timePoints = valueAutoSnapshotPoliciesAutoSnapshotPolicy["TimePoints"].asString();
|
||||
if(!valueAutoSnapshotPoliciesAutoSnapshotPolicy["Status"].isNull())
|
||||
autoSnapshotPoliciesObject.status = valueAutoSnapshotPoliciesAutoSnapshotPolicy["Status"].asString();
|
||||
if(!valueAutoSnapshotPoliciesAutoSnapshotPolicy["RepeatWeekdays"].isNull())
|
||||
autoSnapshotPoliciesObject.repeatWeekdays = valueAutoSnapshotPoliciesAutoSnapshotPolicy["RepeatWeekdays"].asString();
|
||||
if(!valueAutoSnapshotPoliciesAutoSnapshotPolicy["AutoSnapshotPolicyName"].isNull())
|
||||
autoSnapshotPoliciesObject.autoSnapshotPolicyName = valueAutoSnapshotPoliciesAutoSnapshotPolicy["AutoSnapshotPolicyName"].asString();
|
||||
if(!valueAutoSnapshotPoliciesAutoSnapshotPolicy["CreateTime"].isNull())
|
||||
autoSnapshotPoliciesObject.createTime = valueAutoSnapshotPoliciesAutoSnapshotPolicy["CreateTime"].asString();
|
||||
if(!valueAutoSnapshotPoliciesAutoSnapshotPolicy["AutoSnapshotPolicyId"].isNull())
|
||||
autoSnapshotPoliciesObject.autoSnapshotPolicyId = valueAutoSnapshotPoliciesAutoSnapshotPolicy["AutoSnapshotPolicyId"].asString();
|
||||
if(!valueAutoSnapshotPoliciesAutoSnapshotPolicy["RetentionDays"].isNull())
|
||||
autoSnapshotPoliciesObject.retentionDays = std::stoi(valueAutoSnapshotPoliciesAutoSnapshotPolicy["RetentionDays"].asString());
|
||||
if(!valueAutoSnapshotPoliciesAutoSnapshotPolicy["FileSystemNums"].isNull())
|
||||
autoSnapshotPoliciesObject.fileSystemNums = std::stoi(valueAutoSnapshotPoliciesAutoSnapshotPolicy["FileSystemNums"].asString());
|
||||
if(!valueAutoSnapshotPoliciesAutoSnapshotPolicy["RegionId"].isNull())
|
||||
autoSnapshotPoliciesObject.regionId = valueAutoSnapshotPoliciesAutoSnapshotPolicy["RegionId"].asString();
|
||||
if(!valueAutoSnapshotPoliciesAutoSnapshotPolicy["RepeatWeekdays"].isNull())
|
||||
autoSnapshotPoliciesObject.repeatWeekdays = valueAutoSnapshotPoliciesAutoSnapshotPolicy["RepeatWeekdays"].asString();
|
||||
if(!valueAutoSnapshotPoliciesAutoSnapshotPolicy["RetentionDays"].isNull())
|
||||
autoSnapshotPoliciesObject.retentionDays = std::stoi(valueAutoSnapshotPoliciesAutoSnapshotPolicy["RetentionDays"].asString());
|
||||
if(!valueAutoSnapshotPoliciesAutoSnapshotPolicy["Status"].isNull())
|
||||
autoSnapshotPoliciesObject.status = valueAutoSnapshotPoliciesAutoSnapshotPolicy["Status"].asString();
|
||||
if(!valueAutoSnapshotPoliciesAutoSnapshotPolicy["TimePoints"].isNull())
|
||||
autoSnapshotPoliciesObject.timePoints = valueAutoSnapshotPoliciesAutoSnapshotPolicy["TimePoints"].asString();
|
||||
autoSnapshotPolicies_.push_back(autoSnapshotPoliciesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
|
||||
@@ -1,84 +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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DescribeAutoSnapshotTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeAutoSnapshotTasksRequest;
|
||||
|
||||
DescribeAutoSnapshotTasksRequest::DescribeAutoSnapshotTasksRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DescribeAutoSnapshotTasks")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAutoSnapshotTasksRequest::~DescribeAutoSnapshotTasksRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAutoSnapshotTasksRequest::getFileSystemType()const
|
||||
{
|
||||
return fileSystemType_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DescribeAutoSnapshotTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeAutoSnapshotTasksRequest;
|
||||
|
||||
DescribeAutoSnapshotTasksRequest::DescribeAutoSnapshotTasksRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DescribeAutoSnapshotTasks") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeAutoSnapshotTasksRequest::setFileSystemType(const std::string& fileSystemType)
|
||||
{
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter("FileSystemType", fileSystemType);
|
||||
DescribeAutoSnapshotTasksRequest::~DescribeAutoSnapshotTasksRequest() {}
|
||||
|
||||
std::string DescribeAutoSnapshotTasksRequest::getFileSystemType() const {
|
||||
return fileSystemType_;
|
||||
}
|
||||
|
||||
int DescribeAutoSnapshotTasksRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
void DescribeAutoSnapshotTasksRequest::setFileSystemType(const std::string &fileSystemType) {
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter(std::string("FileSystemType"), fileSystemType);
|
||||
}
|
||||
|
||||
void DescribeAutoSnapshotTasksRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
int DescribeAutoSnapshotTasksRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int DescribeAutoSnapshotTasksRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void DescribeAutoSnapshotTasksRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
void DescribeAutoSnapshotTasksRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int DescribeAutoSnapshotTasksRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeAutoSnapshotTasksRequest::getFileSystemIds()const
|
||||
{
|
||||
return fileSystemIds_;
|
||||
void DescribeAutoSnapshotTasksRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void DescribeAutoSnapshotTasksRequest::setFileSystemIds(const std::string& fileSystemIds)
|
||||
{
|
||||
fileSystemIds_ = fileSystemIds;
|
||||
setParameter("FileSystemIds", fileSystemIds);
|
||||
std::string DescribeAutoSnapshotTasksRequest::getFileSystemIds() const {
|
||||
return fileSystemIds_;
|
||||
}
|
||||
|
||||
std::string DescribeAutoSnapshotTasksRequest::getAutoSnapshotPolicyIds()const
|
||||
{
|
||||
return autoSnapshotPolicyIds_;
|
||||
void DescribeAutoSnapshotTasksRequest::setFileSystemIds(const std::string &fileSystemIds) {
|
||||
fileSystemIds_ = fileSystemIds;
|
||||
setParameter(std::string("FileSystemIds"), fileSystemIds);
|
||||
}
|
||||
|
||||
void DescribeAutoSnapshotTasksRequest::setAutoSnapshotPolicyIds(const std::string& autoSnapshotPolicyIds)
|
||||
{
|
||||
autoSnapshotPolicyIds_ = autoSnapshotPolicyIds;
|
||||
setParameter("AutoSnapshotPolicyIds", autoSnapshotPolicyIds);
|
||||
std::string DescribeAutoSnapshotTasksRequest::getAutoSnapshotPolicyIds() const {
|
||||
return autoSnapshotPolicyIds_;
|
||||
}
|
||||
|
||||
void DescribeAutoSnapshotTasksRequest::setAutoSnapshotPolicyIds(const std::string &autoSnapshotPolicyIds) {
|
||||
autoSnapshotPolicyIds_ = autoSnapshotPolicyIds;
|
||||
setParameter(std::string("AutoSnapshotPolicyIds"), autoSnapshotPolicyIds);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DescribeBlackListClientsRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeBlackListClientsRequest;
|
||||
|
||||
DescribeBlackListClientsRequest::DescribeBlackListClientsRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DescribeBlackListClients")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeBlackListClientsRequest::~DescribeBlackListClientsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeBlackListClientsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DescribeBlackListClientsRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeBlackListClientsRequest;
|
||||
|
||||
DescribeBlackListClientsRequest::DescribeBlackListClientsRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DescribeBlackListClients") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeBlackListClientsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
DescribeBlackListClientsRequest::~DescribeBlackListClientsRequest() {}
|
||||
|
||||
std::string DescribeBlackListClientsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string DescribeBlackListClientsRequest::getClientIP()const
|
||||
{
|
||||
return clientIP_;
|
||||
void DescribeBlackListClientsRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void DescribeBlackListClientsRequest::setClientIP(const std::string& clientIP)
|
||||
{
|
||||
clientIP_ = clientIP;
|
||||
setParameter("ClientIP", clientIP);
|
||||
std::string DescribeBlackListClientsRequest::getClientIP() const {
|
||||
return clientIP_;
|
||||
}
|
||||
|
||||
std::string DescribeBlackListClientsRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void DescribeBlackListClientsRequest::setClientIP(const std::string &clientIP) {
|
||||
clientIP_ = clientIP;
|
||||
setParameter(std::string("ClientIP"), clientIP);
|
||||
}
|
||||
|
||||
void DescribeBlackListClientsRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string DescribeBlackListClientsRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
void DescribeBlackListClientsRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,78 +1,68 @@
|
||||
/*
|
||||
* 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/nas/model/DescribeDataFlowTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeDataFlowTasksRequest;
|
||||
|
||||
DescribeDataFlowTasksRequest::DescribeDataFlowTasksRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DescribeDataFlowTasks")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDataFlowTasksRequest::~DescribeDataFlowTasksRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDataFlowTasksRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DescribeDataFlowTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeDataFlowTasksRequest;
|
||||
|
||||
DescribeDataFlowTasksRequest::DescribeDataFlowTasksRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DescribeDataFlowTasks") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeDataFlowTasksRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
DescribeDataFlowTasksRequest::~DescribeDataFlowTasksRequest() {}
|
||||
|
||||
std::string DescribeDataFlowTasksRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string DescribeDataFlowTasksRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void DescribeDataFlowTasksRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void DescribeDataFlowTasksRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string DescribeDataFlowTasksRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDataFlowTasksRequest::Filters> DescribeDataFlowTasksRequest::getFilters()const
|
||||
{
|
||||
return filters_;
|
||||
void DescribeDataFlowTasksRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
void DescribeDataFlowTasksRequest::setFilters(const std::vector<Filters>& filters)
|
||||
{
|
||||
filters_ = filters;
|
||||
for(int dep1 = 0; dep1!= filters.size(); dep1++) {
|
||||
auto filtersObj = filters.at(dep1);
|
||||
std::string filtersObjStr = "Filters." + std::to_string(dep1 + 1);
|
||||
setParameter(filtersObjStr + ".Value", filtersObj.value);
|
||||
setParameter(filtersObjStr + ".Key", filtersObj.key);
|
||||
}
|
||||
std::vector<DescribeDataFlowTasksRequest::Filters> DescribeDataFlowTasksRequest::getFilters() const {
|
||||
return filters_;
|
||||
}
|
||||
|
||||
long DescribeDataFlowTasksRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void DescribeDataFlowTasksRequest::setFilters(const std::vector<DescribeDataFlowTasksRequest::Filters> &filters) {
|
||||
filters_ = filters;
|
||||
for(int dep1 = 0; dep1 != filters.size(); dep1++) {
|
||||
auto filtersObj = filters.at(dep1);
|
||||
std::string filtersObjStr = std::string("Filters") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(filtersObjStr + ".Value", filtersObj.value);
|
||||
setParameter(filtersObjStr + ".Key", filtersObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
void DescribeDataFlowTasksRequest::setMaxResults(long maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
long DescribeDataFlowTasksRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void DescribeDataFlowTasksRequest::setMaxResults(long maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,78 +1,68 @@
|
||||
/*
|
||||
* 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/nas/model/DescribeDataFlowsRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeDataFlowsRequest;
|
||||
|
||||
DescribeDataFlowsRequest::DescribeDataFlowsRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DescribeDataFlows")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDataFlowsRequest::~DescribeDataFlowsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDataFlowsRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DescribeDataFlowsRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeDataFlowsRequest;
|
||||
|
||||
DescribeDataFlowsRequest::DescribeDataFlowsRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DescribeDataFlows") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeDataFlowsRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
DescribeDataFlowsRequest::~DescribeDataFlowsRequest() {}
|
||||
|
||||
std::string DescribeDataFlowsRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string DescribeDataFlowsRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void DescribeDataFlowsRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void DescribeDataFlowsRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string DescribeDataFlowsRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDataFlowsRequest::Filters> DescribeDataFlowsRequest::getFilters()const
|
||||
{
|
||||
return filters_;
|
||||
void DescribeDataFlowsRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
void DescribeDataFlowsRequest::setFilters(const std::vector<Filters>& filters)
|
||||
{
|
||||
filters_ = filters;
|
||||
for(int dep1 = 0; dep1!= filters.size(); dep1++) {
|
||||
auto filtersObj = filters.at(dep1);
|
||||
std::string filtersObjStr = "Filters." + std::to_string(dep1 + 1);
|
||||
setParameter(filtersObjStr + ".Value", filtersObj.value);
|
||||
setParameter(filtersObjStr + ".Key", filtersObj.key);
|
||||
}
|
||||
std::vector<DescribeDataFlowsRequest::Filters> DescribeDataFlowsRequest::getFilters() const {
|
||||
return filters_;
|
||||
}
|
||||
|
||||
long DescribeDataFlowsRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void DescribeDataFlowsRequest::setFilters(const std::vector<DescribeDataFlowsRequest::Filters> &filters) {
|
||||
filters_ = filters;
|
||||
for(int dep1 = 0; dep1 != filters.size(); dep1++) {
|
||||
auto filtersObj = filters.at(dep1);
|
||||
std::string filtersObjStr = std::string("Filters") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(filtersObjStr + ".Value", filtersObj.value);
|
||||
setParameter(filtersObjStr + ".Key", filtersObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
void DescribeDataFlowsRequest::setMaxResults(long maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
long DescribeDataFlowsRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void DescribeDataFlowsRequest::setMaxResults(long maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +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/nas/model/DescribeDirQuotasRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeDirQuotasRequest;
|
||||
|
||||
DescribeDirQuotasRequest::DescribeDirQuotasRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DescribeDirQuotas")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDirQuotasRequest::~DescribeDirQuotasRequest()
|
||||
{}
|
||||
|
||||
int DescribeDirQuotasRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DescribeDirQuotasRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeDirQuotasRequest;
|
||||
|
||||
DescribeDirQuotasRequest::DescribeDirQuotasRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DescribeDirQuotas") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeDirQuotasRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
DescribeDirQuotasRequest::~DescribeDirQuotasRequest() {}
|
||||
|
||||
int DescribeDirQuotasRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string DescribeDirQuotasRequest::getPath()const
|
||||
{
|
||||
return path_;
|
||||
void DescribeDirQuotasRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
void DescribeDirQuotasRequest::setPath(const std::string& path)
|
||||
{
|
||||
path_ = path;
|
||||
setParameter("Path", path);
|
||||
std::string DescribeDirQuotasRequest::getPath() const {
|
||||
return path_;
|
||||
}
|
||||
|
||||
int DescribeDirQuotasRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void DescribeDirQuotasRequest::setPath(const std::string &path) {
|
||||
path_ = path;
|
||||
setParameter(std::string("Path"), path);
|
||||
}
|
||||
|
||||
void DescribeDirQuotasRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int DescribeDirQuotasRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeDirQuotasRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void DescribeDirQuotasRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void DescribeDirQuotasRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string DescribeDirQuotasRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
void DescribeDirQuotasRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,30 +43,30 @@ void DescribeDirQuotasResult::parse(const std::string &payload)
|
||||
for (auto valueDirQuotaInfosDirQuotaInfo : allDirQuotaInfosNode)
|
||||
{
|
||||
DirQuotaInfo dirQuotaInfosObject;
|
||||
if(!valueDirQuotaInfosDirQuotaInfo["Status"].isNull())
|
||||
dirQuotaInfosObject.status = valueDirQuotaInfosDirQuotaInfo["Status"].asString();
|
||||
if(!valueDirQuotaInfosDirQuotaInfo["Path"].isNull())
|
||||
dirQuotaInfosObject.path = valueDirQuotaInfosDirQuotaInfo["Path"].asString();
|
||||
if(!valueDirQuotaInfosDirQuotaInfo["DirInode"].isNull())
|
||||
dirQuotaInfosObject.dirInode = valueDirQuotaInfosDirQuotaInfo["DirInode"].asString();
|
||||
if(!valueDirQuotaInfosDirQuotaInfo["Status"].isNull())
|
||||
dirQuotaInfosObject.status = valueDirQuotaInfosDirQuotaInfo["Status"].asString();
|
||||
auto allUserQuotaInfosNode = valueDirQuotaInfosDirQuotaInfo["UserQuotaInfos"]["UserQuotaInfo"];
|
||||
for (auto valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo : allUserQuotaInfosNode)
|
||||
{
|
||||
DirQuotaInfo::UserQuotaInfo userQuotaInfosObject;
|
||||
if(!valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["UserType"].isNull())
|
||||
userQuotaInfosObject.userType = valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["UserType"].asString();
|
||||
if(!valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["UserId"].isNull())
|
||||
userQuotaInfosObject.userId = valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["UserId"].asString();
|
||||
if(!valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["QuotaType"].isNull())
|
||||
userQuotaInfosObject.quotaType = valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["QuotaType"].asString();
|
||||
if(!valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["SizeLimit"].isNull())
|
||||
userQuotaInfosObject.sizeLimit = std::stol(valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["SizeLimit"].asString());
|
||||
if(!valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["SizeReal"].isNull())
|
||||
userQuotaInfosObject.sizeReal = std::stol(valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["SizeReal"].asString());
|
||||
if(!valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["FileCountLimit"].isNull())
|
||||
userQuotaInfosObject.fileCountLimit = std::stol(valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["FileCountLimit"].asString());
|
||||
if(!valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["FileCountReal"].isNull())
|
||||
userQuotaInfosObject.fileCountReal = std::stol(valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["FileCountReal"].asString());
|
||||
if(!valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["UserType"].isNull())
|
||||
userQuotaInfosObject.userType = valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["UserType"].asString();
|
||||
if(!valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["FileCountLimit"].isNull())
|
||||
userQuotaInfosObject.fileCountLimit = std::stol(valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["FileCountLimit"].asString());
|
||||
if(!valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["UserId"].isNull())
|
||||
userQuotaInfosObject.userId = valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["UserId"].asString();
|
||||
if(!valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["SizeLimit"].isNull())
|
||||
userQuotaInfosObject.sizeLimit = std::stol(valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["SizeLimit"].asString());
|
||||
if(!valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["QuotaType"].isNull())
|
||||
userQuotaInfosObject.quotaType = valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["QuotaType"].asString();
|
||||
if(!valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["SizeReal"].isNull())
|
||||
userQuotaInfosObject.sizeReal = std::stol(valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["SizeReal"].asString());
|
||||
dirQuotaInfosObject.userQuotaInfos.push_back(userQuotaInfosObject);
|
||||
}
|
||||
dirQuotaInfos_.push_back(dirQuotaInfosObject);
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/nas/model/DescribeFileSystemStatisticsRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeFileSystemStatisticsRequest;
|
||||
|
||||
DescribeFileSystemStatisticsRequest::DescribeFileSystemStatisticsRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DescribeFileSystemStatistics")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeFileSystemStatisticsRequest::~DescribeFileSystemStatisticsRequest()
|
||||
{}
|
||||
|
||||
int DescribeFileSystemStatisticsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DescribeFileSystemStatisticsRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeFileSystemStatisticsRequest;
|
||||
|
||||
DescribeFileSystemStatisticsRequest::DescribeFileSystemStatisticsRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DescribeFileSystemStatistics") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeFileSystemStatisticsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
DescribeFileSystemStatisticsRequest::~DescribeFileSystemStatisticsRequest() {}
|
||||
|
||||
int DescribeFileSystemStatisticsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int DescribeFileSystemStatisticsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void DescribeFileSystemStatisticsRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
void DescribeFileSystemStatisticsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int DescribeFileSystemStatisticsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeFileSystemStatisticsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
@@ -39,76 +39,76 @@ void DescribeFileSystemStatisticsResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allFileSystemsNode = value["FileSystems"]["FileSystem"];
|
||||
for (auto valueFileSystemsFileSystem : allFileSystemsNode)
|
||||
{
|
||||
FileSystem fileSystemsObject;
|
||||
if(!valueFileSystemsFileSystem["Status"].isNull())
|
||||
fileSystemsObject.status = valueFileSystemsFileSystem["Status"].asString();
|
||||
if(!valueFileSystemsFileSystem["Capacity"].isNull())
|
||||
fileSystemsObject.capacity = std::stol(valueFileSystemsFileSystem["Capacity"].asString());
|
||||
if(!valueFileSystemsFileSystem["MeteredIASize"].isNull())
|
||||
fileSystemsObject.meteredIASize = std::stol(valueFileSystemsFileSystem["MeteredIASize"].asString());
|
||||
if(!valueFileSystemsFileSystem["CreateTime"].isNull())
|
||||
fileSystemsObject.createTime = valueFileSystemsFileSystem["CreateTime"].asString();
|
||||
if(!valueFileSystemsFileSystem["ChargeType"].isNull())
|
||||
fileSystemsObject.chargeType = valueFileSystemsFileSystem["ChargeType"].asString();
|
||||
if(!valueFileSystemsFileSystem["StorageType"].isNull())
|
||||
fileSystemsObject.storageType = valueFileSystemsFileSystem["StorageType"].asString();
|
||||
if(!valueFileSystemsFileSystem["RegionId"].isNull())
|
||||
fileSystemsObject.regionId = valueFileSystemsFileSystem["RegionId"].asString();
|
||||
if(!valueFileSystemsFileSystem["FileSystemType"].isNull())
|
||||
fileSystemsObject.fileSystemType = valueFileSystemsFileSystem["FileSystemType"].asString();
|
||||
if(!valueFileSystemsFileSystem["FileSystemId"].isNull())
|
||||
fileSystemsObject.fileSystemId = valueFileSystemsFileSystem["FileSystemId"].asString();
|
||||
if(!valueFileSystemsFileSystem["MeteredSize"].isNull())
|
||||
fileSystemsObject.meteredSize = std::stol(valueFileSystemsFileSystem["MeteredSize"].asString());
|
||||
if(!valueFileSystemsFileSystem["Description"].isNull())
|
||||
fileSystemsObject.description = valueFileSystemsFileSystem["Description"].asString();
|
||||
if(!valueFileSystemsFileSystem["ExpiredTime"].isNull())
|
||||
fileSystemsObject.expiredTime = valueFileSystemsFileSystem["ExpiredTime"].asString();
|
||||
if(!valueFileSystemsFileSystem["ZoneId"].isNull())
|
||||
fileSystemsObject.zoneId = valueFileSystemsFileSystem["ZoneId"].asString();
|
||||
if(!valueFileSystemsFileSystem["ProtocolType"].isNull())
|
||||
fileSystemsObject.protocolType = valueFileSystemsFileSystem["ProtocolType"].asString();
|
||||
auto allPackagesNode = valueFileSystemsFileSystem["Packages"]["Package"];
|
||||
for (auto valueFileSystemsFileSystemPackagesPackage : allPackagesNode)
|
||||
{
|
||||
FileSystem::Package packagesObject;
|
||||
if(!valueFileSystemsFileSystemPackagesPackage["StartTime"].isNull())
|
||||
packagesObject.startTime = valueFileSystemsFileSystemPackagesPackage["StartTime"].asString();
|
||||
if(!valueFileSystemsFileSystemPackagesPackage["ExpiredTime"].isNull())
|
||||
packagesObject.expiredTime = valueFileSystemsFileSystemPackagesPackage["ExpiredTime"].asString();
|
||||
if(!valueFileSystemsFileSystemPackagesPackage["Size"].isNull())
|
||||
packagesObject.size = std::stol(valueFileSystemsFileSystemPackagesPackage["Size"].asString());
|
||||
if(!valueFileSystemsFileSystemPackagesPackage["PackageId"].isNull())
|
||||
packagesObject.packageId = valueFileSystemsFileSystemPackagesPackage["PackageId"].asString();
|
||||
fileSystemsObject.packages.push_back(packagesObject);
|
||||
}
|
||||
fileSystems_.push_back(fileSystemsObject);
|
||||
}
|
||||
auto allFileSystemStatisticsNode = value["FileSystemStatistics"]["FileSystemStatistic"];
|
||||
for (auto valueFileSystemStatisticsFileSystemStatistic : allFileSystemStatisticsNode)
|
||||
{
|
||||
FileSystemStatistic fileSystemStatisticsObject;
|
||||
if(!valueFileSystemStatisticsFileSystemStatistic["FileSystemType"].isNull())
|
||||
fileSystemStatisticsObject.fileSystemType = valueFileSystemStatisticsFileSystemStatistic["FileSystemType"].asString();
|
||||
if(!valueFileSystemStatisticsFileSystemStatistic["TotalCount"].isNull())
|
||||
fileSystemStatisticsObject.totalCount = std::stoi(valueFileSystemStatisticsFileSystemStatistic["TotalCount"].asString());
|
||||
if(!valueFileSystemStatisticsFileSystemStatistic["MeteredSize"].isNull())
|
||||
fileSystemStatisticsObject.meteredSize = std::stol(valueFileSystemStatisticsFileSystemStatistic["MeteredSize"].asString());
|
||||
if(!valueFileSystemStatisticsFileSystemStatistic["ExpiredCount"].isNull())
|
||||
fileSystemStatisticsObject.expiredCount = std::stoi(valueFileSystemStatisticsFileSystemStatistic["ExpiredCount"].asString());
|
||||
if(!valueFileSystemStatisticsFileSystemStatistic["ExpiringCount"].isNull())
|
||||
fileSystemStatisticsObject.expiringCount = std::stoi(valueFileSystemStatisticsFileSystemStatistic["ExpiringCount"].asString());
|
||||
if(!valueFileSystemStatisticsFileSystemStatistic["TotalCount"].isNull())
|
||||
fileSystemStatisticsObject.totalCount = std::stoi(valueFileSystemStatisticsFileSystemStatistic["TotalCount"].asString());
|
||||
if(!valueFileSystemStatisticsFileSystemStatistic["ExpiredCount"].isNull())
|
||||
fileSystemStatisticsObject.expiredCount = std::stoi(valueFileSystemStatisticsFileSystemStatistic["ExpiredCount"].asString());
|
||||
fileSystemStatistics_.push_back(fileSystemStatisticsObject);
|
||||
}
|
||||
auto allFileSystemsNode = value["FileSystems"]["FileSystem"];
|
||||
for (auto valueFileSystemsFileSystem : allFileSystemsNode)
|
||||
{
|
||||
FileSystem fileSystemsObject;
|
||||
if(!valueFileSystemsFileSystem["FileSystemId"].isNull())
|
||||
fileSystemsObject.fileSystemId = valueFileSystemsFileSystem["FileSystemId"].asString();
|
||||
if(!valueFileSystemsFileSystem["Description"].isNull())
|
||||
fileSystemsObject.description = valueFileSystemsFileSystem["Description"].asString();
|
||||
if(!valueFileSystemsFileSystem["CreateTime"].isNull())
|
||||
fileSystemsObject.createTime = valueFileSystemsFileSystem["CreateTime"].asString();
|
||||
if(!valueFileSystemsFileSystem["ExpiredTime"].isNull())
|
||||
fileSystemsObject.expiredTime = valueFileSystemsFileSystem["ExpiredTime"].asString();
|
||||
if(!valueFileSystemsFileSystem["RegionId"].isNull())
|
||||
fileSystemsObject.regionId = valueFileSystemsFileSystem["RegionId"].asString();
|
||||
if(!valueFileSystemsFileSystem["ZoneId"].isNull())
|
||||
fileSystemsObject.zoneId = valueFileSystemsFileSystem["ZoneId"].asString();
|
||||
if(!valueFileSystemsFileSystem["ProtocolType"].isNull())
|
||||
fileSystemsObject.protocolType = valueFileSystemsFileSystem["ProtocolType"].asString();
|
||||
if(!valueFileSystemsFileSystem["StorageType"].isNull())
|
||||
fileSystemsObject.storageType = valueFileSystemsFileSystem["StorageType"].asString();
|
||||
if(!valueFileSystemsFileSystem["FileSystemType"].isNull())
|
||||
fileSystemsObject.fileSystemType = valueFileSystemsFileSystem["FileSystemType"].asString();
|
||||
if(!valueFileSystemsFileSystem["MeteredSize"].isNull())
|
||||
fileSystemsObject.meteredSize = std::stol(valueFileSystemsFileSystem["MeteredSize"].asString());
|
||||
if(!valueFileSystemsFileSystem["MeteredIASize"].isNull())
|
||||
fileSystemsObject.meteredIASize = std::stol(valueFileSystemsFileSystem["MeteredIASize"].asString());
|
||||
if(!valueFileSystemsFileSystem["Capacity"].isNull())
|
||||
fileSystemsObject.capacity = std::stol(valueFileSystemsFileSystem["Capacity"].asString());
|
||||
if(!valueFileSystemsFileSystem["ChargeType"].isNull())
|
||||
fileSystemsObject.chargeType = valueFileSystemsFileSystem["ChargeType"].asString();
|
||||
if(!valueFileSystemsFileSystem["Status"].isNull())
|
||||
fileSystemsObject.status = valueFileSystemsFileSystem["Status"].asString();
|
||||
auto allPackagesNode = valueFileSystemsFileSystem["Packages"]["Package"];
|
||||
for (auto valueFileSystemsFileSystemPackagesPackage : allPackagesNode)
|
||||
{
|
||||
FileSystem::Package packagesObject;
|
||||
if(!valueFileSystemsFileSystemPackagesPackage["PackageId"].isNull())
|
||||
packagesObject.packageId = valueFileSystemsFileSystemPackagesPackage["PackageId"].asString();
|
||||
if(!valueFileSystemsFileSystemPackagesPackage["Size"].isNull())
|
||||
packagesObject.size = std::stol(valueFileSystemsFileSystemPackagesPackage["Size"].asString());
|
||||
if(!valueFileSystemsFileSystemPackagesPackage["StartTime"].isNull())
|
||||
packagesObject.startTime = valueFileSystemsFileSystemPackagesPackage["StartTime"].asString();
|
||||
if(!valueFileSystemsFileSystemPackagesPackage["ExpiredTime"].isNull())
|
||||
packagesObject.expiredTime = valueFileSystemsFileSystemPackagesPackage["ExpiredTime"].asString();
|
||||
fileSystemsObject.packages.push_back(packagesObject);
|
||||
}
|
||||
fileSystems_.push_back(fileSystemsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,188 +1,158 @@
|
||||
/*
|
||||
* 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/nas/model/DescribeFileSystemsRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeFileSystemsRequest;
|
||||
|
||||
DescribeFileSystemsRequest::DescribeFileSystemsRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DescribeFileSystems")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeFileSystemsRequest::~DescribeFileSystemsRequest()
|
||||
{}
|
||||
|
||||
bool DescribeFileSystemsRequest::getUseUTCDateTime()const
|
||||
{
|
||||
return useUTCDateTime_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DescribeFileSystemsRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeFileSystemsRequest;
|
||||
|
||||
DescribeFileSystemsRequest::DescribeFileSystemsRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DescribeFileSystems") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeFileSystemsRequest::setUseUTCDateTime(bool useUTCDateTime)
|
||||
{
|
||||
useUTCDateTime_ = useUTCDateTime;
|
||||
setParameter("UseUTCDateTime", useUTCDateTime ? "true" : "false");
|
||||
DescribeFileSystemsRequest::~DescribeFileSystemsRequest() {}
|
||||
|
||||
bool DescribeFileSystemsRequest::getUseUTCDateTime() const {
|
||||
return useUTCDateTime_;
|
||||
}
|
||||
|
||||
std::string DescribeFileSystemsRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
void DescribeFileSystemsRequest::setUseUTCDateTime(bool useUTCDateTime) {
|
||||
useUTCDateTime_ = useUTCDateTime;
|
||||
setParameter(std::string("UseUTCDateTime"), useUTCDateTime ? "true" : "false");
|
||||
}
|
||||
|
||||
void DescribeFileSystemsRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
std::string DescribeFileSystemsRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string DescribeFileSystemsRequest::getOrderByField()const
|
||||
{
|
||||
return orderByField_;
|
||||
void DescribeFileSystemsRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
void DescribeFileSystemsRequest::setOrderByField(const std::string& orderByField)
|
||||
{
|
||||
orderByField_ = orderByField;
|
||||
setParameter("OrderByField", orderByField);
|
||||
std::string DescribeFileSystemsRequest::getOrderByField() const {
|
||||
return orderByField_;
|
||||
}
|
||||
|
||||
std::string DescribeFileSystemsRequest::getFileSystemType()const
|
||||
{
|
||||
return fileSystemType_;
|
||||
void DescribeFileSystemsRequest::setOrderByField(const std::string &orderByField) {
|
||||
orderByField_ = orderByField;
|
||||
setParameter(std::string("OrderByField"), orderByField);
|
||||
}
|
||||
|
||||
void DescribeFileSystemsRequest::setFileSystemType(const std::string& fileSystemType)
|
||||
{
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter("FileSystemType", fileSystemType);
|
||||
std::string DescribeFileSystemsRequest::getFileSystemType() const {
|
||||
return fileSystemType_;
|
||||
}
|
||||
|
||||
std::string DescribeFileSystemsRequest::getPackageIds()const
|
||||
{
|
||||
return packageIds_;
|
||||
void DescribeFileSystemsRequest::setFileSystemType(const std::string &fileSystemType) {
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter(std::string("FileSystemType"), fileSystemType);
|
||||
}
|
||||
|
||||
void DescribeFileSystemsRequest::setPackageIds(const std::string& packageIds)
|
||||
{
|
||||
packageIds_ = packageIds;
|
||||
setParameter("PackageIds", packageIds);
|
||||
std::string DescribeFileSystemsRequest::getPackageIds() const {
|
||||
return packageIds_;
|
||||
}
|
||||
|
||||
int DescribeFileSystemsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
void DescribeFileSystemsRequest::setPackageIds(const std::string &packageIds) {
|
||||
packageIds_ = packageIds;
|
||||
setParameter(std::string("PackageIds"), packageIds);
|
||||
}
|
||||
|
||||
void DescribeFileSystemsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
int DescribeFileSystemsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string DescribeFileSystemsRequest::getStorageType()const
|
||||
{
|
||||
return storageType_;
|
||||
void DescribeFileSystemsRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
void DescribeFileSystemsRequest::setStorageType(const std::string& storageType)
|
||||
{
|
||||
storageType_ = storageType;
|
||||
setParameter("StorageType", storageType);
|
||||
std::string DescribeFileSystemsRequest::getStorageType() const {
|
||||
return storageType_;
|
||||
}
|
||||
|
||||
int DescribeFileSystemsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void DescribeFileSystemsRequest::setStorageType(const std::string &storageType) {
|
||||
storageType_ = storageType;
|
||||
setParameter(std::string("StorageType"), storageType);
|
||||
}
|
||||
|
||||
void DescribeFileSystemsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int DescribeFileSystemsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeFileSystemsRequest::getSortOrder()const
|
||||
{
|
||||
return sortOrder_;
|
||||
void DescribeFileSystemsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void DescribeFileSystemsRequest::setSortOrder(const std::string& sortOrder)
|
||||
{
|
||||
sortOrder_ = sortOrder;
|
||||
setParameter("SortOrder", sortOrder);
|
||||
std::string DescribeFileSystemsRequest::getSortOrder() const {
|
||||
return sortOrder_;
|
||||
}
|
||||
|
||||
std::vector<DescribeFileSystemsRequest::Tag> DescribeFileSystemsRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
void DescribeFileSystemsRequest::setSortOrder(const std::string &sortOrder) {
|
||||
sortOrder_ = sortOrder;
|
||||
setParameter(std::string("SortOrder"), sortOrder);
|
||||
}
|
||||
|
||||
void DescribeFileSystemsRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
std::vector<DescribeFileSystemsRequest::Tag> DescribeFileSystemsRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
std::string DescribeFileSystemsRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void DescribeFileSystemsRequest::setTag(const std::vector<DescribeFileSystemsRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
void DescribeFileSystemsRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string DescribeFileSystemsRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
std::string DescribeFileSystemsRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
void DescribeFileSystemsRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
void DescribeFileSystemsRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
std::string DescribeFileSystemsRequest::getVpcId() const {
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
std::string DescribeFileSystemsRequest::getChargeType()const
|
||||
{
|
||||
return chargeType_;
|
||||
void DescribeFileSystemsRequest::setVpcId(const std::string &vpcId) {
|
||||
vpcId_ = vpcId;
|
||||
setParameter(std::string("VpcId"), vpcId);
|
||||
}
|
||||
|
||||
void DescribeFileSystemsRequest::setChargeType(const std::string& chargeType)
|
||||
{
|
||||
chargeType_ = chargeType;
|
||||
setParameter("ChargeType", chargeType);
|
||||
std::string DescribeFileSystemsRequest::getChargeType() const {
|
||||
return chargeType_;
|
||||
}
|
||||
|
||||
std::string DescribeFileSystemsRequest::getFileSystemIds()const
|
||||
{
|
||||
return fileSystemIds_;
|
||||
void DescribeFileSystemsRequest::setChargeType(const std::string &chargeType) {
|
||||
chargeType_ = chargeType;
|
||||
setParameter(std::string("ChargeType"), chargeType);
|
||||
}
|
||||
|
||||
void DescribeFileSystemsRequest::setFileSystemIds(const std::string& fileSystemIds)
|
||||
{
|
||||
fileSystemIds_ = fileSystemIds;
|
||||
setParameter("FileSystemIds", fileSystemIds);
|
||||
std::string DescribeFileSystemsRequest::getFileSystemIds() const {
|
||||
return fileSystemIds_;
|
||||
}
|
||||
|
||||
void DescribeFileSystemsRequest::setFileSystemIds(const std::string &fileSystemIds) {
|
||||
fileSystemIds_ = fileSystemIds;
|
||||
setParameter(std::string("FileSystemIds"), fileSystemIds);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,82 +43,94 @@ void DescribeFileSystemsResult::parse(const std::string &payload)
|
||||
for (auto valueFileSystemsFileSystem : allFileSystemsNode)
|
||||
{
|
||||
FileSystem fileSystemsObject;
|
||||
if(!valueFileSystemsFileSystem["FileSystemId"].isNull())
|
||||
fileSystemsObject.fileSystemId = valueFileSystemsFileSystem["FileSystemId"].asString();
|
||||
if(!valueFileSystemsFileSystem["Description"].isNull())
|
||||
fileSystemsObject.description = valueFileSystemsFileSystem["Description"].asString();
|
||||
if(!valueFileSystemsFileSystem["CreateTime"].isNull())
|
||||
fileSystemsObject.createTime = valueFileSystemsFileSystem["CreateTime"].asString();
|
||||
if(!valueFileSystemsFileSystem["ExpiredTime"].isNull())
|
||||
fileSystemsObject.expiredTime = valueFileSystemsFileSystem["ExpiredTime"].asString();
|
||||
if(!valueFileSystemsFileSystem["RegionId"].isNull())
|
||||
fileSystemsObject.regionId = valueFileSystemsFileSystem["RegionId"].asString();
|
||||
if(!valueFileSystemsFileSystem["ZoneId"].isNull())
|
||||
fileSystemsObject.zoneId = valueFileSystemsFileSystem["ZoneId"].asString();
|
||||
if(!valueFileSystemsFileSystem["ProtocolType"].isNull())
|
||||
fileSystemsObject.protocolType = valueFileSystemsFileSystem["ProtocolType"].asString();
|
||||
if(!valueFileSystemsFileSystem["StorageType"].isNull())
|
||||
fileSystemsObject.storageType = valueFileSystemsFileSystem["StorageType"].asString();
|
||||
if(!valueFileSystemsFileSystem["FileSystemType"].isNull())
|
||||
fileSystemsObject.fileSystemType = valueFileSystemsFileSystem["FileSystemType"].asString();
|
||||
if(!valueFileSystemsFileSystem["EncryptType"].isNull())
|
||||
fileSystemsObject.encryptType = std::stoi(valueFileSystemsFileSystem["EncryptType"].asString());
|
||||
if(!valueFileSystemsFileSystem["MeteredSize"].isNull())
|
||||
fileSystemsObject.meteredSize = std::stol(valueFileSystemsFileSystem["MeteredSize"].asString());
|
||||
if(!valueFileSystemsFileSystem["MeteredIASize"].isNull())
|
||||
fileSystemsObject.meteredIASize = std::stol(valueFileSystemsFileSystem["MeteredIASize"].asString());
|
||||
if(!valueFileSystemsFileSystem["Bandwidth"].isNull())
|
||||
fileSystemsObject.bandwidth = std::stol(valueFileSystemsFileSystem["Bandwidth"].asString());
|
||||
if(!valueFileSystemsFileSystem["Capacity"].isNull())
|
||||
fileSystemsObject.capacity = std::stol(valueFileSystemsFileSystem["Capacity"].asString());
|
||||
if(!valueFileSystemsFileSystem["AutoSnapshotPolicyId"].isNull())
|
||||
fileSystemsObject.autoSnapshotPolicyId = valueFileSystemsFileSystem["AutoSnapshotPolicyId"].asString();
|
||||
if(!valueFileSystemsFileSystem["Status"].isNull())
|
||||
fileSystemsObject.status = valueFileSystemsFileSystem["Status"].asString();
|
||||
if(!valueFileSystemsFileSystem["ChargeType"].isNull())
|
||||
fileSystemsObject.chargeType = valueFileSystemsFileSystem["ChargeType"].asString();
|
||||
if(!valueFileSystemsFileSystem["MeteredIASize"].isNull())
|
||||
fileSystemsObject.meteredIASize = std::stol(valueFileSystemsFileSystem["MeteredIASize"].asString());
|
||||
if(!valueFileSystemsFileSystem["Capacity"].isNull())
|
||||
fileSystemsObject.capacity = std::stol(valueFileSystemsFileSystem["Capacity"].asString());
|
||||
if(!valueFileSystemsFileSystem["MountTargetCountLimit"].isNull())
|
||||
fileSystemsObject.mountTargetCountLimit = std::stol(valueFileSystemsFileSystem["MountTargetCountLimit"].asString());
|
||||
if(!valueFileSystemsFileSystem["NasNamespaceId"].isNull())
|
||||
fileSystemsObject.nasNamespaceId = valueFileSystemsFileSystem["NasNamespaceId"].asString();
|
||||
if(!valueFileSystemsFileSystem["KMSKeyId"].isNull())
|
||||
fileSystemsObject.kMSKeyId = valueFileSystemsFileSystem["KMSKeyId"].asString();
|
||||
if(!valueFileSystemsFileSystem["CreateTime"].isNull())
|
||||
fileSystemsObject.createTime = valueFileSystemsFileSystem["CreateTime"].asString();
|
||||
if(!valueFileSystemsFileSystem["ChargeType"].isNull())
|
||||
fileSystemsObject.chargeType = valueFileSystemsFileSystem["ChargeType"].asString();
|
||||
if(!valueFileSystemsFileSystem["StorageType"].isNull())
|
||||
fileSystemsObject.storageType = valueFileSystemsFileSystem["StorageType"].asString();
|
||||
if(!valueFileSystemsFileSystem["MeteredSize"].isNull())
|
||||
fileSystemsObject.meteredSize = std::stol(valueFileSystemsFileSystem["MeteredSize"].asString());
|
||||
if(!valueFileSystemsFileSystem["Description"].isNull())
|
||||
fileSystemsObject.description = valueFileSystemsFileSystem["Description"].asString();
|
||||
if(!valueFileSystemsFileSystem["Bandwidth"].isNull())
|
||||
fileSystemsObject.bandwidth = std::stol(valueFileSystemsFileSystem["Bandwidth"].asString());
|
||||
if(!valueFileSystemsFileSystem["Version"].isNull())
|
||||
fileSystemsObject.version = valueFileSystemsFileSystem["Version"].asString();
|
||||
if(!valueFileSystemsFileSystem["NasNamespaceId"].isNull())
|
||||
fileSystemsObject.nasNamespaceId = valueFileSystemsFileSystem["NasNamespaceId"].asString();
|
||||
if(!valueFileSystemsFileSystem["ProtocolType"].isNull())
|
||||
fileSystemsObject.protocolType = valueFileSystemsFileSystem["ProtocolType"].asString();
|
||||
if(!valueFileSystemsFileSystem["KMSKeyId"].isNull())
|
||||
fileSystemsObject.kMSKeyId = valueFileSystemsFileSystem["KMSKeyId"].asString();
|
||||
if(!valueFileSystemsFileSystem["AutoSnapshotPolicyId"].isNull())
|
||||
fileSystemsObject.autoSnapshotPolicyId = valueFileSystemsFileSystem["AutoSnapshotPolicyId"].asString();
|
||||
if(!valueFileSystemsFileSystem["RegionId"].isNull())
|
||||
fileSystemsObject.regionId = valueFileSystemsFileSystem["RegionId"].asString();
|
||||
if(!valueFileSystemsFileSystem["FileSystemType"].isNull())
|
||||
fileSystemsObject.fileSystemType = valueFileSystemsFileSystem["FileSystemType"].asString();
|
||||
if(!valueFileSystemsFileSystem["FileSystemId"].isNull())
|
||||
fileSystemsObject.fileSystemId = valueFileSystemsFileSystem["FileSystemId"].asString();
|
||||
if(!valueFileSystemsFileSystem["EncryptType"].isNull())
|
||||
fileSystemsObject.encryptType = std::stoi(valueFileSystemsFileSystem["EncryptType"].asString());
|
||||
if(!valueFileSystemsFileSystem["ExpiredTime"].isNull())
|
||||
fileSystemsObject.expiredTime = valueFileSystemsFileSystem["ExpiredTime"].asString();
|
||||
if(!valueFileSystemsFileSystem["ZoneId"].isNull())
|
||||
fileSystemsObject.zoneId = valueFileSystemsFileSystem["ZoneId"].asString();
|
||||
if(!valueFileSystemsFileSystem["VpcId"].isNull())
|
||||
fileSystemsObject.vpcId = valueFileSystemsFileSystem["VpcId"].asString();
|
||||
auto allTagsNode = valueFileSystemsFileSystem["Tags"]["Tag"];
|
||||
for (auto valueFileSystemsFileSystemTagsTag : allTagsNode)
|
||||
{
|
||||
FileSystem::Tag tagsObject;
|
||||
if(!valueFileSystemsFileSystemTagsTag["Key"].isNull())
|
||||
tagsObject.key = valueFileSystemsFileSystemTagsTag["Key"].asString();
|
||||
if(!valueFileSystemsFileSystemTagsTag["Value"].isNull())
|
||||
tagsObject.value = valueFileSystemsFileSystemTagsTag["Value"].asString();
|
||||
fileSystemsObject.tags.push_back(tagsObject);
|
||||
}
|
||||
auto allMountTargetsNode = valueFileSystemsFileSystem["MountTargets"]["MountTarget"];
|
||||
for (auto valueFileSystemsFileSystemMountTargetsMountTarget : allMountTargetsNode)
|
||||
{
|
||||
FileSystem::MountTarget mountTargetsObject;
|
||||
if(!valueFileSystemsFileSystemMountTargetsMountTarget["MountTargetDomain"].isNull())
|
||||
mountTargetsObject.mountTargetDomain = valueFileSystemsFileSystemMountTargetsMountTarget["MountTargetDomain"].asString();
|
||||
if(!valueFileSystemsFileSystemMountTargetsMountTarget["NetworkType"].isNull())
|
||||
mountTargetsObject.networkType = valueFileSystemsFileSystemMountTargetsMountTarget["NetworkType"].asString();
|
||||
if(!valueFileSystemsFileSystemMountTargetsMountTarget["VpcId"].isNull())
|
||||
mountTargetsObject.vpcId = valueFileSystemsFileSystemMountTargetsMountTarget["VpcId"].asString();
|
||||
if(!valueFileSystemsFileSystemMountTargetsMountTarget["VswId"].isNull())
|
||||
mountTargetsObject.vswId = valueFileSystemsFileSystemMountTargetsMountTarget["VswId"].asString();
|
||||
if(!valueFileSystemsFileSystemMountTargetsMountTarget["AccessGroupName"].isNull())
|
||||
mountTargetsObject.accessGroupName = valueFileSystemsFileSystemMountTargetsMountTarget["AccessGroupName"].asString();
|
||||
if(!valueFileSystemsFileSystemMountTargetsMountTarget["Status"].isNull())
|
||||
mountTargetsObject.status = valueFileSystemsFileSystemMountTargetsMountTarget["Status"].asString();
|
||||
if(!valueFileSystemsFileSystemMountTargetsMountTarget["MountTargetDomain"].isNull())
|
||||
mountTargetsObject.mountTargetDomain = valueFileSystemsFileSystemMountTargetsMountTarget["MountTargetDomain"].asString();
|
||||
if(!valueFileSystemsFileSystemMountTargetsMountTarget["AccessGroupName"].isNull())
|
||||
mountTargetsObject.accessGroupName = valueFileSystemsFileSystemMountTargetsMountTarget["AccessGroupName"].asString();
|
||||
if(!valueFileSystemsFileSystemMountTargetsMountTarget["DualStackMountTargetDomain"].isNull())
|
||||
mountTargetsObject.dualStackMountTargetDomain = valueFileSystemsFileSystemMountTargetsMountTarget["DualStackMountTargetDomain"].asString();
|
||||
if(!valueFileSystemsFileSystemMountTargetsMountTarget["VswId"].isNull())
|
||||
mountTargetsObject.vswId = valueFileSystemsFileSystemMountTargetsMountTarget["VswId"].asString();
|
||||
if(!valueFileSystemsFileSystemMountTargetsMountTarget["NetworkType"].isNull())
|
||||
mountTargetsObject.networkType = valueFileSystemsFileSystemMountTargetsMountTarget["NetworkType"].asString();
|
||||
auto allClientMasterNodesNode = valueFileSystemsFileSystemMountTargetsMountTarget["ClientMasterNodes"]["ClientMasterNode"];
|
||||
for (auto valueFileSystemsFileSystemMountTargetsMountTargetClientMasterNodesClientMasterNode : allClientMasterNodesNode)
|
||||
{
|
||||
FileSystem::MountTarget::ClientMasterNode clientMasterNodesObject;
|
||||
if(!valueFileSystemsFileSystemMountTargetsMountTargetClientMasterNodesClientMasterNode["EcsId"].isNull())
|
||||
clientMasterNodesObject.ecsId = valueFileSystemsFileSystemMountTargetsMountTargetClientMasterNodesClientMasterNode["EcsId"].asString();
|
||||
if(!valueFileSystemsFileSystemMountTargetsMountTargetClientMasterNodesClientMasterNode["EcsIp"].isNull())
|
||||
clientMasterNodesObject.ecsIp = valueFileSystemsFileSystemMountTargetsMountTargetClientMasterNodesClientMasterNode["EcsIp"].asString();
|
||||
if(!valueFileSystemsFileSystemMountTargetsMountTargetClientMasterNodesClientMasterNode["DefaultPasswd"].isNull())
|
||||
clientMasterNodesObject.defaultPasswd = valueFileSystemsFileSystemMountTargetsMountTargetClientMasterNodesClientMasterNode["DefaultPasswd"].asString();
|
||||
if(!valueFileSystemsFileSystemMountTargetsMountTargetClientMasterNodesClientMasterNode["EcsIp"].isNull())
|
||||
clientMasterNodesObject.ecsIp = valueFileSystemsFileSystemMountTargetsMountTargetClientMasterNodesClientMasterNode["EcsIp"].asString();
|
||||
mountTargetsObject.clientMasterNodes.push_back(clientMasterNodesObject);
|
||||
}
|
||||
auto allTags1Node = valueFileSystemsFileSystemMountTargetsMountTarget["Tags"]["Tag"];
|
||||
for (auto valueFileSystemsFileSystemMountTargetsMountTargetTagsTag : allTags1Node)
|
||||
{
|
||||
FileSystem::MountTarget::Tag tags1Object;
|
||||
FileSystem::MountTarget::Tag2 tags1Object;
|
||||
if(!valueFileSystemsFileSystemMountTargetsMountTargetTagsTag["Key"].isNull())
|
||||
tags1Object.key = valueFileSystemsFileSystemMountTargetsMountTargetTagsTag["Key"].asString();
|
||||
if(!valueFileSystemsFileSystemMountTargetsMountTargetTagsTag["Value"].isNull())
|
||||
@@ -131,38 +143,31 @@ void DescribeFileSystemsResult::parse(const std::string &payload)
|
||||
for (auto valueFileSystemsFileSystemPackagesPackage : allPackagesNode)
|
||||
{
|
||||
FileSystem::Package packagesObject;
|
||||
if(!valueFileSystemsFileSystemPackagesPackage["PackageId"].isNull())
|
||||
packagesObject.packageId = valueFileSystemsFileSystemPackagesPackage["PackageId"].asString();
|
||||
if(!valueFileSystemsFileSystemPackagesPackage["PackageType"].isNull())
|
||||
packagesObject.packageType = valueFileSystemsFileSystemPackagesPackage["PackageType"].asString();
|
||||
if(!valueFileSystemsFileSystemPackagesPackage["Size"].isNull())
|
||||
packagesObject.size = std::stol(valueFileSystemsFileSystemPackagesPackage["Size"].asString());
|
||||
if(!valueFileSystemsFileSystemPackagesPackage["StartTime"].isNull())
|
||||
packagesObject.startTime = valueFileSystemsFileSystemPackagesPackage["StartTime"].asString();
|
||||
if(!valueFileSystemsFileSystemPackagesPackage["ExpiredTime"].isNull())
|
||||
packagesObject.expiredTime = valueFileSystemsFileSystemPackagesPackage["ExpiredTime"].asString();
|
||||
if(!valueFileSystemsFileSystemPackagesPackage["Size"].isNull())
|
||||
packagesObject.size = std::stol(valueFileSystemsFileSystemPackagesPackage["Size"].asString());
|
||||
if(!valueFileSystemsFileSystemPackagesPackage["PackageId"].isNull())
|
||||
packagesObject.packageId = valueFileSystemsFileSystemPackagesPackage["PackageId"].asString();
|
||||
if(!valueFileSystemsFileSystemPackagesPackage["PackageType"].isNull())
|
||||
packagesObject.packageType = valueFileSystemsFileSystemPackagesPackage["PackageType"].asString();
|
||||
fileSystemsObject.packages.push_back(packagesObject);
|
||||
}
|
||||
auto allTagsNode = valueFileSystemsFileSystem["Tags"]["Tag"];
|
||||
for (auto valueFileSystemsFileSystemTagsTag : allTagsNode)
|
||||
{
|
||||
FileSystem::Tag2 tagsObject;
|
||||
if(!valueFileSystemsFileSystemTagsTag["Key"].isNull())
|
||||
tagsObject.key = valueFileSystemsFileSystemTagsTag["Key"].asString();
|
||||
if(!valueFileSystemsFileSystemTagsTag["Value"].isNull())
|
||||
tagsObject.value = valueFileSystemsFileSystemTagsTag["Value"].asString();
|
||||
fileSystemsObject.tags.push_back(tagsObject);
|
||||
}
|
||||
auto ldapNode = value["Ldap"];
|
||||
if(!ldapNode["BindDN"].isNull())
|
||||
fileSystemsObject.ldap.bindDN = ldapNode["BindDN"].asString();
|
||||
if(!ldapNode["URI"].isNull())
|
||||
fileSystemsObject.ldap.uRI = ldapNode["URI"].asString();
|
||||
if(!ldapNode["SearchBase"].isNull())
|
||||
fileSystemsObject.ldap.searchBase = ldapNode["SearchBase"].asString();
|
||||
if(!ldapNode["URI"].isNull())
|
||||
fileSystemsObject.ldap.uRI = ldapNode["URI"].asString();
|
||||
auto allSupportedFeatures = value["SupportedFeatures"]["SupportedFeature"];
|
||||
for (auto value : allSupportedFeatures)
|
||||
fileSystemsObject.supportedFeatures.push_back(value.asString());
|
||||
auto allVswIds = value["VswIds"]["VswId"];
|
||||
for (auto value : allVswIds)
|
||||
fileSystemsObject.vswIds.push_back(value.asString());
|
||||
fileSystems_.push_back(fileSystemsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
|
||||
@@ -1,78 +1,68 @@
|
||||
/*
|
||||
* 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/nas/model/DescribeFilesetsRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeFilesetsRequest;
|
||||
|
||||
DescribeFilesetsRequest::DescribeFilesetsRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DescribeFilesets")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeFilesetsRequest::~DescribeFilesetsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeFilesetsRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DescribeFilesetsRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeFilesetsRequest;
|
||||
|
||||
DescribeFilesetsRequest::DescribeFilesetsRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DescribeFilesets") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeFilesetsRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
DescribeFilesetsRequest::~DescribeFilesetsRequest() {}
|
||||
|
||||
std::string DescribeFilesetsRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string DescribeFilesetsRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void DescribeFilesetsRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void DescribeFilesetsRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string DescribeFilesetsRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
std::vector<DescribeFilesetsRequest::Filters> DescribeFilesetsRequest::getFilters()const
|
||||
{
|
||||
return filters_;
|
||||
void DescribeFilesetsRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
void DescribeFilesetsRequest::setFilters(const std::vector<Filters>& filters)
|
||||
{
|
||||
filters_ = filters;
|
||||
for(int dep1 = 0; dep1!= filters.size(); dep1++) {
|
||||
auto filtersObj = filters.at(dep1);
|
||||
std::string filtersObjStr = "Filters." + std::to_string(dep1 + 1);
|
||||
setParameter(filtersObjStr + ".Value", filtersObj.value);
|
||||
setParameter(filtersObjStr + ".Key", filtersObj.key);
|
||||
}
|
||||
std::vector<DescribeFilesetsRequest::Filters> DescribeFilesetsRequest::getFilters() const {
|
||||
return filters_;
|
||||
}
|
||||
|
||||
long DescribeFilesetsRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void DescribeFilesetsRequest::setFilters(const std::vector<DescribeFilesetsRequest::Filters> &filters) {
|
||||
filters_ = filters;
|
||||
for(int dep1 = 0; dep1 != filters.size(); dep1++) {
|
||||
auto filtersObj = filters.at(dep1);
|
||||
std::string filtersObjStr = std::string("Filters") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(filtersObjStr + ".Value", filtersObj.value);
|
||||
setParameter(filtersObjStr + ".Key", filtersObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
void DescribeFilesetsRequest::setMaxResults(long maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
long DescribeFilesetsRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void DescribeFilesetsRequest::setMaxResults(long maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
|
||||
@@ -53,8 +53,8 @@ void DescribeFilesetsResult::parse(const std::string &payload)
|
||||
entriesObject.status = valueEntriesEntrie["Status"].asString();
|
||||
if(!valueEntriesEntrie["CreateTime"].isNull())
|
||||
entriesObject.createTime = valueEntriesEntrie["CreateTime"].asString();
|
||||
if(!valueEntriesEntrie["UpdateTiem"].isNull())
|
||||
entriesObject.updateTiem = valueEntriesEntrie["UpdateTiem"].asString();
|
||||
if(!valueEntriesEntrie["UpdateTime"].isNull())
|
||||
entriesObject.updateTime = valueEntriesEntrie["UpdateTime"].asString();
|
||||
entries_.push_back(entriesObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* 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/nas/model/DescribeLDAPConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeLDAPConfigRequest;
|
||||
|
||||
DescribeLDAPConfigRequest::DescribeLDAPConfigRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DescribeLDAPConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeLDAPConfigRequest::~DescribeLDAPConfigRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeLDAPConfigRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DescribeLDAPConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeLDAPConfigRequest;
|
||||
|
||||
DescribeLDAPConfigRequest::DescribeLDAPConfigRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DescribeLDAPConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeLDAPConfigRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
DescribeLDAPConfigRequest::~DescribeLDAPConfigRequest() {}
|
||||
|
||||
std::string DescribeLDAPConfigRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
void DescribeLDAPConfigRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,10 +42,10 @@ void DescribeLDAPConfigResult::parse(const std::string &payload)
|
||||
auto ldapNode = value["Ldap"];
|
||||
if(!ldapNode["BindDN"].isNull())
|
||||
ldap_.bindDN = ldapNode["BindDN"].asString();
|
||||
if(!ldapNode["URI"].isNull())
|
||||
ldap_.uRI = ldapNode["URI"].asString();
|
||||
if(!ldapNode["SearchBase"].isNull())
|
||||
ldap_.searchBase = ldapNode["SearchBase"].asString();
|
||||
if(!ldapNode["URI"].isNull())
|
||||
ldap_.uRI = ldapNode["URI"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DescribeLifecyclePoliciesRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeLifecyclePoliciesRequest;
|
||||
|
||||
DescribeLifecyclePoliciesRequest::DescribeLifecyclePoliciesRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DescribeLifecyclePolicies")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeLifecyclePoliciesRequest::~DescribeLifecyclePoliciesRequest()
|
||||
{}
|
||||
|
||||
int DescribeLifecyclePoliciesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DescribeLifecyclePoliciesRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeLifecyclePoliciesRequest;
|
||||
|
||||
DescribeLifecyclePoliciesRequest::DescribeLifecyclePoliciesRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DescribeLifecyclePolicies") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void DescribeLifecyclePoliciesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
DescribeLifecyclePoliciesRequest::~DescribeLifecyclePoliciesRequest() {}
|
||||
|
||||
int DescribeLifecyclePoliciesRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int DescribeLifecyclePoliciesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void DescribeLifecyclePoliciesRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
void DescribeLifecyclePoliciesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int DescribeLifecyclePoliciesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeLifecyclePoliciesRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void DescribeLifecyclePoliciesRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void DescribeLifecyclePoliciesRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string DescribeLifecyclePoliciesRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
void DescribeLifecyclePoliciesRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,18 +43,18 @@ void DescribeLifecyclePoliciesResult::parse(const std::string &payload)
|
||||
for (auto valueLifecyclePoliciesLifecyclePolicy : allLifecyclePoliciesNode)
|
||||
{
|
||||
LifecyclePolicy lifecyclePoliciesObject;
|
||||
if(!valueLifecyclePoliciesLifecyclePolicy["Path"].isNull())
|
||||
lifecyclePoliciesObject.path = valueLifecyclePoliciesLifecyclePolicy["Path"].asString();
|
||||
if(!valueLifecyclePoliciesLifecyclePolicy["LifecyclePolicyName"].isNull())
|
||||
lifecyclePoliciesObject.lifecyclePolicyName = valueLifecyclePoliciesLifecyclePolicy["LifecyclePolicyName"].asString();
|
||||
if(!valueLifecyclePoliciesLifecyclePolicy["StorageType"].isNull())
|
||||
lifecyclePoliciesObject.storageType = valueLifecyclePoliciesLifecyclePolicy["StorageType"].asString();
|
||||
if(!valueLifecyclePoliciesLifecyclePolicy["FileSystemId"].isNull())
|
||||
lifecyclePoliciesObject.fileSystemId = valueLifecyclePoliciesLifecyclePolicy["FileSystemId"].asString();
|
||||
if(!valueLifecyclePoliciesLifecyclePolicy["LifecycleRuleName"].isNull())
|
||||
lifecyclePoliciesObject.lifecycleRuleName = valueLifecyclePoliciesLifecyclePolicy["LifecycleRuleName"].asString();
|
||||
if(!valueLifecyclePoliciesLifecyclePolicy["CreateTime"].isNull())
|
||||
lifecyclePoliciesObject.createTime = valueLifecyclePoliciesLifecyclePolicy["CreateTime"].asString();
|
||||
if(!valueLifecyclePoliciesLifecyclePolicy["FileSystemId"].isNull())
|
||||
lifecyclePoliciesObject.fileSystemId = valueLifecyclePoliciesLifecyclePolicy["FileSystemId"].asString();
|
||||
if(!valueLifecyclePoliciesLifecyclePolicy["Path"].isNull())
|
||||
lifecyclePoliciesObject.path = valueLifecyclePoliciesLifecyclePolicy["Path"].asString();
|
||||
if(!valueLifecyclePoliciesLifecyclePolicy["StorageType"].isNull())
|
||||
lifecyclePoliciesObject.storageType = valueLifecyclePoliciesLifecyclePolicy["StorageType"].asString();
|
||||
if(!valueLifecyclePoliciesLifecyclePolicy["LifecyclePolicyName"].isNull())
|
||||
lifecyclePoliciesObject.lifecyclePolicyName = valueLifecyclePoliciesLifecyclePolicy["LifecyclePolicyName"].asString();
|
||||
auto allPaths = value["Paths"]["Path"];
|
||||
for (auto value : allPaths)
|
||||
lifecyclePoliciesObject.paths.push_back(value.asString());
|
||||
|
||||
@@ -1,62 +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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DescribeLogAnalysisRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeLogAnalysisRequest;
|
||||
|
||||
DescribeLogAnalysisRequest::DescribeLogAnalysisRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DescribeLogAnalysis")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeLogAnalysisRequest::~DescribeLogAnalysisRequest()
|
||||
{}
|
||||
|
||||
int DescribeLogAnalysisRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DescribeLogAnalysisRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeLogAnalysisRequest;
|
||||
|
||||
DescribeLogAnalysisRequest::DescribeLogAnalysisRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DescribeLogAnalysis") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeLogAnalysisRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
DescribeLogAnalysisRequest::~DescribeLogAnalysisRequest() {}
|
||||
|
||||
int DescribeLogAnalysisRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string DescribeLogAnalysisRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void DescribeLogAnalysisRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
void DescribeLogAnalysisRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string DescribeLogAnalysisRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
int DescribeLogAnalysisRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void DescribeLogAnalysisRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void DescribeLogAnalysisRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int DescribeLogAnalysisRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeLogAnalysisRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
@@ -46,24 +46,24 @@ void DescribeLogAnalysisResult::parse(const std::string &payload)
|
||||
if(!valueAnalysesAnalysis["MetaKey"].isNull())
|
||||
analysesObject.metaKey = valueAnalysesAnalysis["MetaKey"].asString();
|
||||
auto metaValueNode = value["MetaValue"];
|
||||
if(!metaValueNode["Logstore"].isNull())
|
||||
analysesObject.metaValue.logstore = metaValueNode["Logstore"].asString();
|
||||
if(!metaValueNode["Region"].isNull())
|
||||
analysesObject.metaValue.region = metaValueNode["Region"].asString();
|
||||
if(!metaValueNode["Project"].isNull())
|
||||
analysesObject.metaValue.project = metaValueNode["Project"].asString();
|
||||
if(!metaValueNode["RoleArn"].isNull())
|
||||
analysesObject.metaValue.roleArn = metaValueNode["RoleArn"].asString();
|
||||
if(!metaValueNode["Region"].isNull())
|
||||
analysesObject.metaValue.region = metaValueNode["Region"].asString();
|
||||
if(!metaValueNode["Logstore"].isNull())
|
||||
analysesObject.metaValue.logstore = metaValueNode["Logstore"].asString();
|
||||
if(!metaValueNode["Project"].isNull())
|
||||
analysesObject.metaValue.project = metaValueNode["Project"].asString();
|
||||
analyses_.push_back(analysesObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DescribeMountTargetsRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeMountTargetsRequest;
|
||||
|
||||
DescribeMountTargetsRequest::DescribeMountTargetsRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DescribeMountTargets")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeMountTargetsRequest::~DescribeMountTargetsRequest()
|
||||
{}
|
||||
|
||||
int DescribeMountTargetsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DescribeMountTargetsRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeMountTargetsRequest;
|
||||
|
||||
DescribeMountTargetsRequest::DescribeMountTargetsRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DescribeMountTargets") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeMountTargetsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
DescribeMountTargetsRequest::~DescribeMountTargetsRequest() {}
|
||||
|
||||
int DescribeMountTargetsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int DescribeMountTargetsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void DescribeMountTargetsRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
void DescribeMountTargetsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int DescribeMountTargetsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeMountTargetsRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void DescribeMountTargetsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void DescribeMountTargetsRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string DescribeMountTargetsRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
std::string DescribeMountTargetsRequest::getMountTargetDomain()const
|
||||
{
|
||||
return mountTargetDomain_;
|
||||
void DescribeMountTargetsRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
void DescribeMountTargetsRequest::setMountTargetDomain(const std::string& mountTargetDomain)
|
||||
{
|
||||
mountTargetDomain_ = mountTargetDomain;
|
||||
setParameter("MountTargetDomain", mountTargetDomain);
|
||||
std::string DescribeMountTargetsRequest::getMountTargetDomain() const {
|
||||
return mountTargetDomain_;
|
||||
}
|
||||
|
||||
std::string DescribeMountTargetsRequest::getDualStackMountTargetDomain()const
|
||||
{
|
||||
return dualStackMountTargetDomain_;
|
||||
void DescribeMountTargetsRequest::setMountTargetDomain(const std::string &mountTargetDomain) {
|
||||
mountTargetDomain_ = mountTargetDomain;
|
||||
setParameter(std::string("MountTargetDomain"), mountTargetDomain);
|
||||
}
|
||||
|
||||
void DescribeMountTargetsRequest::setDualStackMountTargetDomain(const std::string& dualStackMountTargetDomain)
|
||||
{
|
||||
dualStackMountTargetDomain_ = dualStackMountTargetDomain;
|
||||
setParameter("DualStackMountTargetDomain", dualStackMountTargetDomain);
|
||||
std::string DescribeMountTargetsRequest::getDualStackMountTargetDomain() const {
|
||||
return dualStackMountTargetDomain_;
|
||||
}
|
||||
|
||||
void DescribeMountTargetsRequest::setDualStackMountTargetDomain(const std::string &dualStackMountTargetDomain) {
|
||||
dualStackMountTargetDomain_ = dualStackMountTargetDomain;
|
||||
setParameter(std::string("DualStackMountTargetDomain"), dualStackMountTargetDomain);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,30 +43,30 @@ void DescribeMountTargetsResult::parse(const std::string &payload)
|
||||
for (auto valueMountTargetsMountTarget : allMountTargetsNode)
|
||||
{
|
||||
MountTarget mountTargetsObject;
|
||||
if(!valueMountTargetsMountTarget["MountTargetDomain"].isNull())
|
||||
mountTargetsObject.mountTargetDomain = valueMountTargetsMountTarget["MountTargetDomain"].asString();
|
||||
if(!valueMountTargetsMountTarget["NetworkType"].isNull())
|
||||
mountTargetsObject.networkType = valueMountTargetsMountTarget["NetworkType"].asString();
|
||||
if(!valueMountTargetsMountTarget["VpcId"].isNull())
|
||||
mountTargetsObject.vpcId = valueMountTargetsMountTarget["VpcId"].asString();
|
||||
if(!valueMountTargetsMountTarget["VswId"].isNull())
|
||||
mountTargetsObject.vswId = valueMountTargetsMountTarget["VswId"].asString();
|
||||
if(!valueMountTargetsMountTarget["AccessGroup"].isNull())
|
||||
mountTargetsObject.accessGroup = valueMountTargetsMountTarget["AccessGroup"].asString();
|
||||
if(!valueMountTargetsMountTarget["Status"].isNull())
|
||||
mountTargetsObject.status = valueMountTargetsMountTarget["Status"].asString();
|
||||
if(!valueMountTargetsMountTarget["MountTargetDomain"].isNull())
|
||||
mountTargetsObject.mountTargetDomain = valueMountTargetsMountTarget["MountTargetDomain"].asString();
|
||||
if(!valueMountTargetsMountTarget["AccessGroup"].isNull())
|
||||
mountTargetsObject.accessGroup = valueMountTargetsMountTarget["AccessGroup"].asString();
|
||||
if(!valueMountTargetsMountTarget["DualStackMountTargetDomain"].isNull())
|
||||
mountTargetsObject.dualStackMountTargetDomain = valueMountTargetsMountTarget["DualStackMountTargetDomain"].asString();
|
||||
if(!valueMountTargetsMountTarget["VswId"].isNull())
|
||||
mountTargetsObject.vswId = valueMountTargetsMountTarget["VswId"].asString();
|
||||
if(!valueMountTargetsMountTarget["NetworkType"].isNull())
|
||||
mountTargetsObject.networkType = valueMountTargetsMountTarget["NetworkType"].asString();
|
||||
auto allClientMasterNodesNode = valueMountTargetsMountTarget["ClientMasterNodes"]["ClientMasterNode"];
|
||||
for (auto valueMountTargetsMountTargetClientMasterNodesClientMasterNode : allClientMasterNodesNode)
|
||||
{
|
||||
MountTarget::ClientMasterNode clientMasterNodesObject;
|
||||
if(!valueMountTargetsMountTargetClientMasterNodesClientMasterNode["EcsId"].isNull())
|
||||
clientMasterNodesObject.ecsId = valueMountTargetsMountTargetClientMasterNodesClientMasterNode["EcsId"].asString();
|
||||
if(!valueMountTargetsMountTargetClientMasterNodesClientMasterNode["EcsIp"].isNull())
|
||||
clientMasterNodesObject.ecsIp = valueMountTargetsMountTargetClientMasterNodesClientMasterNode["EcsIp"].asString();
|
||||
if(!valueMountTargetsMountTargetClientMasterNodesClientMasterNode["DefaultPasswd"].isNull())
|
||||
clientMasterNodesObject.defaultPasswd = valueMountTargetsMountTargetClientMasterNodesClientMasterNode["DefaultPasswd"].asString();
|
||||
if(!valueMountTargetsMountTargetClientMasterNodesClientMasterNode["EcsIp"].isNull())
|
||||
clientMasterNodesObject.ecsIp = valueMountTargetsMountTargetClientMasterNodesClientMasterNode["EcsIp"].asString();
|
||||
mountTargetsObject.clientMasterNodes.push_back(clientMasterNodesObject);
|
||||
}
|
||||
auto allTagsNode = valueMountTargetsMountTarget["Tags"]["Tag"];
|
||||
|
||||
@@ -1,95 +1,81 @@
|
||||
/*
|
||||
* 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/nas/model/DescribeMountedClientsRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeMountedClientsRequest;
|
||||
|
||||
DescribeMountedClientsRequest::DescribeMountedClientsRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DescribeMountedClients")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeMountedClientsRequest::~DescribeMountedClientsRequest()
|
||||
{}
|
||||
|
||||
int DescribeMountedClientsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DescribeMountedClientsRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeMountedClientsRequest;
|
||||
|
||||
DescribeMountedClientsRequest::DescribeMountedClientsRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DescribeMountedClients") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeMountedClientsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
DescribeMountedClientsRequest::~DescribeMountedClientsRequest() {}
|
||||
|
||||
int DescribeMountedClientsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string DescribeMountedClientsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void DescribeMountedClientsRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
void DescribeMountedClientsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string DescribeMountedClientsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string DescribeMountedClientsRequest::getClientIP()const
|
||||
{
|
||||
return clientIP_;
|
||||
void DescribeMountedClientsRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void DescribeMountedClientsRequest::setClientIP(const std::string& clientIP)
|
||||
{
|
||||
clientIP_ = clientIP;
|
||||
setParameter("ClientIP", clientIP);
|
||||
std::string DescribeMountedClientsRequest::getClientIP() const {
|
||||
return clientIP_;
|
||||
}
|
||||
|
||||
int DescribeMountedClientsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void DescribeMountedClientsRequest::setClientIP(const std::string &clientIP) {
|
||||
clientIP_ = clientIP;
|
||||
setParameter(std::string("ClientIP"), clientIP);
|
||||
}
|
||||
|
||||
void DescribeMountedClientsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int DescribeMountedClientsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeMountedClientsRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void DescribeMountedClientsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void DescribeMountedClientsRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string DescribeMountedClientsRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
std::string DescribeMountedClientsRequest::getMountTargetDomain()const
|
||||
{
|
||||
return mountTargetDomain_;
|
||||
void DescribeMountedClientsRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
void DescribeMountedClientsRequest::setMountTargetDomain(const std::string& mountTargetDomain)
|
||||
{
|
||||
mountTargetDomain_ = mountTargetDomain;
|
||||
setParameter("MountTargetDomain", mountTargetDomain);
|
||||
std::string DescribeMountedClientsRequest::getMountTargetDomain() const {
|
||||
return mountTargetDomain_;
|
||||
}
|
||||
|
||||
void DescribeMountedClientsRequest::setMountTargetDomain(const std::string &mountTargetDomain) {
|
||||
mountTargetDomain_ = mountTargetDomain;
|
||||
setParameter(std::string("MountTargetDomain"), mountTargetDomain);
|
||||
}
|
||||
|
||||
|
||||
77
nas/src/model/DescribeProtocolMountTargetRequest.cc
Normal file
77
nas/src/model/DescribeProtocolMountTargetRequest.cc
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* 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/nas/model/DescribeProtocolMountTargetRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeProtocolMountTargetRequest;
|
||||
|
||||
DescribeProtocolMountTargetRequest::DescribeProtocolMountTargetRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DescribeProtocolMountTarget") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeProtocolMountTargetRequest::~DescribeProtocolMountTargetRequest() {}
|
||||
|
||||
std::string DescribeProtocolMountTargetRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DescribeProtocolMountTargetRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DescribeProtocolMountTargetRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void DescribeProtocolMountTargetRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
std::string DescribeProtocolMountTargetRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
void DescribeProtocolMountTargetRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
std::vector<DescribeProtocolMountTargetRequest::Filters> DescribeProtocolMountTargetRequest::getFilters() const {
|
||||
return filters_;
|
||||
}
|
||||
|
||||
void DescribeProtocolMountTargetRequest::setFilters(const std::vector<DescribeProtocolMountTargetRequest::Filters> &filters) {
|
||||
filters_ = filters;
|
||||
for(int dep1 = 0; dep1 != filters.size(); dep1++) {
|
||||
auto filtersObj = filters.at(dep1);
|
||||
std::string filtersObjStr = std::string("Filters") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(filtersObjStr + ".Value", filtersObj.value);
|
||||
setParameter(filtersObjStr + ".Key", filtersObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
long DescribeProtocolMountTargetRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void DescribeProtocolMountTargetRequest::setMaxResults(long maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
86
nas/src/model/DescribeProtocolMountTargetResult.cc
Normal file
86
nas/src/model/DescribeProtocolMountTargetResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* 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/nas/model/DescribeProtocolMountTargetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::NAS;
|
||||
using namespace AlibabaCloud::NAS::Model;
|
||||
|
||||
DescribeProtocolMountTargetResult::DescribeProtocolMountTargetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeProtocolMountTargetResult::DescribeProtocolMountTargetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeProtocolMountTargetResult::~DescribeProtocolMountTargetResult()
|
||||
{}
|
||||
|
||||
void DescribeProtocolMountTargetResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allProtocolMountTargetsNode = value["ProtocolMountTargets"]["protocolMountTarget"];
|
||||
for (auto valueProtocolMountTargetsprotocolMountTarget : allProtocolMountTargetsNode)
|
||||
{
|
||||
ProtocolMountTarget protocolMountTargetsObject;
|
||||
if(!valueProtocolMountTargetsprotocolMountTarget["ExportId"].isNull())
|
||||
protocolMountTargetsObject.exportId = valueProtocolMountTargetsprotocolMountTarget["ExportId"].asString();
|
||||
if(!valueProtocolMountTargetsprotocolMountTarget["ProtocolMountTargetDomain"].isNull())
|
||||
protocolMountTargetsObject.protocolMountTargetDomain = valueProtocolMountTargetsprotocolMountTarget["ProtocolMountTargetDomain"].asString();
|
||||
if(!valueProtocolMountTargetsprotocolMountTarget["ProtocolType"].isNull())
|
||||
protocolMountTargetsObject.protocolType = valueProtocolMountTargetsprotocolMountTarget["ProtocolType"].asString();
|
||||
if(!valueProtocolMountTargetsprotocolMountTarget["VpcId"].isNull())
|
||||
protocolMountTargetsObject.vpcId = valueProtocolMountTargetsprotocolMountTarget["VpcId"].asString();
|
||||
if(!valueProtocolMountTargetsprotocolMountTarget["VSwitchId"].isNull())
|
||||
protocolMountTargetsObject.vSwitchId = valueProtocolMountTargetsprotocolMountTarget["VSwitchId"].asString();
|
||||
if(!valueProtocolMountTargetsprotocolMountTarget["FsetId"].isNull())
|
||||
protocolMountTargetsObject.fsetId = valueProtocolMountTargetsprotocolMountTarget["FsetId"].asString();
|
||||
if(!valueProtocolMountTargetsprotocolMountTarget["Path"].isNull())
|
||||
protocolMountTargetsObject.path = valueProtocolMountTargetsprotocolMountTarget["Path"].asString();
|
||||
if(!valueProtocolMountTargetsprotocolMountTarget["AccessGroupName"].isNull())
|
||||
protocolMountTargetsObject.accessGroupName = valueProtocolMountTargetsprotocolMountTarget["AccessGroupName"].asString();
|
||||
if(!valueProtocolMountTargetsprotocolMountTarget["CreateTime"].isNull())
|
||||
protocolMountTargetsObject.createTime = valueProtocolMountTargetsprotocolMountTarget["CreateTime"].asString();
|
||||
if(!valueProtocolMountTargetsprotocolMountTarget["Status"].isNull())
|
||||
protocolMountTargetsObject.status = valueProtocolMountTargetsprotocolMountTarget["Status"].asString();
|
||||
if(!valueProtocolMountTargetsprotocolMountTarget["ProtocolServiceId"].isNull())
|
||||
protocolMountTargetsObject.protocolServiceId = valueProtocolMountTargetsprotocolMountTarget["ProtocolServiceId"].asString();
|
||||
if(!valueProtocolMountTargetsprotocolMountTarget["Description"].isNull())
|
||||
protocolMountTargetsObject.description = valueProtocolMountTargetsprotocolMountTarget["Description"].asString();
|
||||
protocolMountTargets_.push_back(protocolMountTargetsObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeProtocolMountTargetResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::vector<DescribeProtocolMountTargetResult::ProtocolMountTarget> DescribeProtocolMountTargetResult::getProtocolMountTargets()const
|
||||
{
|
||||
return protocolMountTargets_;
|
||||
}
|
||||
|
||||
90
nas/src/model/DescribeProtocolServiceRequest.cc
Normal file
90
nas/src/model/DescribeProtocolServiceRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* 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/nas/model/DescribeProtocolServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeProtocolServiceRequest;
|
||||
|
||||
DescribeProtocolServiceRequest::DescribeProtocolServiceRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DescribeProtocolService") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeProtocolServiceRequest::~DescribeProtocolServiceRequest() {}
|
||||
|
||||
std::string DescribeProtocolServiceRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DescribeProtocolServiceRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DescribeProtocolServiceRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void DescribeProtocolServiceRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string DescribeProtocolServiceRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void DescribeProtocolServiceRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
std::string DescribeProtocolServiceRequest::getProtocolServiceIds() const {
|
||||
return protocolServiceIds_;
|
||||
}
|
||||
|
||||
void DescribeProtocolServiceRequest::setProtocolServiceIds(const std::string &protocolServiceIds) {
|
||||
protocolServiceIds_ = protocolServiceIds;
|
||||
setParameter(std::string("ProtocolServiceIds"), protocolServiceIds);
|
||||
}
|
||||
|
||||
std::string DescribeProtocolServiceRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
void DescribeProtocolServiceRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
long DescribeProtocolServiceRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void DescribeProtocolServiceRequest::setMaxResults(long maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string DescribeProtocolServiceRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void DescribeProtocolServiceRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
88
nas/src/model/DescribeProtocolServiceResult.cc
Normal file
88
nas/src/model/DescribeProtocolServiceResult.cc
Normal file
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* 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/nas/model/DescribeProtocolServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::NAS;
|
||||
using namespace AlibabaCloud::NAS::Model;
|
||||
|
||||
DescribeProtocolServiceResult::DescribeProtocolServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeProtocolServiceResult::DescribeProtocolServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeProtocolServiceResult::~DescribeProtocolServiceResult()
|
||||
{}
|
||||
|
||||
void DescribeProtocolServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allProtocolServicesNode = value["ProtocolServices"]["protocolService"];
|
||||
for (auto valueProtocolServicesprotocolService : allProtocolServicesNode)
|
||||
{
|
||||
ProtocolService protocolServicesObject;
|
||||
if(!valueProtocolServicesprotocolService["FileSystemId"].isNull())
|
||||
protocolServicesObject.fileSystemId = valueProtocolServicesprotocolService["FileSystemId"].asString();
|
||||
if(!valueProtocolServicesprotocolService["ProtocolServiceId"].isNull())
|
||||
protocolServicesObject.protocolServiceId = valueProtocolServicesprotocolService["ProtocolServiceId"].asString();
|
||||
if(!valueProtocolServicesprotocolService["ProtocolSpec"].isNull())
|
||||
protocolServicesObject.protocolSpec = valueProtocolServicesprotocolService["ProtocolSpec"].asString();
|
||||
if(!valueProtocolServicesprotocolService["ProtocolThroughput"].isNull())
|
||||
protocolServicesObject.protocolThroughput = std::stoi(valueProtocolServicesprotocolService["ProtocolThroughput"].asString());
|
||||
if(!valueProtocolServicesprotocolService["InstanceRAM"].isNull())
|
||||
protocolServicesObject.instanceRAM = std::stoi(valueProtocolServicesprotocolService["InstanceRAM"].asString());
|
||||
if(!valueProtocolServicesprotocolService["InstanceBaseThroughput"].isNull())
|
||||
protocolServicesObject.instanceBaseThroughput = std::stoi(valueProtocolServicesprotocolService["InstanceBaseThroughput"].asString());
|
||||
if(!valueProtocolServicesprotocolService["InstanceBurstThroughput"].isNull())
|
||||
protocolServicesObject.instanceBurstThroughput = std::stoi(valueProtocolServicesprotocolService["InstanceBurstThroughput"].asString());
|
||||
if(!valueProtocolServicesprotocolService["MountTargetCount"].isNull())
|
||||
protocolServicesObject.mountTargetCount = std::stoi(valueProtocolServicesprotocolService["MountTargetCount"].asString());
|
||||
if(!valueProtocolServicesprotocolService["ProtocolType"].isNull())
|
||||
protocolServicesObject.protocolType = valueProtocolServicesprotocolService["ProtocolType"].asString();
|
||||
if(!valueProtocolServicesprotocolService["Status"].isNull())
|
||||
protocolServicesObject.status = valueProtocolServicesprotocolService["Status"].asString();
|
||||
if(!valueProtocolServicesprotocolService["Description"].isNull())
|
||||
protocolServicesObject.description = valueProtocolServicesprotocolService["Description"].asString();
|
||||
if(!valueProtocolServicesprotocolService["CreateTime"].isNull())
|
||||
protocolServicesObject.createTime = valueProtocolServicesprotocolService["CreateTime"].asString();
|
||||
if(!valueProtocolServicesprotocolService["ModifyTime"].isNull())
|
||||
protocolServicesObject.modifyTime = valueProtocolServicesprotocolService["ModifyTime"].asString();
|
||||
protocolServices_.push_back(protocolServicesObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeProtocolServiceResult::ProtocolService> DescribeProtocolServiceResult::getProtocolServices()const
|
||||
{
|
||||
return protocolServices_;
|
||||
}
|
||||
|
||||
std::string DescribeProtocolServiceResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
@@ -1,62 +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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DescribeRegionsRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeRegionsRequest;
|
||||
|
||||
DescribeRegionsRequest::DescribeRegionsRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DescribeRegions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRegionsRequest::~DescribeRegionsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeRegionsRequest::getFileSystemType()const
|
||||
{
|
||||
return fileSystemType_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DescribeRegionsRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeRegionsRequest;
|
||||
|
||||
DescribeRegionsRequest::DescribeRegionsRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DescribeRegions") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeRegionsRequest::setFileSystemType(const std::string& fileSystemType)
|
||||
{
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter("FileSystemType", fileSystemType);
|
||||
DescribeRegionsRequest::~DescribeRegionsRequest() {}
|
||||
|
||||
std::string DescribeRegionsRequest::getFileSystemType() const {
|
||||
return fileSystemType_;
|
||||
}
|
||||
|
||||
int DescribeRegionsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
void DescribeRegionsRequest::setFileSystemType(const std::string &fileSystemType) {
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter(std::string("FileSystemType"), fileSystemType);
|
||||
}
|
||||
|
||||
void DescribeRegionsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
int DescribeRegionsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int DescribeRegionsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void DescribeRegionsRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
void DescribeRegionsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int DescribeRegionsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeRegionsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
@@ -43,12 +43,12 @@ void DescribeRegionsResult::parse(const std::string &payload)
|
||||
for (auto valueRegionsRegion : allRegionsNode)
|
||||
{
|
||||
Region regionsObject;
|
||||
if(!valueRegionsRegion["RegionId"].isNull())
|
||||
regionsObject.regionId = valueRegionsRegion["RegionId"].asString();
|
||||
if(!valueRegionsRegion["LocalName"].isNull())
|
||||
regionsObject.localName = valueRegionsRegion["LocalName"].asString();
|
||||
if(!valueRegionsRegion["RegionEndpoint"].isNull())
|
||||
regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString();
|
||||
if(!valueRegionsRegion["RegionId"].isNull())
|
||||
regionsObject.regionId = valueRegionsRegion["RegionId"].asString();
|
||||
regions_.push_back(regionsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* 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/nas/model/DescribeSmbAclRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeSmbAclRequest;
|
||||
|
||||
DescribeSmbAclRequest::DescribeSmbAclRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DescribeSmbAcl")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSmbAclRequest::~DescribeSmbAclRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeSmbAclRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DescribeSmbAclRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeSmbAclRequest;
|
||||
|
||||
DescribeSmbAclRequest::DescribeSmbAclRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DescribeSmbAcl") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeSmbAclRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
DescribeSmbAclRequest::~DescribeSmbAclRequest() {}
|
||||
|
||||
std::string DescribeSmbAclRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
void DescribeSmbAclRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,117 +1,99 @@
|
||||
/*
|
||||
* 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/nas/model/DescribeSnapshotsRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeSnapshotsRequest;
|
||||
|
||||
DescribeSnapshotsRequest::DescribeSnapshotsRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DescribeSnapshots")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSnapshotsRequest::~DescribeSnapshotsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeSnapshotsRequest::getSnapshotIds()const
|
||||
{
|
||||
return snapshotIds_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DescribeSnapshotsRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeSnapshotsRequest;
|
||||
|
||||
DescribeSnapshotsRequest::DescribeSnapshotsRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DescribeSnapshots") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeSnapshotsRequest::setSnapshotIds(const std::string& snapshotIds)
|
||||
{
|
||||
snapshotIds_ = snapshotIds;
|
||||
setParameter("SnapshotIds", snapshotIds);
|
||||
DescribeSnapshotsRequest::~DescribeSnapshotsRequest() {}
|
||||
|
||||
std::string DescribeSnapshotsRequest::getSnapshotIds() const {
|
||||
return snapshotIds_;
|
||||
}
|
||||
|
||||
std::string DescribeSnapshotsRequest::getSnapshotName()const
|
||||
{
|
||||
return snapshotName_;
|
||||
void DescribeSnapshotsRequest::setSnapshotIds(const std::string &snapshotIds) {
|
||||
snapshotIds_ = snapshotIds;
|
||||
setParameter(std::string("SnapshotIds"), snapshotIds);
|
||||
}
|
||||
|
||||
void DescribeSnapshotsRequest::setSnapshotName(const std::string& snapshotName)
|
||||
{
|
||||
snapshotName_ = snapshotName;
|
||||
setParameter("SnapshotName", snapshotName);
|
||||
std::string DescribeSnapshotsRequest::getSnapshotName() const {
|
||||
return snapshotName_;
|
||||
}
|
||||
|
||||
std::string DescribeSnapshotsRequest::getFileSystemType()const
|
||||
{
|
||||
return fileSystemType_;
|
||||
void DescribeSnapshotsRequest::setSnapshotName(const std::string &snapshotName) {
|
||||
snapshotName_ = snapshotName;
|
||||
setParameter(std::string("SnapshotName"), snapshotName);
|
||||
}
|
||||
|
||||
void DescribeSnapshotsRequest::setFileSystemType(const std::string& fileSystemType)
|
||||
{
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter("FileSystemType", fileSystemType);
|
||||
std::string DescribeSnapshotsRequest::getFileSystemType() const {
|
||||
return fileSystemType_;
|
||||
}
|
||||
|
||||
int DescribeSnapshotsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
void DescribeSnapshotsRequest::setFileSystemType(const std::string &fileSystemType) {
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter(std::string("FileSystemType"), fileSystemType);
|
||||
}
|
||||
|
||||
void DescribeSnapshotsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
int DescribeSnapshotsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int DescribeSnapshotsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void DescribeSnapshotsRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
void DescribeSnapshotsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int DescribeSnapshotsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeSnapshotsRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void DescribeSnapshotsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void DescribeSnapshotsRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string DescribeSnapshotsRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
std::string DescribeSnapshotsRequest::getSnapshotType()const
|
||||
{
|
||||
return snapshotType_;
|
||||
void DescribeSnapshotsRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
void DescribeSnapshotsRequest::setSnapshotType(const std::string& snapshotType)
|
||||
{
|
||||
snapshotType_ = snapshotType;
|
||||
setParameter("SnapshotType", snapshotType);
|
||||
std::string DescribeSnapshotsRequest::getSnapshotType() const {
|
||||
return snapshotType_;
|
||||
}
|
||||
|
||||
std::string DescribeSnapshotsRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
void DescribeSnapshotsRequest::setSnapshotType(const std::string &snapshotType) {
|
||||
snapshotType_ = snapshotType;
|
||||
setParameter(std::string("SnapshotType"), snapshotType);
|
||||
}
|
||||
|
||||
void DescribeSnapshotsRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status);
|
||||
std::string DescribeSnapshotsRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void DescribeSnapshotsRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,30 +43,30 @@ void DescribeSnapshotsResult::parse(const std::string &payload)
|
||||
for (auto valueSnapshotsSnapshot : allSnapshotsNode)
|
||||
{
|
||||
Snapshot snapshotsObject;
|
||||
if(!valueSnapshotsSnapshot["CreateTime"].isNull())
|
||||
snapshotsObject.createTime = valueSnapshotsSnapshot["CreateTime"].asString();
|
||||
if(!valueSnapshotsSnapshot["Description"].isNull())
|
||||
snapshotsObject.description = valueSnapshotsSnapshot["Description"].asString();
|
||||
if(!valueSnapshotsSnapshot["Progress"].isNull())
|
||||
snapshotsObject.progress = valueSnapshotsSnapshot["Progress"].asString();
|
||||
if(!valueSnapshotsSnapshot["RemainTime"].isNull())
|
||||
snapshotsObject.remainTime = std::stoi(valueSnapshotsSnapshot["RemainTime"].asString());
|
||||
if(!valueSnapshotsSnapshot["RetentionDays"].isNull())
|
||||
snapshotsObject.retentionDays = std::stoi(valueSnapshotsSnapshot["RetentionDays"].asString());
|
||||
if(!valueSnapshotsSnapshot["SnapshotId"].isNull())
|
||||
snapshotsObject.snapshotId = valueSnapshotsSnapshot["SnapshotId"].asString();
|
||||
if(!valueSnapshotsSnapshot["SnapshotName"].isNull())
|
||||
snapshotsObject.snapshotName = valueSnapshotsSnapshot["SnapshotName"].asString();
|
||||
if(!valueSnapshotsSnapshot["SourceFileSystemId"].isNull())
|
||||
snapshotsObject.sourceFileSystemId = valueSnapshotsSnapshot["SourceFileSystemId"].asString();
|
||||
if(!valueSnapshotsSnapshot["SourceFileSystemSize"].isNull())
|
||||
snapshotsObject.sourceFileSystemSize = std::stol(valueSnapshotsSnapshot["SourceFileSystemSize"].asString());
|
||||
if(!valueSnapshotsSnapshot["Status"].isNull())
|
||||
snapshotsObject.status = valueSnapshotsSnapshot["Status"].asString();
|
||||
if(!valueSnapshotsSnapshot["EncryptType"].isNull())
|
||||
snapshotsObject.encryptType = std::stoi(valueSnapshotsSnapshot["EncryptType"].asString());
|
||||
if(!valueSnapshotsSnapshot["Progress"].isNull())
|
||||
snapshotsObject.progress = valueSnapshotsSnapshot["Progress"].asString();
|
||||
if(!valueSnapshotsSnapshot["CreateTime"].isNull())
|
||||
snapshotsObject.createTime = valueSnapshotsSnapshot["CreateTime"].asString();
|
||||
if(!valueSnapshotsSnapshot["SourceFileSystemId"].isNull())
|
||||
snapshotsObject.sourceFileSystemId = valueSnapshotsSnapshot["SourceFileSystemId"].asString();
|
||||
if(!valueSnapshotsSnapshot["RetentionDays"].isNull())
|
||||
snapshotsObject.retentionDays = std::stoi(valueSnapshotsSnapshot["RetentionDays"].asString());
|
||||
if(!valueSnapshotsSnapshot["RemainTime"].isNull())
|
||||
snapshotsObject.remainTime = std::stoi(valueSnapshotsSnapshot["RemainTime"].asString());
|
||||
if(!valueSnapshotsSnapshot["SourceFileSystemSize"].isNull())
|
||||
snapshotsObject.sourceFileSystemSize = std::stol(valueSnapshotsSnapshot["SourceFileSystemSize"].asString());
|
||||
if(!valueSnapshotsSnapshot["SourceFileSystemVersion"].isNull())
|
||||
snapshotsObject.sourceFileSystemVersion = valueSnapshotsSnapshot["SourceFileSystemVersion"].asString();
|
||||
if(!valueSnapshotsSnapshot["SnapshotName"].isNull())
|
||||
snapshotsObject.snapshotName = valueSnapshotsSnapshot["SnapshotName"].asString();
|
||||
if(!valueSnapshotsSnapshot["EncryptType"].isNull())
|
||||
snapshotsObject.encryptType = std::stoi(valueSnapshotsSnapshot["EncryptType"].asString());
|
||||
if(!valueSnapshotsSnapshot["Description"].isNull())
|
||||
snapshotsObject.description = valueSnapshotsSnapshot["Description"].asString();
|
||||
if(!valueSnapshotsSnapshot["SnapshotId"].isNull())
|
||||
snapshotsObject.snapshotId = valueSnapshotsSnapshot["SnapshotId"].asString();
|
||||
snapshots_.push_back(snapshotsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
|
||||
@@ -1,73 +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/nas/model/DescribeStoragePackagesRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeStoragePackagesRequest;
|
||||
|
||||
DescribeStoragePackagesRequest::DescribeStoragePackagesRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DescribeStoragePackages")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeStoragePackagesRequest::~DescribeStoragePackagesRequest()
|
||||
{}
|
||||
|
||||
bool DescribeStoragePackagesRequest::getUseUTCDateTime()const
|
||||
{
|
||||
return useUTCDateTime_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DescribeStoragePackagesRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeStoragePackagesRequest;
|
||||
|
||||
DescribeStoragePackagesRequest::DescribeStoragePackagesRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DescribeStoragePackages") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeStoragePackagesRequest::setUseUTCDateTime(bool useUTCDateTime)
|
||||
{
|
||||
useUTCDateTime_ = useUTCDateTime;
|
||||
setParameter("UseUTCDateTime", useUTCDateTime ? "true" : "false");
|
||||
DescribeStoragePackagesRequest::~DescribeStoragePackagesRequest() {}
|
||||
|
||||
bool DescribeStoragePackagesRequest::getUseUTCDateTime() const {
|
||||
return useUTCDateTime_;
|
||||
}
|
||||
|
||||
int DescribeStoragePackagesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
void DescribeStoragePackagesRequest::setUseUTCDateTime(bool useUTCDateTime) {
|
||||
useUTCDateTime_ = useUTCDateTime;
|
||||
setParameter(std::string("UseUTCDateTime"), useUTCDateTime ? "true" : "false");
|
||||
}
|
||||
|
||||
void DescribeStoragePackagesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
int DescribeStoragePackagesRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string DescribeStoragePackagesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void DescribeStoragePackagesRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
void DescribeStoragePackagesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string DescribeStoragePackagesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
int DescribeStoragePackagesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void DescribeStoragePackagesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void DescribeStoragePackagesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int DescribeStoragePackagesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeStoragePackagesRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
@@ -43,20 +43,20 @@ void DescribeStoragePackagesResult::parse(const std::string &payload)
|
||||
for (auto valuePackagesPackage : allPackagesNode)
|
||||
{
|
||||
Package packagesObject;
|
||||
if(!valuePackagesPackage["StartTime"].isNull())
|
||||
packagesObject.startTime = valuePackagesPackage["StartTime"].asString();
|
||||
if(!valuePackagesPackage["StorageType"].isNull())
|
||||
packagesObject.storageType = valuePackagesPackage["StorageType"].asString();
|
||||
if(!valuePackagesPackage["Status"].isNull())
|
||||
packagesObject.status = valuePackagesPackage["Status"].asString();
|
||||
if(!valuePackagesPackage["FileSystemId"].isNull())
|
||||
packagesObject.fileSystemId = valuePackagesPackage["FileSystemId"].asString();
|
||||
if(!valuePackagesPackage["PackageId"].isNull())
|
||||
packagesObject.packageId = valuePackagesPackage["PackageId"].asString();
|
||||
if(!valuePackagesPackage["StartTime"].isNull())
|
||||
packagesObject.startTime = valuePackagesPackage["StartTime"].asString();
|
||||
if(!valuePackagesPackage["ExpiredTime"].isNull())
|
||||
packagesObject.expiredTime = valuePackagesPackage["ExpiredTime"].asString();
|
||||
if(!valuePackagesPackage["Size"].isNull())
|
||||
packagesObject.size = std::stol(valuePackagesPackage["Size"].asString());
|
||||
if(!valuePackagesPackage["StorageType"].isNull())
|
||||
packagesObject.storageType = valuePackagesPackage["StorageType"].asString();
|
||||
if(!valuePackagesPackage["PackageId"].isNull())
|
||||
packagesObject.packageId = valuePackagesPackage["PackageId"].asString();
|
||||
packages_.push_back(packagesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
|
||||
@@ -1,78 +1,68 @@
|
||||
/*
|
||||
* 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/nas/model/DescribeTagsRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeTagsRequest;
|
||||
|
||||
DescribeTagsRequest::DescribeTagsRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DescribeTags")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeTagsRequest::~DescribeTagsRequest()
|
||||
{}
|
||||
|
||||
int DescribeTagsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DescribeTagsRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeTagsRequest;
|
||||
|
||||
DescribeTagsRequest::DescribeTagsRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DescribeTags") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
DescribeTagsRequest::~DescribeTagsRequest() {}
|
||||
|
||||
int DescribeTagsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int DescribeTagsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void DescribeTagsRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int DescribeTagsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::vector<DescribeTagsRequest::Tag> DescribeTagsRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
void DescribeTagsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
std::vector<DescribeTagsRequest::Tag> DescribeTagsRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
std::string DescribeTagsRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void DescribeTagsRequest::setTag(const std::vector<DescribeTagsRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string DescribeTagsRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/nas/model/DescribeZonesRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeZonesRequest;
|
||||
|
||||
DescribeZonesRequest::DescribeZonesRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DescribeZones")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeZonesRequest::~DescribeZonesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeZonesRequest::getFileSystemType()const
|
||||
{
|
||||
return fileSystemType_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DescribeZonesRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DescribeZonesRequest;
|
||||
|
||||
DescribeZonesRequest::DescribeZonesRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DescribeZones") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeZonesRequest::setFileSystemType(const std::string& fileSystemType)
|
||||
{
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter("FileSystemType", fileSystemType);
|
||||
DescribeZonesRequest::~DescribeZonesRequest() {}
|
||||
|
||||
std::string DescribeZonesRequest::getFileSystemType() const {
|
||||
return fileSystemType_;
|
||||
}
|
||||
|
||||
std::string DescribeZonesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void DescribeZonesRequest::setFileSystemType(const std::string &fileSystemType) {
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter(std::string("FileSystemType"), fileSystemType);
|
||||
}
|
||||
|
||||
void DescribeZonesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string DescribeZonesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeZonesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* 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/nas/model/DisableAndCleanRecycleBinRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DisableAndCleanRecycleBinRequest;
|
||||
|
||||
DisableAndCleanRecycleBinRequest::DisableAndCleanRecycleBinRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DisableAndCleanRecycleBin")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DisableAndCleanRecycleBinRequest::~DisableAndCleanRecycleBinRequest()
|
||||
{}
|
||||
|
||||
std::string DisableAndCleanRecycleBinRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DisableAndCleanRecycleBinRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DisableAndCleanRecycleBinRequest;
|
||||
|
||||
DisableAndCleanRecycleBinRequest::DisableAndCleanRecycleBinRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DisableAndCleanRecycleBin") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void DisableAndCleanRecycleBinRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
DisableAndCleanRecycleBinRequest::~DisableAndCleanRecycleBinRequest() {}
|
||||
|
||||
std::string DisableAndCleanRecycleBinRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
void DisableAndCleanRecycleBinRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* 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/nas/model/DisableSmbAclRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DisableSmbAclRequest;
|
||||
|
||||
DisableSmbAclRequest::DisableSmbAclRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "DisableSmbAcl")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DisableSmbAclRequest::~DisableSmbAclRequest()
|
||||
{}
|
||||
|
||||
std::string DisableSmbAclRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/DisableSmbAclRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::DisableSmbAclRequest;
|
||||
|
||||
DisableSmbAclRequest::DisableSmbAclRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "DisableSmbAcl") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DisableSmbAclRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
DisableSmbAclRequest::~DisableSmbAclRequest() {}
|
||||
|
||||
std::string DisableSmbAclRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
void DisableSmbAclRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/nas/model/EnableRecycleBinRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::EnableRecycleBinRequest;
|
||||
|
||||
EnableRecycleBinRequest::EnableRecycleBinRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "EnableRecycleBin")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EnableRecycleBinRequest::~EnableRecycleBinRequest()
|
||||
{}
|
||||
|
||||
std::string EnableRecycleBinRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/EnableRecycleBinRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::EnableRecycleBinRequest;
|
||||
|
||||
EnableRecycleBinRequest::EnableRecycleBinRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "EnableRecycleBin") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void EnableRecycleBinRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
EnableRecycleBinRequest::~EnableRecycleBinRequest() {}
|
||||
|
||||
std::string EnableRecycleBinRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
long EnableRecycleBinRequest::getReservedDays()const
|
||||
{
|
||||
return reservedDays_;
|
||||
void EnableRecycleBinRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
void EnableRecycleBinRequest::setReservedDays(long reservedDays)
|
||||
{
|
||||
reservedDays_ = reservedDays;
|
||||
setParameter("ReservedDays", std::to_string(reservedDays));
|
||||
long EnableRecycleBinRequest::getReservedDays() const {
|
||||
return reservedDays_;
|
||||
}
|
||||
|
||||
void EnableRecycleBinRequest::setReservedDays(long reservedDays) {
|
||||
reservedDays_ = reservedDays;
|
||||
setParameter(std::string("ReservedDays"), std::to_string(reservedDays));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/EnableSmbAclRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::EnableSmbAclRequest;
|
||||
|
||||
EnableSmbAclRequest::EnableSmbAclRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "EnableSmbAcl")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EnableSmbAclRequest::~EnableSmbAclRequest()
|
||||
{}
|
||||
|
||||
std::string EnableSmbAclRequest::getKeytab()const
|
||||
{
|
||||
return keytab_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/EnableSmbAclRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::EnableSmbAclRequest;
|
||||
|
||||
EnableSmbAclRequest::EnableSmbAclRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "EnableSmbAcl") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void EnableSmbAclRequest::setKeytab(const std::string& keytab)
|
||||
{
|
||||
keytab_ = keytab;
|
||||
setParameter("Keytab", keytab);
|
||||
EnableSmbAclRequest::~EnableSmbAclRequest() {}
|
||||
|
||||
std::string EnableSmbAclRequest::getKeytab() const {
|
||||
return keytab_;
|
||||
}
|
||||
|
||||
std::string EnableSmbAclRequest::getKeytabMd5()const
|
||||
{
|
||||
return keytabMd5_;
|
||||
void EnableSmbAclRequest::setKeytab(const std::string &keytab) {
|
||||
keytab_ = keytab;
|
||||
setParameter(std::string("Keytab"), keytab);
|
||||
}
|
||||
|
||||
void EnableSmbAclRequest::setKeytabMd5(const std::string& keytabMd5)
|
||||
{
|
||||
keytabMd5_ = keytabMd5;
|
||||
setParameter("KeytabMd5", keytabMd5);
|
||||
std::string EnableSmbAclRequest::getKeytabMd5() const {
|
||||
return keytabMd5_;
|
||||
}
|
||||
|
||||
std::string EnableSmbAclRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void EnableSmbAclRequest::setKeytabMd5(const std::string &keytabMd5) {
|
||||
keytabMd5_ = keytabMd5;
|
||||
setParameter(std::string("KeytabMd5"), keytabMd5);
|
||||
}
|
||||
|
||||
void EnableSmbAclRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string EnableSmbAclRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
void EnableSmbAclRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/nas/model/GetDirectoryOrFilePropertiesRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::GetDirectoryOrFilePropertiesRequest;
|
||||
|
||||
GetDirectoryOrFilePropertiesRequest::GetDirectoryOrFilePropertiesRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "GetDirectoryOrFileProperties")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDirectoryOrFilePropertiesRequest::~GetDirectoryOrFilePropertiesRequest()
|
||||
{}
|
||||
|
||||
std::string GetDirectoryOrFilePropertiesRequest::getPath()const
|
||||
{
|
||||
return path_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/GetDirectoryOrFilePropertiesRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::GetDirectoryOrFilePropertiesRequest;
|
||||
|
||||
GetDirectoryOrFilePropertiesRequest::GetDirectoryOrFilePropertiesRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "GetDirectoryOrFileProperties") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetDirectoryOrFilePropertiesRequest::setPath(const std::string& path)
|
||||
{
|
||||
path_ = path;
|
||||
setParameter("Path", path);
|
||||
GetDirectoryOrFilePropertiesRequest::~GetDirectoryOrFilePropertiesRequest() {}
|
||||
|
||||
std::string GetDirectoryOrFilePropertiesRequest::getPath() const {
|
||||
return path_;
|
||||
}
|
||||
|
||||
std::string GetDirectoryOrFilePropertiesRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void GetDirectoryOrFilePropertiesRequest::setPath(const std::string &path) {
|
||||
path_ = path;
|
||||
setParameter(std::string("Path"), path);
|
||||
}
|
||||
|
||||
void GetDirectoryOrFilePropertiesRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string GetDirectoryOrFilePropertiesRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
void GetDirectoryOrFilePropertiesRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,24 +42,24 @@ void GetDirectoryOrFilePropertiesResult::parse(const std::string &payload)
|
||||
auto entryNode = value["Entry"];
|
||||
if(!entryNode["Type"].isNull())
|
||||
entry_.type = entryNode["Type"].asString();
|
||||
if(!entryNode["Inode"].isNull())
|
||||
entry_.inode = entryNode["Inode"].asString();
|
||||
if(!entryNode["StorageType"].isNull())
|
||||
entry_.storageType = entryNode["StorageType"].asString();
|
||||
if(!entryNode["HasInfrequentAccessFile"].isNull())
|
||||
entry_.hasInfrequentAccessFile = entryNode["HasInfrequentAccessFile"].asString() == "true";
|
||||
if(!entryNode["MTime"].isNull())
|
||||
entry_.mTime = entryNode["MTime"].asString();
|
||||
if(!entryNode["ATime"].isNull())
|
||||
entry_.aTime = entryNode["ATime"].asString();
|
||||
if(!entryNode["Size"].isNull())
|
||||
entry_.size = std::stol(entryNode["Size"].asString());
|
||||
if(!entryNode["HasInfrequentAccessFile"].isNull())
|
||||
entry_.hasInfrequentAccessFile = entryNode["HasInfrequentAccessFile"].asString() == "true";
|
||||
if(!entryNode["CTime"].isNull())
|
||||
entry_.cTime = entryNode["CTime"].asString();
|
||||
if(!entryNode["RetrieveTime"].isNull())
|
||||
entry_.retrieveTime = entryNode["RetrieveTime"].asString();
|
||||
if(!entryNode["MTime"].isNull())
|
||||
entry_.mTime = entryNode["MTime"].asString();
|
||||
if(!entryNode["StorageType"].isNull())
|
||||
entry_.storageType = entryNode["StorageType"].asString();
|
||||
if(!entryNode["Name"].isNull())
|
||||
entry_.name = entryNode["Name"].asString();
|
||||
if(!entryNode["RetrieveTime"].isNull())
|
||||
entry_.retrieveTime = entryNode["RetrieveTime"].asString();
|
||||
if(!entryNode["Inode"].isNull())
|
||||
entry_.inode = entryNode["Inode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* 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/nas/model/GetRecycleBinAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::GetRecycleBinAttributeRequest;
|
||||
|
||||
GetRecycleBinAttributeRequest::GetRecycleBinAttributeRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "GetRecycleBinAttribute")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetRecycleBinAttributeRequest::~GetRecycleBinAttributeRequest()
|
||||
{}
|
||||
|
||||
std::string GetRecycleBinAttributeRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/GetRecycleBinAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::GetRecycleBinAttributeRequest;
|
||||
|
||||
GetRecycleBinAttributeRequest::GetRecycleBinAttributeRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "GetRecycleBinAttribute") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void GetRecycleBinAttributeRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
GetRecycleBinAttributeRequest::~GetRecycleBinAttributeRequest() {}
|
||||
|
||||
std::string GetRecycleBinAttributeRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
void GetRecycleBinAttributeRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,95 +1,81 @@
|
||||
/*
|
||||
* 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/nas/model/ListDirectoriesAndFilesRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::ListDirectoriesAndFilesRequest;
|
||||
|
||||
ListDirectoriesAndFilesRequest::ListDirectoriesAndFilesRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "ListDirectoriesAndFiles")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDirectoriesAndFilesRequest::~ListDirectoriesAndFilesRequest()
|
||||
{}
|
||||
|
||||
bool ListDirectoriesAndFilesRequest::getDirectoryOnly()const
|
||||
{
|
||||
return directoryOnly_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/ListDirectoriesAndFilesRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::ListDirectoriesAndFilesRequest;
|
||||
|
||||
ListDirectoriesAndFilesRequest::ListDirectoriesAndFilesRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "ListDirectoriesAndFiles") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListDirectoriesAndFilesRequest::setDirectoryOnly(bool directoryOnly)
|
||||
{
|
||||
directoryOnly_ = directoryOnly;
|
||||
setParameter("DirectoryOnly", directoryOnly ? "true" : "false");
|
||||
ListDirectoriesAndFilesRequest::~ListDirectoriesAndFilesRequest() {}
|
||||
|
||||
bool ListDirectoriesAndFilesRequest::getDirectoryOnly() const {
|
||||
return directoryOnly_;
|
||||
}
|
||||
|
||||
std::string ListDirectoriesAndFilesRequest::getStorageType()const
|
||||
{
|
||||
return storageType_;
|
||||
void ListDirectoriesAndFilesRequest::setDirectoryOnly(bool directoryOnly) {
|
||||
directoryOnly_ = directoryOnly;
|
||||
setParameter(std::string("DirectoryOnly"), directoryOnly ? "true" : "false");
|
||||
}
|
||||
|
||||
void ListDirectoriesAndFilesRequest::setStorageType(const std::string& storageType)
|
||||
{
|
||||
storageType_ = storageType;
|
||||
setParameter("StorageType", storageType);
|
||||
std::string ListDirectoriesAndFilesRequest::getStorageType() const {
|
||||
return storageType_;
|
||||
}
|
||||
|
||||
std::string ListDirectoriesAndFilesRequest::getPath()const
|
||||
{
|
||||
return path_;
|
||||
void ListDirectoriesAndFilesRequest::setStorageType(const std::string &storageType) {
|
||||
storageType_ = storageType;
|
||||
setParameter(std::string("StorageType"), storageType);
|
||||
}
|
||||
|
||||
void ListDirectoriesAndFilesRequest::setPath(const std::string& path)
|
||||
{
|
||||
path_ = path;
|
||||
setParameter("Path", path);
|
||||
std::string ListDirectoriesAndFilesRequest::getPath() const {
|
||||
return path_;
|
||||
}
|
||||
|
||||
std::string ListDirectoriesAndFilesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void ListDirectoriesAndFilesRequest::setPath(const std::string &path) {
|
||||
path_ = path;
|
||||
setParameter(std::string("Path"), path);
|
||||
}
|
||||
|
||||
void ListDirectoriesAndFilesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string ListDirectoriesAndFilesRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string ListDirectoriesAndFilesRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void ListDirectoriesAndFilesRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListDirectoriesAndFilesRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string ListDirectoriesAndFilesRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
long ListDirectoriesAndFilesRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void ListDirectoriesAndFilesRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
void ListDirectoriesAndFilesRequest::setMaxResults(long maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
long ListDirectoriesAndFilesRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListDirectoriesAndFilesRequest::setMaxResults(long maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +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/nas/model/ListLifecycleRetrieveJobsRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::ListLifecycleRetrieveJobsRequest;
|
||||
|
||||
ListLifecycleRetrieveJobsRequest::ListLifecycleRetrieveJobsRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "ListLifecycleRetrieveJobs")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListLifecycleRetrieveJobsRequest::~ListLifecycleRetrieveJobsRequest()
|
||||
{}
|
||||
|
||||
int ListLifecycleRetrieveJobsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/ListLifecycleRetrieveJobsRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::ListLifecycleRetrieveJobsRequest;
|
||||
|
||||
ListLifecycleRetrieveJobsRequest::ListLifecycleRetrieveJobsRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "ListLifecycleRetrieveJobs") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListLifecycleRetrieveJobsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
ListLifecycleRetrieveJobsRequest::~ListLifecycleRetrieveJobsRequest() {}
|
||||
|
||||
int ListLifecycleRetrieveJobsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int ListLifecycleRetrieveJobsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void ListLifecycleRetrieveJobsRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
void ListLifecycleRetrieveJobsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int ListLifecycleRetrieveJobsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string ListLifecycleRetrieveJobsRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void ListLifecycleRetrieveJobsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void ListLifecycleRetrieveJobsRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string ListLifecycleRetrieveJobsRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
std::string ListLifecycleRetrieveJobsRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
void ListLifecycleRetrieveJobsRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
void ListLifecycleRetrieveJobsRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status);
|
||||
std::string ListLifecycleRetrieveJobsRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void ListLifecycleRetrieveJobsRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,20 +43,20 @@ void ListLifecycleRetrieveJobsResult::parse(const std::string &payload)
|
||||
for (auto valueLifecycleRetrieveJobsLifecycleRetrieveJob : allLifecycleRetrieveJobsNode)
|
||||
{
|
||||
LifecycleRetrieveJob lifecycleRetrieveJobsObject;
|
||||
if(!valueLifecycleRetrieveJobsLifecycleRetrieveJob["Status"].isNull())
|
||||
lifecycleRetrieveJobsObject.status = valueLifecycleRetrieveJobsLifecycleRetrieveJob["Status"].asString();
|
||||
if(!valueLifecycleRetrieveJobsLifecycleRetrieveJob["CreateTime"].isNull())
|
||||
lifecycleRetrieveJobsObject.createTime = valueLifecycleRetrieveJobsLifecycleRetrieveJob["CreateTime"].asString();
|
||||
if(!valueLifecycleRetrieveJobsLifecycleRetrieveJob["RetrievedFileCount"].isNull())
|
||||
lifecycleRetrieveJobsObject.retrievedFileCount = std::stol(valueLifecycleRetrieveJobsLifecycleRetrieveJob["RetrievedFileCount"].asString());
|
||||
if(!valueLifecycleRetrieveJobsLifecycleRetrieveJob["UpdateTime"].isNull())
|
||||
lifecycleRetrieveJobsObject.updateTime = valueLifecycleRetrieveJobsLifecycleRetrieveJob["UpdateTime"].asString();
|
||||
if(!valueLifecycleRetrieveJobsLifecycleRetrieveJob["FileSystemId"].isNull())
|
||||
lifecycleRetrieveJobsObject.fileSystemId = valueLifecycleRetrieveJobsLifecycleRetrieveJob["FileSystemId"].asString();
|
||||
if(!valueLifecycleRetrieveJobsLifecycleRetrieveJob["JobId"].isNull())
|
||||
lifecycleRetrieveJobsObject.jobId = valueLifecycleRetrieveJobsLifecycleRetrieveJob["JobId"].asString();
|
||||
if(!valueLifecycleRetrieveJobsLifecycleRetrieveJob["Status"].isNull())
|
||||
lifecycleRetrieveJobsObject.status = valueLifecycleRetrieveJobsLifecycleRetrieveJob["Status"].asString();
|
||||
if(!valueLifecycleRetrieveJobsLifecycleRetrieveJob["DiscoveredFileCount"].isNull())
|
||||
lifecycleRetrieveJobsObject.discoveredFileCount = std::stol(valueLifecycleRetrieveJobsLifecycleRetrieveJob["DiscoveredFileCount"].asString());
|
||||
if(!valueLifecycleRetrieveJobsLifecycleRetrieveJob["UpdateTime"].isNull())
|
||||
lifecycleRetrieveJobsObject.updateTime = valueLifecycleRetrieveJobsLifecycleRetrieveJob["UpdateTime"].asString();
|
||||
if(!valueLifecycleRetrieveJobsLifecycleRetrieveJob["RetrievedFileCount"].isNull())
|
||||
lifecycleRetrieveJobsObject.retrievedFileCount = std::stol(valueLifecycleRetrieveJobsLifecycleRetrieveJob["RetrievedFileCount"].asString());
|
||||
if(!valueLifecycleRetrieveJobsLifecycleRetrieveJob["JobId"].isNull())
|
||||
lifecycleRetrieveJobsObject.jobId = valueLifecycleRetrieveJobsLifecycleRetrieveJob["JobId"].asString();
|
||||
if(!valueLifecycleRetrieveJobsLifecycleRetrieveJob["CreateTime"].isNull())
|
||||
lifecycleRetrieveJobsObject.createTime = valueLifecycleRetrieveJobsLifecycleRetrieveJob["CreateTime"].asString();
|
||||
auto allPaths = value["Paths"]["Path"];
|
||||
for (auto value : allPaths)
|
||||
lifecycleRetrieveJobsObject.paths.push_back(value.asString());
|
||||
|
||||
@@ -1,62 +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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/ListRecentlyRecycledDirectoriesRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::ListRecentlyRecycledDirectoriesRequest;
|
||||
|
||||
ListRecentlyRecycledDirectoriesRequest::ListRecentlyRecycledDirectoriesRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "ListRecentlyRecycledDirectories")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListRecentlyRecycledDirectoriesRequest::~ListRecentlyRecycledDirectoriesRequest()
|
||||
{}
|
||||
|
||||
std::string ListRecentlyRecycledDirectoriesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/ListRecentlyRecycledDirectoriesRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::ListRecentlyRecycledDirectoriesRequest;
|
||||
|
||||
ListRecentlyRecycledDirectoriesRequest::ListRecentlyRecycledDirectoriesRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "ListRecentlyRecycledDirectories") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void ListRecentlyRecycledDirectoriesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
ListRecentlyRecycledDirectoriesRequest::~ListRecentlyRecycledDirectoriesRequest() {}
|
||||
|
||||
std::string ListRecentlyRecycledDirectoriesRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string ListRecentlyRecycledDirectoriesRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void ListRecentlyRecycledDirectoriesRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListRecentlyRecycledDirectoriesRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string ListRecentlyRecycledDirectoriesRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
long ListRecentlyRecycledDirectoriesRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void ListRecentlyRecycledDirectoriesRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
void ListRecentlyRecycledDirectoriesRequest::setMaxResults(long maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
long ListRecentlyRecycledDirectoriesRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListRecentlyRecycledDirectoriesRequest::setMaxResults(long maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/ListRecycleBinJobsRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::ListRecycleBinJobsRequest;
|
||||
|
||||
ListRecycleBinJobsRequest::ListRecycleBinJobsRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "ListRecycleBinJobs")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListRecycleBinJobsRequest::~ListRecycleBinJobsRequest()
|
||||
{}
|
||||
|
||||
long ListRecycleBinJobsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/ListRecycleBinJobsRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::ListRecycleBinJobsRequest;
|
||||
|
||||
ListRecycleBinJobsRequest::ListRecycleBinJobsRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "ListRecycleBinJobs") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void ListRecycleBinJobsRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
ListRecycleBinJobsRequest::~ListRecycleBinJobsRequest() {}
|
||||
|
||||
long ListRecycleBinJobsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string ListRecycleBinJobsRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
void ListRecycleBinJobsRequest::setPageNumber(long pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
void ListRecycleBinJobsRequest::setJobId(const std::string& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setParameter("JobId", jobId);
|
||||
std::string ListRecycleBinJobsRequest::getJobId() const {
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
long ListRecycleBinJobsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void ListRecycleBinJobsRequest::setJobId(const std::string &jobId) {
|
||||
jobId_ = jobId;
|
||||
setParameter(std::string("JobId"), jobId);
|
||||
}
|
||||
|
||||
void ListRecycleBinJobsRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
long ListRecycleBinJobsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string ListRecycleBinJobsRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void ListRecycleBinJobsRequest::setPageSize(long pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void ListRecycleBinJobsRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string ListRecycleBinJobsRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
std::string ListRecycleBinJobsRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
void ListRecycleBinJobsRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
void ListRecycleBinJobsRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status);
|
||||
std::string ListRecycleBinJobsRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void ListRecycleBinJobsRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +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/nas/model/ListRecycledDirectoriesAndFilesRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::ListRecycledDirectoriesAndFilesRequest;
|
||||
|
||||
ListRecycledDirectoriesAndFilesRequest::ListRecycledDirectoriesAndFilesRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "ListRecycledDirectoriesAndFiles")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListRecycledDirectoriesAndFilesRequest::~ListRecycledDirectoriesAndFilesRequest()
|
||||
{}
|
||||
|
||||
std::string ListRecycledDirectoriesAndFilesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/ListRecycledDirectoriesAndFilesRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::ListRecycledDirectoriesAndFilesRequest;
|
||||
|
||||
ListRecycledDirectoriesAndFilesRequest::ListRecycledDirectoriesAndFilesRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "ListRecycledDirectoriesAndFiles") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void ListRecycledDirectoriesAndFilesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
ListRecycledDirectoriesAndFilesRequest::~ListRecycledDirectoriesAndFilesRequest() {}
|
||||
|
||||
std::string ListRecycledDirectoriesAndFilesRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string ListRecycledDirectoriesAndFilesRequest::getFileSystemId()const
|
||||
{
|
||||
return fileSystemId_;
|
||||
void ListRecycledDirectoriesAndFilesRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListRecycledDirectoriesAndFilesRequest::setFileSystemId(const std::string& fileSystemId)
|
||||
{
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter("FileSystemId", fileSystemId);
|
||||
std::string ListRecycledDirectoriesAndFilesRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
std::string ListRecycledDirectoriesAndFilesRequest::getFileId()const
|
||||
{
|
||||
return fileId_;
|
||||
void ListRecycledDirectoriesAndFilesRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
void ListRecycledDirectoriesAndFilesRequest::setFileId(const std::string& fileId)
|
||||
{
|
||||
fileId_ = fileId;
|
||||
setParameter("FileId", fileId);
|
||||
std::string ListRecycledDirectoriesAndFilesRequest::getFileId() const {
|
||||
return fileId_;
|
||||
}
|
||||
|
||||
long ListRecycledDirectoriesAndFilesRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void ListRecycledDirectoriesAndFilesRequest::setFileId(const std::string &fileId) {
|
||||
fileId_ = fileId;
|
||||
setParameter(std::string("FileId"), fileId);
|
||||
}
|
||||
|
||||
void ListRecycledDirectoriesAndFilesRequest::setMaxResults(long maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
long ListRecycledDirectoriesAndFilesRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListRecycledDirectoriesAndFilesRequest::setMaxResults(long maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,80 +1,67 @@
|
||||
/*
|
||||
* 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/nas/model/ListTagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::ListTagResourcesRequest;
|
||||
|
||||
ListTagResourcesRequest::ListTagResourcesRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "ListTagResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTagResourcesRequest::~ListTagResourcesRequest()
|
||||
{}
|
||||
|
||||
std::string ListTagResourcesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/ListTagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::ListTagResourcesRequest;
|
||||
|
||||
ListTagResourcesRequest::ListTagResourcesRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "ListTagResources") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
ListTagResourcesRequest::~ListTagResourcesRequest() {}
|
||||
|
||||
std::string ListTagResourcesRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::vector<ListTagResourcesRequest::Tag> ListTagResourcesRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
void ListTagResourcesRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
std::vector<ListTagResourcesRequest::Tag> ListTagResourcesRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
std::vector<std::string> ListTagResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
void ListTagResourcesRequest::setTag(const std::vector<ListTagResourcesRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
|
||||
setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
|
||||
}
|
||||
std::vector<std::string> ListTagResourcesRequest::getResourceId() const {
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
void ListTagResourcesRequest::setResourceId(const std::vector<std::string> &resourceId) {
|
||||
resourceId_ = resourceId;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
std::string ListTagResourcesRequest::getResourceType() const {
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceType(const std::string &resourceType) {
|
||||
resourceType_ = resourceType;
|
||||
setParameter(std::string("ResourceType"), resourceType);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,14 +43,14 @@ void ListTagResourcesResult::parse(const std::string &payload)
|
||||
for (auto valueTagResourcesTagResource : allTagResourcesNode)
|
||||
{
|
||||
TagResource tagResourcesObject;
|
||||
if(!valueTagResourcesTagResource["ResourceId"].isNull())
|
||||
tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString();
|
||||
if(!valueTagResourcesTagResource["ResourceType"].isNull())
|
||||
tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString();
|
||||
if(!valueTagResourcesTagResource["TagKey"].isNull())
|
||||
tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString();
|
||||
if(!valueTagResourcesTagResource["TagValue"].isNull())
|
||||
tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString();
|
||||
if(!valueTagResourcesTagResource["ResourceId"].isNull())
|
||||
tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString();
|
||||
if(!valueTagResourcesTagResource["TagKey"].isNull())
|
||||
tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString();
|
||||
tagResources_.push_back(tagResourcesObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
|
||||
@@ -1,62 +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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/ModifyAccessGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::ModifyAccessGroupRequest;
|
||||
|
||||
ModifyAccessGroupRequest::ModifyAccessGroupRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "ModifyAccessGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyAccessGroupRequest::~ModifyAccessGroupRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyAccessGroupRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/ModifyAccessGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::ModifyAccessGroupRequest;
|
||||
|
||||
ModifyAccessGroupRequest::ModifyAccessGroupRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "ModifyAccessGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ModifyAccessGroupRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
ModifyAccessGroupRequest::~ModifyAccessGroupRequest() {}
|
||||
|
||||
std::string ModifyAccessGroupRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string ModifyAccessGroupRequest::getFileSystemType()const
|
||||
{
|
||||
return fileSystemType_;
|
||||
void ModifyAccessGroupRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
void ModifyAccessGroupRequest::setFileSystemType(const std::string& fileSystemType)
|
||||
{
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter("FileSystemType", fileSystemType);
|
||||
std::string ModifyAccessGroupRequest::getFileSystemType() const {
|
||||
return fileSystemType_;
|
||||
}
|
||||
|
||||
std::string ModifyAccessGroupRequest::getAccessGroupName()const
|
||||
{
|
||||
return accessGroupName_;
|
||||
void ModifyAccessGroupRequest::setFileSystemType(const std::string &fileSystemType) {
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter(std::string("FileSystemType"), fileSystemType);
|
||||
}
|
||||
|
||||
void ModifyAccessGroupRequest::setAccessGroupName(const std::string& accessGroupName)
|
||||
{
|
||||
accessGroupName_ = accessGroupName;
|
||||
setParameter("AccessGroupName", accessGroupName);
|
||||
std::string ModifyAccessGroupRequest::getAccessGroupName() const {
|
||||
return accessGroupName_;
|
||||
}
|
||||
|
||||
void ModifyAccessGroupRequest::setAccessGroupName(const std::string &accessGroupName) {
|
||||
accessGroupName_ = accessGroupName;
|
||||
setParameter(std::string("AccessGroupName"), accessGroupName);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,117 +1,99 @@
|
||||
/*
|
||||
* 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/nas/model/ModifyAccessRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::ModifyAccessRuleRequest;
|
||||
|
||||
ModifyAccessRuleRequest::ModifyAccessRuleRequest() :
|
||||
RpcServiceRequest("nas", "2017-06-26", "ModifyAccessRule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyAccessRuleRequest::~ModifyAccessRuleRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyAccessRuleRequest::getRWAccessType()const
|
||||
{
|
||||
return rWAccessType_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nas/model/ModifyAccessRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::NAS::Model::ModifyAccessRuleRequest;
|
||||
|
||||
ModifyAccessRuleRequest::ModifyAccessRuleRequest()
|
||||
: RpcServiceRequest("nas", "2017-06-26", "ModifyAccessRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ModifyAccessRuleRequest::setRWAccessType(const std::string& rWAccessType)
|
||||
{
|
||||
rWAccessType_ = rWAccessType;
|
||||
setParameter("RWAccessType", rWAccessType);
|
||||
ModifyAccessRuleRequest::~ModifyAccessRuleRequest() {}
|
||||
|
||||
std::string ModifyAccessRuleRequest::getRWAccessType() const {
|
||||
return rWAccessType_;
|
||||
}
|
||||
|
||||
std::string ModifyAccessRuleRequest::getUserAccessType()const
|
||||
{
|
||||
return userAccessType_;
|
||||
void ModifyAccessRuleRequest::setRWAccessType(const std::string &rWAccessType) {
|
||||
rWAccessType_ = rWAccessType;
|
||||
setParameter(std::string("RWAccessType"), rWAccessType);
|
||||
}
|
||||
|
||||
void ModifyAccessRuleRequest::setUserAccessType(const std::string& userAccessType)
|
||||
{
|
||||
userAccessType_ = userAccessType;
|
||||
setParameter("UserAccessType", userAccessType);
|
||||
std::string ModifyAccessRuleRequest::getUserAccessType() const {
|
||||
return userAccessType_;
|
||||
}
|
||||
|
||||
std::string ModifyAccessRuleRequest::getFileSystemType()const
|
||||
{
|
||||
return fileSystemType_;
|
||||
void ModifyAccessRuleRequest::setUserAccessType(const std::string &userAccessType) {
|
||||
userAccessType_ = userAccessType;
|
||||
setParameter(std::string("UserAccessType"), userAccessType);
|
||||
}
|
||||
|
||||
void ModifyAccessRuleRequest::setFileSystemType(const std::string& fileSystemType)
|
||||
{
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter("FileSystemType", fileSystemType);
|
||||
std::string ModifyAccessRuleRequest::getFileSystemType() const {
|
||||
return fileSystemType_;
|
||||
}
|
||||
|
||||
std::string ModifyAccessRuleRequest::getAccessRuleId()const
|
||||
{
|
||||
return accessRuleId_;
|
||||
void ModifyAccessRuleRequest::setFileSystemType(const std::string &fileSystemType) {
|
||||
fileSystemType_ = fileSystemType;
|
||||
setParameter(std::string("FileSystemType"), fileSystemType);
|
||||
}
|
||||
|
||||
void ModifyAccessRuleRequest::setAccessRuleId(const std::string& accessRuleId)
|
||||
{
|
||||
accessRuleId_ = accessRuleId;
|
||||
setParameter("AccessRuleId", accessRuleId);
|
||||
std::string ModifyAccessRuleRequest::getAccessRuleId() const {
|
||||
return accessRuleId_;
|
||||
}
|
||||
|
||||
std::string ModifyAccessRuleRequest::getIpv6SourceCidrIp()const
|
||||
{
|
||||
return ipv6SourceCidrIp_;
|
||||
void ModifyAccessRuleRequest::setAccessRuleId(const std::string &accessRuleId) {
|
||||
accessRuleId_ = accessRuleId;
|
||||
setParameter(std::string("AccessRuleId"), accessRuleId);
|
||||
}
|
||||
|
||||
void ModifyAccessRuleRequest::setIpv6SourceCidrIp(const std::string& ipv6SourceCidrIp)
|
||||
{
|
||||
ipv6SourceCidrIp_ = ipv6SourceCidrIp;
|
||||
setParameter("Ipv6SourceCidrIp", ipv6SourceCidrIp);
|
||||
std::string ModifyAccessRuleRequest::getIpv6SourceCidrIp() const {
|
||||
return ipv6SourceCidrIp_;
|
||||
}
|
||||
|
||||
std::string ModifyAccessRuleRequest::getSourceCidrIp()const
|
||||
{
|
||||
return sourceCidrIp_;
|
||||
void ModifyAccessRuleRequest::setIpv6SourceCidrIp(const std::string &ipv6SourceCidrIp) {
|
||||
ipv6SourceCidrIp_ = ipv6SourceCidrIp;
|
||||
setParameter(std::string("Ipv6SourceCidrIp"), ipv6SourceCidrIp);
|
||||
}
|
||||
|
||||
void ModifyAccessRuleRequest::setSourceCidrIp(const std::string& sourceCidrIp)
|
||||
{
|
||||
sourceCidrIp_ = sourceCidrIp;
|
||||
setParameter("SourceCidrIp", sourceCidrIp);
|
||||
std::string ModifyAccessRuleRequest::getSourceCidrIp() const {
|
||||
return sourceCidrIp_;
|
||||
}
|
||||
|
||||
int ModifyAccessRuleRequest::getPriority()const
|
||||
{
|
||||
return priority_;
|
||||
void ModifyAccessRuleRequest::setSourceCidrIp(const std::string &sourceCidrIp) {
|
||||
sourceCidrIp_ = sourceCidrIp;
|
||||
setParameter(std::string("SourceCidrIp"), sourceCidrIp);
|
||||
}
|
||||
|
||||
void ModifyAccessRuleRequest::setPriority(int priority)
|
||||
{
|
||||
priority_ = priority;
|
||||
setParameter("Priority", std::to_string(priority));
|
||||
int ModifyAccessRuleRequest::getPriority() const {
|
||||
return priority_;
|
||||
}
|
||||
|
||||
std::string ModifyAccessRuleRequest::getAccessGroupName()const
|
||||
{
|
||||
return accessGroupName_;
|
||||
void ModifyAccessRuleRequest::setPriority(int priority) {
|
||||
priority_ = priority;
|
||||
setParameter(std::string("Priority"), std::to_string(priority));
|
||||
}
|
||||
|
||||
void ModifyAccessRuleRequest::setAccessGroupName(const std::string& accessGroupName)
|
||||
{
|
||||
accessGroupName_ = accessGroupName;
|
||||
setParameter("AccessGroupName", accessGroupName);
|
||||
std::string ModifyAccessRuleRequest::getAccessGroupName() const {
|
||||
return accessGroupName_;
|
||||
}
|
||||
|
||||
void ModifyAccessRuleRequest::setAccessGroupName(const std::string &accessGroupName) {
|
||||
accessGroupName_ = accessGroupName;
|
||||
setParameter(std::string("AccessGroupName"), accessGroupName);
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user