diff --git a/CHANGELOG b/CHANGELOG index 92a1e4968..5a6e3eb40 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2022-07-18 Version: 1.36.1183 +- Support Elastic Desktop Service. + 2022-07-18 Version: 1.36.1182 - Test. diff --git a/VERSION b/VERSION index 7f53125f7..d6d3bb12e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1182 \ No newline at end of file +1.36.1183 \ No newline at end of file diff --git a/nas/CMakeLists.txt b/nas/CMakeLists.txt index 8d9fbd499..60e0b26b4 100644 --- a/nas/CMakeLists.txt +++ b/nas/CMakeLists.txt @@ -51,6 +51,8 @@ set(nas_public_header_model include/alibabacloud/nas/model/CreateDataFlowResult.h include/alibabacloud/nas/model/CreateDataFlowTaskRequest.h include/alibabacloud/nas/model/CreateDataFlowTaskResult.h + include/alibabacloud/nas/model/CreateFileRequest.h + include/alibabacloud/nas/model/CreateFileResult.h include/alibabacloud/nas/model/CreateFileSystemRequest.h include/alibabacloud/nas/model/CreateFileSystemResult.h include/alibabacloud/nas/model/CreateFilesetRequest.h @@ -252,6 +254,8 @@ set(nas_src src/model/CreateDataFlowResult.cc src/model/CreateDataFlowTaskRequest.cc src/model/CreateDataFlowTaskResult.cc + src/model/CreateFileRequest.cc + src/model/CreateFileResult.cc src/model/CreateFileSystemRequest.cc src/model/CreateFileSystemResult.cc src/model/CreateFilesetRequest.cc diff --git a/nas/include/alibabacloud/nas/NASClient.h b/nas/include/alibabacloud/nas/NASClient.h index 3285bc6dc..b9e9d72b0 100644 --- a/nas/include/alibabacloud/nas/NASClient.h +++ b/nas/include/alibabacloud/nas/NASClient.h @@ -52,6 +52,8 @@ #include "model/CreateDataFlowResult.h" #include "model/CreateDataFlowTaskRequest.h" #include "model/CreateDataFlowTaskResult.h" +#include "model/CreateFileRequest.h" +#include "model/CreateFileResult.h" #include "model/CreateFileSystemRequest.h" #include "model/CreateFileSystemResult.h" #include "model/CreateFilesetRequest.h" @@ -274,6 +276,9 @@ namespace AlibabaCloud typedef Outcome CreateDataFlowTaskOutcome; typedef std::future CreateDataFlowTaskOutcomeCallable; typedef std::function&)> CreateDataFlowTaskAsyncHandler; + typedef Outcome CreateFileOutcome; + typedef std::future CreateFileOutcomeCallable; + typedef std::function&)> CreateFileAsyncHandler; typedef Outcome CreateFileSystemOutcome; typedef std::future CreateFileSystemOutcomeCallable; typedef std::function&)> CreateFileSystemAsyncHandler; @@ -576,6 +581,9 @@ namespace AlibabaCloud CreateDataFlowTaskOutcome createDataFlowTask(const Model::CreateDataFlowTaskRequest &request)const; void createDataFlowTaskAsync(const Model::CreateDataFlowTaskRequest& request, const CreateDataFlowTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDataFlowTaskOutcomeCallable createDataFlowTaskCallable(const Model::CreateDataFlowTaskRequest& request) const; + CreateFileOutcome createFile(const Model::CreateFileRequest &request)const; + void createFileAsync(const Model::CreateFileRequest& request, const CreateFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateFileOutcomeCallable createFileCallable(const Model::CreateFileRequest& request) const; CreateFileSystemOutcome createFileSystem(const Model::CreateFileSystemRequest &request)const; void createFileSystemAsync(const Model::CreateFileSystemRequest& request, const CreateFileSystemAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateFileSystemOutcomeCallable createFileSystemCallable(const Model::CreateFileSystemRequest& request) const; diff --git a/nas/include/alibabacloud/nas/model/CreateFileRequest.h b/nas/include/alibabacloud/nas/model/CreateFileRequest.h new file mode 100644 index 000000000..d98dcd36b --- /dev/null +++ b/nas/include/alibabacloud/nas/model/CreateFileRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NAS_MODEL_CREATEFILEREQUEST_H_ +#define ALIBABACLOUD_NAS_MODEL_CREATEFILEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace NAS { +namespace Model { +class ALIBABACLOUD_NAS_EXPORT CreateFileRequest : public RpcServiceRequest { +public: + CreateFileRequest(); + ~CreateFileRequest(); + bool getOwnerAccessInheritable() const; + void setOwnerAccessInheritable(bool ownerAccessInheritable); + std::string getType() const; + void setType(const std::string &type); + std::string getPath() const; + void setPath(const std::string &path); + std::string getFileSystemId() const; + void setFileSystemId(const std::string &fileSystemId); + std::string getOwner() const; + void setOwner(const std::string &owner); + +private: + bool ownerAccessInheritable_; + std::string type_; + std::string path_; + std::string fileSystemId_; + std::string owner_; +}; +} // namespace Model +} // namespace NAS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NAS_MODEL_CREATEFILEREQUEST_H_ diff --git a/nas/include/alibabacloud/nas/model/CreateFileResult.h b/nas/include/alibabacloud/nas/model/CreateFileResult.h new file mode 100644 index 000000000..85412e4d8 --- /dev/null +++ b/nas/include/alibabacloud/nas/model/CreateFileResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NAS_MODEL_CREATEFILERESULT_H_ +#define ALIBABACLOUD_NAS_MODEL_CREATEFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace NAS + { + namespace Model + { + class ALIBABACLOUD_NAS_EXPORT CreateFileResult : public ServiceResult + { + public: + + + CreateFileResult(); + explicit CreateFileResult(const std::string &payload); + ~CreateFileResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_NAS_MODEL_CREATEFILERESULT_H_ \ No newline at end of file diff --git a/nas/include/alibabacloud/nas/model/DescribeMountTargetsResult.h b/nas/include/alibabacloud/nas/model/DescribeMountTargetsResult.h index e02b50fad..e030f76ab 100644 --- a/nas/include/alibabacloud/nas/model/DescribeMountTargetsResult.h +++ b/nas/include/alibabacloud/nas/model/DescribeMountTargetsResult.h @@ -54,6 +54,7 @@ namespace AlibabaCloud std::string networkType; std::vector clientMasterNodes; std::vector tags; + std::string iPVersion; }; diff --git a/nas/include/alibabacloud/nas/model/DescribeSmbAclResult.h b/nas/include/alibabacloud/nas/model/DescribeSmbAclResult.h index b988f99be..7a8d5a058 100644 --- a/nas/include/alibabacloud/nas/model/DescribeSmbAclResult.h +++ b/nas/include/alibabacloud/nas/model/DescribeSmbAclResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { std::string homeDirPath; bool enableAnonymousAccess; + std::string authCenter; bool enabled; std::string superAdminSid; bool rejectUnencryptedAccess; diff --git a/nas/include/alibabacloud/nas/model/EnableSmbAclRequest.h b/nas/include/alibabacloud/nas/model/EnableSmbAclRequest.h index deee81661..a6c1d9d80 100644 --- a/nas/include/alibabacloud/nas/model/EnableSmbAclRequest.h +++ b/nas/include/alibabacloud/nas/model/EnableSmbAclRequest.h @@ -36,11 +36,17 @@ public: void setKeytabMd5(const std::string &keytabMd5); std::string getFileSystemId() const; void setFileSystemId(const std::string &fileSystemId); + std::string getAuthCenter() const; + void setAuthCenter(const std::string &authCenter); + std::string getAuthMethod() const; + void setAuthMethod(const std::string &authMethod); private: std::string keytab_; std::string keytabMd5_; std::string fileSystemId_; + std::string authCenter_; + std::string authMethod_; }; } // namespace Model } // namespace NAS diff --git a/nas/include/alibabacloud/nas/model/GetRecycleBinAttributeResult.h b/nas/include/alibabacloud/nas/model/GetRecycleBinAttributeResult.h index f629d007e..5c7f04c04 100644 --- a/nas/include/alibabacloud/nas/model/GetRecycleBinAttributeResult.h +++ b/nas/include/alibabacloud/nas/model/GetRecycleBinAttributeResult.h @@ -37,6 +37,7 @@ namespace AlibabaCloud std::string status; long reservedDays; long size; + long secondarySize; std::string enableTime; }; diff --git a/nas/include/alibabacloud/nas/model/ListDirectoriesAndFilesResult.h b/nas/include/alibabacloud/nas/model/ListDirectoriesAndFilesResult.h index 8e5d84527..c415dc80e 100644 --- a/nas/include/alibabacloud/nas/model/ListDirectoriesAndFilesResult.h +++ b/nas/include/alibabacloud/nas/model/ListDirectoriesAndFilesResult.h @@ -35,6 +35,7 @@ namespace AlibabaCloud struct Entry { std::string type; + std::string owner; std::string storageType; std::string inode; std::string atime; diff --git a/nas/include/alibabacloud/nas/model/ModifySmbAclRequest.h b/nas/include/alibabacloud/nas/model/ModifySmbAclRequest.h index 72e27747f..52a767f99 100644 --- a/nas/include/alibabacloud/nas/model/ModifySmbAclRequest.h +++ b/nas/include/alibabacloud/nas/model/ModifySmbAclRequest.h @@ -42,10 +42,14 @@ public: void setRejectUnencryptedAccess(bool rejectUnencryptedAccess); std::string getFileSystemId() const; void setFileSystemId(const std::string &fileSystemId); + std::string getAuthCenter() const; + void setAuthCenter(const std::string &authCenter); std::string getHomeDirPath() const; void setHomeDirPath(const std::string &homeDirPath); bool getEnableAnonymousAccess() const; void setEnableAnonymousAccess(bool enableAnonymousAccess); + std::string getAuthMethod() const; + void setAuthMethod(const std::string &authMethod); private: bool encryptData_; @@ -54,8 +58,10 @@ private: std::string keytabMd5_; bool rejectUnencryptedAccess_; std::string fileSystemId_; + std::string authCenter_; std::string homeDirPath_; bool enableAnonymousAccess_; + std::string authMethod_; }; } // namespace Model } // namespace NAS diff --git a/nas/src/NASClient.cc b/nas/src/NASClient.cc index 14c80f2a7..9db109f0b 100644 --- a/nas/src/NASClient.cc +++ b/nas/src/NASClient.cc @@ -31,21 +31,21 @@ NASClient::NASClient(const Credentials &credentials, const ClientConfiguration & RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "nas"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "NAS"); } NASClient::NASClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "nas"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "NAS"); } NASClient::NASClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "nas"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "NAS"); } NASClient::~NASClient() @@ -591,6 +591,42 @@ NASClient::CreateDataFlowTaskOutcomeCallable NASClient::createDataFlowTaskCallab return task->get_future(); } +NASClient::CreateFileOutcome NASClient::createFile(const CreateFileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateFileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateFileOutcome(CreateFileResult(outcome.result())); + else + return CreateFileOutcome(outcome.error()); +} + +void NASClient::createFileAsync(const CreateFileRequest& request, const CreateFileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createFile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NASClient::CreateFileOutcomeCallable NASClient::createFileCallable(const CreateFileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createFile(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + NASClient::CreateFileSystemOutcome NASClient::createFileSystem(const CreateFileSystemRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/nas/src/model/CreateFileRequest.cc b/nas/src/model/CreateFileRequest.cc new file mode 100644 index 000000000..60864afb7 --- /dev/null +++ b/nas/src/model/CreateFileRequest.cc @@ -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 + +using AlibabaCloud::NAS::Model::CreateFileRequest; + +CreateFileRequest::CreateFileRequest() + : RpcServiceRequest("nas", "2017-06-26", "CreateFile") { + setMethod(HttpRequest::Method::Post); +} + +CreateFileRequest::~CreateFileRequest() {} + +bool CreateFileRequest::getOwnerAccessInheritable() const { + return ownerAccessInheritable_; +} + +void CreateFileRequest::setOwnerAccessInheritable(bool ownerAccessInheritable) { + ownerAccessInheritable_ = ownerAccessInheritable; + setParameter(std::string("OwnerAccessInheritable"), ownerAccessInheritable ? "true" : "false"); +} + +std::string CreateFileRequest::getType() const { + return type_; +} + +void CreateFileRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); +} + +std::string CreateFileRequest::getPath() const { + return path_; +} + +void CreateFileRequest::setPath(const std::string &path) { + path_ = path; + setParameter(std::string("Path"), path); +} + +std::string CreateFileRequest::getFileSystemId() const { + return fileSystemId_; +} + +void CreateFileRequest::setFileSystemId(const std::string &fileSystemId) { + fileSystemId_ = fileSystemId; + setParameter(std::string("FileSystemId"), fileSystemId); +} + +std::string CreateFileRequest::getOwner() const { + return owner_; +} + +void CreateFileRequest::setOwner(const std::string &owner) { + owner_ = owner; + setParameter(std::string("Owner"), owner); +} + diff --git a/nas/src/model/CreateFileResult.cc b/nas/src/model/CreateFileResult.cc new file mode 100644 index 000000000..eeff040f8 --- /dev/null +++ b/nas/src/model/CreateFileResult.cc @@ -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 +#include + +using namespace AlibabaCloud::NAS; +using namespace AlibabaCloud::NAS::Model; + +CreateFileResult::CreateFileResult() : + ServiceResult() +{} + +CreateFileResult::CreateFileResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateFileResult::~CreateFileResult() +{} + +void CreateFileResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/nas/src/model/DescribeMountTargetsResult.cc b/nas/src/model/DescribeMountTargetsResult.cc index 6a488d855..d5130cfd1 100644 --- a/nas/src/model/DescribeMountTargetsResult.cc +++ b/nas/src/model/DescribeMountTargetsResult.cc @@ -57,6 +57,8 @@ void DescribeMountTargetsResult::parse(const std::string &payload) mountTargetsObject.vswId = valueMountTargetsMountTarget["VswId"].asString(); if(!valueMountTargetsMountTarget["NetworkType"].isNull()) mountTargetsObject.networkType = valueMountTargetsMountTarget["NetworkType"].asString(); + if(!valueMountTargetsMountTarget["IPVersion"].isNull()) + mountTargetsObject.iPVersion = valueMountTargetsMountTarget["IPVersion"].asString(); auto allClientMasterNodesNode = valueMountTargetsMountTarget["ClientMasterNodes"]["ClientMasterNode"]; for (auto valueMountTargetsMountTargetClientMasterNodesClientMasterNode : allClientMasterNodesNode) { diff --git a/nas/src/model/DescribeSmbAclResult.cc b/nas/src/model/DescribeSmbAclResult.cc index e8dad0b45..378c69832 100644 --- a/nas/src/model/DescribeSmbAclResult.cc +++ b/nas/src/model/DescribeSmbAclResult.cc @@ -42,6 +42,8 @@ void DescribeSmbAclResult::parse(const std::string &payload) auto aclNode = value["Acl"]; if(!aclNode["AuthMethod"].isNull()) acl_.authMethod = aclNode["AuthMethod"].asString(); + if(!aclNode["AuthCenter"].isNull()) + acl_.authCenter = aclNode["AuthCenter"].asString(); if(!aclNode["EnableAnonymousAccess"].isNull()) acl_.enableAnonymousAccess = aclNode["EnableAnonymousAccess"].asString() == "true"; if(!aclNode["Enabled"].isNull()) diff --git a/nas/src/model/EnableSmbAclRequest.cc b/nas/src/model/EnableSmbAclRequest.cc index 52138a826..8d7ae6aa5 100644 --- a/nas/src/model/EnableSmbAclRequest.cc +++ b/nas/src/model/EnableSmbAclRequest.cc @@ -52,3 +52,21 @@ void EnableSmbAclRequest::setFileSystemId(const std::string &fileSystemId) { setParameter(std::string("FileSystemId"), fileSystemId); } +std::string EnableSmbAclRequest::getAuthCenter() const { + return authCenter_; +} + +void EnableSmbAclRequest::setAuthCenter(const std::string &authCenter) { + authCenter_ = authCenter; + setParameter(std::string("AuthCenter"), authCenter); +} + +std::string EnableSmbAclRequest::getAuthMethod() const { + return authMethod_; +} + +void EnableSmbAclRequest::setAuthMethod(const std::string &authMethod) { + authMethod_ = authMethod; + setParameter(std::string("AuthMethod"), authMethod); +} + diff --git a/nas/src/model/GetRecycleBinAttributeResult.cc b/nas/src/model/GetRecycleBinAttributeResult.cc index 75b5c8843..494877292 100644 --- a/nas/src/model/GetRecycleBinAttributeResult.cc +++ b/nas/src/model/GetRecycleBinAttributeResult.cc @@ -42,6 +42,8 @@ void GetRecycleBinAttributeResult::parse(const std::string &payload) auto recycleBinAttributeNode = value["RecycleBinAttribute"]; if(!recycleBinAttributeNode["Size"].isNull()) recycleBinAttribute_.size = std::stol(recycleBinAttributeNode["Size"].asString()); + if(!recycleBinAttributeNode["SecondarySize"].isNull()) + recycleBinAttribute_.secondarySize = std::stol(recycleBinAttributeNode["SecondarySize"].asString()); if(!recycleBinAttributeNode["Status"].isNull()) recycleBinAttribute_.status = recycleBinAttributeNode["Status"].asString(); if(!recycleBinAttributeNode["ReservedDays"].isNull()) diff --git a/nas/src/model/ListDirectoriesAndFilesResult.cc b/nas/src/model/ListDirectoriesAndFilesResult.cc index b6bd24862..4fe646644 100644 --- a/nas/src/model/ListDirectoriesAndFilesResult.cc +++ b/nas/src/model/ListDirectoriesAndFilesResult.cc @@ -65,6 +65,8 @@ void ListDirectoriesAndFilesResult::parse(const std::string &payload) entriesObject.inode = valueEntriesEntry["Inode"].asString(); if(!valueEntriesEntry["FileId"].isNull()) entriesObject.fileId = valueEntriesEntry["FileId"].asString(); + if(!valueEntriesEntry["Owner"].isNull()) + entriesObject.owner = valueEntriesEntry["Owner"].asString(); entries_.push_back(entriesObject); } if(!value["NextToken"].isNull()) diff --git a/nas/src/model/ModifySmbAclRequest.cc b/nas/src/model/ModifySmbAclRequest.cc index 446211fcd..0152fe93f 100644 --- a/nas/src/model/ModifySmbAclRequest.cc +++ b/nas/src/model/ModifySmbAclRequest.cc @@ -79,6 +79,15 @@ void ModifySmbAclRequest::setFileSystemId(const std::string &fileSystemId) { setParameter(std::string("FileSystemId"), fileSystemId); } +std::string ModifySmbAclRequest::getAuthCenter() const { + return authCenter_; +} + +void ModifySmbAclRequest::setAuthCenter(const std::string &authCenter) { + authCenter_ = authCenter; + setParameter(std::string("AuthCenter"), authCenter); +} + std::string ModifySmbAclRequest::getHomeDirPath() const { return homeDirPath_; } @@ -97,3 +106,12 @@ void ModifySmbAclRequest::setEnableAnonymousAccess(bool enableAnonymousAccess) { setParameter(std::string("EnableAnonymousAccess"), enableAnonymousAccess ? "true" : "false"); } +std::string ModifySmbAclRequest::getAuthMethod() const { + return authMethod_; +} + +void ModifySmbAclRequest::setAuthMethod(const std::string &authMethod) { + authMethod_ = authMethod; + setParameter(std::string("AuthMethod"), authMethod); +} +