From 5c48f13a27fe2db27400e3d0023f9ffb5abcdc17 Mon Sep 17 00:00:00 2001 From: Dimitrij Date: Wed, 11 Jun 2025 23:34:35 +0100 Subject: [PATCH] fix warnings about null-able --- .../CPS/PasswordstateInterface.cs | 10 +- .../DSS/SecretServerAuthentication.cs | 10 +- .../DSS/SecretServerInterface.cs | 10 +- .../DSS/SecretServerRestClient.cs | 3325 ++++------------- ObjectListView/CellEditing/CellEditors.cs | 20 +- ObjectListView/FastObjectListView.cs | 13 +- ObjectListView/Filtering/Filters.cs | 28 +- ObjectListView/Implementation/Comparers.cs | 61 +- ObjectListView/Implementation/Events.cs | 226 +- ObjectListView/Implementation/Munger.cs | 41 +- .../Implementation/VirtualGroups.cs | 7 +- .../Implementation/VirtualListDataSource.cs | 28 +- ObjectListView/ObjectListView.DesignTime.cs | 34 +- ObjectListView/ObjectListView.cs | 56 +- ObjectListView/Rendering/Renderers.cs | 7 +- ObjectListView/SubControls/HeaderControl.cs | 11 +- ObjectListView/SubControls/ToolTipControl.cs | 4 +- ObjectListView/TreeListView.cs | 15 +- .../Utilities/ColumnSelectionForm.cs | 8 +- .../Utilities/TypedObjectListView.cs | 30 +- .../App/Initialization/StartupDataLogger.cs | 9 +- .../Connections/SqlConnectionsLoader.cs | 16 +- .../Config/Connections/SqlConnectionsSaver.cs | 15 +- .../Config/DataProviders/FileDataProvider.cs | 9 +- .../FileDataProviderWithRollingBackup.cs | 9 +- .../InMemoryStringDataProvider.cs | 9 +- .../Config/DataProviders/SqlDataProvider.cs | 9 +- .../DatabaseConnectionTester.cs | 33 +- mRemoteNG/Config/Import/PortScanImporter.cs | 9 +- .../Putty/PuttySessionChangedEventArgs.cs | 9 +- .../Config/Putty/PuttySessionsManager.cs | 6 +- .../Sql/DataTableDeserializer.cs | 12 +- .../Sql/DataTableSerializer.cs | 15 +- .../Xml/XmlConnectionNodeSerializer27.cs | 19 +- .../Xml/XmlConnectionNodeSerializer28.cs | 19 +- .../Xml/XmlConnectionsDocumentCompiler.cs | 12 +- .../Xml/XmlConnectionsDocumentEncryptor.cs | 9 +- .../Xml/XmlConnectionsSerializer.cs | 14 +- .../ActiveDirectoryDeserializer.cs | 12 +- .../MiscSerializers/PortScanDeserializer.cs | 9 +- .../Versioning/SqlDatabaseVersionVerifier.cs | 9 +- .../Versioning/SqlVersion22To23Upgrader.cs | 9 +- .../Versioning/SqlVersion23To24Upgrader.cs | 9 +- .../Versioning/SqlVersion24To25Upgrader.cs | 9 +- .../Versioning/SqlVersion25To26Upgrader.cs | 9 +- .../Versioning/SqlVersion26To27Upgrader.cs | 9 +- .../Versioning/SqlVersion27To28Upgrader.cs | 9 +- .../Versioning/SqlVersion28To29Upgrader.cs | 9 +- .../Versioning/SqlVersion29To30Upgrader.cs | 9 +- .../Providers/PortableSettingsProvider.cs | 2 +- .../Connection/AbstractConnectionRecord.cs | 12 +- mRemoteNG/Connection/ConnectionIcon.cs | 10 +- .../Connection/ConnectionInfoComparer.cs | 13 +- mRemoteNG/Connection/ConnectionsService.cs | 15 +- .../Connection/InterfaceControl.Designer.cs | 19 +- mRemoteNG/Connection/Protocol/ProtocolList.cs | 5 +- mRemoteNG/Connection/PuttySessionInfo.cs | 20 +- mRemoteNG/Container/ContainerInfo.cs | 2 +- .../CredentialDomainUserComparer.cs | 10 +- mRemoteNG/Credential/CredentialRecord.cs | 2 +- .../CredentialRecordTypeConverter.cs | 11 +- .../Credential/PlaceholderCredentialRecord.cs | 2 +- .../CredentialRepositoryConfig.cs | 11 +- mRemoteNG/Messages/Message.cs | 20 +- mRemoteNG/Messages/MessageCollector.cs | 2 +- .../NotificationPanelMessageWriter.cs | 9 +- .../MessageWriters/TextLogMessageWriter.cs | 9 +- .../WriterDecorators/MessageFocusDecorator.cs | 15 +- mRemoteNG/Properties/AssemblyInfo.cs | 6 +- .../Authentication/PasswordAuthenticator.cs | 19 +- mRemoteNG/Themes/ExtendedColorPalette.cs | 12 +- mRemoteNG/Tools/ADhelper.cs | 12 +- .../AttributeUsedInAllProtocolsExcept.cs | 8 +- .../Attributes/AttributeUsedInProtocol.cs | 9 +- mRemoteNG/Tools/Authenticode.cs | 128 +- .../Tools/Cmdline/CommandLineArguments.cs | 17 +- mRemoteNG/Tools/DisposableOptional.cs | 7 +- mRemoteNG/Tools/ExternalTool.cs | 21 +- mRemoteNG/Tools/ExternalToolArgumentParser.cs | 24 +- mRemoteNG/Tools/ExternalToolsTypeConverter.cs | 22 +- mRemoteNG/Tools/MiscTools.cs | 107 +- mRemoteNG/Tools/Optional.cs | 26 +- mRemoteNG/Tools/PropertyGridCommandSite.cs | 31 +- mRemoteNG/Tools/ScanHost.cs | 16 +- mRemoteNG/Tools/Tools.LocalizedAttributes.cs | 50 +- mRemoteNG/Tools/Tools.WindowPlacement.cs | 10 +- mRemoteNG/Tree/ConnectionTreeModel.cs | 26 +- mRemoteNG/Tree/NodeSearcher.cs | 10 +- mRemoteNG/Tree/Root/RootNodeInfo.cs | 13 +- .../SelectedConnectionDeletionConfirmer.cs | 9 +- .../Adapters/CredentialRecordListAdaptor.cs | 9 +- .../FilteredPropertyGrid/ObjectWrapper.cs | 21 +- .../SequencedPageReplcementRequestArgs.cs | 12 +- mRemoteNG/UI/Controls/QuickConnectComboBox.cs | 18 +- mRemoteNG/UI/Controls/mrngIpTextBox.cs | 57 +- .../UI/Controls/mrngPictureBox.Designer.cs | 5 +- mRemoteNG/UI/DisplayProperties.cs | 19 +- mRemoteNG/UI/Forms/FrmExport.cs | 10 +- .../UI/Forms/OptionsPages/OptionsPage.cs | 12 +- .../OptionsPages/SqlServerPage.Designer.cs | 5 +- .../UI/Forms/OptionsPages/SqlServerPage.cs | 15 +- mRemoteNG/UI/FullscreenHandler.cs | 9 +- mRemoteNG/UI/Menu/AdvancedWindowMenu.cs | 9 +- mRemoteNG/UI/Tabs/DockPaneStripNG.cs | 22 +- mRemoteNG/UI/TaskDialog/CommandButton.cs | 2 + mRemoteNG/UI/WindowList.cs | 2 +- 106 files changed, 1434 insertions(+), 3844 deletions(-) diff --git a/ExternalConnectors/CPS/PasswordstateInterface.cs b/ExternalConnectors/CPS/PasswordstateInterface.cs index 5208a2e3..3c448be0 100644 --- a/ExternalConnectors/CPS/PasswordstateInterface.cs +++ b/ExternalConnectors/CPS/PasswordstateInterface.cs @@ -257,15 +257,9 @@ public class PasswordstateInterface return ""+textWriter.ToString(); } - private class PasswordFinder : IPasswordFinder + private class PasswordFinder(string password) : IPasswordFinder { - private string password; - - public PasswordFinder(string password) - { - this.password = password; - } - + private string password = password; public char[] GetPassword() { diff --git a/ExternalConnectors/DSS/SecretServerAuthentication.cs b/ExternalConnectors/DSS/SecretServerAuthentication.cs index d03141d7..c8ffc0c9 100644 --- a/ExternalConnectors/DSS/SecretServerAuthentication.cs +++ b/ExternalConnectors/DSS/SecretServerAuthentication.cs @@ -58,10 +58,7 @@ namespace SecretServerAuthentication.DSS /// The refresh token. Required when refreshing a token. /// Successful retrieval of an access token /// A server side error occurred. - public System.Threading.Tasks.Task AuthorizeAsync(Grant_type grant_type, string username, string password, string refresh_token, string OTP) - { - return AuthorizeAsync(grant_type, username, password, refresh_token, System.Threading.CancellationToken.None, OTP); - } + public System.Threading.Tasks.Task AuthorizeAsync(Grant_type grant_type, string username, string password, string refresh_token, string OTP) => AuthorizeAsync(grant_type, username, password, refresh_token, System.Threading.CancellationToken.None, OTP); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Retrieve or Refresh Access Token @@ -355,10 +352,7 @@ namespace SecretServerAuthentication.DSS Headers = headers; } - public override string ToString() - { - return string.Format("HTTP Response: \n\n{0}\n\n{1}", Response, base.ToString()); - } + public override string ToString() => string.Format("HTTP Response: \n\n{0}\n\n{1}", Response, base.ToString()); } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.14.8.0 (NJsonSchema v10.5.2.0 (Newtonsoft.Json v11.0.0.0))")] diff --git a/ExternalConnectors/DSS/SecretServerInterface.cs b/ExternalConnectors/DSS/SecretServerInterface.cs index b0ae930d..de794a4d 100644 --- a/ExternalConnectors/DSS/SecretServerInterface.cs +++ b/ExternalConnectors/DSS/SecretServerInterface.cs @@ -223,15 +223,9 @@ public class SecretServerInterface return ""+textWriter.ToString(); } - private class PasswordFinder : IPasswordFinder + private class PasswordFinder(string password) : IPasswordFinder { - private string password; - - public PasswordFinder(string password) - { - this.password = password; - } - + private string password = password; public char[] GetPassword() { diff --git a/ExternalConnectors/DSS/SecretServerRestClient.cs b/ExternalConnectors/DSS/SecretServerRestClient.cs index 20da6367..467d584e 100644 --- a/ExternalConnectors/DSS/SecretServerRestClient.cs +++ b/ExternalConnectors/DSS/SecretServerRestClient.cs @@ -55,10 +55,7 @@ namespace SecretServerRestClient.DSS /// args /// Activation result object /// A server side error occurred. - public System.Threading.Tasks.Task ActivateAsync(OnlineActivationArgs args) - { - return ActivateAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task ActivateAsync(OnlineActivationArgs args) => ActivateAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Perform an online activation of Secret Server @@ -303,10 +300,7 @@ namespace SecretServerRestClient.DSS /// Synchronize Active Directory Groups and Users /// Bool /// A server side error occurred. - public System.Threading.Tasks.Task SynchronizeAsync() - { - return SynchronizeAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SynchronizeAsync() => SynchronizeAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Synchronize Active Directory Groups and Users @@ -548,10 +542,7 @@ namespace SecretServerRestClient.DSS /// Generate API Token /// Generated API Token /// A server side error occurred. - public System.Threading.Tasks.Task GetTokenAsync() - { - return GetTokenAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetTokenAsync() => GetTokenAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Generate API Token @@ -794,10 +785,7 @@ namespace SecretServerRestClient.DSS /// App client ID /// App client object /// A server side error occurred. - public System.Threading.Tasks.Task GetClientAsync(bool? includeInactive, int id) - { - return GetClientAsync(includeInactive, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetClientAsync(bool? includeInactive, int id) => GetClientAsync(includeInactive, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get App Client @@ -913,10 +901,7 @@ namespace SecretServerRestClient.DSS /// App client ID /// App client object /// A server side error occurred. - public System.Threading.Tasks.Task UpdateClientAsync(AppClientUpdateArgs args, int id) - { - return UpdateClientAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateClientAsync(AppClientUpdateArgs args, int id) => UpdateClientAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update App Client @@ -1029,10 +1014,7 @@ namespace SecretServerRestClient.DSS /// App client ID /// Object deletion result /// A server side error occurred. - public System.Threading.Tasks.Task DeleteClientAsync(int id) - { - return DeleteClientAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DeleteClientAsync(int id) => DeleteClientAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete App Client @@ -1140,10 +1122,7 @@ namespace SecretServerRestClient.DSS /// Get App Client Stub /// App client object /// A server side error occurred. - public System.Threading.Tasks.Task StubAsync() - { - return StubAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task StubAsync() => StubAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get App Client Stub @@ -1247,10 +1226,7 @@ namespace SecretServerRestClient.DSS /// App client creation options /// App client object /// A server side error occurred. - public System.Threading.Tasks.Task CreateClientAsync(AppClientCreateArgs args) - { - return CreateClientAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateClientAsync(AppClientCreateArgs args) => CreateClientAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create App Client @@ -1503,10 +1479,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// User search result object /// A server side error occurred. - public System.Threading.Tasks.Task LookupAccountAsync(bool? filter_includeAll, bool? filter_includeInactive, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return LookupAccountAsync(filter_includeAll, filter_includeInactive, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task LookupAccountAsync(bool? filter_includeAll, bool? filter_includeInactive, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => LookupAccountAsync(filter_includeAll, filter_includeInactive, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Lookup Application Accounts @@ -1794,10 +1767,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Secret Access Model /// A server side error occurred. - public System.Threading.Tasks.Task SearchRequestsByStatusAsync(string filter_status, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchRequestsByStatusAsync(filter_status, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchRequestsByStatusAsync(string filter_status, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchRequestsByStatusAsync(filter_status, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Application Access Requests by Status for Current User. @@ -1932,10 +1902,7 @@ namespace SecretServerRestClient.DSS /// deviceId /// Secret Access Model /// A server side error occurred. - public System.Threading.Tasks.Task GetRequestByDeviceIdAsync(int deviceId) - { - return GetRequestByDeviceIdAsync(deviceId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetRequestByDeviceIdAsync(int deviceId) => GetRequestByDeviceIdAsync(deviceId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Application Access Requests by Device Id. @@ -2045,10 +2012,7 @@ namespace SecretServerRestClient.DSS /// deviceId /// Secret Access Model /// A server side error occurred. - public System.Threading.Tasks.Task UpdateRequestAsync(ApplicationAccessRequestUpdateArgs args, int deviceId) - { - return UpdateRequestAsync(args, deviceId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateRequestAsync(ApplicationAccessRequestUpdateArgs args, int deviceId) => UpdateRequestAsync(args, deviceId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Application Access Requests by Device Id. @@ -2166,10 +2130,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Application Access Request Audit View Model /// A server side error occurred. - public System.Threading.Tasks.Task GetAuditsAsync(int? filter_deviceId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetAuditsAsync(filter_deviceId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAuditsAsync(int? filter_deviceId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetAuditsAsync(filter_deviceId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Application Access Request Audits by Device Id. @@ -2442,10 +2403,7 @@ namespace SecretServerRestClient.DSS /// List ID /// The list with provided ID /// A server side error occurred. - public System.Threading.Tasks.Task GetListAsync(System.Guid categorizedListId) - { - return GetListAsync(categorizedListId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetListAsync(System.Guid categorizedListId) => GetListAsync(categorizedListId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get a list @@ -2555,10 +2513,7 @@ namespace SecretServerRestClient.DSS /// List ID /// The updated list /// A server side error occurred. - public System.Threading.Tasks.Task UpdateListAsync(CategorizedListUpdateArgs args, System.Guid categorizedListId) - { - return UpdateListAsync(args, categorizedListId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateListAsync(CategorizedListUpdateArgs args, System.Guid categorizedListId) => UpdateListAsync(args, categorizedListId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update a list @@ -2671,10 +2626,7 @@ namespace SecretServerRestClient.DSS /// ID of list to be deleted /// Object deletion result /// A server side error occurred. - public System.Threading.Tasks.Task DeleteListAsync(System.Guid categorizedListId) - { - return DeleteListAsync(categorizedListId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DeleteListAsync(System.Guid categorizedListId) => DeleteListAsync(categorizedListId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete List @@ -2790,10 +2742,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// The list's options /// A server side error occurred. - public System.Threading.Tasks.Task GetListItemsAsync(System.Guid categorizedListId, string filter_category, bool? filter_nullCategoryIsUncategorized, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetListItemsAsync(categorizedListId, filter_category, filter_nullCategoryIsUncategorized, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetListItemsAsync(System.Guid categorizedListId, string filter_category, bool? filter_nullCategoryIsUncategorized, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetListItemsAsync(categorizedListId, filter_category, filter_nullCategoryIsUncategorized, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get a list's items @@ -2939,10 +2888,7 @@ namespace SecretServerRestClient.DSS /// List ID /// The updated options in the list /// A server side error occurred. - public System.Threading.Tasks.Task UpdateItemsInListAsync(CategorizedListItemUpdateArgs args, System.Guid categorizedListId) - { - return UpdateItemsInListAsync(args, categorizedListId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateItemsInListAsync(CategorizedListItemUpdateArgs args, System.Guid categorizedListId) => UpdateItemsInListAsync(args, categorizedListId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates options in a list @@ -3056,10 +3002,7 @@ namespace SecretServerRestClient.DSS /// List ID /// The new options in the list /// A server side error occurred. - public System.Threading.Tasks.Task AddItemsToListAsync(CategorizedListItemCreateArgs args, System.Guid categorizedListId) - { - return AddItemsToListAsync(args, categorizedListId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task AddItemsToListAsync(CategorizedListItemCreateArgs args, System.Guid categorizedListId) => AddItemsToListAsync(args, categorizedListId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Adds options to a list @@ -3172,10 +3115,7 @@ namespace SecretServerRestClient.DSS /// List ID /// Object deletion result /// A server side error occurred. - public System.Threading.Tasks.Task RemoveItemsFromListAsync(System.Guid categorizedListId) - { - return RemoveItemsFromListAsync(categorizedListId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task RemoveItemsFromListAsync(System.Guid categorizedListId) => RemoveItemsFromListAsync(categorizedListId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete all list options from a list @@ -3285,10 +3225,7 @@ namespace SecretServerRestClient.DSS /// List option id /// List option deletion result /// A server side error occurred. - public System.Threading.Tasks.Task RemoveItemFromListAsync(System.Guid listId, System.Guid optionId) - { - return RemoveItemFromListAsync(listId, optionId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task RemoveItemFromListAsync(System.Guid listId, System.Guid optionId) => RemoveItemFromListAsync(listId, optionId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete a list option from a list @@ -3409,10 +3346,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// List search result object /// A server side error occurred. - public System.Threading.Tasks.Task SearchAsync(bool? filter_includeActive, bool? filter_includeInactive, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchAsync(filter_includeActive, filter_includeInactive, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchAsync(bool? filter_includeActive, bool? filter_includeInactive, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchAsync(filter_includeActive, filter_includeInactive, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Lists @@ -3557,10 +3491,7 @@ namespace SecretServerRestClient.DSS /// List be added /// The new list /// A server side error occurred. - public System.Threading.Tasks.Task CreateListAsync(CategorizedListCreateArgs args) - { - return CreateListAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateListAsync(CategorizedListCreateArgs args) => CreateListAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create a list @@ -3667,10 +3598,7 @@ namespace SecretServerRestClient.DSS /// Get a list of lists available to current user /// A list of lists for the current user /// A server side error occurred. - public System.Threading.Tasks.Task GetAllListsUserMaySeeAsync() - { - return GetAllListsUserMaySeeAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAllListsUserMaySeeAsync() => GetAllListsUserMaySeeAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get a list of lists available to current user @@ -3774,10 +3702,7 @@ namespace SecretServerRestClient.DSS /// List ID /// The list's categories /// A server side error occurred. - public System.Threading.Tasks.Task GetCategoriesForListAsync(System.Guid categorizedListId) - { - return GetCategoriesForListAsync(categorizedListId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetCategoriesForListAsync(System.Guid categorizedListId) => GetCategoriesForListAsync(categorizedListId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get a list's current categories @@ -3891,10 +3816,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// A paginated list of Audits for List. /// A server side error occurred. - public System.Threading.Tasks.Task SearchListAuditAsync(System.Guid categorizedListId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchListAuditAsync(categorizedListId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchListAuditAsync(System.Guid categorizedListId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchListAuditAsync(categorizedListId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Audits for List @@ -4031,10 +3953,7 @@ namespace SecretServerRestClient.DSS /// Category to assign /// The new options in the list /// A server side error occurred. - public System.Threading.Tasks.Task AddItemsToListWithCategoryAsync(CategorizedListItemCreateArgs args, System.Guid categorizedListId, string category) - { - return AddItemsToListWithCategoryAsync(args, categorizedListId, category, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task AddItemsToListWithCategoryAsync(CategorizedListItemCreateArgs args, System.Guid categorizedListId, string category) => AddItemsToListWithCategoryAsync(args, categorizedListId, category, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Adds options to the list with the specified category @@ -4153,10 +4072,7 @@ namespace SecretServerRestClient.DSS /// List ID /// The new options in the list /// A server side error occurred. - public System.Threading.Tasks.Task AddItemsToListFromFileAsync(CategorizedListItemCreateWithFileArgs args, System.Guid categorizedListId) - { - return AddItemsToListFromFileAsync(args, categorizedListId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task AddItemsToListFromFileAsync(CategorizedListItemCreateWithFileArgs args, System.Guid categorizedListId) => AddItemsToListFromFileAsync(args, categorizedListId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Upload a file of list options @@ -4270,10 +4186,7 @@ namespace SecretServerRestClient.DSS /// List ID /// The new item in the list /// A server side error occurred. - public System.Threading.Tasks.Task ReplaceItemsInListAsync(CategorizedListItemCreateArgs args, System.Guid categorizedListId) - { - return ReplaceItemsInListAsync(args, categorizedListId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task ReplaceItemsInListAsync(CategorizedListItemCreateArgs args, System.Guid categorizedListId) => ReplaceItemsInListAsync(args, categorizedListId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Replaces options in a list @@ -4529,10 +4442,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Configuration audit items /// A server side error occurred. - public System.Threading.Tasks.Task GetConfigurationAuditAsync(string filter_searchTerm, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetConfigurationAuditAsync(filter_searchTerm, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetConfigurationAuditAsync(string filter_searchTerm, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetConfigurationAuditAsync(filter_searchTerm, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Audit of system configuration changes @@ -4675,10 +4585,7 @@ namespace SecretServerRestClient.DSS /// Load user interface section /// Configuration /// A server side error occurred. - public System.Threading.Tasks.Task GetGeneralConfigurationAsync(bool? loadAll, bool? loadApplicationSettings, bool? loadEmail, bool? loadFolders, bool? loadLauncherSettings, bool? loadLocalUserPasswords, bool? loadPermissionOptions, bool? loadUserExperience, bool? loadUserInterface) - { - return GetGeneralConfigurationAsync(loadAll, loadApplicationSettings, loadEmail, loadFolders, loadLauncherSettings, loadLocalUserPasswords, loadPermissionOptions, loadUserExperience, loadUserInterface, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetGeneralConfigurationAsync(bool? loadAll, bool? loadApplicationSettings, bool? loadEmail, bool? loadFolders, bool? loadLauncherSettings, bool? loadLocalUserPasswords, bool? loadPermissionOptions, bool? loadUserExperience, bool? loadUserInterface) => GetGeneralConfigurationAsync(loadAll, loadApplicationSettings, loadEmail, loadFolders, loadLauncherSettings, loadLocalUserPasswords, loadPermissionOptions, loadUserExperience, loadUserInterface, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get the general configuration @@ -4828,10 +4735,7 @@ namespace SecretServerRestClient.DSS /// Local user password update args /// Updated Configuration /// A server side error occurred. - public System.Threading.Tasks.Task PatchGeneralConfigurationAsync(ConfigurationGeneralPatchArgs args) - { - return PatchGeneralConfigurationAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchGeneralConfigurationAsync(ConfigurationGeneralPatchArgs args) => PatchGeneralConfigurationAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update general configuration @@ -4938,10 +4842,7 @@ namespace SecretServerRestClient.DSS /// Get the local user password configuration /// Local User Password Configuration Settings /// A server side error occurred. - public System.Threading.Tasks.Task GetLocalPasswordConfigurationAsync() - { - return GetLocalPasswordConfigurationAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetLocalPasswordConfigurationAsync() => GetLocalPasswordConfigurationAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get the local user password configuration @@ -5045,10 +4946,7 @@ namespace SecretServerRestClient.DSS /// Local user password update args /// Local User Password Configuration Settings /// A server side error occurred. - public System.Threading.Tasks.Task PatchLocalPasswordConfigurationAsync(ConfigurationLocalPasswordPatchArgs args) - { - return PatchLocalPasswordConfigurationAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchLocalPasswordConfigurationAsync(ConfigurationLocalPasswordPatchArgs args) => PatchLocalPasswordConfigurationAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update the local user password configuration @@ -5155,10 +5053,7 @@ namespace SecretServerRestClient.DSS /// Get Security configuration /// Security Configuration /// A server side error occurred. - public System.Threading.Tasks.Task GetSecurityConfigurationAsync() - { - return GetSecurityConfigurationAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSecurityConfigurationAsync() => GetSecurityConfigurationAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Security configuration @@ -5262,10 +5157,7 @@ namespace SecretServerRestClient.DSS /// Security update args /// Security configuration after updates /// A server side error occurred. - public System.Threading.Tasks.Task PatchSecurityConfigurationAsync(ConfigurationSecurityPatchArgs args) - { - return PatchSecurityConfigurationAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchSecurityConfigurationAsync(ConfigurationSecurityPatchArgs args) => PatchSecurityConfigurationAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Security configuration @@ -5372,10 +5264,7 @@ namespace SecretServerRestClient.DSS /// Get Login configuration /// Login Configuration /// A server side error occurred. - public System.Threading.Tasks.Task GetLoginConfigurationAsync() - { - return GetLoginConfigurationAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetLoginConfigurationAsync() => GetLoginConfigurationAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Login configuration @@ -5479,10 +5368,7 @@ namespace SecretServerRestClient.DSS /// Login update args /// Login configuration after updates /// A server side error occurred. - public System.Threading.Tasks.Task PatchLoginConfigurationAsync(ConfigurationLoginPatchArgs args) - { - return PatchLoginConfigurationAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchLoginConfigurationAsync(ConfigurationLoginPatchArgs args) => PatchLoginConfigurationAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Login configuration @@ -5589,10 +5475,7 @@ namespace SecretServerRestClient.DSS /// Get Saml configuration /// Saml Configuration /// A server side error occurred. - public System.Threading.Tasks.Task GetSamlConfigurationAsync() - { - return GetSamlConfigurationAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSamlConfigurationAsync() => GetSamlConfigurationAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Saml configuration @@ -5696,10 +5579,7 @@ namespace SecretServerRestClient.DSS /// Saml update args /// Saml configuration after updates /// A server side error occurred. - public System.Threading.Tasks.Task PatchSamlConfigurationAsync(ConfigurationSamlPatchArgs args) - { - return PatchSamlConfigurationAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchSamlConfigurationAsync(ConfigurationSamlPatchArgs args) => PatchSamlConfigurationAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Saml configuration @@ -5807,10 +5687,7 @@ namespace SecretServerRestClient.DSS /// Saml Identity Provider Id /// Saml Identity Provider configuration /// A server side error occurred. - public System.Threading.Tasks.Task GetSamlIdentityProviderConfigurationAsync(int id) - { - return GetSamlIdentityProviderConfigurationAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSamlIdentityProviderConfigurationAsync(int id) => GetSamlIdentityProviderConfigurationAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Saml Identity Provider configuration @@ -5918,10 +5795,7 @@ namespace SecretServerRestClient.DSS /// Get RPC configuration /// RPC Configuration /// A server side error occurred. - public System.Threading.Tasks.Task GetRpcConfigurationAsync() - { - return GetRpcConfigurationAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetRpcConfigurationAsync() => GetRpcConfigurationAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get RPC configuration @@ -6025,10 +5899,7 @@ namespace SecretServerRestClient.DSS /// Local user password update args /// RPC configuration after updates /// A server side error occurred. - public System.Threading.Tasks.Task PatchRpcConfigurationAsync(ConfigurationRpcPatchArgs args) - { - return PatchRpcConfigurationAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchRpcConfigurationAsync(ConfigurationRpcPatchArgs args) => PatchRpcConfigurationAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update RPC configuration @@ -6136,10 +6007,7 @@ namespace SecretServerRestClient.DSS /// includeInactive /// Site Connectors /// A server side error occurred. - public System.Threading.Tasks.Task> GetSiteConnectorsAsync(bool? includeInactive) - { - return GetSiteConnectorsAsync(includeInactive, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetSiteConnectorsAsync(bool? includeInactive) => GetSiteConnectorsAsync(includeInactive, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Site Connectors @@ -6248,10 +6116,7 @@ namespace SecretServerRestClient.DSS /// Internal Site Connector Configuration /// Internal Site Connector Configuration /// A server side error occurred. - public System.Threading.Tasks.Task GetInternalSiteConfigurationAsync() - { - return GetInternalSiteConfigurationAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetInternalSiteConfigurationAsync() => GetInternalSiteConfigurationAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Internal Site Connector Configuration @@ -6355,10 +6220,7 @@ namespace SecretServerRestClient.DSS /// Internal Site Connector Update Options /// Internal Site Connector Configuration /// A server side error occurred. - public System.Threading.Tasks.Task PatchInternalSiteConfigurationAsync(ConfigurationInternalSiteConnectorPatchArgs args) - { - return PatchInternalSiteConfigurationAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchInternalSiteConfigurationAsync(ConfigurationInternalSiteConnectorPatchArgs args) => PatchInternalSiteConfigurationAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Internal Site Connector @@ -6465,10 +6327,7 @@ namespace SecretServerRestClient.DSS /// Secret Search Indexer Configuration /// Secret Search Indexer Configuration /// A server side error occurred. - public System.Threading.Tasks.Task GetSecretSearchIndexerConfigurationAsync() - { - return GetSecretSearchIndexerConfigurationAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSecretSearchIndexerConfigurationAsync() => GetSecretSearchIndexerConfigurationAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Secret Search Indexer Configuration @@ -6572,10 +6431,7 @@ namespace SecretServerRestClient.DSS /// Secret Search Indexer Configuration Update Settings /// Updated Secret Search Indexer Configuration /// A server side error occurred. - public System.Threading.Tasks.Task PatchSecretSearchIndexerConfigurationAsync(SearchIndexerUpdateArgs args) - { - return PatchSecretSearchIndexerConfigurationAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchSecretSearchIndexerConfigurationAsync(SearchIndexerUpdateArgs args) => PatchSecretSearchIndexerConfigurationAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Secret Search Indexer Configuration @@ -6682,10 +6538,7 @@ namespace SecretServerRestClient.DSS /// Get Automatic Export Configuration /// Automatic Export Configuration /// A server side error occurred. - public System.Threading.Tasks.Task GetAutoExportConfigurationAsync() - { - return GetAutoExportConfigurationAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAutoExportConfigurationAsync() => GetAutoExportConfigurationAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Automatic Export Configuration @@ -6789,10 +6642,7 @@ namespace SecretServerRestClient.DSS /// Automatic Export Update Settings /// Updated Automatic Export Configuration /// A server side error occurred. - public System.Threading.Tasks.Task PatchAutomaticExportConfigurationAsync(AutoExportConfigurationArgs args) - { - return PatchAutomaticExportConfigurationAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchAutomaticExportConfigurationAsync(AutoExportConfigurationArgs args) => PatchAutomaticExportConfigurationAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Patch Automatic Export Configuration @@ -6904,10 +6754,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Automatic Export Configuration Audits /// A server side error occurred. - public System.Threading.Tasks.Task GetAutoExportConfigurationAuditsAsync(int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetAutoExportConfigurationAuditsAsync(skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAutoExportConfigurationAuditsAsync(int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetAutoExportConfigurationAuditsAsync(skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Automatic Export Configuration Audits @@ -7041,10 +6888,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Automatic Export Logs /// A server side error occurred. - public System.Threading.Tasks.Task GetAutoExportLogsAsync(int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetAutoExportLogsAsync(skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAutoExportLogsAsync(int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetAutoExportLogsAsync(skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Automatic Export Logs @@ -7178,10 +7022,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Automatic Export Storage Items /// A server side error occurred. - public System.Threading.Tasks.Task GetAutoExportStorageItemsDefaultAsync(int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetAutoExportStorageItemsDefaultAsync(skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAutoExportStorageItemsDefaultAsync(int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetAutoExportStorageItemsDefaultAsync(skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Automatic Export Storage Items @@ -7316,10 +7157,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Automatic Export Storage Items For Configuration /// A server side error occurred. - public System.Threading.Tasks.Task GetAutoExportStorageItemsAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetAutoExportStorageItemsAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAutoExportStorageItemsAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetAutoExportStorageItemsAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Automatic Export Storage Items For Configuration @@ -7454,10 +7292,7 @@ namespace SecretServerRestClient.DSS /// id /// Automatic Export Storage Item /// A server side error occurred. - public System.Threading.Tasks.Task GetAutoExportStorageItemAsync(int id) - { - return GetAutoExportStorageItemAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAutoExportStorageItemAsync(int id) => GetAutoExportStorageItemAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Automatic Export Storage Item @@ -7565,10 +7400,7 @@ namespace SecretServerRestClient.DSS /// Get Database Backup Configuration /// Database Backup Configuration /// A server side error occurred. - public System.Threading.Tasks.Task GetDatabaseBackupConfigurationAsync() - { - return GetDatabaseBackupConfigurationAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetDatabaseBackupConfigurationAsync() => GetDatabaseBackupConfigurationAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Database Backup Configuration @@ -7672,10 +7504,7 @@ namespace SecretServerRestClient.DSS /// Backup Configuration Update Settings /// Updated Backup Configuration /// A server side error occurred. - public System.Threading.Tasks.Task PatchDatabaseBackupConfigurationAsync(BackupConfigurationArgs args) - { - return PatchDatabaseBackupConfigurationAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchDatabaseBackupConfigurationAsync(BackupConfigurationArgs args) => PatchDatabaseBackupConfigurationAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Patch Backup Configuration @@ -7787,10 +7616,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Backup Logs /// A server side error occurred. - public System.Threading.Tasks.Task GetBackupLogsV2Async(int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetBackupLogsV2Async(skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetBackupLogsV2Async(int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetBackupLogsV2Async(skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Backup Logs @@ -7919,10 +7745,7 @@ namespace SecretServerRestClient.DSS /// Get system log configuration /// System log configuration /// A server side error occurred. - public System.Threading.Tasks.Task GetSystemLogConfigurationAsync() - { - return GetSystemLogConfigurationAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSystemLogConfigurationAsync() => GetSystemLogConfigurationAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get system log configuration @@ -8026,10 +7849,7 @@ namespace SecretServerRestClient.DSS /// args /// System log configuration /// A server side error occurred. - public System.Threading.Tasks.Task PatchSystemLogConfigurationAsync(SystemLogConfigurationUpdateArgs args) - { - return PatchSystemLogConfigurationAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchSystemLogConfigurationAsync(SystemLogConfigurationUpdateArgs args) => PatchSystemLogConfigurationAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Patch system log configuration @@ -8136,10 +7956,7 @@ namespace SecretServerRestClient.DSS /// Clear system log /// Cleared System Log Result /// A server side error occurred. - public System.Threading.Tasks.Task ClearSystemLogAsync() - { - return ClearSystemLogAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task ClearSystemLogAsync() => ClearSystemLogAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Clear system log @@ -8242,10 +8059,7 @@ namespace SecretServerRestClient.DSS /// Public SSH Key Expiration /// Public SSH Key Expiration Result /// A server side error occurred. - public System.Threading.Tasks.Task GetPublicSshKeyExpirationAsync() - { - return GetPublicSshKeyExpirationAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetPublicSshKeyExpirationAsync() => GetPublicSshKeyExpirationAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Public SSH Key Expiration @@ -8348,10 +8162,7 @@ namespace SecretServerRestClient.DSS /// Get the ticket system configuration /// Ticket System Configuration /// A server side error occurred. - public System.Threading.Tasks.Task GetTicketSystemConfigurationAsync() - { - return GetTicketSystemConfigurationAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetTicketSystemConfigurationAsync() => GetTicketSystemConfigurationAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get the ticket system configuration @@ -8455,10 +8266,7 @@ namespace SecretServerRestClient.DSS /// Ticket System update args /// Ticket System Configuration /// A server side error occurred. - public System.Threading.Tasks.Task PatchTicketSystemConfigurationAsync(ConfigurationTicketSystemArgs args) - { - return PatchTicketSystemConfigurationAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchTicketSystemConfigurationAsync(ConfigurationTicketSystemArgs args) => PatchTicketSystemConfigurationAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update the ticket system configuration @@ -8566,10 +8374,7 @@ namespace SecretServerRestClient.DSS /// Saml create args /// Saml configuration after create /// A server side error occurred. - public System.Threading.Tasks.Task PostSamlConfigurationAsync(ConfigurationSamlIdentityProviderCreateArgs args) - { - return PostSamlConfigurationAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PostSamlConfigurationAsync(ConfigurationSamlIdentityProviderCreateArgs args) => PostSamlConfigurationAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create Saml configuration @@ -8677,10 +8482,7 @@ namespace SecretServerRestClient.DSS /// Saml Identity Provider update args /// Saml Identity Provider configuration after updates /// A server side error occurred. - public System.Threading.Tasks.Task PatchSamlIdentityProviderConfigurationAsync(ConfigurationSamlIdentityProviderPatchArgs args) - { - return PatchSamlIdentityProviderConfigurationAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchSamlIdentityProviderConfigurationAsync(ConfigurationSamlIdentityProviderPatchArgs args) => PatchSamlIdentityProviderConfigurationAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Saml Identity Provider configuration @@ -8788,10 +8590,7 @@ namespace SecretServerRestClient.DSS /// Local user password update args /// Session Recording Configuration /// A server side error occurred. - public System.Threading.Tasks.Task PatchSessionRecordingConfigurationAsync(ConfigurationSessionRecordingPatchArgs args) - { - return PatchSessionRecordingConfigurationAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchSessionRecordingConfigurationAsync(ConfigurationSessionRecordingPatchArgs args) => PatchSessionRecordingConfigurationAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Session Recording @@ -8899,10 +8698,7 @@ namespace SecretServerRestClient.DSS /// Folders configuration args /// Folder Configuration /// A server side error occurred. - public System.Threading.Tasks.Task PatchFolderConfigurationAsync(ConfigurationFoldersPatchArgs args) - { - return PatchFolderConfigurationAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchFolderConfigurationAsync(ConfigurationFoldersPatchArgs args) => PatchFolderConfigurationAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Folder @@ -9010,10 +8806,7 @@ namespace SecretServerRestClient.DSS /// Unlimited Admin Update Options /// Success /// A server side error occurred. - public System.Threading.Tasks.Task UpdateUnlimitedAdminAsync(UnlimitedAdminUpdateArgs args) - { - return UpdateUnlimitedAdminAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateUnlimitedAdminAsync(UnlimitedAdminUpdateArgs args) => UpdateUnlimitedAdminAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Unlimited Admin @@ -9121,10 +8914,7 @@ namespace SecretServerRestClient.DSS /// Application settings update args /// Application Settings Configuration /// A server side error occurred. - public System.Threading.Tasks.Task PatchApplicationSettingsConfigurationAsync(ConfigurationApplicationSettingsPatchArgs args) - { - return PatchApplicationSettingsConfigurationAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchApplicationSettingsConfigurationAsync(ConfigurationApplicationSettingsPatchArgs args) => PatchApplicationSettingsConfigurationAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update the application settings configuration @@ -9232,10 +9022,7 @@ namespace SecretServerRestClient.DSS /// Permission options update args /// Permission Options Configuration /// A server side error occurred. - public System.Threading.Tasks.Task PatchPermissionOptionsConfigurationAsync(ConfigurationPermissionOptionsPatchArgs args) - { - return PatchPermissionOptionsConfigurationAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchPermissionOptionsConfigurationAsync(ConfigurationPermissionOptionsPatchArgs args) => PatchPermissionOptionsConfigurationAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update the permission options configuration @@ -9343,10 +9130,7 @@ namespace SecretServerRestClient.DSS /// Launcher settings update args /// launcher settings Configuration /// A server side error occurred. - public System.Threading.Tasks.Task PatchLauncherSettingsConfigurationAsync(ConfigurationLauncherSettingsPatchArgs args) - { - return PatchLauncherSettingsConfigurationAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchLauncherSettingsConfigurationAsync(ConfigurationLauncherSettingsPatchArgs args) => PatchLauncherSettingsConfigurationAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update the launcher settings configuration @@ -9454,10 +9238,7 @@ namespace SecretServerRestClient.DSS /// Protocol handler settings update args /// protocol handler settings Configuration /// A server side error occurred. - public System.Threading.Tasks.Task PatchProtocolHandlerSettingsConfigurationAsync(ConfigurationProtocolHandlerSettingsPatchArgs args) - { - return PatchProtocolHandlerSettingsConfigurationAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchProtocolHandlerSettingsConfigurationAsync(ConfigurationProtocolHandlerSettingsPatchArgs args) => PatchProtocolHandlerSettingsConfigurationAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update the protocol handler settings configuration @@ -9565,10 +9346,7 @@ namespace SecretServerRestClient.DSS /// User experience update args /// User Experience Configuration /// A server side error occurred. - public System.Threading.Tasks.Task PatchUserExperienceConfigurationAsync(ConfigurationUserExperiencePatchArgs args) - { - return PatchUserExperienceConfigurationAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchUserExperienceConfigurationAsync(ConfigurationUserExperiencePatchArgs args) => PatchUserExperienceConfigurationAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update the user experience configuration @@ -9676,10 +9454,7 @@ namespace SecretServerRestClient.DSS /// User interface update args /// User Interface Configuration /// A server side error occurred. - public System.Threading.Tasks.Task PatchUserInterfaceConfigurationAsync(ConfigurationUserInterfacePatchArgs args) - { - return PatchUserInterfaceConfigurationAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchUserInterfaceConfigurationAsync(ConfigurationUserInterfacePatchArgs args) => PatchUserInterfaceConfigurationAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update the user interface configuration @@ -9787,10 +9562,7 @@ namespace SecretServerRestClient.DSS /// Email update args /// Email Configuration /// A server side error occurred. - public System.Threading.Tasks.Task PatchEmailConfigurationAsync(ConfigurationEmailPatchArgs args) - { - return PatchEmailConfigurationAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchEmailConfigurationAsync(ConfigurationEmailPatchArgs args) => PatchEmailConfigurationAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update the email configuration @@ -9897,10 +9669,7 @@ namespace SecretServerRestClient.DSS /// Rebuild Secret Search Index /// true if the job was queued /// A server side error occurred. - public System.Threading.Tasks.Task RebuildSecretSearchIndexerConfigurationAsync() - { - return RebuildSecretSearchIndexerConfigurationAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task RebuildSecretSearchIndexerConfigurationAsync() => RebuildSecretSearchIndexerConfigurationAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Rebuild Secret Search Index @@ -10004,10 +9773,7 @@ namespace SecretServerRestClient.DSS /// Start Automatic Export /// True if the job was queued /// A server side error occurred. - public System.Threading.Tasks.Task RunAutoExportNowAsync() - { - return RunAutoExportNowAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task RunAutoExportNowAsync() => RunAutoExportNowAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Start Automatic Export @@ -10111,10 +9877,7 @@ namespace SecretServerRestClient.DSS /// Start Database Backup /// true if the job was queued /// A server side error occurred. - public System.Threading.Tasks.Task RunBackupNowAsync() - { - return RunBackupNowAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task RunBackupNowAsync() => RunBackupNowAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Start Database Backup @@ -10356,10 +10119,7 @@ namespace SecretServerRestClient.DSS /// Get Connection Manager Settings /// Connection Manager Settings /// A server side error occurred. - public System.Threading.Tasks.Task GetAsync() - { - return GetAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAsync() => GetAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Connection Manager Settings @@ -10608,10 +10368,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// A list of statuses for secret syncing. /// A server side error occurred. - public System.Threading.Tasks.Task GetSyncStatusesAsync(bool? filter_includeInactive, int? filter_secretId, int? filter_tenantId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetSyncStatusesAsync(filter_includeInactive, filter_secretId, filter_tenantId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSyncStatusesAsync(bool? filter_includeInactive, int? filter_secretId, int? filter_tenantId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetSyncStatusesAsync(filter_includeInactive, filter_secretId, filter_tenantId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Information about secrets syncing. @@ -10756,10 +10513,7 @@ namespace SecretServerRestClient.DSS /// syncMapId /// The status of a secret syncing to a tenant. /// A server side error occurred. - public System.Threading.Tasks.Task GetSyncStatusAsync(int syncMapId) - { - return GetSyncStatusAsync(syncMapId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSyncStatusAsync(int syncMapId) => GetSyncStatusAsync(syncMapId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Information about secret syncing. @@ -10868,10 +10622,7 @@ namespace SecretServerRestClient.DSS /// args /// The status of the secret's sync. /// A server side error occurred. - public System.Threading.Tasks.Task CreateSyncAsync(DevOpsSecretsVaultCreateSyncArgs args) - { - return CreateSyncAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateSyncAsync(DevOpsSecretsVaultCreateSyncArgs args) => CreateSyncAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create a DevOps sync for a secret. @@ -10979,10 +10730,7 @@ namespace SecretServerRestClient.DSS /// args /// The status of the secret's sync. /// A server side error occurred. - public System.Threading.Tasks.Task> SyncSecretAsync(DevOpsSecretsVaultSyncSecretsArgs args) - { - return SyncSecretAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> SyncSecretAsync(DevOpsSecretsVaultSyncSecretsArgs args) => SyncSecretAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Sync a secret. @@ -11091,10 +10839,7 @@ namespace SecretServerRestClient.DSS /// syncSecretMapId /// The status of the secret's sync. /// A server side error occurred. - public System.Threading.Tasks.Task UpdateSyncAsync(DevOpsSecretsVaultCreateSyncArgs args, int syncSecretMapId) - { - return UpdateSyncAsync(args, syncSecretMapId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateSyncAsync(DevOpsSecretsVaultCreateSyncArgs args, int syncSecretMapId) => UpdateSyncAsync(args, syncSecretMapId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update a secret sync. @@ -11351,10 +11096,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// The DevOps Secrets Vault Tenants that were found. /// A server side error occurred. - public System.Threading.Tasks.Task GetListAsync(bool? filter_includeInactive, string filter_nameSearch, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetListAsync(filter_includeInactive, filter_nameSearch, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetListAsync(bool? filter_includeInactive, string filter_nameSearch, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetListAsync(filter_includeInactive, filter_nameSearch, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get DevOps Secrets Vault Tenants. @@ -11494,10 +11236,7 @@ namespace SecretServerRestClient.DSS /// args /// The DevOps Secrets Vault Tenant Id. /// A server side error occurred. - public System.Threading.Tasks.Task CreateAsync(DevOpsSecretsVaultCreateTenantArgs args) - { - return CreateAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateAsync(DevOpsSecretsVaultCreateTenantArgs args) => CreateAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Save a DevOps Secrets Vault Tenant. @@ -11605,10 +11344,7 @@ namespace SecretServerRestClient.DSS /// id /// The DevOps Secrets Vault Tenant model. /// A server side error occurred. - public System.Threading.Tasks.Task GetTenantAsync(int id) - { - return GetTenantAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetTenantAsync(int id) => GetTenantAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get a DevOps Secrets Vault Tenant. @@ -11718,10 +11454,7 @@ namespace SecretServerRestClient.DSS /// id /// The DevOps Secrets Vault Tenant Id. /// A server side error occurred. - public System.Threading.Tasks.Task UpdateAsync(DevOpsSecretsVaultUpdateTenantArgs args, int id) - { - return UpdateAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateAsync(DevOpsSecretsVaultUpdateTenantArgs args, int id) => UpdateAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update a DevOps Secrets Vault Tenant. @@ -11833,10 +11566,7 @@ namespace SecretServerRestClient.DSS /// DevOps Secrets Vault Tenant Model. /// A DevOps Secrets Vault Tenant with no values. /// A server side error occurred. - public System.Threading.Tasks.Task GetTenantStubAsync() - { - return GetTenantStubAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetTenantStubAsync() => GetTenantStubAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// DevOps Secrets Vault Tenant Model. @@ -11946,10 +11676,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// The paginated list of DSV Tenant audits. /// A server side error occurred. - public System.Threading.Tasks.Task GetTenantAuditsAsync(string filter_searchText, int? filter_tenantId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetTenantAuditsAsync(filter_searchText, filter_tenantId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetTenantAuditsAsync(string filter_searchText, int? filter_tenantId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetTenantAuditsAsync(filter_searchText, filter_tenantId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// DSV Tenant Audits. @@ -12226,10 +11953,7 @@ namespace SecretServerRestClient.DSS /// Get Diagnostic Information /// Diagnostics Info object /// A server side error occurred. - public System.Threading.Tasks.Task GetDiagnosticInformationAsync() - { - return GetDiagnosticInformationAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetDiagnosticInformationAsync() => GetDiagnosticInformationAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Diagnostic Information @@ -12332,10 +12056,7 @@ namespace SecretServerRestClient.DSS /// Get Background Processes /// Background Process Enumerable /// A server side error occurred. - public System.Threading.Tasks.Task> GetBackgroundProcessesAsync() - { - return GetBackgroundProcessesAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetBackgroundProcessesAsync() => GetBackgroundProcessesAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Background Processes @@ -12438,10 +12159,7 @@ namespace SecretServerRestClient.DSS /// Get Connectivity Report /// Connectivity Report /// A server side error occurred. - public System.Threading.Tasks.Task GetConnectivityReportAsync() - { - return GetConnectivityReportAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetConnectivityReportAsync() => GetConnectivityReportAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Connectivity Report @@ -12544,10 +12262,7 @@ namespace SecretServerRestClient.DSS /// Get App Settings /// App Setting Dictionary /// A server side error occurred. - public System.Threading.Tasks.Task GetAppSettingsAsync() - { - return GetAppSettingsAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAppSettingsAsync() => GetAppSettingsAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get App Settings @@ -12650,10 +12365,7 @@ namespace SecretServerRestClient.DSS /// Get Quartz Jobs /// Enumerable of Quartz Jobs /// A server side error occurred. - public System.Threading.Tasks.Task> GetQuartzJobsAsync() - { - return GetQuartzJobsAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetQuartzJobsAsync() => GetQuartzJobsAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Quartz Jobs @@ -12756,10 +12468,7 @@ namespace SecretServerRestClient.DSS /// Get General Logs /// Get General Logs /// A server side error occurred. - public System.Threading.Tasks.Task GetGeneralLogsAsync() - { - return GetGeneralLogsAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetGeneralLogsAsync() => GetGeneralLogsAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get General Logs @@ -12862,10 +12571,7 @@ namespace SecretServerRestClient.DSS /// Get System Logs /// Get System Logs /// A server side error occurred. - public System.Threading.Tasks.Task GetSystemLogsAsync() - { - return GetSystemLogsAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSystemLogsAsync() => GetSystemLogsAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get System Logs @@ -12968,10 +12674,7 @@ namespace SecretServerRestClient.DSS /// Get Discovery Logs /// Get Discovery Logs /// A server side error occurred. - public System.Threading.Tasks.Task GetDiscoveryLogsAsync() - { - return GetDiscoveryLogsAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetDiscoveryLogsAsync() => GetDiscoveryLogsAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Discovery Logs @@ -13074,10 +12777,7 @@ namespace SecretServerRestClient.DSS /// Get ComputerScan Logs /// Get ComputerScan Logs /// A server side error occurred. - public System.Threading.Tasks.Task GetComputerScanLogsAsync() - { - return GetComputerScanLogsAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetComputerScanLogsAsync() => GetComputerScanLogsAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get ComputerScan Logs @@ -13180,10 +12880,7 @@ namespace SecretServerRestClient.DSS /// Get RPC Logs /// Get RPC Logs /// A server side error occurred. - public System.Threading.Tasks.Task GetRPCLogsAsync() - { - return GetRPCLogsAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetRPCLogsAsync() => GetRPCLogsAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get RPC Logs @@ -13286,10 +12983,7 @@ namespace SecretServerRestClient.DSS /// Get Heartbeat Logs /// Get Heartbeat Logs /// A server side error occurred. - public System.Threading.Tasks.Task GetHeartbeatLogsAsync() - { - return GetHeartbeatLogsAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetHeartbeatLogsAsync() => GetHeartbeatLogsAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Heartbeat Logs @@ -13392,10 +13086,7 @@ namespace SecretServerRestClient.DSS /// Clear Quartz Job Errors /// Clear Quartz Job Errors Success /// A server side error occurred. - public System.Threading.Tasks.Task ClearQuartzJobErrorsAsync() - { - return ClearQuartzJobErrorsAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task ClearQuartzJobErrorsAsync() => ClearQuartzJobErrorsAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Clear Quartz Job Errors @@ -13499,10 +13190,7 @@ namespace SecretServerRestClient.DSS /// Clear Upgrade In Progress /// Clear Upgrade In Progress Success /// A server side error occurred. - public System.Threading.Tasks.Task ClearUpgradeInProgressAsync() - { - return ClearUpgradeInProgressAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task ClearUpgradeInProgressAsync() => ClearUpgradeInProgressAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Clear Upgrade In Progress @@ -13606,10 +13294,7 @@ namespace SecretServerRestClient.DSS /// Test Event Log /// Test Event Log Success /// A server side error occurred. - public System.Threading.Tasks.Task TestEventLogAsync() - { - return TestEventLogAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task TestEventLogAsync() => TestEventLogAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Test Event Log @@ -13853,10 +13538,7 @@ namespace SecretServerRestClient.DSS /// groupId /// Success status /// A server side error occurred. - public System.Threading.Tasks.Task UnlinkDomainGroupAsync(int domainId, int groupId) - { - return UnlinkDomainGroupAsync(domainId, groupId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UnlinkDomainGroupAsync(int domainId, int groupId) => UnlinkDomainGroupAsync(domainId, groupId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Unlink a group from domain @@ -13970,10 +13652,7 @@ namespace SecretServerRestClient.DSS /// paging /// Synchronization log entries /// A server side error occurred. - public System.Threading.Tasks.Task GetSynchronizationLogAsync(object paging) - { - return GetSynchronizationLogAsync(paging, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSynchronizationLogAsync(object paging) => GetSynchronizationLogAsync(paging, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Synchronization Log @@ -14081,10 +13760,7 @@ namespace SecretServerRestClient.DSS /// Directory Services Sync Status /// Whether or not the sync has started /// A server side error occurred. - public System.Threading.Tasks.Task GetSynchronizationStatusAsync() - { - return GetSynchronizationStatusAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSynchronizationStatusAsync() => GetSynchronizationStatusAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Directory Services Sync Status @@ -14194,10 +13870,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Domains that matched /// A server side error occurred. - public System.Threading.Tasks.Task SearchDomainsAsync(string filter_domainName, bool? filter_includeInactive, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchDomainsAsync(filter_domainName, filter_includeInactive, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchDomainsAsync(string filter_domainName, bool? filter_includeInactive, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchDomainsAsync(filter_domainName, filter_includeInactive, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Domains @@ -14337,10 +14010,7 @@ namespace SecretServerRestClient.DSS /// args /// Domain that was just created /// A server side error occurred. - public System.Threading.Tasks.Task CreateDomainAsync(DomainCreateArgs args) - { - return CreateDomainAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateDomainAsync(DomainCreateArgs args) => CreateDomainAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create Domain @@ -14448,10 +14118,7 @@ namespace SecretServerRestClient.DSS /// id /// Domain that was found /// A server side error occurred. - public System.Threading.Tasks.Task GetDomainAsync(int id) - { - return GetDomainAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetDomainAsync(int id) => GetDomainAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get a Domain @@ -14560,10 +14227,7 @@ namespace SecretServerRestClient.DSS /// id /// Ldap synchronization settings for the domain /// A server side error occurred. - public System.Threading.Tasks.Task GetLdapSyncSettingsAsync(int id) - { - return GetLdapSyncSettingsAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetLdapSyncSettingsAsync(int id) => GetLdapSyncSettingsAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Ldap synchronization settings for a domain @@ -14672,10 +14336,7 @@ namespace SecretServerRestClient.DSS /// domainType /// Domain Stub /// A server side error occurred. - public System.Threading.Tasks.Task GetDomainStubAsync(string domainType) - { - return GetDomainStubAsync(domainType, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetDomainStubAsync(string domainType) => GetDomainStubAsync(domainType, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get a Domain Stub @@ -14786,10 +14447,7 @@ namespace SecretServerRestClient.DSS /// Search text. Use * for wildcards, ex: Admin*. Leave empty to return all. /// Array of groups matching search criteria /// A server side error occurred. - public System.Threading.Tasks.Task SearchDirectoryForGroupsAsync(int domainId, string searchText) - { - return SearchDirectoryForGroupsAsync(domainId, searchText, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchDirectoryForGroupsAsync(int domainId, string searchText) => SearchDirectoryForGroupsAsync(domainId, searchText, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search in the directory for groups @@ -14906,10 +14564,7 @@ namespace SecretServerRestClient.DSS /// Name of the Group /// Array of users in the passed in group /// A server side error occurred. - public System.Threading.Tasks.Task GetDirectoryGroupMembersAsync(int domainId, string domainIdentifier, string groupName) - { - return GetDirectoryGroupMembersAsync(domainId, domainIdentifier, groupName, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetDirectoryGroupMembersAsync(int domainId, string domainIdentifier, string groupName) => GetDirectoryGroupMembersAsync(domainId, domainIdentifier, groupName, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search in the directory for members of a group @@ -15028,10 +14683,7 @@ namespace SecretServerRestClient.DSS /// Directory Services Configuration /// Directory Services Configuration /// A server side error occurred. - public System.Threading.Tasks.Task GetDirectoryServicesConfigurationAsync() - { - return GetDirectoryServicesConfigurationAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetDirectoryServicesConfigurationAsync() => GetDirectoryServicesConfigurationAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Directory Services Configuration @@ -15135,10 +14787,7 @@ namespace SecretServerRestClient.DSS /// args /// Updated Directory Services Configuration /// A server side error occurred. - public System.Threading.Tasks.Task PatchDirectoryServicesConfigurationAsync(DirectoryServicesConfigurationUpdateArgs args) - { - return PatchDirectoryServicesConfigurationAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchDirectoryServicesConfigurationAsync(DirectoryServicesConfigurationUpdateArgs args) => PatchDirectoryServicesConfigurationAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Directory Services Configuration @@ -15247,10 +14896,7 @@ namespace SecretServerRestClient.DSS /// domainId /// Domain that was just updated /// A server side error occurred. - public System.Threading.Tasks.Task PatchLdapSyncSettingsAsync(object args, int domainId) - { - return PatchLdapSyncSettingsAsync(args, domainId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchLdapSyncSettingsAsync(object args, int domainId) => PatchLdapSyncSettingsAsync(args, domainId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Patch Ldap Sync Settings for a domain @@ -15366,10 +15012,7 @@ namespace SecretServerRestClient.DSS /// domainId /// Domain that was just updated /// A server side error occurred. - public System.Threading.Tasks.Task PatchDomainAsync(object args, int domainId) - { - return PatchDomainAsync(args, domainId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchDomainAsync(object args, int domainId) => PatchDomainAsync(args, domainId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Patch a domain @@ -15483,10 +15126,7 @@ namespace SecretServerRestClient.DSS /// Synchronize all directory services /// True if the command was initiated successfully /// A server side error occurred. - public System.Threading.Tasks.Task SynchronizeNowAsync() - { - return SynchronizeNowAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SynchronizeNowAsync() => SynchronizeNowAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Synchronize all directory services @@ -15592,10 +15232,7 @@ namespace SecretServerRestClient.DSS /// domainId /// Success status /// A server side error occurred. - public System.Threading.Tasks.Task LinkDomainGroupAsync(LinkDomainGroupArgs args, int domainId) - { - return LinkDomainGroupAsync(args, domainId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task LinkDomainGroupAsync(LinkDomainGroupArgs args, int domainId) => LinkDomainGroupAsync(args, domainId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Link a group from the directory @@ -15854,10 +15491,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// The Discovery Source Views /// A server side error occurred. - public System.Threading.Tasks.Task SearchDiscoverySourcesAsync(string filter_discoverySourceName, string filter_discoverySourceType, bool? filter_includeActive, bool? filter_includeInactive, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchDiscoverySourcesAsync(filter_discoverySourceName, filter_discoverySourceType, filter_includeActive, filter_includeInactive, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchDiscoverySourcesAsync(string filter_discoverySourceName, string filter_discoverySourceType, bool? filter_includeActive, bool? filter_includeInactive, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchDiscoverySourcesAsync(filter_discoverySourceName, filter_discoverySourceType, filter_includeActive, filter_includeInactive, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get discovery sources @@ -16007,10 +15641,7 @@ namespace SecretServerRestClient.DSS /// Discovery Source ID /// The Discovery Source View /// A server side error occurred. - public System.Threading.Tasks.Task GetDiscoverySourceAsync(int id) - { - return GetDiscoverySourceAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetDiscoverySourceAsync(int id) => GetDiscoverySourceAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get discovery source @@ -16120,10 +15751,7 @@ namespace SecretServerRestClient.DSS /// Discovery Source ID /// The updated discovery source /// A server side error occurred. - public System.Threading.Tasks.Task UpdateDiscoverySourceAsync(DiscoverySourceUpdateArgs args, int id) - { - return UpdateDiscoverySourceAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateDiscoverySourceAsync(DiscoverySourceUpdateArgs args, int id) => UpdateDiscoverySourceAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update a discovery source @@ -16236,10 +15864,7 @@ namespace SecretServerRestClient.DSS /// Discovery Source Type ID /// Discovery Source Stub /// A server side error occurred. - public System.Threading.Tasks.Task GetDiscoverySourceStubAsync(int typeId) - { - return GetDiscoverySourceStubAsync(typeId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetDiscoverySourceStubAsync(int typeId) => GetDiscoverySourceStubAsync(typeId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get a Discovery Source Stub @@ -16347,10 +15972,7 @@ namespace SecretServerRestClient.DSS /// Get Discovery Configuration /// Discovery Configuration /// A server side error occurred. - public System.Threading.Tasks.Task GetDiscoveryConfigurationAsync() - { - return GetDiscoveryConfigurationAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetDiscoveryConfigurationAsync() => GetDiscoveryConfigurationAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Discovery Configuration @@ -16454,10 +16076,7 @@ namespace SecretServerRestClient.DSS /// args /// The updated discovery configuration /// A server side error occurred. - public System.Threading.Tasks.Task UpdateDiscoveryConfigurationAsync(DiscoveryConfigurationUpdateArgs args) - { - return UpdateDiscoveryConfigurationAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateDiscoveryConfigurationAsync(DiscoveryConfigurationUpdateArgs args) => UpdateDiscoveryConfigurationAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update discovery configuration @@ -16564,10 +16183,7 @@ namespace SecretServerRestClient.DSS /// Get Discovery Status /// Discovery Status /// A server side error occurred. - public System.Threading.Tasks.Task GetDiscoveryStatusAsync() - { - return GetDiscoveryStatusAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetDiscoveryStatusAsync() => GetDiscoveryStatusAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Discovery Status @@ -16671,10 +16287,7 @@ namespace SecretServerRestClient.DSS /// discoverySourceId /// Discovery Scanner Types /// A server side error occurred. - public System.Threading.Tasks.Task> GetAvailableDiscoverySourceScannersAsync(int discoverySourceId) - { - return GetAvailableDiscoverySourceScannersAsync(discoverySourceId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetAvailableDiscoverySourceScannersAsync(int discoverySourceId) => GetAvailableDiscoverySourceScannersAsync(discoverySourceId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Discovery Source Available Scanners @@ -16783,10 +16396,7 @@ namespace SecretServerRestClient.DSS /// discoverySourceId /// Collection of scanner settings /// A server side error occurred. - public System.Threading.Tasks.Task> SearchDiscoverySourceScannerSettingsAsync(int discoverySourceId) - { - return SearchDiscoverySourceScannerSettingsAsync(discoverySourceId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> SearchDiscoverySourceScannerSettingsAsync(int discoverySourceId) => SearchDiscoverySourceScannerSettingsAsync(discoverySourceId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Scanner Settings @@ -16894,10 +16504,7 @@ namespace SecretServerRestClient.DSS /// Get Discovery Scan Types /// Discovery Scan Types /// A server side error occurred. - public System.Threading.Tasks.Task> GetScanTypesAsync() - { - return GetScanTypesAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetScanTypesAsync() => GetScanTypesAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Discovery Scan Types @@ -17006,10 +16613,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Discovery Source Audits /// A server side error occurred. - public System.Threading.Tasks.Task GetDiscoverySourceAuditsAsync(int? filter_discoverySourceId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetDiscoverySourceAuditsAsync(filter_discoverySourceId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetDiscoverySourceAuditsAsync(int? filter_discoverySourceId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetDiscoverySourceAuditsAsync(filter_discoverySourceId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Discovery Source Audits @@ -17148,10 +16752,7 @@ namespace SecretServerRestClient.DSS /// The number of items to return /// The Discovery OU /// A server side error occurred. - public System.Threading.Tasks.Task> SearchForDomainOuAsync(int discoverySourceId, bool? include, string searchText, System.Collections.Generic.IEnumerable selectedIds, int? take) - { - return SearchForDomainOuAsync(discoverySourceId, include, searchText, selectedIds, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> SearchForDomainOuAsync(int discoverySourceId, bool? include, string searchText, System.Collections.Generic.IEnumerable selectedIds, int? take) => SearchForDomainOuAsync(discoverySourceId, include, searchText, selectedIds, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get and include or exclude for discovery @@ -17281,10 +16882,7 @@ namespace SecretServerRestClient.DSS /// id /// The source filter for a discovery source /// A server side error occurred. - public System.Threading.Tasks.Task GetDiscoverySourceFilterAsync(int id) - { - return GetDiscoverySourceFilterAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetDiscoverySourceFilterAsync(int id) => GetDiscoverySourceFilterAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get the source filter for a discovery source @@ -17394,10 +16992,7 @@ namespace SecretServerRestClient.DSS /// memberId /// True /// A server side error occurred. - public System.Threading.Tasks.Task PatchDiscoverySourceFilterAsync(DiscoverySourceFilterPatchArgs args, int memberId) - { - return PatchDiscoverySourceFilterAsync(args, memberId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchDiscoverySourceFilterAsync(DiscoverySourceFilterPatchArgs args, int memberId) => PatchDiscoverySourceFilterAsync(args, memberId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Patches discovery source filter @@ -17510,10 +17105,7 @@ namespace SecretServerRestClient.DSS /// args /// The new discovery source /// A server side error occurred. - public System.Threading.Tasks.Task CreateDiscoverySourceAsync(DiscoverySourceCreateArgs args) - { - return CreateDiscoverySourceAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateDiscoverySourceAsync(DiscoverySourceCreateArgs args) => CreateDiscoverySourceAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create a new discovery source @@ -17621,10 +17213,7 @@ namespace SecretServerRestClient.DSS /// args /// true to indicate the command was triggered /// A server side error occurred. - public System.Threading.Tasks.Task RunDiscoveryNowAsync(DiscoveryRunArgs args) - { - return RunDiscoveryNowAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task RunDiscoveryNowAsync(DiscoveryRunArgs args) => RunDiscoveryNowAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Run a discovery command @@ -17733,10 +17322,7 @@ namespace SecretServerRestClient.DSS /// discoverySourceId /// New scanner setting /// A server side error occurred. - public System.Threading.Tasks.Task CreateDiscoverySourceScannerSettingsAsync(DiscoveryScannerSettingCreateArgs args, int discoverySourceId) - { - return CreateDiscoverySourceScannerSettingsAsync(args, discoverySourceId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateDiscoverySourceScannerSettingsAsync(DiscoveryScannerSettingCreateArgs args, int discoverySourceId) => CreateDiscoverySourceScannerSettingsAsync(args, discoverySourceId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create scanner setting @@ -17850,10 +17436,7 @@ namespace SecretServerRestClient.DSS /// discoverySourceId /// The source filter for a discovery source /// A server side error occurred. - public System.Threading.Tasks.Task UpdateDiscoverySourceFiltersAsync(DiscoverySourceFiltersUpdateArgs args, int discoverySourceId) - { - return UpdateDiscoverySourceFiltersAsync(args, discoverySourceId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateDiscoverySourceFiltersAsync(DiscoverySourceFiltersUpdateArgs args, int discoverySourceId) => UpdateDiscoverySourceFiltersAsync(args, discoverySourceId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates discovery source filters @@ -18103,10 +17686,7 @@ namespace SecretServerRestClient.DSS /// Distributed Engine Configuration /// Distributed Engines Configuration /// A server side error occurred. - public System.Threading.Tasks.Task GetDistributedEngineConfigurationAsync() - { - return GetDistributedEngineConfigurationAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetDistributedEngineConfigurationAsync() => GetDistributedEngineConfigurationAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Distributed Engine Configuration @@ -18210,10 +17790,7 @@ namespace SecretServerRestClient.DSS /// args /// Updated Distributed Engine Configuration /// A server side error occurred. - public System.Threading.Tasks.Task PatchDistributedEngineConfigurationAsync(DistributedEngineConfigurationUpdateArgs args) - { - return PatchDistributedEngineConfigurationAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchDistributedEngineConfigurationAsync(DistributedEngineConfigurationUpdateArgs args) => PatchDistributedEngineConfigurationAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Distributed Engine Configuration @@ -18326,10 +17903,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Site Connectors that matched /// A server side error occurred. - public System.Threading.Tasks.Task SearchSiteConnectorsAsync(bool? filter_includeInactive, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchSiteConnectorsAsync(filter_includeInactive, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchSiteConnectorsAsync(bool? filter_includeInactive, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchSiteConnectorsAsync(filter_includeInactive, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Site Connectors @@ -18464,10 +18038,7 @@ namespace SecretServerRestClient.DSS /// id /// Site Connector if found /// A server side error occurred. - public System.Threading.Tasks.Task GetSiteConnectorAsync(int id) - { - return GetSiteConnectorAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSiteConnectorAsync(int id) => GetSiteConnectorAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Site Connector @@ -18577,10 +18148,7 @@ namespace SecretServerRestClient.DSS /// id /// Updated Site Connector object /// A server side error occurred. - public System.Threading.Tasks.Task UpdateSiteConnectorAsync(SiteConnectorUpdateArgs args, int id) - { - return UpdateSiteConnectorAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateSiteConnectorAsync(SiteConnectorUpdateArgs args, int id) => UpdateSiteConnectorAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Site Connector @@ -18693,10 +18261,7 @@ namespace SecretServerRestClient.DSS /// QueueType /// Stub of a Site Connector model /// A server side error occurred. - public System.Threading.Tasks.Task GetSiteConnectorStubAsync(string queueType) - { - return GetSiteConnectorStubAsync(queueType, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSiteConnectorStubAsync(string queueType) => GetSiteConnectorStubAsync(queueType, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Site Connector Stub @@ -18806,10 +18371,7 @@ namespace SecretServerRestClient.DSS /// siteConnectorId /// Site Connector Credentials /// A server side error occurred. - public System.Threading.Tasks.Task GetSiteConnectorCredentialsAsync(int siteConnectorId) - { - return GetSiteConnectorCredentialsAsync(siteConnectorId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSiteConnectorCredentialsAsync(int siteConnectorId) => GetSiteConnectorCredentialsAsync(siteConnectorId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Site Connector Credentials @@ -18927,10 +18489,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Engines that matched /// A server side error occurred. - public System.Threading.Tasks.Task SearchEnginesAsync(string filter_activationStatus, string filter_connectionStatus, string filter_friendlyName, bool? filter_onlyIncludeRequiringAction, int? filter_siteId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchEnginesAsync(filter_activationStatus, filter_connectionStatus, filter_friendlyName, filter_onlyIncludeRequiringAction, filter_siteId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchEnginesAsync(string filter_activationStatus, string filter_connectionStatus, string filter_friendlyName, bool? filter_onlyIncludeRequiringAction, int? filter_siteId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchEnginesAsync(filter_activationStatus, filter_connectionStatus, filter_friendlyName, filter_onlyIncludeRequiringAction, filter_siteId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Engines @@ -19094,10 +18653,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Sites that matched /// A server side error occurred. - public System.Threading.Tasks.Task SearchSitesAsync(bool? filter_includeInactive, bool? filter_includeSiteMetrics, bool? filter_onlyIncludeSitesThatCanAddNewEngines, int? filter_siteId, string filter_siteName, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchSitesAsync(filter_includeInactive, filter_includeSiteMetrics, filter_onlyIncludeSitesThatCanAddNewEngines, filter_siteId, filter_siteName, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchSitesAsync(bool? filter_includeInactive, bool? filter_includeSiteMetrics, bool? filter_onlyIncludeSitesThatCanAddNewEngines, int? filter_siteId, string filter_siteName, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchSitesAsync(filter_includeInactive, filter_includeSiteMetrics, filter_onlyIncludeSitesThatCanAddNewEngines, filter_siteId, filter_siteName, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Sites @@ -19252,10 +18808,7 @@ namespace SecretServerRestClient.DSS /// id /// Site if found /// A server side error occurred. - public System.Threading.Tasks.Task GetSiteAsync(int id) - { - return GetSiteAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSiteAsync(int id) => GetSiteAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Site @@ -19365,10 +18918,7 @@ namespace SecretServerRestClient.DSS /// id /// Patch Site object /// A server side error occurred. - public System.Threading.Tasks.Task PatchSiteAsync(SiteUpdateArgs args, int id) - { - return PatchSiteAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchSiteAsync(SiteUpdateArgs args, int id) => PatchSiteAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Patch Site @@ -19480,10 +19030,7 @@ namespace SecretServerRestClient.DSS /// Get Site Stub /// Stub of a Site model /// A server side error occurred. - public System.Threading.Tasks.Task GetSiteStubAsync() - { - return GetSiteStubAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSiteStubAsync() => GetSiteStubAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Site Stub @@ -19592,10 +19139,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Paged List of Audits /// A server side error occurred. - public System.Threading.Tasks.Task GetSiteAuditsAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetSiteAuditsAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSiteAuditsAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetSiteAuditsAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// GetSiteAudits @@ -19737,10 +19281,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Paged List of Logs /// A server side error occurred. - public System.Threading.Tasks.Task SearchSiteLogsAsync(int id, int? filter_engineId, string filter_searchTerm, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchSiteLogsAsync(id, filter_engineId, filter_searchTerm, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchSiteLogsAsync(int id, int? filter_engineId, string filter_searchTerm, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchSiteLogsAsync(id, filter_engineId, filter_searchTerm, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// SearchSiteLogs @@ -19885,10 +19426,7 @@ namespace SecretServerRestClient.DSS /// id /// MemoryMQ File Download /// A server side error occurred. - public System.Threading.Tasks.Task DownloadMemoryMqAsync(int id) - { - return DownloadMemoryMqAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DownloadMemoryMqAsync(int id) => DownloadMemoryMqAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Download Memory MQ @@ -19997,10 +19535,7 @@ namespace SecretServerRestClient.DSS /// id /// Returns the server capabilities of an engine's server /// A server side error occurred. - public System.Threading.Tasks.Task> GetServerCapabilitiesAsync(int id) - { - return GetServerCapabilitiesAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetServerCapabilitiesAsync(int id) => GetServerCapabilitiesAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Server Capabilities @@ -20110,10 +19645,7 @@ namespace SecretServerRestClient.DSS /// siteId /// DistributedEngine File Download /// A server side error occurred. - public System.Threading.Tasks.Task DownloadDistributedEngineAsync(bool is64Bit, int siteId) - { - return DownloadDistributedEngineAsync(is64Bit, siteId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DownloadDistributedEngineAsync(bool is64Bit, int siteId) => DownloadDistributedEngineAsync(is64Bit, siteId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Download Distributed Engine @@ -20227,10 +19759,7 @@ namespace SecretServerRestClient.DSS /// args /// Site Connector object /// A server side error occurred. - public System.Threading.Tasks.Task CreateSiteConnectorAsync(SiteConnectorCreateArgs args) - { - return CreateSiteConnectorAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateSiteConnectorAsync(SiteConnectorCreateArgs args) => CreateSiteConnectorAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create Site Connector @@ -20338,10 +19867,7 @@ namespace SecretServerRestClient.DSS /// siteConnectorId /// Site Connector validation result /// A server side error occurred. - public System.Threading.Tasks.Task ValidateSiteConnectorAsync(int siteConnectorId) - { - return ValidateSiteConnectorAsync(siteConnectorId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task ValidateSiteConnectorAsync(int siteConnectorId) => ValidateSiteConnectorAsync(siteConnectorId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Validate Site Connector @@ -20451,10 +19977,7 @@ namespace SecretServerRestClient.DSS /// args /// Engine Activation Result Model /// A server side error occurred. - public System.Threading.Tasks.Task UpdateEngineStatusAsync(EngineActivationRequestArgs args) - { - return UpdateEngineStatusAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateEngineStatusAsync(EngineActivationRequestArgs args) => UpdateEngineStatusAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Activate Engine @@ -20562,10 +20085,7 @@ namespace SecretServerRestClient.DSS /// args /// Site object /// A server side error occurred. - public System.Threading.Tasks.Task CreateSiteAsync(SiteCreateArgs args) - { - return CreateSiteAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateSiteAsync(SiteCreateArgs args) => CreateSiteAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create Site @@ -20674,10 +20194,7 @@ namespace SecretServerRestClient.DSS /// id /// The site model /// A server side error occurred. - public System.Threading.Tasks.Task ReassignSecretsAsync(ReassignSecretsArgs args, int id) - { - return ReassignSecretsAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task ReassignSecretsAsync(ReassignSecretsArgs args, int id) => ReassignSecretsAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Reassign Secrets From the Site @@ -20927,10 +20444,7 @@ namespace SecretServerRestClient.DSS /// Delete all domain name index records /// Delete success /// A server side error occurred. - public System.Threading.Tasks.Task TruncateDomainNameIndexAsync() - { - return TruncateDomainNameIndexAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task TruncateDomainNameIndexAsync() => TruncateDomainNameIndexAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete all domain name index records @@ -21041,10 +20555,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// The Domain Name Index View /// A server side error occurred. - public System.Threading.Tasks.Task GetDomainNameIndexAsync(int? filter_discoverySourceIdScanned, string filter_domainName, string filter_domainResolveType, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetDomainNameIndexAsync(filter_discoverySourceIdScanned, filter_domainName, filter_domainResolveType, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetDomainNameIndexAsync(int? filter_discoverySourceIdScanned, string filter_domainName, string filter_domainResolveType, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetDomainNameIndexAsync(filter_discoverySourceIdScanned, filter_domainName, filter_domainResolveType, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get a domain name index @@ -21190,10 +20701,7 @@ namespace SecretServerRestClient.DSS /// Domain Name Index ID /// The updated domain name index /// A server side error occurred. - public System.Threading.Tasks.Task UpdateDomainNameIndexAsync(DomainNameIndexUpdateArgs args, int id) - { - return UpdateDomainNameIndexAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateDomainNameIndexAsync(DomainNameIndexUpdateArgs args, int id) => UpdateDomainNameIndexAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update a domain name index @@ -21306,10 +20814,7 @@ namespace SecretServerRestClient.DSS /// args /// The new domain name index /// A server side error occurred. - public System.Threading.Tasks.Task CreateDomainNameIndexAsync(DomainNameIndexCreateArgs args) - { - return CreateDomainNameIndexAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateDomainNameIndexAsync(DomainNameIndexCreateArgs args) => CreateDomainNameIndexAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create a new domain name index @@ -21417,10 +20922,7 @@ namespace SecretServerRestClient.DSS /// Domain Name Index ID /// The updated domain name index /// A server side error occurred. - public System.Threading.Tasks.Task ExpireSingleDomainNameIndexAsync(int id) - { - return ExpireSingleDomainNameIndexAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task ExpireSingleDomainNameIndexAsync(int id) => ExpireSingleDomainNameIndexAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Expire a domain name index @@ -21530,10 +21032,7 @@ namespace SecretServerRestClient.DSS /// args /// Expire success /// A server side error occurred. - public System.Threading.Tasks.Task ExpireAllDomainNameIndexAsync(DomainNameIndexExpireUpdateArgs args) - { - return ExpireAllDomainNameIndexAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task ExpireAllDomainNameIndexAsync(DomainNameIndexExpireUpdateArgs args) => ExpireAllDomainNameIndexAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Expire all domain name index records @@ -21641,10 +21140,7 @@ namespace SecretServerRestClient.DSS /// Delete success /// Delete success /// A server side error occurred. - public System.Threading.Tasks.Task DeleteSingleDomainNameIndexAsync(int id) - { - return DeleteSingleDomainNameIndexAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DeleteSingleDomainNameIndexAsync(int id) => DeleteSingleDomainNameIndexAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete a domain name index @@ -21892,10 +21388,7 @@ namespace SecretServerRestClient.DSS /// Dual control ID /// Dual control object /// A server side error occurred. - public System.Threading.Tasks.Task GetAsync(int id) - { - return GetAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAsync(int id) => GetAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Dual Control @@ -22005,10 +21498,7 @@ namespace SecretServerRestClient.DSS /// Dual control ID /// Dual control object /// A server side error occurred. - public System.Threading.Tasks.Task UpdateAsync(DualControlUpdateArgs args, int id) - { - return UpdateAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateAsync(DualControlUpdateArgs args, int id) => UpdateAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Dual Control @@ -22121,10 +21611,7 @@ namespace SecretServerRestClient.DSS /// Dual control ID /// Object deletion result /// A server side error occurred. - public System.Threading.Tasks.Task DeleteAsync(int id) - { - return DeleteAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DeleteAsync(int id) => DeleteAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete Dual Control @@ -22234,10 +21721,7 @@ namespace SecretServerRestClient.DSS /// id /// Dual Control State /// A server side error occurred. - public System.Threading.Tasks.Task GetAllReportsAsync(string dualControlType, int id) - { - return GetAllReportsAsync(dualControlType, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAllReportsAsync(string dualControlType, int id) => GetAllReportsAsync(dualControlType, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get dual control state for the current item @@ -22356,10 +21840,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Dual control search result object /// A server side error occurred. - public System.Threading.Tasks.Task SearchDualControlsAsync(bool? filter_includeInactive, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchDualControlsAsync(filter_includeInactive, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchDualControlsAsync(bool? filter_includeInactive, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchDualControlsAsync(filter_includeInactive, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Dual Controls @@ -22494,10 +21975,7 @@ namespace SecretServerRestClient.DSS /// Dual control creation options /// Dual control object /// A server side error occurred. - public System.Threading.Tasks.Task CreateAsync(DualControlCreateArgs args) - { - return CreateAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateAsync(DualControlCreateArgs args) => CreateAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create Dual Control @@ -22604,10 +22082,7 @@ namespace SecretServerRestClient.DSS /// Get Dual Control Types /// Dual control type objects /// A server side error occurred. - public System.Threading.Tasks.Task> GetTypesAsync() - { - return GetTypesAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetTypesAsync() => GetTypesAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Dual Control Types @@ -22710,10 +22185,7 @@ namespace SecretServerRestClient.DSS /// Get Dual Control Stub /// Dual control object /// A server side error occurred. - public System.Threading.Tasks.Task StubAsync() - { - return StubAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task StubAsync() => StubAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Dual Control Stub @@ -22819,10 +22291,7 @@ namespace SecretServerRestClient.DSS /// id /// Dual control authorization result /// A server side error occurred. - public System.Threading.Tasks.Task AuthorizeDualControlAsync(DualControlAuthArgs args, string dualControlType, int id) - { - return AuthorizeDualControlAsync(args, dualControlType, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task AuthorizeDualControlAsync(DualControlAuthArgs args, string dualControlType, int id) => AuthorizeDualControlAsync(args, dualControlType, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Authorize a dual control @@ -23078,10 +22547,7 @@ namespace SecretServerRestClient.DSS /// requestId /// EnterpriseSummaryModel for given TaskId /// A server side error occurred. - public System.Threading.Tasks.Task GetRequestDataAsync(int requestId) - { - return GetRequestDataAsync(requestId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetRequestDataAsync(int requestId) => GetRequestDataAsync(requestId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// GetRequestData @@ -23190,10 +22656,7 @@ namespace SecretServerRestClient.DSS /// args /// Model of request /// A server side error occurred. - public System.Threading.Tasks.Task SearchRequestDataAsync(object args) - { - return SearchRequestDataAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchRequestDataAsync(object args) => SearchRequestDataAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Request Enterprise Data @@ -23446,10 +22909,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// A paged list of audit entries /// A server side error occurred. - public System.Threading.Tasks.Task GetAllPipelineAndPolicyAuditsAsync(int? filter_eventPipelinePolicyId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetAllPipelineAndPolicyAuditsAsync(filter_eventPipelinePolicyId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAllPipelineAndPolicyAuditsAsync(int? filter_eventPipelinePolicyId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetAllPipelineAndPolicyAuditsAsync(filter_eventPipelinePolicyId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Pipeline / Policy Audits @@ -23722,10 +23182,7 @@ namespace SecretServerRestClient.DSS /// Event Pipeline ID /// The Event Pipeline View /// A server side error occurred. - public System.Threading.Tasks.Task GetEventPipelineAsync(int id) - { - return GetEventPipelineAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetEventPipelineAsync(int id) => GetEventPipelineAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get an Event Pipeline @@ -23835,10 +23292,7 @@ namespace SecretServerRestClient.DSS /// Event Pipeline ID /// The updated Event Pipeline /// A server side error occurred. - public System.Threading.Tasks.Task UpdateEventPipelinesAsync(EventPipelineUpdateArgs args, int id) - { - return UpdateEventPipelinesAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateEventPipelinesAsync(EventPipelineUpdateArgs args, int id) => UpdateEventPipelinesAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update an Event Pipeline @@ -23960,10 +23414,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// The list of Event Pipelines /// A server side error occurred. - public System.Threading.Tasks.Task GetEventPipelinesAsync(int? filter_eventEntityTypeId, string filter_eventPipelineName, int? filter_eventPipelinePolicyId, bool? filter_includeActive, bool? filter_includeInactive, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetEventPipelinesAsync(filter_eventEntityTypeId, filter_eventPipelineName, filter_eventPipelinePolicyId, filter_includeActive, filter_includeInactive, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetEventPipelinesAsync(int? filter_eventEntityTypeId, string filter_eventPipelineName, int? filter_eventPipelinePolicyId, bool? filter_includeActive, bool? filter_includeInactive, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetEventPipelinesAsync(filter_eventEntityTypeId, filter_eventPipelineName, filter_eventPipelinePolicyId, filter_includeActive, filter_includeInactive, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get a list of Event Pipelines @@ -24127,10 +23578,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// The summaries of Event Pipelines /// A server side error occurred. - public System.Threading.Tasks.Task GetEventPipelineSummariesAsync(int? filter_eventEntityTypeId, string filter_eventPipelineName, int? filter_eventPipelinePolicyId, bool? filter_includeActive, bool? filter_includeInactive, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetEventPipelineSummariesAsync(filter_eventEntityTypeId, filter_eventPipelineName, filter_eventPipelinePolicyId, filter_includeActive, filter_includeInactive, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetEventPipelineSummariesAsync(int? filter_eventEntityTypeId, string filter_eventPipelineName, int? filter_eventPipelinePolicyId, bool? filter_includeActive, bool? filter_includeInactive, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetEventPipelineSummariesAsync(filter_eventEntityTypeId, filter_eventPipelineName, filter_eventPipelinePolicyId, filter_includeActive, filter_includeInactive, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get summaries of Event Pipelines @@ -24284,10 +23732,7 @@ namespace SecretServerRestClient.DSS /// Stub an empty Event Pipeline /// An empty Event Pipeline /// A server side error occurred. - public System.Threading.Tasks.Task GetEventPipelineStubAsync() - { - return GetEventPipelineStubAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetEventPipelineStubAsync() => GetEventPipelineStubAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Stub an empty Event Pipeline @@ -24397,10 +23842,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Paged list of pipeline runs /// A server side error occurred. - public System.Threading.Tasks.Task GetEventPipelineRunsAsync(int? filter_eventPipelineId, System.Guid? filter_eventPipelinePolicyRunId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetEventPipelineRunsAsync(filter_eventPipelineId, filter_eventPipelinePolicyRunId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetEventPipelineRunsAsync(int? filter_eventPipelineId, System.Guid? filter_eventPipelinePolicyRunId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetEventPipelineRunsAsync(filter_eventPipelineId, filter_eventPipelinePolicyRunId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Event Pipeline Runs @@ -24540,10 +23982,7 @@ namespace SecretServerRestClient.DSS /// args /// The new Event Pipeline /// A server side error occurred. - public System.Threading.Tasks.Task CreateEventPipelinesAsync(EventPipelineCreateArgs args) - { - return CreateEventPipelinesAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateEventPipelinesAsync(EventPipelineCreateArgs args) => CreateEventPipelinesAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create a new Event Pipeline @@ -24652,10 +24091,7 @@ namespace SecretServerRestClient.DSS /// Event Pipeline Id /// Event Pipeline Policy Map /// A server side error occurred. - public System.Threading.Tasks.Task> ReorderPipelineAsync(EventPipelineOrderUpdateArgs args, int id) - { - return ReorderPipelineAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> ReorderPipelineAsync(EventPipelineOrderUpdateArgs args, int id) => ReorderPipelineAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Reorder an Event Pipeline @@ -24769,10 +24205,7 @@ namespace SecretServerRestClient.DSS /// Event Pipeline Id /// The Active value /// A server side error occurred. - public System.Threading.Tasks.Task TogglePipelineActiveAsync(EventPipelineActivateUpdateArgs args, int id) - { - return TogglePipelineActiveAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task TogglePipelineActiveAsync(EventPipelineActivateUpdateArgs args, int id) => TogglePipelineActiveAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update an Event Pipeline active value @@ -25024,10 +24457,7 @@ namespace SecretServerRestClient.DSS /// Event Pipeline Policy ID /// boolean indicating success /// A server side error occurred. - public System.Threading.Tasks.Task RemoveEventPipelineFromPolicyAsync(int pipelineId, int policyId) - { - return RemoveEventPipelineFromPolicyAsync(pipelineId, policyId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task RemoveEventPipelineFromPolicyAsync(int pipelineId, int policyId) => RemoveEventPipelineFromPolicyAsync(pipelineId, policyId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Remove Event Pipeline From Policy @@ -25141,10 +24571,7 @@ namespace SecretServerRestClient.DSS /// Event Pipeline Policy ID /// Policy details /// A server side error occurred. - public System.Threading.Tasks.Task GetEventPipelinePolicyAsync(int id) - { - return GetEventPipelinePolicyAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetEventPipelinePolicyAsync(int id) => GetEventPipelinePolicyAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Event Pipeline Policy @@ -25254,10 +24681,7 @@ namespace SecretServerRestClient.DSS /// Event Pipeline Policy ID /// The update policy /// A server side error occurred. - public System.Threading.Tasks.Task UpdateEventPipelinePolicyAsync(EventPipelinePolicyUpdateArgs args, int id) - { - return UpdateEventPipelinePolicyAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateEventPipelinePolicyAsync(EventPipelinePolicyUpdateArgs args, int id) => UpdateEventPipelinePolicyAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Event Pipeline Policy @@ -25371,10 +24795,7 @@ namespace SecretServerRestClient.DSS /// Event Pipeline Policy ID /// Pipeline policy children /// A server side error occurred. - public System.Threading.Tasks.Task AddPipelineToEventPipelinePolicyAsync(EventPipelinePolicyAddPipelineArgs eventPipelinePolicyAddPipelineArgs, int id) - { - return AddPipelineToEventPipelinePolicyAsync(eventPipelinePolicyAddPipelineArgs, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task AddPipelineToEventPipelinePolicyAsync(EventPipelinePolicyAddPipelineArgs eventPipelinePolicyAddPipelineArgs, int id) => AddPipelineToEventPipelinePolicyAsync(eventPipelinePolicyAddPipelineArgs, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Add Pipeline To Event Pipeline Policy @@ -25496,10 +24917,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// A paged list of all policies /// A server side error occurred. - public System.Threading.Tasks.Task GetEventPipelinePoliciesAsync(int? filter_eventPipelineId, string filter_eventPipelinePolicyName, int? filter_folderId, bool? filter_includeActive, bool? filter_includeInactive, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetEventPipelinePoliciesAsync(filter_eventPipelineId, filter_eventPipelinePolicyName, filter_folderId, filter_includeActive, filter_includeInactive, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetEventPipelinePoliciesAsync(int? filter_eventPipelineId, string filter_eventPipelinePolicyName, int? filter_folderId, bool? filter_includeActive, bool? filter_includeInactive, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetEventPipelinePoliciesAsync(filter_eventPipelineId, filter_eventPipelinePolicyName, filter_folderId, filter_includeActive, filter_includeInactive, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Event Pipeline Policies @@ -25660,10 +25078,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Paged list of policy runs /// A server side error occurred. - public System.Threading.Tasks.Task GetEventPipelinePolicyRunsAsync(int? filter_eventPipelinePolicyId, System.Guid? filter_eventPipelinePolicyRunId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetEventPipelinePolicyRunsAsync(filter_eventPipelinePolicyId, filter_eventPipelinePolicyRunId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetEventPipelinePolicyRunsAsync(int? filter_eventPipelinePolicyId, System.Guid? filter_eventPipelinePolicyRunId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetEventPipelinePolicyRunsAsync(filter_eventPipelinePolicyId, filter_eventPipelinePolicyRunId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Event Pipeline Policy Runs @@ -25804,10 +25219,7 @@ namespace SecretServerRestClient.DSS /// Event Pipeline Policy Run ID /// Details for a specific run /// A server side error occurred. - public System.Threading.Tasks.Task> GetEventPipelinePolicyRunActivityAsync(int eventPipelineId, System.Guid eventPipelinePolicyRunId) - { - return GetEventPipelinePolicyRunActivityAsync(eventPipelineId, eventPipelinePolicyRunId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetEventPipelinePolicyRunActivityAsync(int eventPipelineId, System.Guid eventPipelinePolicyRunId) => GetEventPipelinePolicyRunActivityAsync(eventPipelineId, eventPipelinePolicyRunId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Event Pipeline Policy Run Activity @@ -25929,10 +25341,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Paged list of secret policies /// A server side error occurred. - public System.Threading.Tasks.Task GetSecretPoliciesForPipelinePoliciesAsync(int id, int? filter_eventPipelinePolicyId, string filter_eventPipelinePolicyName, bool? filter_includeActive, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetSecretPoliciesForPipelinePoliciesAsync(id, filter_eventPipelinePolicyId, filter_eventPipelinePolicyName, filter_includeActive, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSecretPoliciesForPipelinePoliciesAsync(int id, int? filter_eventPipelinePolicyId, string filter_eventPipelinePolicyName, bool? filter_includeActive, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetSecretPoliciesForPipelinePoliciesAsync(id, filter_eventPipelinePolicyId, filter_eventPipelinePolicyName, filter_includeActive, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret Policies For Pipeline Policies @@ -26082,10 +25491,7 @@ namespace SecretServerRestClient.DSS /// Event Pipeline Policy ID /// List of all folders to which this policy is applied /// A server side error occurred. - public System.Threading.Tasks.Task> GetFoldersForPipelinePoliciesAsync(int id) - { - return GetFoldersForPipelinePoliciesAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetFoldersForPipelinePoliciesAsync(int id) => GetFoldersForPipelinePoliciesAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Folders For Pipeline Policies @@ -26195,10 +25601,7 @@ namespace SecretServerRestClient.DSS /// Event Pipeline Policy ID /// boolean indicating success /// A server side error occurred. - public System.Threading.Tasks.Task UpdateEventPipelinePolicyFolderMapsAsync(EventPipelinePolicyFolderMapUpdateArgs eventPipelinePolicyFolderMaps, int id) - { - return UpdateEventPipelinePolicyFolderMapsAsync(eventPipelinePolicyFolderMaps, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateEventPipelinePolicyFolderMapsAsync(EventPipelinePolicyFolderMapUpdateArgs eventPipelinePolicyFolderMaps, int id) => UpdateEventPipelinePolicyFolderMapsAsync(eventPipelinePolicyFolderMaps, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Event Pipeline Policy Folder Maps @@ -26311,10 +25714,7 @@ namespace SecretServerRestClient.DSS /// Event Pipeline Policy ID /// List of all groups /// A server side error occurred. - public System.Threading.Tasks.Task> GetGroupsForPipelinePoliciesAsync(int id) - { - return GetGroupsForPipelinePoliciesAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetGroupsForPipelinePoliciesAsync(int id) => GetGroupsForPipelinePoliciesAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Groups For Pipeline Policies @@ -26424,10 +25824,7 @@ namespace SecretServerRestClient.DSS /// Event Pipeline Policy ID /// boolean indicating success /// A server side error occurred. - public System.Threading.Tasks.Task UpdateEventPipelinePolicyGroupMapsAsync(EventPipelinePolicyGroupMapUpdateArgs eventPipelinePolicyGroupMaps, int id) - { - return UpdateEventPipelinePolicyGroupMapsAsync(eventPipelinePolicyGroupMaps, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateEventPipelinePolicyGroupMapsAsync(EventPipelinePolicyGroupMapUpdateArgs eventPipelinePolicyGroupMaps, int id) => UpdateEventPipelinePolicyGroupMapsAsync(eventPipelinePolicyGroupMaps, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Event Pipeline Policy Group Maps @@ -26540,10 +25937,7 @@ namespace SecretServerRestClient.DSS /// Event Pipeline Policy ID /// Number of groups affected /// A server side error occurred. - public System.Threading.Tasks.Task GetGroupCountForPipelinePolicyAsync(int id) - { - return GetGroupCountForPipelinePolicyAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetGroupCountForPipelinePolicyAsync(int id) => GetGroupCountForPipelinePolicyAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Group Count For Pipeline Policy @@ -26653,10 +26047,7 @@ namespace SecretServerRestClient.DSS /// Event Pipeline Policy ID /// List of child data /// A server side error occurred. - public System.Threading.Tasks.Task> GetChildFolderDataForPipelinePolicyFolderAsync(int folderId, int id) - { - return GetChildFolderDataForPipelinePolicyFolderAsync(folderId, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetChildFolderDataForPipelinePolicyFolderAsync(int folderId, int id) => GetChildFolderDataForPipelinePolicyFolderAsync(folderId, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Child Folder Data For Pipeline Policy Folder @@ -26770,10 +26161,7 @@ namespace SecretServerRestClient.DSS /// Event Pipeline Policy ID /// the exported json of the policy /// A server side error occurred. - public System.Threading.Tasks.Task ExportEventPipelinePolicyAsync(int id) - { - return ExportEventPipelinePolicyAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task ExportEventPipelinePolicyAsync(int id) => ExportEventPipelinePolicyAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Export Event Pipeline Policy @@ -26882,10 +26270,7 @@ namespace SecretServerRestClient.DSS /// eventPipelinePolicy /// Newly created model /// A server side error occurred. - public System.Threading.Tasks.Task CreateEventPipelinePolicyAsync(EventPipelinePolicyCreateArgs eventPipelinePolicy) - { - return CreateEventPipelinePolicyAsync(eventPipelinePolicy, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateEventPipelinePolicyAsync(EventPipelinePolicyCreateArgs eventPipelinePolicy) => CreateEventPipelinePolicyAsync(eventPipelinePolicy, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create Pipeline Policy @@ -26993,10 +26378,7 @@ namespace SecretServerRestClient.DSS /// importPolicy /// The duplicated model /// A server side error occurred. - public System.Threading.Tasks.Task DuplicateEventPipelinePolicyAsync(EventPipelinePolicyImportArgs importPolicy) - { - return DuplicateEventPipelinePolicyAsync(importPolicy, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DuplicateEventPipelinePolicyAsync(EventPipelinePolicyImportArgs importPolicy) => DuplicateEventPipelinePolicyAsync(importPolicy, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Duplicate Event Pipeline Policy @@ -27104,10 +26486,7 @@ namespace SecretServerRestClient.DSS /// importPolicy /// The imported policy model /// A server side error occurred. - public System.Threading.Tasks.Task ImportEventPipelinePolicyAsync(EventPipelinePolicyImportArgs importPolicy) - { - return ImportEventPipelinePolicyAsync(importPolicy, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task ImportEventPipelinePolicyAsync(EventPipelinePolicyImportArgs importPolicy) => ImportEventPipelinePolicyAsync(importPolicy, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Import Event Pipeline Policy @@ -27216,10 +26595,7 @@ namespace SecretServerRestClient.DSS /// Event Pipeline Policy ID /// updated policy /// A server side error occurred. - public System.Threading.Tasks.Task UpdateEventPipelinePolicySortOrderAsync(EventPipelinePolicySortOrderUpdateArgs args, int id) - { - return UpdateEventPipelinePolicySortOrderAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateEventPipelinePolicySortOrderAsync(EventPipelinePolicySortOrderUpdateArgs args, int id) => UpdateEventPipelinePolicySortOrderAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Event Pipeline Policy Sort Order @@ -27333,10 +26709,7 @@ namespace SecretServerRestClient.DSS /// Event Pipeline Policy ID /// boolean indicating success /// A server side error occurred. - public System.Threading.Tasks.Task ActivateEventPipelinePolicyAsync(EventPipelinePolicyActivateArgs args, int id) - { - return ActivateEventPipelinePolicyAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task ActivateEventPipelinePolicyAsync(EventPipelinePolicyActivateArgs args, int id) => ActivateEventPipelinePolicyAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Activate Event Pipeline Policy @@ -27592,10 +26965,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Paged list of tasks /// A server side error occurred. - public System.Threading.Tasks.Task GetEventPipelineTasksAsync(int? filter_eventActionId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetEventPipelineTasksAsync(filter_eventActionId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetEventPipelineTasksAsync(int? filter_eventActionId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetEventPipelineTasksAsync(filter_eventActionId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Event Pipeline Tasks @@ -27730,10 +27100,7 @@ namespace SecretServerRestClient.DSS /// Event Pipeline Task ID /// Pipeline task settings /// A server side error occurred. - public System.Threading.Tasks.Task> GetEventPipelineTaskSettingsAsync(int id) - { - return GetEventPipelineTaskSettingsAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetEventPipelineTaskSettingsAsync(int id) => GetEventPipelineTaskSettingsAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Event Pipeline Task Settings @@ -27842,10 +27209,7 @@ namespace SecretServerRestClient.DSS /// Event Pipeline Filter ID /// filter settings /// A server side error occurred. - public System.Threading.Tasks.Task> GetEventPipelineFilterSettingsAsync(int? id) - { - return GetEventPipelineFilterSettingsAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetEventPipelineFilterSettingsAsync(int? id) => GetEventPipelineFilterSettingsAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Event Pipeline Filter Settings @@ -27955,10 +27319,7 @@ namespace SecretServerRestClient.DSS /// eventEntityTypeId /// List of task options /// A server side error occurred. - public System.Threading.Tasks.Task> GetPipelineTaskOptionsAsync(int eventEntityTypeId) - { - return GetPipelineTaskOptionsAsync(eventEntityTypeId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetPipelineTaskOptionsAsync(int eventEntityTypeId) => GetPipelineTaskOptionsAsync(eventEntityTypeId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Pipeline Task Options @@ -28067,10 +27428,7 @@ namespace SecretServerRestClient.DSS /// eventEntityTypeId /// List of filter options /// A server side error occurred. - public System.Threading.Tasks.Task> GetPipelineFilterOptionsAsync(int eventEntityTypeId) - { - return GetPipelineFilterOptionsAsync(eventEntityTypeId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetPipelineFilterOptionsAsync(int eventEntityTypeId) => GetPipelineFilterOptionsAsync(eventEntityTypeId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Pipeline Filter Options @@ -28317,10 +27675,7 @@ namespace SecretServerRestClient.DSS /// Event Pipeline ID /// The list of Event Pipeline Triggers /// A server side error occurred. - public System.Threading.Tasks.Task> GetEventPipelineTriggersAsync(int id) - { - return GetEventPipelineTriggersAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetEventPipelineTriggersAsync(int id) => GetEventPipelineTriggersAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get the triggers for an Event Pipeline @@ -28428,10 +27783,7 @@ namespace SecretServerRestClient.DSS /// Stub an Event Pipeline Trigger /// The empty Event Pipeline Trigger /// A server side error occurred. - public System.Threading.Tasks.Task GetEventPipelineStubAsync() - { - return GetEventPipelineStubAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetEventPipelineStubAsync() => GetEventPipelineStubAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Stub an Event Pipeline Trigger @@ -28535,10 +27887,7 @@ namespace SecretServerRestClient.DSS /// eventEntityTypeId /// List of triggers /// A server side error occurred. - public System.Threading.Tasks.Task> GetEventPipelineTriggerOptionsAsync(int eventEntityTypeId) - { - return GetEventPipelineTriggerOptionsAsync(eventEntityTypeId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetEventPipelineTriggerOptionsAsync(int eventEntityTypeId) => GetEventPipelineTriggerOptionsAsync(eventEntityTypeId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Pipeline Trigger Options @@ -28784,10 +28133,7 @@ namespace SecretServerRestClient.DSS /// Get an empty event subscription /// An empty event subscription /// A server side error occurred. - public System.Threading.Tasks.Task GetSubscriptionStubAsync() - { - return GetSubscriptionStubAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSubscriptionStubAsync() => GetSubscriptionStubAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get an empty event subscription @@ -28890,10 +28236,7 @@ namespace SecretServerRestClient.DSS /// Get an Event Subscription Types and Actions /// The Event Subscription Types and Actions View /// A server side error occurred. - public System.Threading.Tasks.Task> GetSubscriptionEntityTypesAsync() - { - return GetSubscriptionEntityTypesAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetSubscriptionEntityTypesAsync() => GetSubscriptionEntityTypesAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get an Event Subscription Types and Actions @@ -29002,10 +28345,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// event subscriptions results /// A server side error occurred. - public System.Threading.Tasks.Task SearchEventSubscriptionsAsync(bool? filter_includeInactive, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchEventSubscriptionsAsync(filter_includeInactive, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchEventSubscriptionsAsync(bool? filter_includeInactive, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchEventSubscriptionsAsync(filter_includeInactive, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search event subscriptions @@ -29140,10 +28480,7 @@ namespace SecretServerRestClient.DSS /// args /// Details for a specific event subscription /// A server side error occurred. - public System.Threading.Tasks.Task CreateEventSubscriptionAsync(EventSubscriptionCreateArgs args) - { - return CreateEventSubscriptionAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateEventSubscriptionAsync(EventSubscriptionCreateArgs args) => CreateEventSubscriptionAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create event subscription @@ -29251,10 +28588,7 @@ namespace SecretServerRestClient.DSS /// eventSubscriptionId /// Details for a specific event subscription /// A server side error occurred. - public System.Threading.Tasks.Task GetEventSubscriptionAsync(int eventSubscriptionId) - { - return GetEventSubscriptionAsync(eventSubscriptionId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetEventSubscriptionAsync(int eventSubscriptionId) => GetEventSubscriptionAsync(eventSubscriptionId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// event subscription @@ -29364,10 +28698,7 @@ namespace SecretServerRestClient.DSS /// eventSubscriptionId /// Details for a specific event subscription /// A server side error occurred. - public System.Threading.Tasks.Task UpdateEventSubscriptionAsync(EventSubscriptionUpdateArgs args, int eventSubscriptionId) - { - return UpdateEventSubscriptionAsync(args, eventSubscriptionId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateEventSubscriptionAsync(EventSubscriptionUpdateArgs args, int eventSubscriptionId) => UpdateEventSubscriptionAsync(args, eventSubscriptionId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update event subscription @@ -29618,10 +28949,7 @@ namespace SecretServerRestClient.DSS /// secretId /// Regex Values Summary /// A server side error occurred. - public System.Threading.Tasks.Task GetRegexBySecretAsync(int secretId) - { - return GetRegexBySecretAsync(secretId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetRegexBySecretAsync(int secretId) => GetRegexBySecretAsync(secretId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Extended Regex values by Secret @@ -29869,10 +29197,7 @@ namespace SecretServerRestClient.DSS /// Folder permission ID /// Folder permission object /// A server side error occurred. - public System.Threading.Tasks.Task GetAsync(bool? includeInactive, int id) - { - return GetAsync(includeInactive, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAsync(bool? includeInactive, int id) => GetAsync(includeInactive, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Folder Permission @@ -29988,10 +29313,7 @@ namespace SecretServerRestClient.DSS /// Folder permission ID /// Folder permission object /// A server side error occurred. - public System.Threading.Tasks.Task UpdateAsync(FolderPermissionUpdateArgs args, int id) - { - return UpdateAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateAsync(FolderPermissionUpdateArgs args, int id) => UpdateAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Folder Permission @@ -30105,10 +29427,7 @@ namespace SecretServerRestClient.DSS /// Folder permission ID /// Object deletion result /// A server side error occurred. - public System.Threading.Tasks.Task DeleteAsync(bool? breakInheritance, int id) - { - return DeleteAsync(breakInheritance, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DeleteAsync(bool? breakInheritance, int id) => DeleteAsync(breakInheritance, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete Folder Permission @@ -30230,10 +29549,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Folder permission search result object /// A server side error occurred. - public System.Threading.Tasks.Task SearchAsync(int? filter_folderId, int? filter_groupId, int? filter_userId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchAsync(filter_folderId, filter_groupId, filter_userId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchAsync(int? filter_folderId, int? filter_groupId, int? filter_userId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchAsync(filter_folderId, filter_groupId, filter_userId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Folder Permissions @@ -30378,10 +29694,7 @@ namespace SecretServerRestClient.DSS /// Folder permission creation options /// Folder permission object /// A server side error occurred. - public System.Threading.Tasks.Task CreateAsync(FolderPermissionCreateArgs args) - { - return CreateAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateAsync(FolderPermissionCreateArgs args) => CreateAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create Folder Permission @@ -30489,10 +29802,7 @@ namespace SecretServerRestClient.DSS /// Folder for which to generate a permission stub /// Folder permission object /// A server side error occurred. - public System.Threading.Tasks.Task StubAsync(int folderId) - { - return StubAsync(folderId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task StubAsync(int folderId) => StubAsync(folderId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Folder Permission Stub @@ -30743,10 +30053,7 @@ namespace SecretServerRestClient.DSS /// Folder ID /// Folder object /// A server side error occurred. - public System.Threading.Tasks.Task GetAsync(bool? getAllChildren, bool? includeAssociatedTemplates, string folderPath, int id) - { - return GetAsync(getAllChildren, includeAssociatedTemplates, folderPath, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAsync(bool? getAllChildren, bool? includeAssociatedTemplates, string folderPath, int id) => GetAsync(getAllChildren, includeAssociatedTemplates, folderPath, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Folder @@ -30872,10 +30179,7 @@ namespace SecretServerRestClient.DSS /// Folder ID /// Folder object /// A server side error occurred. - public System.Threading.Tasks.Task UpdateAsync(FolderUpdateArgs args, int id) - { - return UpdateAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateAsync(FolderUpdateArgs args, int id) => UpdateAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Folder @@ -30988,10 +30292,7 @@ namespace SecretServerRestClient.DSS /// Folder ID /// Object deletion result /// A server side error occurred. - public System.Threading.Tasks.Task DeleteAsync(int id) - { - return DeleteAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DeleteAsync(int id) => DeleteAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete Folder @@ -31101,10 +30402,7 @@ namespace SecretServerRestClient.DSS /// Template ID /// Folder object /// A server side error occurred. - public System.Threading.Tasks.Task DissassociateTemplateToFolderAsync(int id, int templateId) - { - return DissassociateTemplateToFolderAsync(id, templateId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DissassociateTemplateToFolderAsync(int id, int templateId) => DissassociateTemplateToFolderAsync(id, templateId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Disassociate Template from Folder @@ -31226,10 +30524,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Folder search result object /// A server side error occurred. - public System.Threading.Tasks.Task SearchAsync(int? filter_folderTypeId, int? filter_parentFolderId, string filter_permissionRequired, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchAsync(filter_folderTypeId, filter_parentFolderId, filter_permissionRequired, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchAsync(int? filter_folderTypeId, int? filter_parentFolderId, string filter_permissionRequired, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchAsync(filter_folderTypeId, filter_parentFolderId, filter_permissionRequired, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Folders @@ -31379,10 +30674,7 @@ namespace SecretServerRestClient.DSS /// Folder creation options /// Folder object /// A server side error occurred. - public System.Threading.Tasks.Task CreateAsync(FolderCreateArgs args) - { - return CreateAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateAsync(FolderCreateArgs args) => CreateAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create Folder @@ -31498,10 +30790,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Folder search result object /// A server side error occurred. - public System.Threading.Tasks.Task LookupAsync(int? filter_folderTypeId, int? filter_parentFolderId, string filter_permissionRequired, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return LookupAsync(filter_folderTypeId, filter_parentFolderId, filter_permissionRequired, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task LookupAsync(int? filter_folderTypeId, int? filter_parentFolderId, string filter_permissionRequired, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => LookupAsync(filter_folderTypeId, filter_parentFolderId, filter_permissionRequired, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Lookup Folders @@ -31650,10 +30939,7 @@ namespace SecretServerRestClient.DSS /// Get Folder Stub /// Folder object /// A server side error occurred. - public System.Threading.Tasks.Task StubAsync() - { - return StubAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task StubAsync() => StubAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Folder Stub @@ -31762,10 +31048,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Specify paging and sorting options for querying records and returning results /// A server side error occurred. - public System.Threading.Tasks.Task GetAuditsAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetAuditsAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAuditsAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetAuditsAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Folder Audits @@ -31901,10 +31184,7 @@ namespace SecretServerRestClient.DSS /// returnEmptyInsteadOfNoAccessException /// Folder Details /// A server side error occurred. - public System.Threading.Tasks.Task GetFolderDetailAsync(int id, bool? returnEmptyInsteadOfNoAccessException) - { - return GetFolderDetailAsync(id, returnEmptyInsteadOfNoAccessException, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetFolderDetailAsync(int id, bool? returnEmptyInsteadOfNoAccessException) => GetFolderDetailAsync(id, returnEmptyInsteadOfNoAccessException, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Folder Details @@ -32020,10 +31300,7 @@ namespace SecretServerRestClient.DSS /// Folder ID /// Folder object /// A server side error occurred. - public System.Threading.Tasks.Task PatchFolderAsync(FolderPatchArgs args, int id) - { - return PatchFolderAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchFolderAsync(FolderPatchArgs args, int id) => PatchFolderAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Patch a Folder @@ -32137,10 +31414,7 @@ namespace SecretServerRestClient.DSS /// Folder ID /// Folder object /// A server side error occurred. - public System.Threading.Tasks.Task AssociateTemplateToFolderAsync(FolderTemplateArgs args, int id) - { - return AssociateTemplateToFolderAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task AssociateTemplateToFolderAsync(FolderTemplateArgs args, int id) => AssociateTemplateToFolderAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Associate Template to Folder @@ -32391,10 +31665,7 @@ namespace SecretServerRestClient.DSS /// Group ID /// Group object /// A server side error occurred. - public System.Threading.Tasks.Task GetAsync(int id) - { - return GetAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAsync(int id) => GetAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Group @@ -32504,10 +31775,7 @@ namespace SecretServerRestClient.DSS /// Group ID /// Group object /// A server side error occurred. - public System.Threading.Tasks.Task UpdateAsync(GroupUpdateArgs args, int id) - { - return UpdateAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateAsync(GroupUpdateArgs args, int id) => UpdateAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Group @@ -32620,10 +31888,7 @@ namespace SecretServerRestClient.DSS /// Group ID /// Object deletion result /// A server side error occurred. - public System.Threading.Tasks.Task DeleteAsync(int id) - { - return DeleteAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DeleteAsync(int id) => DeleteAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete Group @@ -32733,10 +31998,7 @@ namespace SecretServerRestClient.DSS /// User ID /// User group membership object /// A server side error occurred. - public System.Threading.Tasks.Task GetGroupUserAsync(int id, int userId) - { - return GetGroupUserAsync(id, userId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetGroupUserAsync(int id, int userId) => GetGroupUserAsync(id, userId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get User In Group @@ -32851,10 +32113,7 @@ namespace SecretServerRestClient.DSS /// User ID /// Object deletion result /// A server side error occurred. - public System.Threading.Tasks.Task RemoveUserFromGroupAsync(int id, int userId) - { - return RemoveUserFromGroupAsync(id, userId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task RemoveUserFromGroupAsync(int id, int userId) => RemoveUserFromGroupAsync(id, userId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Remove User From Group @@ -32973,10 +32232,7 @@ namespace SecretServerRestClient.DSS /// id /// Success / Fail /// A server side error occurred. - public System.Threading.Tasks.Task GetRolesAsync(int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take, int id) - { - return GetRolesAsync(skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetRolesAsync(int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take, int id) => GetRolesAsync(skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets roles for group @@ -33112,10 +32368,7 @@ namespace SecretServerRestClient.DSS /// id /// Success / Fail /// A server side error occurred. - public System.Threading.Tasks.Task UpdateUserRolesAsync(RoleAssignments args, int id) - { - return UpdateUserRolesAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateUserRolesAsync(RoleAssignments args, int id) => UpdateUserRolesAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update all roles on group @@ -33229,10 +32482,7 @@ namespace SecretServerRestClient.DSS /// id /// Success / Fail /// A server side error occurred. - public System.Threading.Tasks.Task CreateUserRolesAsync(RoleAssignments args, int id) - { - return CreateUserRolesAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateUserRolesAsync(RoleAssignments args, int id) => CreateUserRolesAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Add roles to existing group @@ -33346,10 +32596,7 @@ namespace SecretServerRestClient.DSS /// id /// Success / Fail /// A server side error occurred. - public System.Threading.Tasks.Task DeleteUserRolesAsync(RoleRemovals args, int id) - { - return DeleteUserRolesAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DeleteUserRolesAsync(RoleRemovals args, int id) => DeleteUserRolesAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Remove roles from existing group @@ -33471,10 +32718,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Group search result object /// A server side error occurred. - public System.Threading.Tasks.Task SearchAsync(int? filter_domainId, int? filter_excludeInboxRuleIdSubscribers, bool? filter_includeInactive, bool? filter_limitToViewableGroups, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchAsync(filter_domainId, filter_excludeInboxRuleIdSubscribers, filter_includeInactive, filter_limitToViewableGroups, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchAsync(int? filter_domainId, int? filter_excludeInboxRuleIdSubscribers, bool? filter_includeInactive, bool? filter_limitToViewableGroups, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchAsync(filter_domainId, filter_excludeInboxRuleIdSubscribers, filter_includeInactive, filter_limitToViewableGroups, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Groups @@ -33629,10 +32873,7 @@ namespace SecretServerRestClient.DSS /// Group creation options /// Group object /// A server side error occurred. - public System.Threading.Tasks.Task CreateAsync(GroupCreateArgs args) - { - return CreateAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateAsync(GroupCreateArgs args) => CreateAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create Group @@ -33749,10 +32990,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Group search result object /// A server side error occurred. - public System.Threading.Tasks.Task LookupAsync(int? filter_domainId, int? filter_excludeInboxRuleIdSubscribers, bool? filter_includeInactive, bool? filter_limitToViewableGroups, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return LookupAsync(filter_domainId, filter_excludeInboxRuleIdSubscribers, filter_includeInactive, filter_limitToViewableGroups, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task LookupAsync(int? filter_domainId, int? filter_excludeInboxRuleIdSubscribers, bool? filter_includeInactive, bool? filter_limitToViewableGroups, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => LookupAsync(filter_domainId, filter_excludeInboxRuleIdSubscribers, filter_includeInactive, filter_limitToViewableGroups, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Lookup Groups @@ -33906,10 +33144,7 @@ namespace SecretServerRestClient.DSS /// Get Group Stub /// Group object /// A server side error occurred. - public System.Threading.Tasks.Task StubAsync() - { - return StubAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task StubAsync() => StubAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Group Stub @@ -34020,10 +33255,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Group membership results /// A server side error occurred. - public System.Threading.Tasks.Task GetGroupMembershipAsync(int id, bool? filter_includeInactiveUsersForGroup, int? filter_userDomainId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetGroupMembershipAsync(id, filter_includeInactiveUsersForGroup, filter_userDomainId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetGroupMembershipAsync(int id, bool? filter_includeInactiveUsersForGroup, int? filter_userDomainId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetGroupMembershipAsync(id, filter_includeInactiveUsersForGroup, filter_userDomainId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Group Membership @@ -34169,10 +33401,7 @@ namespace SecretServerRestClient.DSS /// Group ID /// User group membership object /// A server side error occurred. - public System.Threading.Tasks.Task AddUserToGroupAsync(GroupUserCreateArgs args, int id) - { - return AddUserToGroupAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task AddUserToGroupAsync(GroupUserCreateArgs args, int id) => AddUserToGroupAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Add User To Group @@ -34286,10 +33515,7 @@ namespace SecretServerRestClient.DSS /// Group ID /// Group model /// A server side error occurred. - public System.Threading.Tasks.Task PatchGroupMembershipAsync(GroupMembershipPatchModel args, int id) - { - return PatchGroupMembershipAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchGroupMembershipAsync(GroupMembershipPatchModel args, int id) => PatchGroupMembershipAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Patch Group Membership @@ -34406,10 +33632,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Audit records for group assignments /// A server side error occurred. - public System.Threading.Tasks.Task GetAuditGroupAssignmentsAsync(int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetAuditGroupAssignmentsAsync(skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAuditGroupAssignmentsAsync(int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetAuditGroupAssignmentsAsync(skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get group audits @@ -34540,10 +33763,7 @@ namespace SecretServerRestClient.DSS /// Group ID /// Group object /// A server side error occurred. - public System.Threading.Tasks.Task PatchGroupAsync(GroupPatchArgs args, int groupId) - { - return PatchGroupAsync(args, groupId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchGroupAsync(GroupPatchArgs args, int groupId) => PatchGroupAsync(args, groupId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Patch Group @@ -34657,10 +33877,7 @@ namespace SecretServerRestClient.DSS /// groupId /// Success / Fail /// A server side error occurred. - public System.Threading.Tasks.Task UpdateGroupMembersAsync(GroupMemberAssignmentRequest args, int? groupId) - { - return UpdateGroupMembersAsync(args, groupId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateGroupMembersAsync(GroupMemberAssignmentRequest args, int? groupId) => UpdateGroupMembersAsync(args, groupId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update all members of a group @@ -34911,10 +34128,7 @@ namespace SecretServerRestClient.DSS /// Health Check /// The heatlth status /// A server side error occurred. - public System.Threading.Tasks.Task GetAsync() - { - return GetAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAsync() => GetAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Health Check @@ -35161,10 +34375,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Hsm Configuration audit items /// A server side error occurred. - public System.Threading.Tasks.Task GetHsmConfigurationAuditAsync(string filter_searchTerm, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetHsmConfigurationAuditAsync(filter_searchTerm, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetHsmConfigurationAuditAsync(string filter_searchTerm, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetHsmConfigurationAuditAsync(filter_searchTerm, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Audit of hsm configuration changes @@ -35437,10 +34648,7 @@ namespace SecretServerRestClient.DSS /// id /// Success message /// A server side error occurred. - public System.Threading.Tasks.Task DeleteResourceAsync(int id) - { - return DeleteResourceAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DeleteResourceAsync(int id) => DeleteResourceAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete inbox resource @@ -35549,10 +34757,7 @@ namespace SecretServerRestClient.DSS /// When true the number of each message type the current user has will be added to the response and only message types with a count > 0 will be returned. /// Message Types /// A server side error occurred. - public System.Threading.Tasks.Task> GetInboxMessageTypesAsync(bool? includeCurrentUserMessageCounts) - { - return GetInboxMessageTypesAsync(includeCurrentUserMessageCounts, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetInboxMessageTypesAsync(bool? includeCurrentUserMessageCounts) => GetInboxMessageTypesAsync(includeCurrentUserMessageCounts, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get inbox message types @@ -35666,10 +34871,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Inbox Resource Results /// A server side error occurred. - public System.Threading.Tasks.Task SearchResourcesAsync(int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchResourcesAsync(skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchResourcesAsync(int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchResourcesAsync(skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get inbox resources @@ -35799,10 +35001,7 @@ namespace SecretServerRestClient.DSS /// args /// True or an error /// A server side error occurred. - public System.Threading.Tasks.Task UploadResourceAsync(InboxResourceUploadArgs args) - { - return UploadResourceAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UploadResourceAsync(InboxResourceUploadArgs args) => UploadResourceAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Upload an embedded resource @@ -35926,10 +35125,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Inbox Message results /// A server side error occurred. - public System.Threading.Tasks.Task SearchInboxMessagesAsync(int? messageTypeId, System.DateTimeOffset? filter_endDate, string messageDataFilters0_displayValue, string messageDataFilters0_inboxDataName, bool? messageDataFilters0_valueBool, System.DateTimeOffset? messageDataFilters0_valueDateTimeEnd, System.DateTimeOffset? messageDataFilters0_valueDateTimeStart, int? messageDataFilters0_valueInt, string messageDataFilters0_valueString, System.Collections.Generic.IEnumerable filter_messageTypeIds, string filter_readStatusFilter, System.DateTimeOffset? filter_startDate, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchInboxMessagesAsync(messageTypeId, filter_endDate, messageDataFilters0_displayValue, messageDataFilters0_inboxDataName, messageDataFilters0_valueBool, messageDataFilters0_valueDateTimeEnd, messageDataFilters0_valueDateTimeStart, messageDataFilters0_valueInt, messageDataFilters0_valueString, filter_messageTypeIds, filter_readStatusFilter, filter_startDate, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchInboxMessagesAsync(int? messageTypeId, System.DateTimeOffset? filter_endDate, string messageDataFilters0_displayValue, string messageDataFilters0_inboxDataName, bool? messageDataFilters0_valueBool, System.DateTimeOffset? messageDataFilters0_valueDateTimeEnd, System.DateTimeOffset? messageDataFilters0_valueDateTimeStart, int? messageDataFilters0_valueInt, string messageDataFilters0_valueString, System.Collections.Generic.IEnumerable filter_messageTypeIds, string filter_readStatusFilter, System.DateTimeOffset? filter_startDate, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchInboxMessagesAsync(messageTypeId, filter_endDate, messageDataFilters0_displayValue, messageDataFilters0_inboxDataName, messageDataFilters0_valueBool, messageDataFilters0_valueDateTimeEnd, messageDataFilters0_valueDateTimeStart, messageDataFilters0_valueInt, messageDataFilters0_valueString, filter_messageTypeIds, filter_readStatusFilter, filter_startDate, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search inbox messages @@ -36119,10 +35315,7 @@ namespace SecretServerRestClient.DSS /// messageId /// Inbox Message /// A server side error occurred. - public System.Threading.Tasks.Task GetInboxMessageAsync(int messageId) - { - return GetInboxMessageAsync(messageId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetInboxMessageAsync(int messageId) => GetInboxMessageAsync(messageId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Inbox Message by Id @@ -36231,10 +35424,7 @@ namespace SecretServerRestClient.DSS /// messageTypeIds /// Inbox Message results /// A server side error occurred. - public System.Threading.Tasks.Task> GetInboxMessageDataNamesAsync(System.Collections.Generic.IEnumerable messageTypeIds) - { - return GetInboxMessageDataNamesAsync(messageTypeIds, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetInboxMessageDataNamesAsync(System.Collections.Generic.IEnumerable messageTypeIds) => GetInboxMessageDataNamesAsync(messageTypeIds, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Inbox Message Type Data Names @@ -36349,10 +35539,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Inbox Template results /// A server side error occurred. - public System.Threading.Tasks.Task GetInboxTemplatesAsync(string filter_templateType, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetInboxTemplatesAsync(filter_templateType, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetInboxTemplatesAsync(string filter_templateType, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetInboxTemplatesAsync(filter_templateType, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get inbox templates @@ -36487,10 +35674,7 @@ namespace SecretServerRestClient.DSS /// args /// Inbox Template Details /// A server side error occurred. - public System.Threading.Tasks.Task CreateInboxTemplateAsync(InboxTemplateCreateArgs args) - { - return CreateInboxTemplateAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateInboxTemplateAsync(InboxTemplateCreateArgs args) => CreateInboxTemplateAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create inbox template @@ -36598,10 +35782,7 @@ namespace SecretServerRestClient.DSS /// templateId /// Inbox Template Details /// A server side error occurred. - public System.Threading.Tasks.Task GetInboxTemplateAsync(int templateId) - { - return GetInboxTemplateAsync(templateId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetInboxTemplateAsync(int templateId) => GetInboxTemplateAsync(templateId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get inbox template @@ -36711,10 +35892,7 @@ namespace SecretServerRestClient.DSS /// templateId /// Inbox Template Details /// A server side error occurred. - public System.Threading.Tasks.Task PatchInboxTemplateAsync(InboxTemplateUpdateArgs args, int templateId) - { - return PatchInboxTemplateAsync(args, templateId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchInboxTemplateAsync(InboxTemplateUpdateArgs args, int templateId) => PatchInboxTemplateAsync(args, templateId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Patch inbox template @@ -36828,10 +36006,7 @@ namespace SecretServerRestClient.DSS /// templateId /// Inbox Template Locale /// A server side error occurred. - public System.Threading.Tasks.Task GetInboxTemplateLocaleAsync(int localeId, int templateId) - { - return GetInboxTemplateLocaleAsync(localeId, templateId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetInboxTemplateLocaleAsync(int localeId, int templateId) => GetInboxTemplateLocaleAsync(localeId, templateId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get inbox template locale @@ -36947,10 +36122,7 @@ namespace SecretServerRestClient.DSS /// templateId /// Inbox Template Locale /// A server side error occurred. - public System.Threading.Tasks.Task PatchInboxTemplateLocaleAsync(InboxTemplateLocaleUpdateArgs args, int localeId, int templateId) - { - return PatchInboxTemplateLocaleAsync(args, localeId, templateId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchInboxTemplateLocaleAsync(InboxTemplateLocaleUpdateArgs args, int localeId, int templateId) => PatchInboxTemplateLocaleAsync(args, localeId, templateId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Patch inbox template locale @@ -37068,10 +36240,7 @@ namespace SecretServerRestClient.DSS /// args /// True or an error /// A server side error occurred. - public System.Threading.Tasks.Task UpdateMessageReadStatusAsync(InboxMessageSetMessageReadStatusArgs args) - { - return UpdateMessageReadStatusAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateMessageReadStatusAsync(InboxMessageSetMessageReadStatusArgs args) => UpdateMessageReadStatusAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Mark messages read or unread @@ -37179,10 +36348,7 @@ namespace SecretServerRestClient.DSS /// args /// Success if the message was published for processing /// A server side error occurred. - public System.Threading.Tasks.Task SendTestMessageAsync(InboxTestMessageArgs args) - { - return SendTestMessageAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SendTestMessageAsync(InboxTestMessageArgs args) => SendTestMessageAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Send Test Inbox Message @@ -37290,10 +36456,7 @@ namespace SecretServerRestClient.DSS /// args /// Inbox Template Details /// A server side error occurred. - public System.Threading.Tasks.Task CopyInboxTemplateAsync(InboxTemplateCopyArgs args) - { - return CopyInboxTemplateAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CopyInboxTemplateAsync(InboxTemplateCopyArgs args) => CopyInboxTemplateAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Copy an inbox template @@ -37401,10 +36564,7 @@ namespace SecretServerRestClient.DSS /// args /// Inbox Template Locale /// A server side error occurred. - public System.Threading.Tasks.Task CreateInboxTemplateLocaleAsync(InboxTemplateLocaleCreateArgs args) - { - return CreateInboxTemplateLocaleAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateInboxTemplateLocaleAsync(InboxTemplateLocaleCreateArgs args) => CreateInboxTemplateLocaleAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create inbox template locale @@ -37650,10 +36810,7 @@ namespace SecretServerRestClient.DSS /// ruleId /// Response if successful /// A server side error occurred. - public System.Threading.Tasks.Task SubscribeCurrentUserToRuleAsync(int ruleId) - { - return SubscribeCurrentUserToRuleAsync(ruleId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SubscribeCurrentUserToRuleAsync(int ruleId) => SubscribeCurrentUserToRuleAsync(ruleId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Subscribe Current User @@ -37763,10 +36920,7 @@ namespace SecretServerRestClient.DSS /// ruleId /// Response if successful /// A server side error occurred. - public System.Threading.Tasks.Task UnsubscribeCurrentUserFromRuleAsync(int ruleId) - { - return UnsubscribeCurrentUserFromRuleAsync(ruleId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UnsubscribeCurrentUserFromRuleAsync(int ruleId) => UnsubscribeCurrentUserFromRuleAsync(ruleId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Unsubscribe current user @@ -37890,10 +37044,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Inbox Rules results /// A server side error occurred. - public System.Threading.Tasks.Task SearchInboxRulesAsync(bool? filter_includeCurrentUserSubscriptionStatus, bool? filter_includeInactive, bool? filter_isImmediate, int? filter_messageId, int? filter_messageTypeId, string ruleConditionFilters0_displayValue, int? ruleConditionFilters0_inboxDataId, string ruleConditionFilters0_inboxDataName, bool? ruleConditionFilters0_valueBool, int? ruleConditionFilters0_valueInt, string ruleConditionFilters0_valueString, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchInboxRulesAsync(filter_includeCurrentUserSubscriptionStatus, filter_includeInactive, filter_isImmediate, filter_messageId, filter_messageTypeId, ruleConditionFilters0_displayValue, ruleConditionFilters0_inboxDataId, ruleConditionFilters0_inboxDataName, ruleConditionFilters0_valueBool, ruleConditionFilters0_valueInt, ruleConditionFilters0_valueString, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchInboxRulesAsync(bool? filter_includeCurrentUserSubscriptionStatus, bool? filter_includeInactive, bool? filter_isImmediate, int? filter_messageId, int? filter_messageTypeId, string ruleConditionFilters0_displayValue, int? ruleConditionFilters0_inboxDataId, string ruleConditionFilters0_inboxDataName, bool? ruleConditionFilters0_valueBool, int? ruleConditionFilters0_valueInt, string ruleConditionFilters0_valueString, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchInboxRulesAsync(filter_includeCurrentUserSubscriptionStatus, filter_includeInactive, filter_isImmediate, filter_messageId, filter_messageTypeId, ruleConditionFilters0_displayValue, ruleConditionFilters0_inboxDataId, ruleConditionFilters0_inboxDataName, ruleConditionFilters0_valueBool, ruleConditionFilters0_valueInt, ruleConditionFilters0_valueString, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search inbox rules @@ -38078,10 +37229,7 @@ namespace SecretServerRestClient.DSS /// args /// Inbox Rule /// A server side error occurred. - public System.Threading.Tasks.Task CreateInboxRuleAsync(object args) - { - return CreateInboxRuleAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateInboxRuleAsync(object args) => CreateInboxRuleAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create Inbox Rule @@ -38191,10 +37339,7 @@ namespace SecretServerRestClient.DSS /// id /// Inbox Rule /// A server side error occurred. - public System.Threading.Tasks.Task GetInboxRuleAsync(int id) - { - return GetInboxRuleAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetInboxRuleAsync(int id) => GetInboxRuleAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Inbox Rule @@ -38304,10 +37449,7 @@ namespace SecretServerRestClient.DSS /// id /// Inbox Rule /// A server side error occurred. - public System.Threading.Tasks.Task PatchInboxRuleAsync(object args, int id) - { - return PatchInboxRuleAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchInboxRuleAsync(object args, int id) => PatchInboxRuleAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Patch Inbox Rule @@ -38421,10 +37563,7 @@ namespace SecretServerRestClient.DSS /// Get Inbox Rule Stub /// Inbox Rule /// A server side error occurred. - public System.Threading.Tasks.Task GetInboxRuleStubAsync() - { - return GetInboxRuleStubAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetInboxRuleStubAsync() => GetInboxRuleStubAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Inbox Rule Stub @@ -38528,10 +37667,7 @@ namespace SecretServerRestClient.DSS /// id /// Inbox Rule Condition /// A server side error occurred. - public System.Threading.Tasks.Task GetInboxRuleConditionAsync(int id) - { - return GetInboxRuleConditionAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetInboxRuleConditionAsync(int id) => GetInboxRuleConditionAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Inbox Rule Condition @@ -38640,10 +37776,7 @@ namespace SecretServerRestClient.DSS /// id /// Inbox Rule Conditions /// A server side error occurred. - public System.Threading.Tasks.Task SearchInboxRuleConditionsAsync(int id) - { - return SearchInboxRuleConditionsAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchInboxRuleConditionsAsync(int id) => SearchInboxRuleConditionsAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Inbox Rule Conditions @@ -38761,10 +37894,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Inbox Rule Subscriber results /// A server side error occurred. - public System.Threading.Tasks.Task SearchSubscribersAsync(int inboxRuleId, string filter_accountTypes, bool? filter_onlyIncludeUnsubscribableUsers, string filter_searchText, string filter_status, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchSubscribersAsync(inboxRuleId, filter_accountTypes, filter_onlyIncludeUnsubscribableUsers, filter_searchText, filter_status, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchSubscribersAsync(int inboxRuleId, string filter_accountTypes, bool? filter_onlyIncludeUnsubscribableUsers, string filter_searchText, string filter_status, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchSubscribersAsync(inboxRuleId, filter_accountTypes, filter_onlyIncludeUnsubscribableUsers, filter_searchText, filter_status, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search inbox rule subscribers @@ -38927,10 +38057,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Inbox Rule Log results /// A server side error occurred. - public System.Threading.Tasks.Task SearchLogAsync(int inboxRuleId, System.DateTimeOffset? filter_endDate, string filter_ruleActionStatus, System.DateTimeOffset? filter_startDate, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchLogAsync(inboxRuleId, filter_endDate, filter_ruleActionStatus, filter_startDate, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchLogAsync(int inboxRuleId, System.DateTimeOffset? filter_endDate, string filter_ruleActionStatus, System.DateTimeOffset? filter_startDate, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchLogAsync(inboxRuleId, filter_endDate, filter_ruleActionStatus, filter_startDate, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Inbox Rule Logs By Inbox Rule Id @@ -39081,10 +38208,7 @@ namespace SecretServerRestClient.DSS /// id /// Inbox Rule /// A server side error occurred. - public System.Threading.Tasks.Task PatchInboxRuleActionsAsync(object args, int id) - { - return PatchInboxRuleActionsAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchInboxRuleActionsAsync(object args, int id) => PatchInboxRuleActionsAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Patch Inbox Rule Actions @@ -39200,10 +38324,7 @@ namespace SecretServerRestClient.DSS /// ruleId /// Success /// A server side error occurred. - public System.Threading.Tasks.Task PatchInboxRuleSubscribersAsync(InboxRuleSubscribersPatchArgs args, int ruleId) - { - return PatchInboxRuleSubscribersAsync(args, ruleId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchInboxRuleSubscribersAsync(InboxRuleSubscribersPatchArgs args, int ruleId) => PatchInboxRuleSubscribersAsync(args, ruleId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Patch Inbox Rule Subscribers @@ -39316,10 +38437,7 @@ namespace SecretServerRestClient.DSS /// args /// Inbox Rule /// A server side error occurred. - public System.Threading.Tasks.Task CopyInboxRuleAsync(object args) - { - return CopyInboxRuleAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CopyInboxRuleAsync(object args) => CopyInboxRuleAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Copy Inbox Rule @@ -39430,10 +38548,7 @@ namespace SecretServerRestClient.DSS /// inboxRuleId /// Inbox Rule /// A server side error occurred. - public System.Threading.Tasks.Task UpdateInboxRuleConditionAsync(object args, int inboxRuleId) - { - return UpdateInboxRuleConditionAsync(args, inboxRuleId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateInboxRuleConditionAsync(object args, int inboxRuleId) => UpdateInboxRuleConditionAsync(args, inboxRuleId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Inbox Rule Condition @@ -39549,10 +38664,7 @@ namespace SecretServerRestClient.DSS /// inboxRuleId /// Inbox Rule Condition /// A server side error occurred. - public System.Threading.Tasks.Task CreateInboxRuleConditionAsync(object args, int inboxRuleId) - { - return CreateInboxRuleConditionAsync(args, inboxRuleId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateInboxRuleConditionAsync(object args, int inboxRuleId) => CreateInboxRuleConditionAsync(args, inboxRuleId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create Inbox Rule Condition @@ -39805,10 +38917,7 @@ namespace SecretServerRestClient.DSS /// IP Address restriction ID /// IP Address restriction object /// A server side error occurred. - public System.Threading.Tasks.Task GetAsync(int id) - { - return GetAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAsync(int id) => GetAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get IP Address restriction @@ -39918,10 +39027,7 @@ namespace SecretServerRestClient.DSS /// IP Address restriction Id /// IP Address restriction object /// A server side error occurred. - public System.Threading.Tasks.Task UpdateAsync(IpAddressRestrictionUpdateArgs args, int id) - { - return UpdateAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateAsync(IpAddressRestrictionUpdateArgs args, int id) => UpdateAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update IP Address restriction @@ -40034,10 +39140,7 @@ namespace SecretServerRestClient.DSS /// IP Address restriction Id /// Object deletion result /// A server side error occurred. - public System.Threading.Tasks.Task DeleteAsync(int id) - { - return DeleteAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DeleteAsync(int id) => DeleteAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete IP Address restriction @@ -40147,10 +39250,7 @@ namespace SecretServerRestClient.DSS /// IP Address restriction ID /// Group and IP Address restriction object /// A server side error occurred. - public System.Threading.Tasks.Task GetGroupAsync(int groupId, int id) - { - return GetGroupAsync(groupId, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetGroupAsync(int groupId, int id) => GetGroupAsync(groupId, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Group IP Address restriction @@ -40265,10 +39365,7 @@ namespace SecretServerRestClient.DSS /// IP Address restriction Id /// Object deletion result /// A server side error occurred. - public System.Threading.Tasks.Task DeleteGroupIpRestrictionAsync(int groupId, int id) - { - return DeleteGroupIpRestrictionAsync(groupId, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DeleteGroupIpRestrictionAsync(int groupId, int id) => DeleteGroupIpRestrictionAsync(groupId, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete Group IP Address restriction @@ -40383,10 +39480,7 @@ namespace SecretServerRestClient.DSS /// User ID /// User and IP Address restriction object /// A server side error occurred. - public System.Threading.Tasks.Task GetUserIpRestrictionAsync(int id, int userId) - { - return GetUserIpRestrictionAsync(id, userId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetUserIpRestrictionAsync(int id, int userId) => GetUserIpRestrictionAsync(id, userId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get User IP Address restriction @@ -40501,10 +39595,7 @@ namespace SecretServerRestClient.DSS /// User ID /// Object deletion result /// A server side error occurred. - public System.Threading.Tasks.Task DeleteUserIpRestrictionAsync(int id, int userId) - { - return DeleteUserIpRestrictionAsync(id, userId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DeleteUserIpRestrictionAsync(int id, int userId) => DeleteUserIpRestrictionAsync(id, userId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete User IP Address restriction @@ -40622,10 +39713,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// IP Address restriction search result object /// A server side error occurred. - public System.Threading.Tasks.Task SearchAsync(int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchAsync(skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchAsync(int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchAsync(skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search IP Address restrictions @@ -40755,10 +39843,7 @@ namespace SecretServerRestClient.DSS /// IP Address restriction /// IP Address restriction object /// A server side error occurred. - public System.Threading.Tasks.Task CreateAsync(IpAddressRestrictionCreateArgs args) - { - return CreateAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateAsync(IpAddressRestrictionCreateArgs args) => CreateAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create IP Address restriction @@ -40871,10 +39956,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Group and IP Address restriction search result object /// A server side error occurred. - public System.Threading.Tasks.Task SearchGroupsAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchGroupsAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchGroupsAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchGroupsAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search groups assigned to an IP Address restriction @@ -41010,10 +40092,7 @@ namespace SecretServerRestClient.DSS /// IP Address restriction ID /// Group IP Address restriction object /// A server side error occurred. - public System.Threading.Tasks.Task CreateGroupIpRestrictionAsync(GroupIpAddressRestrictionCreateArgs args, int id) - { - return CreateGroupIpRestrictionAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateGroupIpRestrictionAsync(GroupIpAddressRestrictionCreateArgs args, int id) => CreateGroupIpRestrictionAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create Group IP Address restriction @@ -41131,10 +40210,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Group and IP Address restriction search result object /// A server side error occurred. - public System.Threading.Tasks.Task GetAllByGroupAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetAllByGroupAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAllByGroupAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetAllByGroupAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search IP Address restrictions assigned to a group @@ -41274,10 +40350,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// User and IP Address restriction search result object /// A server side error occurred. - public System.Threading.Tasks.Task SearchUsersAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchUsersAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchUsersAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchUsersAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search users assigned to an IP Address restriction @@ -41413,10 +40486,7 @@ namespace SecretServerRestClient.DSS /// IP Address restriction ID /// User IP Address restriction object /// A server side error occurred. - public System.Threading.Tasks.Task CreateUserIpRestrictionAsync(UserIpAddressRestrictionCreateArgs args, int id) - { - return CreateUserIpRestrictionAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateUserIpRestrictionAsync(UserIpAddressRestrictionCreateArgs args, int id) => CreateUserIpRestrictionAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create User IP Address restriction @@ -41534,10 +40604,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// User and IP Address restriction search result object /// A server side error occurred. - public System.Threading.Tasks.Task GetAllByUserAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetAllByUserAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAllByUserAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetAllByUserAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search IP Address restrictions assigned to a user @@ -41809,10 +40876,7 @@ namespace SecretServerRestClient.DSS /// Get Key Management Configuration /// KeyManagementConfigModel object /// A server side error occurred. - public System.Threading.Tasks.Task GetAsync() - { - return GetAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAsync() => GetAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Key Management Configuration @@ -41916,10 +40980,7 @@ namespace SecretServerRestClient.DSS /// Key Management Config update options /// KeyManagementConfigModel object /// A server side error occurred. - public System.Threading.Tasks.Task UpdateAsync(KeyManagementConfigUpdateArgs args) - { - return UpdateAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateAsync(KeyManagementConfigUpdateArgs args) => UpdateAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Key Management Configuration @@ -42026,10 +41087,7 @@ namespace SecretServerRestClient.DSS /// Get Key Management Config Stub /// KeyManagementConfigModel object /// A server side error occurred. - public System.Threading.Tasks.Task StubAsync() - { - return StubAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task StubAsync() => StubAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Key Management Config Stub @@ -42277,10 +41335,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Launcher Agent Collection search result object /// A server side error occurred. - public System.Threading.Tasks.Task SearchCollectionsAsync(bool? filter_includeInactive, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchCollectionsAsync(filter_includeInactive, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchCollectionsAsync(bool? filter_includeInactive, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchCollectionsAsync(filter_includeInactive, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Launcher Agent Collections @@ -42420,10 +41475,7 @@ namespace SecretServerRestClient.DSS /// Launcher Agent Collection creation options /// Launcher Agent Collection object /// A server side error occurred. - public System.Threading.Tasks.Task CreateCollectionAsync(LauncherAgentCollectionCreateArgs args) - { - return CreateCollectionAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateCollectionAsync(LauncherAgentCollectionCreateArgs args) => CreateCollectionAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create Launcher Agent Collection @@ -42532,10 +41584,7 @@ namespace SecretServerRestClient.DSS /// SearchText /// Launcher Agent Collection object /// A server side error occurred. - public System.Threading.Tasks.Task StubAsync(bool? includeInactive, string searchText) - { - return StubAsync(includeInactive, searchText, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task StubAsync(bool? includeInactive, string searchText) => StubAsync(includeInactive, searchText, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Launcher Agent Collection Stub @@ -42651,10 +41700,7 @@ namespace SecretServerRestClient.DSS /// Launcher Agent Collection ID /// LauncherAgentCollection object /// A server side error occurred. - public System.Threading.Tasks.Task GetByCollectionIdAsync(bool? includeInactive, int id) - { - return GetByCollectionIdAsync(includeInactive, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetByCollectionIdAsync(bool? includeInactive, int id) => GetByCollectionIdAsync(includeInactive, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Launcher Agent Collection @@ -42770,10 +41816,7 @@ namespace SecretServerRestClient.DSS /// Launcher Agent Collection ID /// Launcher Agent Collection object /// A server side error occurred. - public System.Threading.Tasks.Task UpdateCollectionAsync(LauncherAgentCollectionUpdateArgs args, int id) - { - return UpdateCollectionAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateCollectionAsync(LauncherAgentCollectionUpdateArgs args, int id) => UpdateCollectionAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Launcher Agent Collection @@ -42892,10 +41935,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Launcher Agent search result object /// A server side error occurred. - public System.Threading.Tasks.Task SearchAgentsWithIssuesAsync(int? filter_launcherAgentCollectionId, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchAgentsWithIssuesAsync(filter_launcherAgentCollectionId, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchAgentsWithIssuesAsync(int? filter_launcherAgentCollectionId, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchAgentsWithIssuesAsync(filter_launcherAgentCollectionId, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Launcher Agents with Issues @@ -43043,10 +42083,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Launcher Agent search result object /// A server side error occurred. - public System.Threading.Tasks.Task SearchAsync(bool? filter_includeInactive, int? filter_launcherAgentCollectionId, bool? filter_outOfDate, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchAsync(filter_includeInactive, filter_launcherAgentCollectionId, filter_outOfDate, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchAsync(bool? filter_includeInactive, int? filter_launcherAgentCollectionId, bool? filter_outOfDate, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchAsync(filter_includeInactive, filter_launcherAgentCollectionId, filter_outOfDate, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Launcher Agents @@ -43197,10 +42234,7 @@ namespace SecretServerRestClient.DSS /// Launcher Agent ID /// LauncherAgent object /// A server side error occurred. - public System.Threading.Tasks.Task GetAsync(bool? includeInactive, int id) - { - return GetAsync(includeInactive, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAsync(bool? includeInactive, int id) => GetAsync(includeInactive, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Launcher Agent @@ -43316,10 +42350,7 @@ namespace SecretServerRestClient.DSS /// Launcher Agent ID /// Launcher Agent object /// A server side error occurred. - public System.Threading.Tasks.Task UpdateAsync(LauncherAgentUpdateArgs args, int id) - { - return UpdateAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateAsync(LauncherAgentUpdateArgs args, int id) => UpdateAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Launcher Agent @@ -43576,10 +42607,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Launcher search result object /// A server side error occurred. - public System.Threading.Tasks.Task SearchLaunchersAsync(string filter_application, bool? filter_includeInactive, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchLaunchersAsync(filter_application, filter_includeInactive, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchLaunchersAsync(string filter_application, bool? filter_includeInactive, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchLaunchersAsync(filter_application, filter_includeInactive, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Launchers @@ -43725,10 +42753,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Launcher search result object /// A server side error occurred. - public System.Threading.Tasks.Task LookupAsync(string filter_application, bool? filter_includeInactive, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return LookupAsync(filter_application, filter_includeInactive, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task LookupAsync(string filter_application, bool? filter_includeInactive, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => LookupAsync(filter_application, filter_includeInactive, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Lookup Launchers @@ -43868,10 +42893,7 @@ namespace SecretServerRestClient.DSS /// Launcher ID /// Launcher object /// A server side error occurred. - public System.Threading.Tasks.Task GetAsync(int id) - { - return GetAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAsync(int id) => GetAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Launcher @@ -43985,10 +43007,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Secret's Launcher details /// A server side error occurred. - public System.Threading.Tasks.Task SearchLauncherDetailsV2Async(int? filter_secretId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchLauncherDetailsV2Async(filter_secretId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchLauncherDetailsV2Async(int? filter_secretId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchLauncherDetailsV2Async(filter_secretId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get secret launcher details. @@ -44124,10 +43143,7 @@ namespace SecretServerRestClient.DSS /// is32Bit /// Unknown or empty response /// A server side error occurred. - public System.Threading.Tasks.Task TriggerDownloadAsync(bool? forceMsi, bool? is32Bit) - { - return TriggerDownloadAsync(forceMsi, is32Bit, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task TriggerDownloadAsync(bool? forceMsi, bool? is32Bit) => TriggerDownloadAsync(forceMsi, is32Bit, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Triggers a download of the Protocol Handler @@ -44236,10 +43252,7 @@ namespace SecretServerRestClient.DSS /// args /// Launched Secret details /// A server side error occurred. - public System.Threading.Tasks.Task CreateAsync(LaunchSecretArgs args) - { - return CreateAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateAsync(LaunchSecretArgs args) => CreateAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Launch a secret. @@ -44484,10 +43497,7 @@ namespace SecretServerRestClient.DSS /// Get Valid License /// License information to determine if the license is valid /// A server side error occurred. - public System.Threading.Tasks.Task GetAsync() - { - return GetAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAsync() => GetAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Valid License @@ -44731,10 +43741,7 @@ namespace SecretServerRestClient.DSS /// The sequence ID of the metadata record to delete /// Success message /// A server side error occurred. - public System.Threading.Tasks.Task DeleteMetadataAsync(int itemId, string itemType, int metadataItemDataId) - { - return DeleteMetadataAsync(itemId, itemType, metadataItemDataId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DeleteMetadataAsync(int itemId, string itemType, int metadataItemDataId) => DeleteMetadataAsync(itemId, itemType, metadataItemDataId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete Metadata @@ -44860,10 +43867,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Metadata results /// A server side error occurred. - public System.Threading.Tasks.Task SearchMetadataAsync(int? filter_itemId, int? filter_metaDataFieldId, string filter_metadataType, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchMetadataAsync(filter_itemId, filter_metaDataFieldId, filter_metadataType, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchMetadataAsync(int? filter_itemId, int? filter_metaDataFieldId, string filter_metadataType, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchMetadataAsync(filter_itemId, filter_metaDataFieldId, filter_metadataType, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search metadata @@ -45017,10 +44021,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Metadata history results /// A server side error occurred. - public System.Threading.Tasks.Task SearchMetadataHistoryAsync(System.DateTimeOffset? filter_endDate, int? filter_itemId, int? filter_metaDataFieldId, string filter_metadataType, System.DateTimeOffset? filter_startDate, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchMetadataHistoryAsync(filter_endDate, filter_itemId, filter_metaDataFieldId, filter_metadataType, filter_startDate, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchMetadataHistoryAsync(System.DateTimeOffset? filter_endDate, int? filter_itemId, int? filter_metaDataFieldId, string filter_metadataType, System.DateTimeOffset? filter_startDate, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchMetadataHistoryAsync(filter_endDate, filter_itemId, filter_metaDataFieldId, filter_metadataType, filter_startDate, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search metadata history @@ -45182,10 +44183,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// MetadataFieldSectionSummaryModel /// A server side error occurred. - public System.Threading.Tasks.Task GetFieldSectionsAsync(int? filter_itemId, int? filter_metadataSectionFilterId, string filter_metadataType, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetFieldSectionsAsync(filter_itemId, filter_metadataSectionFilterId, filter_metadataType, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetFieldSectionsAsync(int? filter_itemId, int? filter_metadataSectionFilterId, string filter_metadataType, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetFieldSectionsAsync(filter_itemId, filter_metadataSectionFilterId, filter_metadataType, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// MetadataFieldSectionSummaryModel @@ -45329,10 +44327,7 @@ namespace SecretServerRestClient.DSS /// MetadataFieldSummaryModel /// MetadataFieldSummaryModel /// A server side error occurred. - public System.Threading.Tasks.Task GetFieldsAsync() - { - return GetFieldsAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetFieldsAsync() => GetFieldsAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// MetadataFieldSummaryModel @@ -45438,10 +44433,7 @@ namespace SecretServerRestClient.DSS /// itemType /// Newly created or updated MetadataModel /// A server side error occurred. - public System.Threading.Tasks.Task CreateMetadataAsync(MetadataCreateArgs args, int itemId, string itemType) - { - return CreateMetadataAsync(args, itemId, itemType, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateMetadataAsync(MetadataCreateArgs args, int itemId, string itemType) => CreateMetadataAsync(args, itemId, itemType, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create Metadata @@ -45561,10 +44553,7 @@ namespace SecretServerRestClient.DSS /// itemType /// Newly created or updated MetadataModel /// A server side error occurred. - public System.Threading.Tasks.Task UpdateMetadataAsync(MetadataUpdateArgs args, int itemId, string itemType) - { - return UpdateMetadataAsync(args, itemId, itemType, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateMetadataAsync(MetadataUpdateArgs args, int itemId, string itemType) => UpdateMetadataAsync(args, itemId, itemType, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update or create a metadata field for an item @@ -45685,10 +44674,7 @@ namespace SecretServerRestClient.DSS /// itemType /// updated MetadataFieldSectionSummaryModel /// A server side error occurred. - public System.Threading.Tasks.Task UpdateMetadataFieldSectionAsync(MetadataFieldSectionUpdateArgs args, int fieldSectionId, int? itemId, string itemType) - { - return UpdateMetadataFieldSectionAsync(args, fieldSectionId, itemId, itemType, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateMetadataFieldSectionAsync(MetadataFieldSectionUpdateArgs args, int fieldSectionId, int? itemId, string itemType) => UpdateMetadataFieldSectionAsync(args, fieldSectionId, itemId, itemType, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update a metadata field section @@ -45949,10 +44935,7 @@ namespace SecretServerRestClient.DSS /// Get the mobile configuration /// Mobile Configuration /// A server side error occurred. - public System.Threading.Tasks.Task GetMobileConfigurationAsync() - { - return GetMobileConfigurationAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetMobileConfigurationAsync() => GetMobileConfigurationAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get the mobile configuration @@ -46193,10 +45176,7 @@ namespace SecretServerRestClient.DSS /// Expire Session /// Whether the expiration succeeded /// A server side error occurred. - public System.Threading.Tasks.Task ExpireSessionAsync() - { - return ExpireSessionAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task ExpireSessionAsync() => ExpireSessionAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Expire Session @@ -46440,10 +45420,7 @@ namespace SecretServerRestClient.DSS /// Secret ID /// One time password code model /// A server side error occurred. - public System.Threading.Tasks.Task> GetAsync(int? numberOfCodesToGenerate, int id) - { - return GetAsync(numberOfCodesToGenerate, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetAsync(int? numberOfCodesToGenerate, int id) => GetAsync(numberOfCodesToGenerate, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get one time password code and seconds @@ -46695,10 +45672,7 @@ namespace SecretServerRestClient.DSS /// Get Pba Configuration /// Pba Configuration object /// A server side error occurred. - public System.Threading.Tasks.Task GetPbaConfigurationAsync() - { - return GetPbaConfigurationAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetPbaConfigurationAsync() => GetPbaConfigurationAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Pba Configuration @@ -46802,10 +45776,7 @@ namespace SecretServerRestClient.DSS /// Pba Configuration Update Options /// Pba Configuration /// A server side error occurred. - public System.Threading.Tasks.Task UpdatePbaConfigurationAsync(PbaConfigurationUpdateArgs args) - { - return UpdatePbaConfigurationAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdatePbaConfigurationAsync(PbaConfigurationUpdateArgs args) => UpdatePbaConfigurationAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Pba Configuration @@ -46913,10 +45884,7 @@ namespace SecretServerRestClient.DSS /// Pba Historical Import Options /// Pba Historical Import /// A server side error occurred. - public System.Threading.Tasks.Task ProcessPbaHistoryImportAsync(PbaHistoricalImportArgs args) - { - return ProcessPbaHistoryImportAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task ProcessPbaHistoryImportAsync(PbaHistoricalImportArgs args) => ProcessPbaHistoryImportAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Process Pba Historical Import @@ -47023,10 +45991,7 @@ namespace SecretServerRestClient.DSS /// Test Pba Connection /// Success /// A server side error occurred. - public System.Threading.Tasks.Task TestPbaConnectionAsync() - { - return TestPbaConnectionAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task TestPbaConnectionAsync() => TestPbaConnectionAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Test Pba Connection @@ -47130,10 +46095,7 @@ namespace SecretServerRestClient.DSS /// Confirm Pba Pair /// Pba Confirm Pair Model /// A server side error occurred. - public System.Threading.Tasks.Task ConfirmPbaPairAsync() - { - return ConfirmPbaPairAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task ConfirmPbaPairAsync() => ConfirmPbaPairAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Confirm Pba Pair @@ -47237,10 +46199,7 @@ namespace SecretServerRestClient.DSS /// Sync Pba Metadata /// Success /// A server side error occurred. - public System.Threading.Tasks.Task SyncPbaMetadataAsync() - { - return SyncPbaMetadataAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SyncPbaMetadataAsync() => SyncPbaMetadataAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Sync Pba Metadata @@ -47483,10 +46442,7 @@ namespace SecretServerRestClient.DSS /// clientOverrideId /// A list of SSH Terminal client overrides /// A server side error occurred. - public System.Threading.Tasks.Task DeleteTerminalClientOverridesAsync(int clientOverrideId) - { - return DeleteTerminalClientOverridesAsync(clientOverrideId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DeleteTerminalClientOverridesAsync(int clientOverrideId) => DeleteTerminalClientOverridesAsync(clientOverrideId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes SSH Terminal client overrides @@ -47596,10 +46552,7 @@ namespace SecretServerRestClient.DSS /// clientOverrideId /// A list of SSH Terminal client overrides /// A server side error occurred. - public System.Threading.Tasks.Task UpdateTerminalClientOverridesAsync(ProxyClientOverrideSummary clientOverride, int clientOverrideId) - { - return UpdateTerminalClientOverridesAsync(clientOverride, clientOverrideId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateTerminalClientOverridesAsync(ProxyClientOverrideSummary clientOverride, int clientOverrideId) => UpdateTerminalClientOverridesAsync(clientOverride, clientOverrideId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates SSH Terminal client overrides @@ -47711,10 +46664,7 @@ namespace SecretServerRestClient.DSS /// Get the SSH proxy configuration /// SSH Proxy Configuration /// A server side error occurred. - public System.Threading.Tasks.Task GetSshProxyConfigurationAsync() - { - return GetSshProxyConfigurationAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSshProxyConfigurationAsync() => GetSshProxyConfigurationAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get the SSH proxy configuration @@ -47818,10 +46768,7 @@ namespace SecretServerRestClient.DSS /// viewModel /// SSH Proxy Configuration /// A server side error occurred. - public System.Threading.Tasks.Task PatchSshProxyConfigurationAsync(SshProxyConfigurationViewModel viewModel) - { - return PatchSshProxyConfigurationAsync(viewModel, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchSshProxyConfigurationAsync(SshProxyConfigurationViewModel viewModel) => PatchSshProxyConfigurationAsync(viewModel, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update the SSH proxy configuration @@ -47928,10 +46875,7 @@ namespace SecretServerRestClient.DSS /// Get the RDP proxy configuration /// RDP Proxy Configuration /// A server side error occurred. - public System.Threading.Tasks.Task GetRdpProxyConfigurationAsync() - { - return GetRdpProxyConfigurationAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetRdpProxyConfigurationAsync() => GetRdpProxyConfigurationAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get the RDP proxy configuration @@ -48035,10 +46979,7 @@ namespace SecretServerRestClient.DSS /// viewModel /// RDP Proxy Configuration /// A server side error occurred. - public System.Threading.Tasks.Task PatchRdpProxyConfigurationAsync(RdpProxyConfigurationViewModel viewModel) - { - return PatchRdpProxyConfigurationAsync(viewModel, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchRdpProxyConfigurationAsync(RdpProxyConfigurationViewModel viewModel) => PatchRdpProxyConfigurationAsync(viewModel, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update the RDP proxy configuration @@ -48145,10 +47086,7 @@ namespace SecretServerRestClient.DSS /// Get Proxy Explanations /// Explanations /// A server side error occurred. - public System.Threading.Tasks.Task GetExplanationsAsync() - { - return GetExplanationsAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetExplanationsAsync() => GetExplanationsAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Proxy Explanations @@ -48256,10 +47194,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// A paginated list of Proxy Audits. /// A server side error occurred. - public System.Threading.Tasks.Task GetAuditsAsync(int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetAuditsAsync(skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAuditsAsync(int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetAuditsAsync(skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get the Proxy Audit List @@ -48388,10 +47323,7 @@ namespace SecretServerRestClient.DSS /// Get the proxy endpoints list /// A list of nodes, sites, and engines with proxy configurations /// A server side error occurred. - public System.Threading.Tasks.Task GetEndpointsAsync() - { - return GetEndpointsAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetEndpointsAsync() => GetEndpointsAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get the proxy endpoints list @@ -48494,10 +47426,7 @@ namespace SecretServerRestClient.DSS /// Get a notification of where the SSH proxy is running /// A list of nodes, sites, and engines with proxy configurations /// A server side error occurred. - public System.Threading.Tasks.Task GetSshEndpointNotificationAsync() - { - return GetSshEndpointNotificationAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSshEndpointNotificationAsync() => GetSshEndpointNotificationAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get a notification of where the SSH proxy is running @@ -48600,10 +47529,7 @@ namespace SecretServerRestClient.DSS /// Get a notification of where the RDP proxy is running /// A list of nodes, sites, and engines with proxy configurations /// A server side error occurred. - public System.Threading.Tasks.Task GetRdpEndpointNotificationAsync() - { - return GetRdpEndpointNotificationAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetRdpEndpointNotificationAsync() => GetRdpEndpointNotificationAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get a notification of where the RDP proxy is running @@ -48706,10 +47632,7 @@ namespace SecretServerRestClient.DSS /// Get endpoint warnings /// A list of nodes, sites, and engines with proxy configurations /// A server side error occurred. - public System.Threading.Tasks.Task GetEndpointNotificationAsync() - { - return GetEndpointNotificationAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetEndpointNotificationAsync() => GetEndpointNotificationAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get endpoint warnings @@ -48819,10 +47742,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// A list of SSH Terminal clients /// A server side error occurred. - public System.Threading.Tasks.Task GetTerminalClientsAsync(string filter_ipAddress, string filter_terminalClientType, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetTerminalClientsAsync(filter_ipAddress, filter_terminalClientType, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetTerminalClientsAsync(string filter_ipAddress, string filter_terminalClientType, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetTerminalClientsAsync(filter_ipAddress, filter_terminalClientType, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get SSH Terminal clients @@ -48971,10 +47891,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// A list of SSH Terminal client history /// A server side error occurred. - public System.Threading.Tasks.Task GetTerminalClientHistoryAsync(string filter_authenticateResult, string filter_endDate, string filter_engineIdentityGuid, string filter_ipAddress, string filter_startDate, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetTerminalClientHistoryAsync(filter_authenticateResult, filter_endDate, filter_engineIdentityGuid, filter_ipAddress, filter_startDate, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetTerminalClientHistoryAsync(string filter_authenticateResult, string filter_endDate, string filter_engineIdentityGuid, string filter_ipAddress, string filter_startDate, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetTerminalClientHistoryAsync(filter_authenticateResult, filter_endDate, filter_engineIdentityGuid, filter_ipAddress, filter_startDate, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get SSH Terminal client history @@ -49128,10 +48045,7 @@ namespace SecretServerRestClient.DSS /// Get SSH Terminal client overrides /// A list of SSH Terminal client overrides /// A server side error occurred. - public System.Threading.Tasks.Task> GetTerminalClientOverridesAsync() - { - return GetTerminalClientOverridesAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetTerminalClientOverridesAsync() => GetTerminalClientOverridesAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get SSH Terminal client overrides @@ -49235,10 +48149,7 @@ namespace SecretServerRestClient.DSS /// clientOverride /// A list of SSH Terminal client overrides /// A server side error occurred. - public System.Threading.Tasks.Task CreateTerminalClientOverridesAsync(ProxyClientOverrideSummary clientOverride) - { - return CreateTerminalClientOverridesAsync(clientOverride, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateTerminalClientOverridesAsync(ProxyClientOverrideSummary clientOverride) => CreateTerminalClientOverridesAsync(clientOverride, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Creates SSH Terminal client overrides @@ -49345,10 +48256,7 @@ namespace SecretServerRestClient.DSS /// Get proxy state /// Proxy state /// A server side error occurred. - public System.Threading.Tasks.Task GetProxyingStateAsync() - { - return GetProxyingStateAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetProxyingStateAsync() => GetProxyingStateAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get proxy state @@ -49453,10 +48361,7 @@ namespace SecretServerRestClient.DSS /// node /// A list of nodes, sites, and engines with proxy configurations /// A server side error occurred. - public System.Threading.Tasks.Task PatchNodeAsync(int id, ProxyNodeViewModel node) - { - return PatchNodeAsync(id, node, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchNodeAsync(int id, ProxyNodeViewModel node) => PatchNodeAsync(id, node, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update a node proxy configuration @@ -49570,10 +48475,7 @@ namespace SecretServerRestClient.DSS /// site /// A list of nodes, sites, and engines with proxy configurations /// A server side error occurred. - public System.Threading.Tasks.Task PatchSiteAsync(int id, ProxySiteViewModel site) - { - return PatchSiteAsync(id, site, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchSiteAsync(int id, ProxySiteViewModel site) => PatchSiteAsync(id, site, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update a site proxy configuration @@ -49687,10 +48589,7 @@ namespace SecretServerRestClient.DSS /// id /// A list of nodes, sites, and engines with proxy configurations /// A server side error occurred. - public System.Threading.Tasks.Task PatchEngineAsync(ProxyEngineViewModel engine, int id) - { - return PatchEngineAsync(engine, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchEngineAsync(ProxyEngineViewModel engine, int id) => PatchEngineAsync(engine, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update an engine proxy configuration @@ -49804,10 +48703,7 @@ namespace SecretServerRestClient.DSS /// clientId /// A list of SSH Terminal clients /// A server side error occurred. - public System.Threading.Tasks.Task UpdateTerminalClientTypeAsync(ProxyClientSummary client, int clientId) - { - return UpdateTerminalClientTypeAsync(client, clientId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateTerminalClientTypeAsync(ProxyClientSummary client, int clientId) => UpdateTerminalClientTypeAsync(client, clientId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates a SSH Terminal client type @@ -49919,10 +48815,7 @@ namespace SecretServerRestClient.DSS /// Generate SSH Host Key /// SSH Proxy Configuration /// A server side error occurred. - public System.Threading.Tasks.Task GenerateSshHostKeyAsync() - { - return GenerateSshHostKeyAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GenerateSshHostKeyAsync() => GenerateSshHostKeyAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Generate SSH Host Key @@ -50027,10 +48920,7 @@ namespace SecretServerRestClient.DSS /// args /// RDP Proxy Configuration /// A server side error occurred. - public System.Threading.Tasks.Task GenerateRdpProxyCertificateAsync(GenerateRdpCertificateArgs args) - { - return GenerateRdpProxyCertificateAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GenerateRdpProxyCertificateAsync(GenerateRdpCertificateArgs args) => GenerateRdpProxyCertificateAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Generate RDP server certificate @@ -50276,10 +49166,7 @@ namespace SecretServerRestClient.DSS /// Password Type Id /// PasswordType /// A server side error occurred. - public System.Threading.Tasks.Task GetPasswordTypeAsync(int id) - { - return GetPasswordTypeAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetPasswordTypeAsync(int id) => GetPasswordTypeAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Password Type By Id @@ -50389,10 +49276,7 @@ namespace SecretServerRestClient.DSS /// Password Type update options /// Updated Password Type /// A server side error occurred. - public System.Threading.Tasks.Task UpdatePasswordTypeAsync(int id, PasswordTypeUpdateArgs updateArgs) - { - return UpdatePasswordTypeAsync(id, updateArgs, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdatePasswordTypeAsync(int id, PasswordTypeUpdateArgs updateArgs) => UpdatePasswordTypeAsync(id, updateArgs, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Password Type @@ -50505,10 +49389,7 @@ namespace SecretServerRestClient.DSS /// Password Type Id /// Delete Password Type Response /// A server side error occurred. - public System.Threading.Tasks.Task DeletePasswordTypeAsync(int id) - { - return DeletePasswordTypeAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DeletePasswordTypeAsync(int id) => DeletePasswordTypeAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete Password Type @@ -50623,10 +49504,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Custom Command List result for Password Type /// A server side error occurred. - public System.Threading.Tasks.Task GetCustomCommandsAsync(int id, int? filter_commandTypeCode, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetCustomCommandsAsync(id, filter_commandTypeCode, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetCustomCommandsAsync(int id, int? filter_commandTypeCode, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetCustomCommandsAsync(id, filter_commandTypeCode, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Custom Command List @@ -50767,10 +49645,7 @@ namespace SecretServerRestClient.DSS /// Custom Command update options /// Updated Custom Command /// A server side error occurred. - public System.Threading.Tasks.Task UpdateCustomCommandAsync(int id, CustomCommandUpdateArgs updateArgs) - { - return UpdateCustomCommandAsync(id, updateArgs, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateCustomCommandAsync(int id, CustomCommandUpdateArgs updateArgs) => UpdateCustomCommandAsync(id, updateArgs, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Custom Command @@ -50883,10 +49758,7 @@ namespace SecretServerRestClient.DSS /// Custom Command Id /// Delete Password Custom Command /// A server side error occurred. - public System.Threading.Tasks.Task DeleteCustomCommandAsync(int id) - { - return DeleteCustomCommandAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DeleteCustomCommandAsync(int id) => DeleteCustomCommandAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete Custom Command @@ -51001,10 +49873,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// PasswordType List result /// A server side error occurred. - public System.Threading.Tasks.Task GetPasswordTypeListAsync(bool? filter_includeInactive, string filter_searchTerm, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetPasswordTypeListAsync(filter_includeInactive, filter_searchTerm, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetPasswordTypeListAsync(bool? filter_includeInactive, string filter_searchTerm, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetPasswordTypeListAsync(filter_includeInactive, filter_searchTerm, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Password Type List @@ -51144,10 +50013,7 @@ namespace SecretServerRestClient.DSS /// Password Type creation options /// Created Password Type /// A server side error occurred. - public System.Threading.Tasks.Task CreatePasswordTypeAsync(PasswordTypeCreateArgs passwordTypeCreateArgs) - { - return CreatePasswordTypeAsync(passwordTypeCreateArgs, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreatePasswordTypeAsync(PasswordTypeCreateArgs passwordTypeCreateArgs) => CreatePasswordTypeAsync(passwordTypeCreateArgs, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create Password Type @@ -51255,10 +50121,7 @@ namespace SecretServerRestClient.DSS /// Custom Command creation options /// Created Custom Command /// A server side error occurred. - public System.Threading.Tasks.Task CreateCustomCommandAsync(CustomCommandCreateArgs createArgs) - { - return CreateCustomCommandAsync(createArgs, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateCustomCommandAsync(CustomCommandCreateArgs createArgs) => CreateCustomCommandAsync(createArgs, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create Custom Command @@ -51504,10 +50367,7 @@ namespace SecretServerRestClient.DSS /// Report ID /// Report object /// A server side error occurred. - public System.Threading.Tasks.Task GetReportDetailAsync(int id) - { - return GetReportDetailAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetReportDetailAsync(int id) => GetReportDetailAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Report @@ -51617,10 +50477,7 @@ namespace SecretServerRestClient.DSS /// Report ID /// Report object /// A server side error occurred. - public System.Threading.Tasks.Task UpdateReportAsync(ReportUpdateArgs args, int id) - { - return UpdateReportAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateReportAsync(ReportUpdateArgs args, int id) => UpdateReportAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Report @@ -51733,10 +50590,7 @@ namespace SecretServerRestClient.DSS /// Report ID /// Object deletion result /// A server side error occurred. - public System.Threading.Tasks.Task DeleteAsync(int id) - { - return DeleteAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DeleteAsync(int id) => DeleteAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete Report @@ -51845,10 +50699,7 @@ namespace SecretServerRestClient.DSS /// reportCategoryId /// Report Category /// A server side error occurred. - public System.Threading.Tasks.Task GetReportCategoryAsync(int reportCategoryId) - { - return GetReportCategoryAsync(reportCategoryId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetReportCategoryAsync(int reportCategoryId) => GetReportCategoryAsync(reportCategoryId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Report Category @@ -51957,10 +50808,7 @@ namespace SecretServerRestClient.DSS /// reportCategoryId /// true if success /// A server side error occurred. - public System.Threading.Tasks.Task DeleteReportCategoryAsync(int reportCategoryId) - { - return DeleteReportCategoryAsync(reportCategoryId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DeleteReportCategoryAsync(int reportCategoryId) => DeleteReportCategoryAsync(reportCategoryId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete Report Category @@ -52070,10 +50918,7 @@ namespace SecretServerRestClient.DSS /// reportCategoryId /// Report Category /// A server side error occurred. - public System.Threading.Tasks.Task UpdateReportCategoryAsync(ReportCategoryUpdateArgs args, int reportCategoryId) - { - return UpdateReportCategoryAsync(args, reportCategoryId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateReportCategoryAsync(ReportCategoryUpdateArgs args, int reportCategoryId) => UpdateReportCategoryAsync(args, reportCategoryId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Report Category @@ -52186,10 +51031,7 @@ namespace SecretServerRestClient.DSS /// reportScheduleId /// Report Schedule /// A server side error occurred. - public System.Threading.Tasks.Task GetReportScheduleAsync(int reportScheduleId) - { - return GetReportScheduleAsync(reportScheduleId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetReportScheduleAsync(int reportScheduleId) => GetReportScheduleAsync(reportScheduleId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Report Schedule @@ -52298,10 +51140,7 @@ namespace SecretServerRestClient.DSS /// reportScheduleId /// Success /// A server side error occurred. - public System.Threading.Tasks.Task DeleteReportScheduleAsync(int reportScheduleId) - { - return DeleteReportScheduleAsync(reportScheduleId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DeleteReportScheduleAsync(int reportScheduleId) => DeleteReportScheduleAsync(reportScheduleId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete Report Schedule @@ -52411,10 +51250,7 @@ namespace SecretServerRestClient.DSS /// reportScheduleId /// Report Schedule /// A server side error occurred. - public System.Threading.Tasks.Task UpdateReportScheduleAsync(ReportScheduleUpdateArgs args, int reportScheduleId) - { - return UpdateReportScheduleAsync(args, reportScheduleId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateReportScheduleAsync(ReportScheduleUpdateArgs args, int reportScheduleId) => UpdateReportScheduleAsync(args, reportScheduleId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Report Schedule @@ -52532,10 +51368,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Report Audit Summaries /// A server side error occurred. - public System.Threading.Tasks.Task GetReportAuditsByIdAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetReportAuditsByIdAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetReportAuditsByIdAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetReportAuditsByIdAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Report Audits @@ -52674,10 +51507,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Report Audit Summaries /// A server side error occurred. - public System.Threading.Tasks.Task GetReportAuditsAsync(int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetReportAuditsAsync(skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetReportAuditsAsync(int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetReportAuditsAsync(skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get All Report Audits @@ -52815,10 +51645,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Report search result object /// A server side error occurred. - public System.Threading.Tasks.Task SearchReportSummaryAsync(int? filter_categoryId, bool? filter_includeInactive, string filter_reportName, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchReportSummaryAsync(filter_categoryId, filter_includeInactive, filter_reportName, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchReportSummaryAsync(int? filter_categoryId, bool? filter_includeInactive, string filter_reportName, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchReportSummaryAsync(filter_categoryId, filter_includeInactive, filter_reportName, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Reports @@ -52968,10 +51795,7 @@ namespace SecretServerRestClient.DSS /// Report create options /// Report object /// A server side error occurred. - public System.Threading.Tasks.Task CreateReportAsync(ReportCreateArgs args) - { - return CreateReportAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateReportAsync(ReportCreateArgs args) => CreateReportAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create Report @@ -53087,10 +51911,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Reports search result object /// A server side error occurred. - public System.Threading.Tasks.Task LookupAsync(int? filter_categoryId, bool? filter_includeInactive, string filter_reportName, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return LookupAsync(filter_categoryId, filter_includeInactive, filter_reportName, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task LookupAsync(int? filter_categoryId, bool? filter_includeInactive, string filter_reportName, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => LookupAsync(filter_categoryId, filter_includeInactive, filter_reportName, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Lookup Reports @@ -53239,10 +52060,7 @@ namespace SecretServerRestClient.DSS /// List Report Categories /// Report categories array /// A server side error occurred. - public System.Threading.Tasks.Task> GetCategoriesAsync() - { - return GetCategoriesAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetCategoriesAsync() => GetCategoriesAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// List Report Categories @@ -53346,10 +52164,7 @@ namespace SecretServerRestClient.DSS /// args /// Report Category /// A server side error occurred. - public System.Threading.Tasks.Task CreateReportCategoryAsync(ReportCategoryCreateArgs args) - { - return CreateReportCategoryAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateReportCategoryAsync(ReportCategoryCreateArgs args) => CreateReportCategoryAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create Report Category @@ -53456,10 +52271,7 @@ namespace SecretServerRestClient.DSS /// List Report Chart Types /// Report chart types array /// A server side error occurred. - public System.Threading.Tasks.Task> GetChartTypesAsync() - { - return GetChartTypesAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetChartTypesAsync() => GetChartTypesAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// List Report Chart Types @@ -53563,10 +52375,7 @@ namespace SecretServerRestClient.DSS /// Report ID /// Report Parameters /// A server side error occurred. - public System.Threading.Tasks.Task GetDefaultParametersAsync(int id) - { - return GetDefaultParametersAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetDefaultParametersAsync(int id) => GetDefaultParametersAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Report Parameters @@ -53681,10 +52490,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Report Schedules that matched /// A server side error occurred. - public System.Threading.Tasks.Task SearchReportSchedulesAsync(bool? filter_includeDeleted, int? filter_reportId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchReportSchedulesAsync(filter_includeDeleted, filter_reportId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchReportSchedulesAsync(bool? filter_includeDeleted, int? filter_reportId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchReportSchedulesAsync(filter_includeDeleted, filter_reportId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Report Schedules @@ -53824,10 +52630,7 @@ namespace SecretServerRestClient.DSS /// args /// Report Schedule /// A server side error occurred. - public System.Threading.Tasks.Task CreateReportScheduleAsync(ReportScheduleCreateArgs args) - { - return CreateReportScheduleAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateReportScheduleAsync(ReportScheduleCreateArgs args) => CreateReportScheduleAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create Report Schedule @@ -53935,10 +52738,7 @@ namespace SecretServerRestClient.DSS /// reportId /// Report Schedule /// A server side error occurred. - public System.Threading.Tasks.Task StubReportScheduleAsync(int reportId) - { - return StubReportScheduleAsync(reportId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task StubReportScheduleAsync(int reportId) => StubReportScheduleAsync(reportId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Stub Report Schedule @@ -54052,10 +52852,7 @@ namespace SecretServerRestClient.DSS /// reportScheduleId /// Report Schedule History for a particular Id /// A server side error occurred. - public System.Threading.Tasks.Task SearchReportScheduleHistoryAsync(int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take, int reportScheduleId) - { - return SearchReportScheduleHistoryAsync(skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, reportScheduleId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchReportScheduleHistoryAsync(int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take, int reportScheduleId) => SearchReportScheduleHistoryAsync(skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, reportScheduleId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Report Schedule History @@ -54190,10 +52987,7 @@ namespace SecretServerRestClient.DSS /// reportScheduleHistoryId /// Report Schedule History for a ScheduleReportHistoryId /// A server side error occurred. - public System.Threading.Tasks.Task GetReportScheduleHistoryAsync(int reportScheduleHistoryId) - { - return GetReportScheduleHistoryAsync(reportScheduleHistoryId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetReportScheduleHistoryAsync(int reportScheduleHistoryId) => GetReportScheduleHistoryAsync(reportScheduleHistoryId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Report Schedule History @@ -54302,10 +53096,7 @@ namespace SecretServerRestClient.DSS /// Report execute options /// Report object /// A server side error occurred. - public System.Threading.Tasks.Task ExportAsync(ReportExportArgs args) - { - return ExportAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task ExportAsync(ReportExportArgs args) => ExportAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Export Report @@ -54413,10 +53204,7 @@ namespace SecretServerRestClient.DSS /// Report execute options /// Report object /// A server side error occurred. - public System.Threading.Tasks.Task ExecuteAsync(ReportExecuteArgs args) - { - return ExecuteAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task ExecuteAsync(ReportExecuteArgs args) => ExecuteAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Execute Report @@ -54525,10 +53313,7 @@ namespace SecretServerRestClient.DSS /// Report Id /// Object email result /// A server side error occurred. - public System.Threading.Tasks.Task EmailAsync(ReportEmailArgs args, int id) - { - return EmailAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task EmailAsync(ReportEmailArgs args, int id) => EmailAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Email Report @@ -54641,10 +53426,7 @@ namespace SecretServerRestClient.DSS /// reportScheduleHistoryId /// Report object /// A server side error occurred. - public System.Threading.Tasks.Task DownloadHistoricalReportAsync(int reportScheduleHistoryId) - { - return DownloadHistoricalReportAsync(reportScheduleHistoryId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DownloadHistoricalReportAsync(int reportScheduleHistoryId) => DownloadHistoricalReportAsync(reportScheduleHistoryId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Download Historical Report @@ -54754,10 +53536,7 @@ namespace SecretServerRestClient.DSS /// reportScheduleId /// Success /// A server side error occurred. - public System.Threading.Tasks.Task UndeleteReportScheduleAsync(int reportScheduleId) - { - return UndeleteReportScheduleAsync(reportScheduleId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UndeleteReportScheduleAsync(int reportScheduleId) => UndeleteReportScheduleAsync(reportScheduleId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Undelete Report Schedule @@ -54867,10 +53646,7 @@ namespace SecretServerRestClient.DSS /// reportId /// Returns success/fail model /// A server side error occurred. - public System.Threading.Tasks.Task UndeleteSystemReportAsync(int reportId) - { - return UndeleteSystemReportAsync(reportId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UndeleteSystemReportAsync(int reportId) => UndeleteSystemReportAsync(reportId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Undelete System Report @@ -55117,10 +53893,7 @@ namespace SecretServerRestClient.DSS /// Permissions not assigned to any Role /// Names of all unassigned Permissions /// A server side error occurred. - public System.Threading.Tasks.Task GetUnassignedAsync() - { - return GetUnassignedAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetUnassignedAsync() => GetUnassignedAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Permissions not assigned to any Role @@ -55369,10 +54142,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Role search result object /// A server side error occurred. - public System.Threading.Tasks.Task GetAllAsync(int? filter_groupId, bool? filter_includeInactive, int? filter_userId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetAllAsync(filter_groupId, filter_includeInactive, filter_userId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAllAsync(int? filter_groupId, bool? filter_includeInactive, int? filter_userId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetAllAsync(filter_groupId, filter_includeInactive, filter_userId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search roles @@ -55655,10 +54425,7 @@ namespace SecretServerRestClient.DSS /// scheduleId /// The recurring schedule details /// A server side error occurred. - public System.Threading.Tasks.Task GetScheduleAsync(int scheduleId) - { - return GetScheduleAsync(scheduleId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetScheduleAsync(int scheduleId) => GetScheduleAsync(scheduleId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Recurring schedule @@ -55768,10 +54535,7 @@ namespace SecretServerRestClient.DSS /// scheduleId /// The updated recurring schedule details /// A server side error occurred. - public System.Threading.Tasks.Task UpdateScheduleAsync(RecurringScheduleUpdateArgs args, int scheduleId) - { - return UpdateScheduleAsync(args, scheduleId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateScheduleAsync(RecurringScheduleUpdateArgs args, int scheduleId) => UpdateScheduleAsync(args, scheduleId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update a Recurring Schedule @@ -55884,10 +54648,7 @@ namespace SecretServerRestClient.DSS /// args /// The saved recurring schedule details /// A server side error occurred. - public System.Threading.Tasks.Task CreateScheduleAsync(RecurringScheduleCreateArgs args) - { - return CreateScheduleAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateScheduleAsync(RecurringScheduleCreateArgs args) => CreateScheduleAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create a Recurring Schedule @@ -56139,10 +54900,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// scripts search result object /// A server side error occurred. - public System.Threading.Tasks.Task SearchAsync(bool? filter_includeInactive, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchAsync(filter_includeInactive, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchAsync(bool? filter_includeInactive, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchAsync(filter_includeInactive, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search scripts @@ -56282,10 +55040,7 @@ namespace SecretServerRestClient.DSS /// Script creation options /// Secret Template object /// A server side error occurred. - public System.Threading.Tasks.Task PostAsync(ScriptCreateArgs args) - { - return PostAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PostAsync(ScriptCreateArgs args) => PostAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create Script @@ -56393,10 +55148,7 @@ namespace SecretServerRestClient.DSS /// Script ID /// Script object /// A server side error occurred. - public System.Threading.Tasks.Task LoadAsync(int id) - { - return LoadAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task LoadAsync(int id) => LoadAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Script @@ -56650,10 +55402,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// SDK Client Account search result object /// A server side error occurred. - public System.Threading.Tasks.Task SearchClientAccountsAsync(string filter_operator, string filter_searchText, int? filter_userId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchClientAccountsAsync(filter_operator, filter_searchText, filter_userId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchClientAccountsAsync(string filter_operator, string filter_searchText, int? filter_userId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchClientAccountsAsync(filter_operator, filter_searchText, filter_userId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search SDK Client Accounts @@ -56798,10 +55547,7 @@ namespace SecretServerRestClient.DSS /// SDK Client Account creation options /// SdkClientAccountModel /// A server side error occurred. - public System.Threading.Tasks.Task CreateClientAccountAsync(SdkClientAccountCreateArgs args) - { - return CreateClientAccountAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateClientAccountAsync(SdkClientAccountCreateArgs args) => CreateClientAccountAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create SDK Client Account @@ -56909,10 +55655,7 @@ namespace SecretServerRestClient.DSS /// SDK Client Account Id /// SdkClientAccountModel /// A server side error occurred. - public System.Threading.Tasks.Task GetAsync(int id) - { - return GetAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAsync(int id) => GetAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get SDK Client Account @@ -57022,10 +55765,7 @@ namespace SecretServerRestClient.DSS /// SDK Client Account Id /// SdkClientAccountModel /// A server side error occurred. - public System.Threading.Tasks.Task UpdateClientAccountAsync(SdkClientAccountUpdateArgs args, int id) - { - return UpdateClientAccountAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateClientAccountAsync(SdkClientAccountUpdateArgs args, int id) => UpdateClientAccountAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update SDK Client Account @@ -57137,10 +55877,7 @@ namespace SecretServerRestClient.DSS /// Get Current State /// bool /// A server side error occurred. - public System.Threading.Tasks.Task GetEnabledAsync() - { - return GetEnabledAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetEnabledAsync() => GetEnabledAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Current State @@ -57243,10 +55980,7 @@ namespace SecretServerRestClient.DSS /// Toggle Current State /// bool /// A server side error occurred. - public System.Threading.Tasks.Task ToggleEnabledAsync() - { - return ToggleEnabledAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task ToggleEnabledAsync() => ToggleEnabledAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Toggle Current State @@ -57351,10 +56085,7 @@ namespace SecretServerRestClient.DSS /// SDK Client Account Id /// bool /// A server side error occurred. - public System.Threading.Tasks.Task RevokeAsync(int id) - { - return RevokeAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task RevokeAsync(int id) => RevokeAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Revoke SDK Client Account @@ -57609,10 +56340,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// SDK Client Audit search result object /// A server side error occurred. - public System.Threading.Tasks.Task SearchClientAuditAsync(string filter_operator, string filter_searchText, int? filter_userId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchClientAuditAsync(filter_operator, filter_searchText, filter_userId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchClientAuditAsync(string filter_operator, string filter_searchText, int? filter_userId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchClientAuditAsync(filter_operator, filter_searchText, filter_userId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search SDK Client Audits @@ -57895,10 +56623,7 @@ namespace SecretServerRestClient.DSS /// SDK Client Rule Id /// SdkClientRuleModel /// A server side error occurred. - public System.Threading.Tasks.Task GetAsync(int id) - { - return GetAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAsync(int id) => GetAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get SDK Client Rule @@ -58008,10 +56733,7 @@ namespace SecretServerRestClient.DSS /// SDK Client Rule Id /// SdkClientRuleModel /// A server side error occurred. - public System.Threading.Tasks.Task UpdateClientRuleAsync(SdkClientRuleUpdateArgs args, int id) - { - return UpdateClientRuleAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateClientRuleAsync(SdkClientRuleUpdateArgs args, int id) => UpdateClientRuleAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update SDK Client Rule @@ -58124,10 +56846,7 @@ namespace SecretServerRestClient.DSS /// SDK Client Rule Id /// DeletedModel /// A server side error occurred. - public System.Threading.Tasks.Task DeleteAsync(int id) - { - return DeleteAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DeleteAsync(int id) => DeleteAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete SDK Client Rule @@ -58243,10 +56962,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// SDK Client Rule search result object /// A server side error occurred. - public System.Threading.Tasks.Task SearchClientRulesAsync(string filter_operator, string filter_searchText, int? filter_userId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchClientRulesAsync(filter_operator, filter_searchText, filter_userId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchClientRulesAsync(string filter_operator, string filter_searchText, int? filter_userId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchClientRulesAsync(filter_operator, filter_searchText, filter_userId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search SDK Client Rules @@ -58391,10 +57107,7 @@ namespace SecretServerRestClient.DSS /// SDK Client Rule creation options /// SdkClientRuleModel /// A server side error occurred. - public System.Threading.Tasks.Task CreateClientRuleAsync(SdkClientRuleCreateArgs args) - { - return CreateClientRuleAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateClientRuleAsync(SdkClientRuleCreateArgs args) => CreateClientRuleAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create New SDK Client Rule @@ -58502,10 +57215,7 @@ namespace SecretServerRestClient.DSS /// SDK Client Rule Id /// SdkClientRuleModel /// A server side error occurred. - public System.Threading.Tasks.Task GetOnboardingKeyAsync(int id) - { - return GetOnboardingKeyAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetOnboardingKeyAsync(int id) => GetOnboardingKeyAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Onboarding Key for SDK Client Rule @@ -58613,10 +57323,7 @@ namespace SecretServerRestClient.DSS /// Get SDK Client Rule Stub /// SdkClientRuleModel /// A server side error occurred. - public System.Threading.Tasks.Task StubAsync() - { - return StubAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task StubAsync() => StubAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get SDK Client Rule Stub @@ -58864,10 +57571,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Secret Access Model /// A server side error occurred. - public System.Threading.Tasks.Task SearchRequestsAsync(bool? filter_isMyRequest, string filter_status, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchRequestsAsync(filter_isMyRequest, filter_status, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchRequestsAsync(bool? filter_isMyRequest, string filter_status, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchRequestsAsync(filter_isMyRequest, filter_status, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Secret Access Requests by Status for Current User. @@ -59007,10 +57711,7 @@ namespace SecretServerRestClient.DSS /// args /// Secret Access Model /// A server side error occurred. - public System.Threading.Tasks.Task UpdateRequestAsync(SecretAccessUpdateArgs args) - { - return UpdateRequestAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateRequestAsync(SecretAccessUpdateArgs args) => UpdateRequestAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update a Secret Access Request @@ -59118,10 +57819,7 @@ namespace SecretServerRestClient.DSS /// args /// Secret Access Model /// A server side error occurred. - public System.Threading.Tasks.Task CreateRequestAsync(SecretAccessCreateArgs args) - { - return CreateRequestAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateRequestAsync(SecretAccessCreateArgs args) => CreateRequestAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create a new Secret Access Request @@ -59234,10 +57932,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Secret Access Request History Model /// A server side error occurred. - public System.Threading.Tasks.Task GetHistoryAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetHistoryAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetHistoryAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetHistoryAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret access request history for the user that created the request. @@ -59377,10 +58072,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Secret Access Model /// A server side error occurred. - public System.Threading.Tasks.Task GetRequestsForSecretAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetRequestsForSecretAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetRequestsForSecretAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetRequestsForSecretAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret Access Requests by Status for Current User. @@ -59515,10 +58207,7 @@ namespace SecretServerRestClient.DSS /// Secret Access ID /// Secret Access Model /// A server side error occurred. - public System.Threading.Tasks.Task GetRequestAsync(int id) - { - return GetRequestAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetRequestAsync(int id) => GetRequestAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret Access Request by ID @@ -59627,10 +58316,7 @@ namespace SecretServerRestClient.DSS /// Secret ID /// Secret Access Request Options /// A server side error occurred. - public System.Threading.Tasks.Task GetOptionsBySecretAsync(int id) - { - return GetOptionsBySecretAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetOptionsBySecretAsync(int id) => GetOptionsBySecretAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret Access Options by Secret ID @@ -59740,10 +58426,7 @@ namespace SecretServerRestClient.DSS /// Secret ID /// Success or Failure of the save. /// A server side error occurred. - public System.Threading.Tasks.Task CreateViewCommentAsync(SecretAccessViewCommentArgs args, int id) - { - return CreateViewCommentAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateViewCommentAsync(SecretAccessViewCommentArgs args, int id) => CreateViewCommentAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create a new View Comment on a secret. @@ -59994,10 +58677,7 @@ namespace SecretServerRestClient.DSS /// Secret Dependency ID /// Secret Dependency object /// A server side error occurred. - public System.Threading.Tasks.Task GetDependencyAsync(int id) - { - return GetDependencyAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetDependencyAsync(int id) => GetDependencyAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret Dependency @@ -60107,10 +58787,7 @@ namespace SecretServerRestClient.DSS /// Secret Dependency ID /// SecretDependencyModel object /// A server side error occurred. - public System.Threading.Tasks.Task UpdateDependencyAsync(SecretDependencyUpdateArgs args, int id) - { - return UpdateDependencyAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateDependencyAsync(SecretDependencyUpdateArgs args, int id) => UpdateDependencyAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Secret Dependency @@ -60223,10 +58900,7 @@ namespace SecretServerRestClient.DSS /// Secret Dependency ID /// Object deletion result /// A server side error occurred. - public System.Threading.Tasks.Task DeleteAsync(int id) - { - return DeleteAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DeleteAsync(int id) => DeleteAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete Secret Dependency @@ -60335,10 +59009,7 @@ namespace SecretServerRestClient.DSS /// Secret ID /// Secret Dependency Group array /// A server side error occurred. - public System.Threading.Tasks.Task GetGroupsAsync(int secretId) - { - return GetGroupsAsync(secretId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetGroupsAsync(int secretId) => GetGroupsAsync(secretId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret Dependency Groups for a Secret @@ -60448,10 +59119,7 @@ namespace SecretServerRestClient.DSS /// Secret ID /// Secret Dependency Group object /// A server side error occurred. - public System.Threading.Tasks.Task CreateDependencyGroupAsync(SecretDependencyGroupCreateArgs args, int secretId) - { - return CreateDependencyGroupAsync(args, secretId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateDependencyGroupAsync(SecretDependencyGroupCreateArgs args, int secretId) => CreateDependencyGroupAsync(args, secretId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create Secret Dependency Group @@ -60563,10 +59231,7 @@ namespace SecretServerRestClient.DSS /// Get Scripts that are possible to use for Dependencies /// Dependency Script array /// A server side error occurred. - public System.Threading.Tasks.Task> GetScriptsAsync() - { - return GetScriptsAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetScriptsAsync() => GetScriptsAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Scripts that are possible to use for Dependencies @@ -60669,10 +59334,7 @@ namespace SecretServerRestClient.DSS /// Get Dependency Templates /// Dependency Template array /// A server side error occurred. - public System.Threading.Tasks.Task> GetTemplatesAsync() - { - return GetTemplatesAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetTemplatesAsync() => GetTemplatesAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Dependency Templates @@ -60786,10 +59448,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// SecretDependency search result object /// A server side error occurred. - public System.Threading.Tasks.Task SearchDependencySummaryAsync(int? filter_groupId, bool? filter_includeInactive, string filter_lastRunStatus, string filter_searchText, int filter_secretId, int? filter_templateId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchDependencySummaryAsync(filter_groupId, filter_includeInactive, filter_lastRunStatus, filter_searchText, filter_secretId, filter_templateId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchDependencySummaryAsync(int? filter_groupId, bool? filter_includeInactive, string filter_lastRunStatus, string filter_searchText, int filter_secretId, int? filter_templateId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchDependencySummaryAsync(filter_groupId, filter_includeInactive, filter_lastRunStatus, filter_searchText, filter_secretId, filter_templateId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Secret Dependencies @@ -60949,10 +59608,7 @@ namespace SecretServerRestClient.DSS /// Secret Dependency create options /// Secret Dependency object /// A server side error occurred. - public System.Threading.Tasks.Task CreateDependencyAsync(SecretDependencyCreateArgs args) - { - return CreateDependencyAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateDependencyAsync(SecretDependencyCreateArgs args) => CreateDependencyAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create Secret Dependency @@ -61060,10 +59716,7 @@ namespace SecretServerRestClient.DSS /// Task identifier /// Task Status /// A server side error occurred. - public System.Threading.Tasks.Task GetDependencyRunTaskStatusAsync(string identifier) - { - return GetDependencyRunTaskStatusAsync(identifier, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetDependencyRunTaskStatusAsync(string identifier) => GetDependencyRunTaskStatusAsync(identifier, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret Dependency run task status @@ -61175,10 +59828,7 @@ namespace SecretServerRestClient.DSS /// The Id of the Dependency Type that this Dependecy will be modeled on. Only provide this value if the Dependency is a running a script directly and is NOT based on a Dependency Template. Valid Values: PowershellScript = 7, SshScript = 8, SqlScript = 9 /// SecretDependencyModel /// A server side error occurred. - public System.Threading.Tasks.Task StubAsync(int? scriptId, int? secretId, int? templateId, int? typeId) - { - return StubAsync(scriptId, secretId, templateId, typeId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task StubAsync(int? scriptId, int? secretId, int? templateId, int? typeId) => StubAsync(scriptId, secretId, templateId, typeId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret Dependency Stub @@ -61303,10 +59953,7 @@ namespace SecretServerRestClient.DSS /// Dependency Id array /// Identifier of the task /// A server side error occurred. - public System.Threading.Tasks.Task ExecuteAsync(System.Collections.Generic.IEnumerable dependencyIds) - { - return ExecuteAsync(dependencyIds, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task ExecuteAsync(System.Collections.Generic.IEnumerable dependencyIds) => ExecuteAsync(dependencyIds, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Run Dependencies @@ -61557,10 +60204,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Secret Erase Request Model /// A server side error occurred. - public System.Threading.Tasks.Task GetHistoryAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetHistoryAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetHistoryAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetHistoryAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret Erase History by Secret Erase Request ID @@ -61695,10 +60339,7 @@ namespace SecretServerRestClient.DSS /// Secret Erase Request ID /// Secret Erase Request Model /// A server side error occurred. - public System.Threading.Tasks.Task GetRequestAsync(int id) - { - return GetRequestAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetRequestAsync(int id) => GetRequestAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret Erase Request by ID @@ -61813,10 +60454,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Secret Erase Request Secret Model /// A server side error occurred. - public System.Threading.Tasks.Task GetRequestSecretsAsync(bool? filter_erased, int? filter_secretEraseRequestId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetRequestSecretsAsync(filter_erased, filter_secretEraseRequestId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetRequestSecretsAsync(bool? filter_erased, int? filter_secretEraseRequestId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetRequestSecretsAsync(filter_erased, filter_secretEraseRequestId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret Erase Request Secrets by Secret Erase Request ID @@ -61962,10 +60600,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Secret Erase Request Model /// A server side error occurred. - public System.Threading.Tasks.Task InboxSearchAsync(bool? filter_isMyRequest, string filter_status, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return InboxSearchAsync(filter_isMyRequest, filter_status, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task InboxSearchAsync(bool? filter_isMyRequest, string filter_status, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => InboxSearchAsync(filter_isMyRequest, filter_status, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret Erase Requests by Status for Current User. @@ -62112,10 +60747,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Secret Erase Request Model /// A server side error occurred. - public System.Threading.Tasks.Task SearchAsync(bool? filter_isMyRequest, int? filter_secretId, string filter_status, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchAsync(filter_isMyRequest, filter_secretId, filter_status, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchAsync(bool? filter_isMyRequest, int? filter_secretId, string filter_status, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchAsync(filter_isMyRequest, filter_secretId, filter_status, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Secret Erase Requests by Status for Current User. @@ -62259,10 +60891,7 @@ namespace SecretServerRestClient.DSS /// Process approved SecretEraseRequests whose EraseAfter time has passed. /// Attempt to process ready requests. /// A server side error occurred. - public System.Threading.Tasks.Task ProcessNowAsync() - { - return ProcessNowAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task ProcessNowAsync() => ProcessNowAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Process approved SecretEraseRequests whose EraseAfter time has passed. @@ -62366,10 +60995,7 @@ namespace SecretServerRestClient.DSS /// args /// Secret Erase Request Model /// A server side error occurred. - public System.Threading.Tasks.Task UpdateRequestAsync(SecretEraseRequestUpdateArgs args) - { - return UpdateRequestAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateRequestAsync(SecretEraseRequestUpdateArgs args) => UpdateRequestAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update a Secret Erase Request @@ -62477,10 +61103,7 @@ namespace SecretServerRestClient.DSS /// args /// Secret Erase Request Model /// A server side error occurred. - public System.Threading.Tasks.Task CreateRequestAsync(SecretEraseRequestCreateArgs args) - { - return CreateRequestAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateRequestAsync(SecretEraseRequestCreateArgs args) => CreateRequestAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create a new Secret Erase Request @@ -62725,10 +61348,7 @@ namespace SecretServerRestClient.DSS /// Get Secret Templates /// List of Secret Templates /// A server side error occurred. - public System.Threading.Tasks.Task> GetWebSecretTemplatesAsync() - { - return GetWebSecretTemplatesAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetWebSecretTemplatesAsync() => GetWebSecretTemplatesAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret Templates @@ -62832,10 +61452,7 @@ namespace SecretServerRestClient.DSS /// url /// Secret search result object /// A server side error occurred. - public System.Threading.Tasks.Task> SearchAsync(string url) - { - return SearchAsync(url, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> SearchAsync(string url) => SearchAsync(url, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Secrets by Url @@ -62943,10 +61560,7 @@ namespace SecretServerRestClient.DSS /// domain /// Secret search result object /// A server side error occurred. - public System.Threading.Tasks.Task> SearchActiveDirectorySecretsAsync(string domain) - { - return SearchActiveDirectorySecretsAsync(domain, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> SearchActiveDirectorySecretsAsync(string domain) => SearchActiveDirectorySecretsAsync(domain, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Secrets by Domain @@ -63054,10 +61668,7 @@ namespace SecretServerRestClient.DSS /// computerName /// Secret search result object /// A server side error occurred. - public System.Threading.Tasks.Task> SearchWindowsAccountSecretsAsync(string computerName) - { - return SearchWindowsAccountSecretsAsync(computerName, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> SearchWindowsAccountSecretsAsync(string computerName) => SearchWindowsAccountSecretsAsync(computerName, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Secrets by Computer Name @@ -63165,10 +61776,7 @@ namespace SecretServerRestClient.DSS /// args /// Autofill values result object /// A server side error occurred. - public System.Threading.Tasks.Task GetAutoFillValuesAsync(ExtensionAutoFillValueArgs args) - { - return GetAutoFillValuesAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAutoFillValuesAsync(ExtensionAutoFillValueArgs args) => GetAutoFillValuesAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get AutoFill values for Url by SecretId @@ -63418,10 +62026,7 @@ namespace SecretServerRestClient.DSS /// Priority index. Sorts with lower values are executed earlier /// Maximum number of records to include in results /// A server side error occurred. - public System.Threading.Tasks.Task GetSecretExposureAsync(int? filter_secretId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetSecretExposureAsync(filter_secretId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSecretExposureAsync(int? filter_secretId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetSecretExposureAsync(filter_secretId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Check exposure of Secret since last password change @@ -63695,10 +62300,7 @@ namespace SecretServerRestClient.DSS /// secretId /// Secret hook retrieved after updates /// A server side error occurred. - public System.Threading.Tasks.Task UpdateHookAsync(SecretDetailHookUpdateArgs args, int secretHookId, int secretId) - { - return UpdateHookAsync(args, secretHookId, secretId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateHookAsync(SecretDetailHookUpdateArgs args, int secretHookId, int secretId) => UpdateHookAsync(args, secretHookId, secretId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Secret Hook @@ -63817,10 +62419,7 @@ namespace SecretServerRestClient.DSS /// secretId /// Success or failure /// A server side error occurred. - public System.Threading.Tasks.Task DeleteHookAsync(int secretHookId, int secretId) - { - return DeleteHookAsync(secretHookId, secretId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DeleteHookAsync(int secretHookId, int secretId) => DeleteHookAsync(secretHookId, secretId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete Secret Hook @@ -63934,10 +62533,7 @@ namespace SecretServerRestClient.DSS /// secretId /// A collection /// A server side error occurred. - public System.Threading.Tasks.Task> GetHooksAsync(int secretId) - { - return GetHooksAsync(secretId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetHooksAsync(int secretId) => GetHooksAsync(secretId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret Hooks @@ -64047,10 +62643,7 @@ namespace SecretServerRestClient.DSS /// secretId /// Stub for a new Secret hook /// A server side error occurred. - public System.Threading.Tasks.Task StubHookAsync(int scriptId, int secretId) - { - return StubHookAsync(scriptId, secretId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task StubHookAsync(int scriptId, int secretId) => StubHookAsync(scriptId, secretId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Stub Hook @@ -64165,10 +62758,7 @@ namespace SecretServerRestClient.DSS /// secretId /// Secret hook details /// A server side error occurred. - public System.Threading.Tasks.Task GetHookAsync(int secretHookId, int secretId) - { - return GetHookAsync(secretHookId, secretId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetHookAsync(int secretHookId, int secretId) => GetHookAsync(secretHookId, secretId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret hook details @@ -64282,10 +62872,7 @@ namespace SecretServerRestClient.DSS /// secretId /// A collection /// A server side error occurred. - public System.Threading.Tasks.Task> GetHooksV2Async(int secretId) - { - return GetHooksV2Async(secretId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetHooksV2Async(int secretId) => GetHooksV2Async(secretId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret Hooks @@ -64395,10 +62982,7 @@ namespace SecretServerRestClient.DSS /// secretId /// Stub for a new Secret hook /// A server side error occurred. - public System.Threading.Tasks.Task StubHookV2Async(int scriptId, int secretId) - { - return StubHookV2Async(scriptId, secretId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task StubHookV2Async(int scriptId, int secretId) => StubHookV2Async(scriptId, secretId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Stub Hook @@ -64513,10 +63097,7 @@ namespace SecretServerRestClient.DSS /// secretId /// Secret hook details /// A server side error occurred. - public System.Threading.Tasks.Task GetHookV2Async(int secretHookId, int secretId) - { - return GetHookV2Async(secretHookId, secretId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetHookV2Async(int secretHookId, int secretId) => GetHookV2Async(secretHookId, secretId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret hook details @@ -64631,10 +63212,7 @@ namespace SecretServerRestClient.DSS /// secretId /// Newly created Secret hook /// A server side error occurred. - public System.Threading.Tasks.Task CreateHookAsync(SecretDetailHookCreateArgs args, int secretId) - { - return CreateHookAsync(args, secretId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateHookAsync(SecretDetailHookCreateArgs args, int secretId) => CreateHookAsync(args, secretId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create Secret hook @@ -64748,10 +63326,7 @@ namespace SecretServerRestClient.DSS /// secretId /// Newly created Secret hook /// A server side error occurred. - public System.Threading.Tasks.Task CreateHookV2Async(SecretDetailHookCreateArgs args, int secretId) - { - return CreateHookV2Async(args, secretId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateHookV2Async(SecretDetailHookCreateArgs args, int secretId) => CreateHookV2Async(args, secretId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create Secret hook v2 @@ -64866,10 +63441,7 @@ namespace SecretServerRestClient.DSS /// secretId /// Secret hook retrieved after updates /// A server side error occurred. - public System.Threading.Tasks.Task UpdateHookV2Async(SecretDetailHookUpdateArgs args, int secretHookId, int secretId) - { - return UpdateHookV2Async(args, secretHookId, secretId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateHookV2Async(SecretDetailHookUpdateArgs args, int secretHookId, int secretId) => UpdateHookV2Async(args, secretHookId, secretId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Secret Hook @@ -65126,10 +63698,7 @@ namespace SecretServerRestClient.DSS /// Secret permission ID /// Secret permission object /// A server side error occurred. - public System.Threading.Tasks.Task GetAsync(bool? includeInactive, int id) - { - return GetAsync(includeInactive, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAsync(bool? includeInactive, int id) => GetAsync(includeInactive, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret Permission @@ -65245,10 +63814,7 @@ namespace SecretServerRestClient.DSS /// Secret permission ID /// Secret permission object /// A server side error occurred. - public System.Threading.Tasks.Task UpdateSecretPermissionAsync(SecretPermissionUpdateArgs args, int id) - { - return UpdateSecretPermissionAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateSecretPermissionAsync(SecretPermissionUpdateArgs args, int id) => UpdateSecretPermissionAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Secret Permission @@ -65361,10 +63927,7 @@ namespace SecretServerRestClient.DSS /// Secret permission ID /// Object deletion result /// A server side error occurred. - public System.Threading.Tasks.Task DeleteAsync(int id) - { - return DeleteAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DeleteAsync(int id) => DeleteAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete Secret Permission @@ -65483,10 +64046,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Secret permissions search result object /// A server side error occurred. - public System.Threading.Tasks.Task SearchSecretPermissionsAsync(string filter_domainName, int? filter_groupId, string filter_groupName, int? filter_secretId, int? filter_userId, string filter_userName, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchSecretPermissionsAsync(filter_domainName, filter_groupId, filter_groupName, filter_secretId, filter_userId, filter_userName, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchSecretPermissionsAsync(string filter_domainName, int? filter_groupId, string filter_groupName, int? filter_secretId, int? filter_userId, string filter_userName, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchSecretPermissionsAsync(filter_domainName, filter_groupId, filter_groupName, filter_secretId, filter_userId, filter_userName, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Secret Permissions @@ -65646,10 +64206,7 @@ namespace SecretServerRestClient.DSS /// Secret permission creation options /// Secret permission object /// A server side error occurred. - public System.Threading.Tasks.Task AddSecretPermissionAsync(SecretPermissionCreateArgs args) - { - return AddSecretPermissionAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task AddSecretPermissionAsync(SecretPermissionCreateArgs args) => AddSecretPermissionAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create Secret Permission @@ -65757,10 +64314,7 @@ namespace SecretServerRestClient.DSS /// Options for generating a secret permission stub /// Secret permission object /// A server side error occurred. - public System.Threading.Tasks.Task StubAsync(int secretId) - { - return StubAsync(secretId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task StubAsync(int secretId) => StubAsync(secretId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret Permission Stub @@ -65871,10 +64425,7 @@ namespace SecretServerRestClient.DSS /// Secret ID /// Secret share inheritance result /// A server side error occurred. - public System.Threading.Tasks.Task UpdateSecretShareAsync(SecretShareUpdateArgs args, int secretId) - { - return UpdateSecretShareAsync(args, secretId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateSecretShareAsync(SecretShareUpdateArgs args, int secretId) => UpdateSecretShareAsync(args, secretId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Secret share inherit @@ -66131,10 +64682,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Secret Policies that matched /// A server side error occurred. - public System.Threading.Tasks.Task SearchSecretPoliciesAsync(bool? filter_includeInactive, string filter_secretPolicyName, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchSecretPoliciesAsync(filter_includeInactive, filter_secretPolicyName, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchSecretPoliciesAsync(bool? filter_includeInactive, string filter_secretPolicyName, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchSecretPoliciesAsync(filter_includeInactive, filter_secretPolicyName, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Secret Policies @@ -66274,10 +64822,7 @@ namespace SecretServerRestClient.DSS /// id /// Secret Policy if found /// A server side error occurred. - public System.Threading.Tasks.Task GetSecretPolicyAsync(int id) - { - return GetSecretPolicyAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSecretPolicyAsync(int id) => GetSecretPolicyAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret Policy @@ -66387,10 +64932,7 @@ namespace SecretServerRestClient.DSS /// id /// Secret Policy that was updated /// A server side error occurred. - public System.Threading.Tasks.Task UpdateSecretPolicyAsync(SecretPolicyUpdateArgs args, int id) - { - return UpdateSecretPolicyAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateSecretPolicyAsync(SecretPolicyUpdateArgs args, int id) => UpdateSecretPolicyAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update a Secret Policy @@ -66502,10 +65044,7 @@ namespace SecretServerRestClient.DSS /// Get Secret Policy Stub /// Stub of a Secret Policy Detail model /// A server side error occurred. - public System.Threading.Tasks.Task GetSecretPolicyStubAsync() - { - return GetSecretPolicyStubAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSecretPolicyStubAsync() => GetSecretPolicyStubAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret Policy Stub @@ -66609,10 +65148,7 @@ namespace SecretServerRestClient.DSS /// args /// Secret Policy that was created /// A server side error occurred. - public System.Threading.Tasks.Task CreateSecretPolicyAsync(SecretPolicyCreateArgs args) - { - return CreateSecretPolicyAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateSecretPolicyAsync(SecretPolicyCreateArgs args) => CreateSecretPolicyAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create a Secret Policy @@ -66863,10 +65399,7 @@ namespace SecretServerRestClient.DSS /// A full path including folder and secret name can be passed as a query string parameter when the secret ID is set to 0. This will lookup the secret ID by path. /// Secret object /// A server side error occurred. - public System.Threading.Tasks.Task GetSecretAsync(bool? includeInactive, bool? noAutoCheckout, int id, string secretPath) - { - return GetSecretAsync(includeInactive, noAutoCheckout, id, secretPath, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSecretAsync(bool? includeInactive, bool? noAutoCheckout, int id, string secretPath) => GetSecretAsync(includeInactive, noAutoCheckout, id, secretPath, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret @@ -66992,10 +65525,7 @@ namespace SecretServerRestClient.DSS /// Secret ID /// Secret object /// A server side error occurred. - public System.Threading.Tasks.Task UpdateSecretAsync(SecretUpdateArgs args, int id) - { - return UpdateSecretAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateSecretAsync(SecretUpdateArgs args, int id) => UpdateSecretAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Secret @@ -67108,10 +65638,7 @@ namespace SecretServerRestClient.DSS /// Secret ID /// Object deletion result /// A server side error occurred. - public System.Threading.Tasks.Task DeleteAsync(int id) - { - return DeleteAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DeleteAsync(int id) => DeleteAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deactivate a Secret @@ -67226,10 +65753,7 @@ namespace SecretServerRestClient.DSS /// The field slug name of the list field. This is the fieldSlugName property of the SecretField object. By default, it is the lower-case field name with all spaces replaced with dashes (-). /// Combined summary of all lists assigned to the secret field. /// A server side error occurred. - public System.Threading.Tasks.Task GetListFieldListDefinitionsAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take, string slug) - { - return GetListFieldListDefinitionsAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, slug, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetListFieldListDefinitionsAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take, string slug) => GetListFieldListDefinitionsAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, slug, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret List Field List Data @@ -67371,10 +65895,7 @@ namespace SecretServerRestClient.DSS /// Secret field name /// Combined summary of all lists assigned to the secret field. /// A server side error occurred. - public System.Threading.Tasks.Task UpdateListFieldListDefinitionsAsync(SecretListFieldListArgs args, int id, string slug) - { - return UpdateListFieldListDefinitionsAsync(args, id, slug, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateListFieldListDefinitionsAsync(SecretListFieldListArgs args, int id, string slug) => UpdateListFieldListDefinitionsAsync(args, id, slug, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Secret List Field List Data @@ -67494,10 +66015,7 @@ namespace SecretServerRestClient.DSS /// Secret field name /// Combined summary of all lists assigned to the secret field. /// A server side error occurred. - public System.Threading.Tasks.Task DeleteListFieldListDefinitionsAsync(int id, System.Guid? listGuid, string slug) - { - return DeleteListFieldListDefinitionsAsync(id, listGuid, slug, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DeleteListFieldListDefinitionsAsync(int id, System.Guid? listGuid, string slug) => DeleteListFieldListDefinitionsAsync(id, listGuid, slug, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete Secret List Field List Data @@ -67643,10 +66161,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Secret search result object /// A server side error occurred. - public System.Threading.Tasks.Task SearchAsync(bool? filter_allowDoubleLocks, bool? filter_doNotCalculateTotal, int? filter_doubleLockId, System.Collections.Generic.IEnumerable filter_extendedFields, int? filter_extendedTypeId, int? filter_folderId, string filter_heartbeatStatus, bool? filter_includeActive, bool? filter_includeInactive, bool? filter_includeRestricted, bool? filter_includeSubFolders, bool? filter_isExactMatch, bool? filter_onlyRPCEnabled, bool? filter_onlySharedWithMe, System.Collections.Generic.IEnumerable filter_passwordTypeIds, string filter_permissionRequired, string filter_scope, string filter_searchField, string filter_searchFieldSlug, string filter_searchText, int? filter_secretTemplateId, int? filter_siteId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchAsync(filter_allowDoubleLocks, filter_doNotCalculateTotal, filter_doubleLockId, filter_extendedFields, filter_extendedTypeId, filter_folderId, filter_heartbeatStatus, filter_includeActive, filter_includeInactive, filter_includeRestricted, filter_includeSubFolders, filter_isExactMatch, filter_onlyRPCEnabled, filter_onlySharedWithMe, filter_passwordTypeIds, filter_permissionRequired, filter_scope, filter_searchField, filter_searchFieldSlug, filter_searchText, filter_secretTemplateId, filter_siteId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchAsync(bool? filter_allowDoubleLocks, bool? filter_doNotCalculateTotal, int? filter_doubleLockId, System.Collections.Generic.IEnumerable filter_extendedFields, int? filter_extendedTypeId, int? filter_folderId, string filter_heartbeatStatus, bool? filter_includeActive, bool? filter_includeInactive, bool? filter_includeRestricted, bool? filter_includeSubFolders, bool? filter_isExactMatch, bool? filter_onlyRPCEnabled, bool? filter_onlySharedWithMe, System.Collections.Generic.IEnumerable filter_passwordTypeIds, string filter_permissionRequired, string filter_scope, string filter_searchField, string filter_searchFieldSlug, string filter_searchText, int? filter_secretTemplateId, int? filter_siteId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchAsync(filter_allowDoubleLocks, filter_doNotCalculateTotal, filter_doubleLockId, filter_extendedFields, filter_extendedTypeId, filter_folderId, filter_heartbeatStatus, filter_includeActive, filter_includeInactive, filter_includeRestricted, filter_includeSubFolders, filter_isExactMatch, filter_onlyRPCEnabled, filter_onlySharedWithMe, filter_passwordTypeIds, filter_permissionRequired, filter_scope, filter_searchField, filter_searchFieldSlug, filter_searchText, filter_secretTemplateId, filter_siteId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Secrets @@ -67886,10 +66401,7 @@ namespace SecretServerRestClient.DSS /// Secret creation options /// Secret object /// A server side error occurred. - public System.Threading.Tasks.Task CreateSecretAsync(SecretCreateArgs secretCreateArgs) - { - return CreateSecretAsync(secretCreateArgs, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateSecretAsync(SecretCreateArgs secretCreateArgs) => CreateSecretAsync(secretCreateArgs, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create Secret @@ -68023,10 +66535,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Integer number of matching secrets /// A server side error occurred. - public System.Threading.Tasks.Task SearchTotalAsync(bool? filter_allowDoubleLocks, bool? filter_doNotCalculateTotal, int? filter_doubleLockId, System.Collections.Generic.IEnumerable filter_extendedFields, int? filter_extendedTypeId, int? filter_folderId, string filter_heartbeatStatus, bool? filter_includeActive, bool? filter_includeInactive, bool? filter_includeRestricted, bool? filter_includeSubFolders, bool? filter_isExactMatch, bool? filter_onlyRPCEnabled, bool? filter_onlySharedWithMe, System.Collections.Generic.IEnumerable filter_passwordTypeIds, string filter_permissionRequired, string filter_scope, string filter_searchField, string filter_searchFieldSlug, string filter_searchText, int? filter_secretTemplateId, int? filter_siteId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchTotalAsync(filter_allowDoubleLocks, filter_doNotCalculateTotal, filter_doubleLockId, filter_extendedFields, filter_extendedTypeId, filter_folderId, filter_heartbeatStatus, filter_includeActive, filter_includeInactive, filter_includeRestricted, filter_includeSubFolders, filter_isExactMatch, filter_onlyRPCEnabled, filter_onlySharedWithMe, filter_passwordTypeIds, filter_permissionRequired, filter_scope, filter_searchField, filter_searchFieldSlug, filter_searchText, filter_secretTemplateId, filter_siteId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchTotalAsync(bool? filter_allowDoubleLocks, bool? filter_doNotCalculateTotal, int? filter_doubleLockId, System.Collections.Generic.IEnumerable filter_extendedFields, int? filter_extendedTypeId, int? filter_folderId, string filter_heartbeatStatus, bool? filter_includeActive, bool? filter_includeInactive, bool? filter_includeRestricted, bool? filter_includeSubFolders, bool? filter_isExactMatch, bool? filter_onlyRPCEnabled, bool? filter_onlySharedWithMe, System.Collections.Generic.IEnumerable filter_passwordTypeIds, string filter_permissionRequired, string filter_scope, string filter_searchField, string filter_searchFieldSlug, string filter_searchText, int? filter_secretTemplateId, int? filter_siteId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchTotalAsync(filter_allowDoubleLocks, filter_doNotCalculateTotal, filter_doubleLockId, filter_extendedFields, filter_extendedTypeId, filter_folderId, filter_heartbeatStatus, filter_includeActive, filter_includeInactive, filter_includeRestricted, filter_includeSubFolders, filter_isExactMatch, filter_onlyRPCEnabled, filter_onlySharedWithMe, filter_passwordTypeIds, filter_permissionRequired, filter_scope, filter_searchField, filter_searchFieldSlug, filter_searchText, filter_secretTemplateId, filter_siteId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret Search Total @@ -68292,10 +66801,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Secret search result object /// A server side error occurred. - public System.Threading.Tasks.Task SearchSecretLookupAsync(bool? filter_allowDoubleLocks, bool? filter_doNotCalculateTotal, int? filter_doubleLockId, System.Collections.Generic.IEnumerable filter_extendedFields, int? filter_extendedTypeId, int? filter_folderId, string filter_heartbeatStatus, bool? filter_includeActive, bool? filter_includeInactive, bool? filter_includeRestricted, bool? filter_includeSubFolders, bool? filter_isExactMatch, bool? filter_onlyRPCEnabled, bool? filter_onlySharedWithMe, System.Collections.Generic.IEnumerable filter_passwordTypeIds, string filter_permissionRequired, string filter_scope, string filter_searchField, string filter_searchFieldSlug, string filter_searchText, int? filter_secretTemplateId, int? filter_siteId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchSecretLookupAsync(filter_allowDoubleLocks, filter_doNotCalculateTotal, filter_doubleLockId, filter_extendedFields, filter_extendedTypeId, filter_folderId, filter_heartbeatStatus, filter_includeActive, filter_includeInactive, filter_includeRestricted, filter_includeSubFolders, filter_isExactMatch, filter_onlyRPCEnabled, filter_onlySharedWithMe, filter_passwordTypeIds, filter_permissionRequired, filter_scope, filter_searchField, filter_searchFieldSlug, filter_searchText, filter_secretTemplateId, filter_siteId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchSecretLookupAsync(bool? filter_allowDoubleLocks, bool? filter_doNotCalculateTotal, int? filter_doubleLockId, System.Collections.Generic.IEnumerable filter_extendedFields, int? filter_extendedTypeId, int? filter_folderId, string filter_heartbeatStatus, bool? filter_includeActive, bool? filter_includeInactive, bool? filter_includeRestricted, bool? filter_includeSubFolders, bool? filter_isExactMatch, bool? filter_onlyRPCEnabled, bool? filter_onlySharedWithMe, System.Collections.Generic.IEnumerable filter_passwordTypeIds, string filter_permissionRequired, string filter_scope, string filter_searchField, string filter_searchFieldSlug, string filter_searchText, int? filter_secretTemplateId, int? filter_siteId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchSecretLookupAsync(filter_allowDoubleLocks, filter_doNotCalculateTotal, filter_doubleLockId, filter_extendedFields, filter_extendedTypeId, filter_folderId, filter_heartbeatStatus, filter_includeActive, filter_includeInactive, filter_includeRestricted, filter_includeSubFolders, filter_isExactMatch, filter_onlyRPCEnabled, filter_onlySharedWithMe, filter_passwordTypeIds, filter_permissionRequired, filter_scope, filter_searchField, filter_searchFieldSlug, filter_searchText, filter_secretTemplateId, filter_siteId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Lookup Secrets with Search @@ -68535,10 +67041,7 @@ namespace SecretServerRestClient.DSS /// Secret ID /// Secret lookup result object /// A server side error occurred. - public System.Threading.Tasks.Task GetLookupAsync(int id) - { - return GetLookupAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetLookupAsync(int id) => GetLookupAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Lookup Secret @@ -68648,10 +67151,7 @@ namespace SecretServerRestClient.DSS /// Secret template ID /// Secret object /// A server side error occurred. - public System.Threading.Tasks.Task StubAsync(int? folderId, int secretTemplateId) - { - return StubAsync(folderId, secretTemplateId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task StubAsync(int? folderId, int secretTemplateId) => StubAsync(folderId, secretTemplateId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret Stub @@ -68766,10 +67266,7 @@ namespace SecretServerRestClient.DSS /// Secret ID /// Secret summary object /// A server side error occurred. - public System.Threading.Tasks.Task GetSummaryAsync(int id) - { - return GetSummaryAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSummaryAsync(int id) => GetSummaryAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret Summary @@ -68881,10 +67378,7 @@ namespace SecretServerRestClient.DSS /// Secret field name /// Secret field value. If the field is a file attachment, the content type will be `application/octet-stream` and the response body will be the file contents. /// A server side error occurred. - public System.Threading.Tasks.Task GetFieldAsync(bool? includeInactive, bool? noAutoCheckout, int id, string slug) - { - return GetFieldAsync(includeInactive, noAutoCheckout, id, slug, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetFieldAsync(bool? includeInactive, bool? noAutoCheckout, int id, string slug) => GetFieldAsync(includeInactive, noAutoCheckout, id, slug, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret Field @@ -69011,10 +67505,7 @@ namespace SecretServerRestClient.DSS /// Secret field name /// The updated value, or 'true' if the field is a file attachment /// A server side error occurred. - public System.Threading.Tasks.Task PutFieldAsync(SecretItemUpdateArgs args, int id, string slug) - { - return PutFieldAsync(args, id, slug, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PutFieldAsync(SecretItemUpdateArgs args, int id, string slug) => PutFieldAsync(args, id, slug, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Secret Field @@ -69133,10 +67624,7 @@ namespace SecretServerRestClient.DSS /// Secret field name /// Combined contents of all lists assigned to the secret field. /// A server side error occurred. - public System.Threading.Tasks.Task GetListFieldAsync(int id, string slug) - { - return GetListFieldAsync(id, slug, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetListFieldAsync(int id, string slug) => GetListFieldAsync(id, slug, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret List Field @@ -69249,10 +67737,7 @@ namespace SecretServerRestClient.DSS /// List a User's Favorite Secrets /// Identifying information for each secret favorited /// A server side error occurred. - public System.Threading.Tasks.Task> GetFavoritesAsync() - { - return GetFavoritesAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetFavoritesAsync() => GetFavoritesAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// List a User's Favorite Secrets @@ -69362,10 +67847,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Secret Audit Model /// A server side error occurred. - public System.Threading.Tasks.Task GetSecretAuditsAsync(int id, bool? filter_includePasswordChangeLog, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetSecretAuditsAsync(id, filter_includePasswordChangeLog, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSecretAuditsAsync(int id, bool? filter_includePasswordChangeLog, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetSecretAuditsAsync(id, filter_includePasswordChangeLog, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret Audits by Filter @@ -69505,10 +67987,7 @@ namespace SecretServerRestClient.DSS /// id /// Secret Detail State View Model /// A server side error occurred. - public System.Threading.Tasks.Task GetSecretStateAsync(int id) - { - return GetSecretStateAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSecretStateAsync(int id) => GetSecretStateAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret State @@ -69617,10 +68096,7 @@ namespace SecretServerRestClient.DSS /// id /// Secret Settings /// A server side error occurred. - public System.Threading.Tasks.Task GetSecretSettingsAsync(int id) - { - return GetSecretSettingsAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSecretSettingsAsync(int id) => GetSecretSettingsAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret Settings @@ -69734,10 +68210,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Secret Launcher Sessions /// A server side error occurred. - public System.Threading.Tasks.Task GetActiveSecretSessionsAsync(int? filter_secretId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetActiveSecretSessionsAsync(filter_secretId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetActiveSecretSessionsAsync(int? filter_secretId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetActiveSecretSessionsAsync(filter_secretId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret Launcher Sessions By Id @@ -69872,10 +68345,7 @@ namespace SecretServerRestClient.DSS /// args /// Result of the update Secret Launcher Session Request /// A server side error occurred. - public System.Threading.Tasks.Task UpdateSecretSessionAsync(SecretLauncherSessionArgs args) - { - return UpdateSecretSessionAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateSecretSessionAsync(SecretLauncherSessionArgs args) => UpdateSecretSessionAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Secret Launcher Sessions @@ -69984,10 +68454,7 @@ namespace SecretServerRestClient.DSS /// id /// Secret General Information /// A server side error occurred. - public System.Threading.Tasks.Task UpdateGeneralAsync(SecretDetailUpdateGeneralArgs args, int id) - { - return UpdateGeneralAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateGeneralAsync(SecretDetailUpdateGeneralArgs args, int id) => UpdateGeneralAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Secret General Information @@ -70101,10 +68568,7 @@ namespace SecretServerRestClient.DSS /// id /// SecretDetailSettingsViewModel /// A server side error occurred. - public System.Threading.Tasks.Task UpdateEmailAsync(SecretDetailUpdateEmailArgs args, int id) - { - return UpdateEmailAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateEmailAsync(SecretDetailUpdateEmailArgs args, int id) => UpdateEmailAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update User Secret Email Settings @@ -70218,10 +68682,7 @@ namespace SecretServerRestClient.DSS /// id /// SecretDetailSecurityViewModel /// A server side error occurred. - public System.Threading.Tasks.Task UpdateSecurityAsync(SecretDetailUpdateSecurityGeneralArgs args, int id) - { - return UpdateSecurityAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateSecurityAsync(SecretDetailUpdateSecurityGeneralArgs args, int id) => UpdateSecurityAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Secret Security General Options @@ -70335,10 +68796,7 @@ namespace SecretServerRestClient.DSS /// id /// Secret General Information /// A server side error occurred. - public System.Threading.Tasks.Task UpdateGeneralV2Async(SecretDetailUpdateGeneralArgs args, int id) - { - return UpdateGeneralV2Async(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateGeneralV2Async(SecretDetailUpdateGeneralArgs args, int id) => UpdateGeneralV2Async(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Secret General Information @@ -70452,10 +68910,7 @@ namespace SecretServerRestClient.DSS /// id /// SecretDetailSettingsViewModel /// A server side error occurred. - public System.Threading.Tasks.Task UpdateEmailV2Async(SecretDetailUpdateEmailArgs args, int id) - { - return UpdateEmailV2Async(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateEmailV2Async(SecretDetailUpdateEmailArgs args, int id) => UpdateEmailV2Async(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update User Secret Email Settings @@ -70569,10 +69024,7 @@ namespace SecretServerRestClient.DSS /// id /// A model with the updated security options if available and a success code /// A server side error occurred. - public System.Threading.Tasks.Task UpdateSecurityCheckoutV3Async(SecretDetailUpdateSecurityCheckoutArgs args, int id) - { - return UpdateSecurityCheckoutV3Async(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateSecurityCheckoutV3Async(SecretDetailUpdateSecurityCheckoutArgs args, int id) => UpdateSecurityCheckoutV3Async(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Secret Security Checkout Options @@ -70686,10 +69138,7 @@ namespace SecretServerRestClient.DSS /// id /// SecretDetailSecurityViewModel /// A server side error occurred. - public System.Threading.Tasks.Task UpdateSecurityV2Async(SecretDetailUpdateSecurityGeneralArgs args, int id) - { - return UpdateSecurityV2Async(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateSecurityV2Async(SecretDetailUpdateSecurityGeneralArgs args, int id) => UpdateSecurityV2Async(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Secret Security General Options @@ -70803,10 +69252,7 @@ namespace SecretServerRestClient.DSS /// Secret ID /// Secret object /// A server side error occurred. - public System.Threading.Tasks.Task GetRestrictedAsync(SecretRestrictedArgs args, int id) - { - return GetRestrictedAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetRestrictedAsync(SecretRestrictedArgs args, int id) => GetRestrictedAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Restricted Secret @@ -70919,10 +69365,7 @@ namespace SecretServerRestClient.DSS /// Secret ID /// Secret summary object /// A server side error occurred. - public System.Threading.Tasks.Task RunHeartBeatAsync(int id) - { - return RunHeartBeatAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task RunHeartBeatAsync(int id) => RunHeartBeatAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Run Secret Heartbeat @@ -71033,10 +69476,7 @@ namespace SecretServerRestClient.DSS /// Secret options /// Secret summary object /// A server side error occurred. - public System.Threading.Tasks.Task ExpireAsync(int id, SecretRestrictedArgs restrictedArgs) - { - return ExpireAsync(id, restrictedArgs, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task ExpireAsync(int id, SecretRestrictedArgs restrictedArgs) => ExpireAsync(id, restrictedArgs, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Expire Secret @@ -71150,10 +69590,7 @@ namespace SecretServerRestClient.DSS /// Secret ID /// Secret summary object /// A server side error occurred. - public System.Threading.Tasks.Task ChangePasswordAsync(SecretChangePasswordArgs changePasswordArgs, int id) - { - return ChangePasswordAsync(changePasswordArgs, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task ChangePasswordAsync(SecretChangePasswordArgs changePasswordArgs, int id) => ChangePasswordAsync(changePasswordArgs, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Change Secret Password @@ -71267,10 +69704,7 @@ namespace SecretServerRestClient.DSS /// Secret options /// Secret summary object /// A server side error occurred. - public System.Threading.Tasks.Task CheckInAsync(int id, SecretRestrictedArgs restrictedArgs) - { - return CheckInAsync(id, restrictedArgs, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CheckInAsync(int id, SecretRestrictedArgs restrictedArgs) => CheckInAsync(id, restrictedArgs, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Check In Secret @@ -71383,10 +69817,7 @@ namespace SecretServerRestClient.DSS /// Secret ID /// Secret Response Code Model object /// A server side error occurred. - public System.Threading.Tasks.Task CheckOutAsync(int id) - { - return CheckOutAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CheckOutAsync(int id) => CheckOutAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Check Out Secret @@ -71498,10 +69929,7 @@ namespace SecretServerRestClient.DSS /// Secret field name /// Secret field value. If the field is a file attachment, the content type will be `application/octet-stream` and the response body will be the file contents. /// A server side error occurred. - public System.Threading.Tasks.Task RestrictedFieldAsync(SecretRestrictedArgs args, int id, string slug) - { - return RestrictedFieldAsync(args, id, slug, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task RestrictedFieldAsync(SecretRestrictedArgs args, int id, string slug) => RestrictedFieldAsync(args, id, slug, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Restricted Secret Field @@ -71619,10 +70047,7 @@ namespace SecretServerRestClient.DSS /// args /// RDP Proxy Information /// A server side error occurred. - public System.Threading.Tasks.Task GetSecretRdpProxyInfoAsync(SecretProxyArgs args) - { - return GetSecretRdpProxyInfoAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSecretRdpProxyInfoAsync(SecretProxyArgs args) => GetSecretRdpProxyInfoAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get RDP Proxy Information @@ -71730,10 +70155,7 @@ namespace SecretServerRestClient.DSS /// args /// SSH Proxy Information /// A server side error occurred. - public System.Threading.Tasks.Task GetSecretSshProxyInfoAsync(SecretProxyArgs args) - { - return GetSecretSshProxyInfoAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSecretSshProxyInfoAsync(SecretProxyArgs args) => GetSecretSshProxyInfoAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get SSH Proxy Information @@ -71841,10 +70263,7 @@ namespace SecretServerRestClient.DSS /// args /// SSH Terminal Details /// A server side error occurred. - public System.Threading.Tasks.Task GetSecretSshTerminalDetailsAsync(SecretSshTerminalArgs args) - { - return GetSecretSshTerminalDetailsAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSecretSshTerminalDetailsAsync(SecretSshTerminalArgs args) => GetSecretSshTerminalDetailsAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get SSH Terminal Details @@ -71953,10 +70372,7 @@ namespace SecretServerRestClient.DSS /// The secret to favorite or unfavorite. /// Whether or not the secret is now favorited by the user. /// A server side error occurred. - public System.Threading.Tasks.Task FavoriteAsync(FavoriteSecretArgs args, int secretId) - { - return FavoriteAsync(args, secretId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task FavoriteAsync(FavoriteSecretArgs args, int secretId) => FavoriteAsync(args, secretId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Favorite a Secret @@ -72069,10 +70485,7 @@ namespace SecretServerRestClient.DSS /// id /// Attempt to stop a password change /// A server side error occurred. - public System.Threading.Tasks.Task StopPasswordChangeAsync(int id) - { - return StopPasswordChangeAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task StopPasswordChangeAsync(int id) => StopPasswordChangeAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Attempt to stop a password change @@ -72183,10 +70596,7 @@ namespace SecretServerRestClient.DSS /// id /// SecretDetailRpcViewModel /// A server side error occurred. - public System.Threading.Tasks.Task UpdateRpcScriptSecretsAsync(SecretDetailUpdateRpcScriptSecretsArgs args, int id) - { - return UpdateRpcScriptSecretsAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateRpcScriptSecretsAsync(SecretDetailUpdateRpcScriptSecretsArgs args, int id) => UpdateRpcScriptSecretsAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update which Secrets are available for RPC scripts @@ -72299,10 +70709,7 @@ namespace SecretServerRestClient.DSS /// id /// Secret /// A server side error occurred. - public System.Threading.Tasks.Task UndeleteSecretAsync(int id) - { - return UndeleteSecretAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UndeleteSecretAsync(int id) => UndeleteSecretAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Undelete a Secret @@ -72413,10 +70820,7 @@ namespace SecretServerRestClient.DSS /// id /// SecretDetailRpcViewModel /// A server side error occurred. - public System.Threading.Tasks.Task UpdateRpcScriptSecretsV2Async(SecretDetailUpdateRpcScriptSecretsArgs args, int id) - { - return UpdateRpcScriptSecretsV2Async(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateRpcScriptSecretsV2Async(SecretDetailUpdateRpcScriptSecretsArgs args, int id) => UpdateRpcScriptSecretsV2Async(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update which Secrets are available for RPC scripts @@ -72530,10 +70934,7 @@ namespace SecretServerRestClient.DSS /// id /// SecretDetailSecurityViewModel /// A server side error occurred. - public System.Threading.Tasks.Task UpdateSecurityApprovalV3Async(SecretDetailUpdateSecurityApprovalArgs args, int id) - { - return UpdateSecurityApprovalV3Async(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateSecurityApprovalV3Async(SecretDetailUpdateSecurityApprovalArgs args, int id) => UpdateSecurityApprovalV3Async(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Secret Security Approval Options @@ -72646,10 +71047,7 @@ namespace SecretServerRestClient.DSS /// id /// Secret /// A server side error occurred. - public System.Threading.Tasks.Task UndeleteSecretV2Async(int id) - { - return UndeleteSecretV2Async(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UndeleteSecretV2Async(int id) => UndeleteSecretV2Async(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Undelete a Secret @@ -72760,10 +71158,7 @@ namespace SecretServerRestClient.DSS /// id /// Updated secret settings /// A server side error occurred. - public System.Threading.Tasks.Task UpdateExpirationAsync(SecretDetailUpdateExpirationArgs args, int id) - { - return UpdateExpirationAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateExpirationAsync(SecretDetailUpdateExpirationArgs args, int id) => UpdateExpirationAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update a Secret expiration @@ -73048,10 +71443,7 @@ namespace SecretServerRestClient.DSS /// LoadUserInterface /// Secret Server Settings /// A server side error occurred. - public System.Threading.Tasks.Task GetExportAsync(bool? loadAdvancedSettings, bool? loadAll, bool? loadApplicationSettings, bool? loadEmail, bool? loadFolderSettings, bool? loadLauncherSettings, bool? loadLicenses, bool? loadLocalUserPasswords, bool? loadLogin, bool? loadPermissionOptions, bool? loadProtocolHandlerSettings, bool? loadSaml, bool? loadSecurity, bool? loadSessionRecording, bool? loadSshCommands, bool? loadTicketSystem, bool? loadUserExperience, bool? loadUserInterface) - { - return GetExportAsync(loadAdvancedSettings, loadAll, loadApplicationSettings, loadEmail, loadFolderSettings, loadLauncherSettings, loadLicenses, loadLocalUserPasswords, loadLogin, loadPermissionOptions, loadProtocolHandlerSettings, loadSaml, loadSecurity, loadSessionRecording, loadSshCommands, loadTicketSystem, loadUserExperience, loadUserInterface, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetExportAsync(bool? loadAdvancedSettings, bool? loadAll, bool? loadApplicationSettings, bool? loadEmail, bool? loadFolderSettings, bool? loadLauncherSettings, bool? loadLicenses, bool? loadLocalUserPasswords, bool? loadLogin, bool? loadPermissionOptions, bool? loadProtocolHandlerSettings, bool? loadSaml, bool? loadSecurity, bool? loadSessionRecording, bool? loadSshCommands, bool? loadTicketSystem, bool? loadUserExperience, bool? loadUserInterface) => GetExportAsync(loadAdvancedSettings, loadAll, loadApplicationSettings, loadEmail, loadFolderSettings, loadLauncherSettings, loadLicenses, loadLocalUserPasswords, loadLogin, loadPermissionOptions, loadProtocolHandlerSettings, loadSaml, loadSecurity, loadSessionRecording, loadSshCommands, loadTicketSystem, loadUserExperience, loadUserInterface, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret Server Settings @@ -73245,10 +71637,7 @@ namespace SecretServerRestClient.DSS /// Stub an empty Secret Server Settings export /// An empty Secret Server Settings export /// A server side error occurred. - public System.Threading.Tasks.Task GetExportStubAsync() - { - return GetExportStubAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetExportStubAsync() => GetExportStubAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Stub an empty Secret Server Settings export @@ -73352,10 +71741,7 @@ namespace SecretServerRestClient.DSS /// args /// Capability model /// A server side error occurred. - public System.Threading.Tasks.Task GetExportImportCapabilitiesAsync(SecretServerSettingsImportCapabilitiesArgs args) - { - return GetExportImportCapabilitiesAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetExportImportCapabilitiesAsync(SecretServerSettingsImportCapabilitiesArgs args) => GetExportImportCapabilitiesAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Import/Export Capabilities @@ -73463,10 +71849,7 @@ namespace SecretServerRestClient.DSS /// args /// The now active configuration. /// A server side error occurred. - public System.Threading.Tasks.Task ImportSettingAsync(SecretServerSettingsImportArgs args) - { - return ImportSettingAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task ImportSettingAsync(SecretServerSettingsImportArgs args) => ImportSettingAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Import Secret Server Settings @@ -73734,10 +72117,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Recorded session search result object /// A server side error occurred. - public System.Threading.Tasks.Task SearchSessionsAsync(bool? filter_active, System.TimeSpan? filter_dateRange, System.DateTimeOffset? filter_endDate, string filter_endTime, int? filter_folderId, System.Collections.Generic.IEnumerable filter_groupIds, bool? filter_includeNonSecretServerSessions, bool? filter_includeOnlyLaunchedSuccessfully, bool? filter_includeRestricted, bool? filter_includeSubFolders, int? filter_launcherTypeId, string filter_searchText, System.Collections.Generic.IEnumerable filter_searchTypes, System.Collections.Generic.IEnumerable filter_secretIds, int? filter_siteId, System.DateTimeOffset? filter_startDate, string filter_startTime, System.Collections.Generic.IEnumerable filter_userIds, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchSessionsAsync(filter_active, filter_dateRange, filter_endDate, filter_endTime, filter_folderId, filter_groupIds, filter_includeNonSecretServerSessions, filter_includeOnlyLaunchedSuccessfully, filter_includeRestricted, filter_includeSubFolders, filter_launcherTypeId, filter_searchText, filter_searchTypes, filter_secretIds, filter_siteId, filter_startDate, filter_startTime, filter_userIds, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchSessionsAsync(bool? filter_active, System.TimeSpan? filter_dateRange, System.DateTimeOffset? filter_endDate, string filter_endTime, int? filter_folderId, System.Collections.Generic.IEnumerable filter_groupIds, bool? filter_includeNonSecretServerSessions, bool? filter_includeOnlyLaunchedSuccessfully, bool? filter_includeRestricted, bool? filter_includeSubFolders, int? filter_launcherTypeId, string filter_searchText, System.Collections.Generic.IEnumerable filter_searchTypes, System.Collections.Generic.IEnumerable filter_secretIds, int? filter_siteId, System.DateTimeOffset? filter_startDate, string filter_startTime, System.Collections.Generic.IEnumerable filter_userIds, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchSessionsAsync(filter_active, filter_dateRange, filter_endDate, filter_endTime, filter_folderId, filter_groupIds, filter_includeNonSecretServerSessions, filter_includeOnlyLaunchedSuccessfully, filter_includeRestricted, filter_includeSubFolders, filter_launcherTypeId, filter_searchText, filter_searchTypes, filter_secretIds, filter_siteId, filter_startDate, filter_startTime, filter_userIds, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Recorded Sessions @@ -73957,10 +72337,7 @@ namespace SecretServerRestClient.DSS /// Recorded session ID /// Recorded session object /// A server side error occurred. - public System.Threading.Tasks.Task GetAsync(System.Guid id) - { - return GetAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAsync(System.Guid id) => GetAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Recorded Session @@ -74069,10 +72446,7 @@ namespace SecretServerRestClient.DSS /// Recorded session ID /// Recorded session summary /// A server side error occurred. - public System.Threading.Tasks.Task GetSummaryAsync(System.Guid id) - { - return GetSummaryAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSummaryAsync(System.Guid id) => GetSummaryAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Recorded Session Summary @@ -74187,10 +72561,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Recorded session points of interest /// A server side error occurred. - public System.Threading.Tasks.Task SearchPointsOfInterestAsync(System.Guid id, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchPointsOfInterestAsync(id, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchPointsOfInterestAsync(System.Guid id, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchPointsOfInterestAsync(id, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Recorded Session Points of Interest @@ -74336,10 +72707,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Recorded session points of interest summary /// A server side error occurred. - public System.Threading.Tasks.Task SearchPointsOfInterestSummaryAsync(System.Guid id, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchPointsOfInterestSummaryAsync(id, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchPointsOfInterestSummaryAsync(System.Guid id, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchPointsOfInterestSummaryAsync(id, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Recorded Session Points of Interest Summary @@ -74479,10 +72847,7 @@ namespace SecretServerRestClient.DSS /// Recorded session ID /// Recorded session video stream /// A server side error occurred. - public System.Threading.Tasks.Task GetSessionRecordingAsync(System.Guid id) - { - return GetSessionRecordingAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSessionRecordingAsync(System.Guid id) => GetSessionRecordingAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Recorded Session Video Stream @@ -74591,10 +72956,7 @@ namespace SecretServerRestClient.DSS /// Recorded session ID /// Unknown or empty response /// A server side error occurred. - public System.Threading.Tasks.Task ProcessSessionAsync(System.Guid id) - { - return ProcessSessionAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task ProcessSessionAsync(System.Guid id) => ProcessSessionAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Request Immediate Session Processing @@ -74842,10 +73204,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Secret template permission search result object /// A server side error occurred. - public System.Threading.Tasks.Task SearchAsync(int? filter_groupId, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchAsync(filter_groupId, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchAsync(int? filter_groupId, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchAsync(filter_groupId, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Secret Template Permissions @@ -74985,10 +73344,7 @@ namespace SecretServerRestClient.DSS /// Secret permission creation options /// Secret permission object /// A server side error occurred. - public System.Threading.Tasks.Task UpdateAsync(SecretTemplatePermissionsUpdateArgs args) - { - return UpdateAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateAsync(SecretTemplatePermissionsUpdateArgs args) => UpdateAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Secret Templates Permissions @@ -75234,10 +73590,7 @@ namespace SecretServerRestClient.DSS /// Secret Template Field to disable /// Secret Template Field object /// A server side error occurred. - public System.Threading.Tasks.Task DisableFieldAsync(int templateFieldId) - { - return DisableFieldAsync(templateFieldId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DisableFieldAsync(int templateFieldId) => DisableFieldAsync(templateFieldId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Disable a Secret Template Field For Template @@ -75346,10 +73699,7 @@ namespace SecretServerRestClient.DSS /// id /// The name and contents of the password dictionary /// A server side error occurred. - public System.Threading.Tasks.Task GetPasswordDictionaryAsync(int id) - { - return GetPasswordDictionaryAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetPasswordDictionaryAsync(int id) => GetPasswordDictionaryAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets a specific password dictionary by ID @@ -75458,10 +73808,7 @@ namespace SecretServerRestClient.DSS /// id /// true /// A server side error occurred. - public System.Threading.Tasks.Task DeletePasswordDictionaryAsync(int id) - { - return DeletePasswordDictionaryAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DeletePasswordDictionaryAsync(int id) => DeletePasswordDictionaryAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes a specific password dictionary by ID @@ -75578,10 +73925,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Secret template search result object /// A server side error occurred. - public System.Threading.Tasks.Task SearchAsync(bool? filter_includeInactive, bool? filter_includeSecretCount, System.Collections.Generic.IEnumerable filter_passwordTypeIds, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchAsync(filter_includeInactive, filter_includeSecretCount, filter_passwordTypeIds, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchAsync(bool? filter_includeInactive, bool? filter_includeSecretCount, System.Collections.Generic.IEnumerable filter_passwordTypeIds, string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchAsync(filter_includeInactive, filter_includeSecretCount, filter_passwordTypeIds, filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Secret Templates @@ -75731,10 +74075,7 @@ namespace SecretServerRestClient.DSS /// Secret Template creation options /// Secret Template object /// A server side error occurred. - public System.Threading.Tasks.Task CreateTemplateAsync(SecretTemplateCreateArgs secretTemplateCreateArgs) - { - return CreateTemplateAsync(secretTemplateCreateArgs, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateTemplateAsync(SecretTemplateCreateArgs secretTemplateCreateArgs) => CreateTemplateAsync(secretTemplateCreateArgs, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create Secret Template @@ -75842,10 +74183,7 @@ namespace SecretServerRestClient.DSS /// Secret template ID /// Secret template object /// A server side error occurred. - public System.Threading.Tasks.Task LoadGETAsync(int id) - { - return LoadGETAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task LoadGETAsync(int id) => LoadGETAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret Template @@ -75953,10 +74291,7 @@ namespace SecretServerRestClient.DSS /// Get password dictionaries /// A list of password dictionary ID and names. /// A server side error occurred. - public System.Threading.Tasks.Task> GetPasswordDictionariesAsync() - { - return GetPasswordDictionariesAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetPasswordDictionariesAsync() => GetPasswordDictionariesAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get password dictionaries @@ -76060,10 +74395,7 @@ namespace SecretServerRestClient.DSS /// The file of words /// True /// A server side error occurred. - public System.Threading.Tasks.Task UpdatePasswordDictionaryAsync(System.IO.Stream args) - { - return UpdatePasswordDictionaryAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdatePasswordDictionaryAsync(System.IO.Stream args) => UpdatePasswordDictionaryAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates a new password dictionary @@ -76171,10 +74503,7 @@ namespace SecretServerRestClient.DSS /// The file of words /// True /// A server side error occurred. - public System.Threading.Tasks.Task AddPasswordDictionaryAsync(System.IO.Stream args) - { - return AddPasswordDictionaryAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task AddPasswordDictionaryAsync(System.IO.Stream args) => AddPasswordDictionaryAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Creates new password dictionary @@ -76282,10 +74611,7 @@ namespace SecretServerRestClient.DSS /// folderId /// Secret Templates /// A server side error occurred. - public System.Threading.Tasks.Task GetTemplatesAsync(int? folderId) - { - return GetTemplatesAsync(folderId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetTemplatesAsync(int? folderId) => GetTemplatesAsync(folderId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Secret Templates @@ -76396,10 +74722,7 @@ namespace SecretServerRestClient.DSS /// Secret Template ID /// Secret Template Field /// A server side error occurred. - public System.Threading.Tasks.Task PutAsync(SecretTemplateFieldUpdateArgs args, int templateId) - { - return PutAsync(args, templateId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PutAsync(SecretTemplateFieldUpdateArgs args, int templateId) => PutAsync(args, templateId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Secret Template Field @@ -76513,10 +74836,7 @@ namespace SecretServerRestClient.DSS /// templateId /// Secret Template Field object /// A server side error occurred. - public System.Threading.Tasks.Task CreateFieldAsync(SecretTemplateFieldCreateArgs secretTemplateFieldCreateArgs, int templateId) - { - return CreateFieldAsync(secretTemplateFieldCreateArgs, templateId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateFieldAsync(SecretTemplateFieldCreateArgs secretTemplateFieldCreateArgs, int templateId) => CreateFieldAsync(secretTemplateFieldCreateArgs, templateId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create Secret Template Field For Template @@ -76630,10 +74950,7 @@ namespace SecretServerRestClient.DSS /// templateId /// Secret template object /// A server side error occurred. - public System.Threading.Tasks.Task PatchAsync(SecretTemplatePatchArgs secretTemplatePatchArgs, int templateId) - { - return PatchAsync(secretTemplatePatchArgs, templateId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchAsync(SecretTemplatePatchArgs secretTemplatePatchArgs, int templateId) => PatchAsync(secretTemplatePatchArgs, templateId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Patch Secret Template @@ -76746,10 +75063,7 @@ namespace SecretServerRestClient.DSS /// Secret field Id /// Generate Password result /// A server side error occurred. - public System.Threading.Tasks.Task GeneratePasswordAsync(int secretfieldId) - { - return GeneratePasswordAsync(secretfieldId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GeneratePasswordAsync(int secretfieldId) => GeneratePasswordAsync(secretfieldId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Generate Password @@ -76860,10 +75174,7 @@ namespace SecretServerRestClient.DSS /// Secret template ID /// Secret template object /// A server side error occurred. - public System.Threading.Tasks.Task LoadPUTAsync(object args, int templateId) - { - return LoadPUTAsync(args, templateId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task LoadPUTAsync(object args, int templateId) => LoadPUTAsync(args, templateId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Secret Templates Password Type @@ -77121,10 +75432,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Security audit log search result object /// A server side error occurred. - public System.Threading.Tasks.Task SearchLogsAsync(string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchLogsAsync(filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchLogsAsync(string filter_searchText, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchLogsAsync(filter_searchText, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Security Audit Logs @@ -77396,10 +75704,7 @@ namespace SecretServerRestClient.DSS /// Get Server Nodes /// Server Node List /// A server side error occurred. - public System.Threading.Tasks.Task> GetListAsync() - { - return GetListAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetListAsync() => GetListAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Server Nodes @@ -77503,10 +75808,7 @@ namespace SecretServerRestClient.DSS /// nodeId /// Server Node List /// A server side error occurred. - public System.Threading.Tasks.Task GetAsync(int nodeId) - { - return GetAsync(nodeId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAsync(int nodeId) => GetAsync(nodeId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Server Node @@ -77616,10 +75918,7 @@ namespace SecretServerRestClient.DSS /// nodeId /// Unknown or empty response /// A server side error occurred. - public System.Threading.Tasks.Task UpdateNodeConfigurationAsync(ServerNodeConfigurationModel nodeConfiguration, int nodeId) - { - return UpdateNodeConfigurationAsync(nodeConfiguration, nodeId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateNodeConfigurationAsync(ServerNodeConfigurationModel nodeConfiguration, int nodeId) => UpdateNodeConfigurationAsync(nodeConfiguration, nodeId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Server Node Configuration @@ -77864,10 +76163,7 @@ namespace SecretServerRestClient.DSS /// includeInactive /// List of Sites /// A server side error occurred. - public System.Threading.Tasks.Task> GetAsync(bool? includeInactive) - { - return GetAsync(includeInactive, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetAsync(bool? includeInactive) => GetAsync(includeInactive, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Sites @@ -78113,10 +76409,7 @@ namespace SecretServerRestClient.DSS partial void ProcessResponse(System.Net.Http.HttpClient client, System.Net.Http.HttpResponseMessage response); /// Get Slack Configuration /// A server side error occurred. - public System.Threading.Tasks.Task GetConfigurationV2Async() - { - return GetConfigurationV2Async(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetConfigurationV2Async() => GetConfigurationV2Async(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Slack Configuration @@ -78218,10 +76511,7 @@ namespace SecretServerRestClient.DSS /// Slack Configuration /// Slack Configuration Update Options /// A server side error occurred. - public System.Threading.Tasks.Task UpdateConfigurationV2Async(SlackConfigurationUpdateArgsV2 args) - { - return UpdateConfigurationV2Async(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateConfigurationV2Async(SlackConfigurationUpdateArgsV2 args) => UpdateConfigurationV2Async(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Slack Configuration @@ -78326,10 +76616,7 @@ namespace SecretServerRestClient.DSS /// Test Slack Configuration /// A server side error occurred. - public System.Threading.Tasks.Task SendTestSlackMessageAsync() - { - return SendTestSlackMessageAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SendTestSlackMessageAsync() => SendTestSlackMessageAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Test Slack Configuration @@ -78430,10 +76717,7 @@ namespace SecretServerRestClient.DSS /// Slack Event /// A server side error occurred. - public System.Threading.Tasks.Task HandleEventAsync() - { - return HandleEventAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task HandleEventAsync() => HandleEventAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Slack Event @@ -78535,10 +76819,7 @@ namespace SecretServerRestClient.DSS /// Slack Interaction /// A server side error occurred. - public System.Threading.Tasks.Task HandleInteractionAsync() - { - return HandleInteractionAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task HandleInteractionAsync() => HandleInteractionAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Slack Interaction @@ -78780,10 +77061,7 @@ namespace SecretServerRestClient.DSS /// SSH Command Blocklist ID /// The SSH Command Blocklist View /// A server side error occurred. - public System.Threading.Tasks.Task GetSshCommandBlocklistAsync(System.Guid id) - { - return GetSshCommandBlocklistAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSshCommandBlocklistAsync(System.Guid id) => GetSshCommandBlocklistAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get an SSH Command Blocklist @@ -78899,10 +77177,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// The list of SSH Command Blocklists /// A server side error occurred. - public System.Threading.Tasks.Task GetSshCommandBlocklistsAsync(bool? filter_includeActive, bool? filter_includeInactive, string filter_name, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetSshCommandBlocklistsAsync(filter_includeActive, filter_includeInactive, filter_name, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSshCommandBlocklistsAsync(bool? filter_includeActive, bool? filter_includeInactive, string filter_name, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetSshCommandBlocklistsAsync(filter_includeActive, filter_includeInactive, filter_name, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get a list of SSH Command Blocklist @@ -79046,10 +77321,7 @@ namespace SecretServerRestClient.DSS /// Stub an empty SSH Command Blocklist /// An empty SSH Command Blocklist /// A server side error occurred. - public System.Threading.Tasks.Task GetSshCommandBlocklistStubAsync() - { - return GetSshCommandBlocklistStubAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSshCommandBlocklistStubAsync() => GetSshCommandBlocklistStubAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Stub an empty SSH Command Blocklist @@ -79158,10 +77430,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// The list of Secret Policies /// A server side error occurred. - public System.Threading.Tasks.Task GetSshCommandBlocklistPoliciesAsync(System.Guid? filter_sshCommandBlocklistId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetSshCommandBlocklistPoliciesAsync(filter_sshCommandBlocklistId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSshCommandBlocklistPoliciesAsync(System.Guid? filter_sshCommandBlocklistId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetSshCommandBlocklistPoliciesAsync(filter_sshCommandBlocklistId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get a list of Secret Policies that use the given blocklist @@ -79297,10 +77566,7 @@ namespace SecretServerRestClient.DSS /// sshCommandBlocklistId /// SSH Command Blocklist /// A server side error occurred. - public System.Threading.Tasks.Task PatchSshCommandBlocklistAsync(SshCommandBlocklistPatchArgs args, System.Guid sshCommandBlocklistId) - { - return PatchSshCommandBlocklistAsync(args, sshCommandBlocklistId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchSshCommandBlocklistAsync(SshCommandBlocklistPatchArgs args, System.Guid sshCommandBlocklistId) => PatchSshCommandBlocklistAsync(args, sshCommandBlocklistId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update an SSH Command Blocklist @@ -79413,10 +77679,7 @@ namespace SecretServerRestClient.DSS /// SSH Command Blocklist add options /// SSH Command Blocklist /// A server side error occurred. - public System.Threading.Tasks.Task CreateSshCommandBlocklistAsync(SshCommandBlocklistCreateArgs args) - { - return CreateSshCommandBlocklistAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateSshCommandBlocklistAsync(SshCommandBlocklistCreateArgs args) => CreateSshCommandBlocklistAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Add an SSH Command Blocklist @@ -79662,10 +77925,7 @@ namespace SecretServerRestClient.DSS /// SSH Command ID /// The SSH Command View /// A server side error occurred. - public System.Threading.Tasks.Task GetSshCommandAsync(int id) - { - return GetSshCommandAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSshCommandAsync(int id) => GetSshCommandAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get an SSH Command @@ -79780,10 +78040,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// The list of SSH Commands /// A server side error occurred. - public System.Threading.Tasks.Task GetSshCommandsAsync(string filter_commandPermissionType, string filter_nameOrCommand, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetSshCommandsAsync(filter_commandPermissionType, filter_nameOrCommand, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSshCommandsAsync(string filter_commandPermissionType, string filter_nameOrCommand, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetSshCommandsAsync(filter_commandPermissionType, filter_nameOrCommand, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get a list of SSH Commands @@ -79922,10 +78179,7 @@ namespace SecretServerRestClient.DSS /// Stub an empty SSH Command /// An empty SSH Command /// A server side error occurred. - public System.Threading.Tasks.Task GetSshCommandStubAsync() - { - return GetSshCommandStubAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSshCommandStubAsync() => GetSshCommandStubAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Stub an empty SSH Command @@ -80030,10 +78284,7 @@ namespace SecretServerRestClient.DSS /// sshCommandId /// SSH Command /// A server side error occurred. - public System.Threading.Tasks.Task UpdateSshCommandAsync(SshCommandPatchArgs args, System.Guid sshCommandId) - { - return UpdateSshCommandAsync(args, sshCommandId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateSshCommandAsync(SshCommandPatchArgs args, System.Guid sshCommandId) => UpdateSshCommandAsync(args, sshCommandId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update an SSH Command @@ -80146,10 +78397,7 @@ namespace SecretServerRestClient.DSS /// SSH Command add options /// SSH Command /// A server side error occurred. - public System.Threading.Tasks.Task CreateSshCommandAsync(SshCommandCreateArgs args) - { - return CreateSshCommandAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateSshCommandAsync(SshCommandCreateArgs args) => CreateSshCommandAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Add an SSH Command @@ -80400,10 +78648,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// SSH Command Menu search result object /// A server side error occurred. - public System.Threading.Tasks.Task SearchSshCommandMenuAsync(bool? filter_includeDisabled, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchSshCommandMenuAsync(filter_includeDisabled, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchSshCommandMenuAsync(bool? filter_includeDisabled, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchSshCommandMenuAsync(filter_includeDisabled, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search SSH Commands @@ -80543,10 +78788,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Menu audit search result object /// A server side error occurred. - public System.Threading.Tasks.Task SearchAuditsAsync(string filter_sshCommandMenuName, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchAuditsAsync(filter_sshCommandMenuName, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchAuditsAsync(string filter_sshCommandMenuName, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchAuditsAsync(filter_sshCommandMenuName, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Menu Audits @@ -80686,10 +78928,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// SSH Command, Blocklist, and Menu search result object /// A server side error occurred. - public System.Threading.Tasks.Task SearchItemAuditsAsync(string filter_sshCommandItemNameOrNotes, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchItemAuditsAsync(filter_sshCommandItemNameOrNotes, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchItemAuditsAsync(string filter_sshCommandItemNameOrNotes, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchItemAuditsAsync(filter_sshCommandItemNameOrNotes, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search SSH Command, Blocklist, and Menu Audits for audit item @@ -80824,10 +79063,7 @@ namespace SecretServerRestClient.DSS /// sshCommandMenuId /// SSH Command Menu /// A server side error occurred. - public System.Threading.Tasks.Task GetSshCommandMenuAsync(int sshCommandMenuId) - { - return GetSshCommandMenuAsync(sshCommandMenuId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSshCommandMenuAsync(int sshCommandMenuId) => GetSshCommandMenuAsync(sshCommandMenuId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get SSH Command Menu @@ -80937,10 +79173,7 @@ namespace SecretServerRestClient.DSS /// sshCommandMenuId /// SSH Command Menu /// A server side error occurred. - public System.Threading.Tasks.Task PatchSshCommandMenuAsync(SshCommandMenuPatchArgs args, int sshCommandMenuId) - { - return PatchSshCommandMenuAsync(args, sshCommandMenuId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchSshCommandMenuAsync(SshCommandMenuPatchArgs args, int sshCommandMenuId) => PatchSshCommandMenuAsync(args, sshCommandMenuId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update an SSH Command Menu @@ -81052,10 +79285,7 @@ namespace SecretServerRestClient.DSS /// Get user actions for SSH Commands /// The list of actions /// A server side error occurred. - public System.Threading.Tasks.Task GetSshCommandStateAsync() - { - return GetSshCommandStateAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSshCommandStateAsync() => GetSshCommandStateAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get user actions for SSH Commands @@ -81159,10 +79389,7 @@ namespace SecretServerRestClient.DSS /// SSH Command create options /// SSH Command Menu /// A server side error occurred. - public System.Threading.Tasks.Task AddSshCommandMenuAsync(SshCommandMenuCreateArgs args) - { - return AddSshCommandMenuAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task AddSshCommandMenuAsync(SshCommandMenuCreateArgs args) => AddSshCommandMenuAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Add an SSH Command Menu @@ -81414,10 +79641,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Team search result object /// A server side error occurred. - public System.Threading.Tasks.Task SearchAsync(bool? filter_includeInactive, string filter_searchTerm, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchAsync(filter_includeInactive, filter_searchTerm, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchAsync(bool? filter_includeInactive, string filter_searchTerm, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchAsync(filter_includeInactive, filter_searchTerm, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Teams @@ -81557,10 +79781,7 @@ namespace SecretServerRestClient.DSS /// Team creation options /// New Team Id /// A server side error occurred. - public System.Threading.Tasks.Task CreateTeamAsync(TeamCreateArgs args) - { - return CreateTeamAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateTeamAsync(TeamCreateArgs args) => CreateTeamAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create Team @@ -81667,10 +79888,7 @@ namespace SecretServerRestClient.DSS /// Get Team Stub /// Team object /// A server side error occurred. - public System.Threading.Tasks.Task StubAsync() - { - return StubAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task StubAsync() => StubAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Team Stub @@ -81774,10 +79992,7 @@ namespace SecretServerRestClient.DSS /// Team ID /// Team object /// A server side error occurred. - public System.Threading.Tasks.Task GetAsync(int id) - { - return GetAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAsync(int id) => GetAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Team @@ -81887,10 +80102,7 @@ namespace SecretServerRestClient.DSS /// Team ID /// Team object /// A server side error occurred. - public System.Threading.Tasks.Task UpdateTeamAsync(TeamDetailUpdateModel args, int id) - { - return UpdateTeamAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateTeamAsync(TeamDetailUpdateModel args, int id) => UpdateTeamAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Team @@ -82008,10 +80220,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Team Audit search result object /// A server side error occurred. - public System.Threading.Tasks.Task GetTeamAuditsAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetTeamAuditsAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetTeamAuditsAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetTeamAuditsAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Team Audits @@ -82151,10 +80360,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Get Team membership. Includes Groups and Users. User will be their personal GroupId. /// A server side error occurred. - public System.Threading.Tasks.Task> GetTeamMembersAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetTeamMembersAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetTeamMembersAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetTeamMembersAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Users In Team @@ -82290,10 +80496,7 @@ namespace SecretServerRestClient.DSS /// Team ID /// Get Team membership. Includes Groups and Users. User will be their personal GroupId. /// A server side error occurred. - public System.Threading.Tasks.Task> AddTeamMemberAsync(TeamMemberUpdateArgs args, int id) - { - return AddTeamMemberAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> AddTeamMemberAsync(TeamMemberUpdateArgs args, int id) => AddTeamMemberAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Team Members @@ -82407,10 +80610,7 @@ namespace SecretServerRestClient.DSS /// includeInactive /// Get Team Sites. /// A server side error occurred. - public System.Threading.Tasks.Task> GetTeamSitesAsync(int id, bool includeInactive) - { - return GetTeamSitesAsync(id, includeInactive, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetTeamSitesAsync(int id, bool includeInactive) => GetTeamSitesAsync(id, includeInactive, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Sites for a Team @@ -82526,10 +80726,7 @@ namespace SecretServerRestClient.DSS /// Team ID /// Get Team Sites. /// A server side error occurred. - public System.Threading.Tasks.Task> AddTeamSiteAsync(TeamSiteUpdateArgs args, int id) - { - return AddTeamSiteAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> AddTeamSiteAsync(TeamSiteUpdateArgs args, int id) => AddTeamSiteAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Team Sites @@ -82642,10 +80839,7 @@ namespace SecretServerRestClient.DSS /// Team Id /// Summary of a Team's Lists. /// A server side error occurred. - public System.Threading.Tasks.Task GetTeamListsAsync(int id) - { - return GetTeamListsAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetTeamListsAsync(int id) => GetTeamListsAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get a Team's Lists @@ -82755,10 +80949,7 @@ namespace SecretServerRestClient.DSS /// Team Id /// Summary a Team's Lists. /// A server side error occurred. - public System.Threading.Tasks.Task AddListsToTeamAsync(TeamCategorizedListUpdateArgs args, int id) - { - return AddListsToTeamAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task AddListsToTeamAsync(TeamCategorizedListUpdateArgs args, int id) => AddListsToTeamAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Team Lists @@ -83009,10 +81200,7 @@ namespace SecretServerRestClient.DSS /// includeInactive /// Ticket System Models /// A server side error occurred. - public System.Threading.Tasks.Task> GetTicketSystemsAsync(bool? includeInactive) - { - return GetTicketSystemsAsync(includeInactive, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetTicketSystemsAsync(bool? includeInactive) => GetTicketSystemsAsync(includeInactive, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets all ticket systems @@ -83122,10 +81310,7 @@ namespace SecretServerRestClient.DSS /// Ticket System Create Args /// Ticket System Model /// A server side error occurred. - public System.Threading.Tasks.Task CreateTicketSystemAsync(object args) - { - return CreateTicketSystemAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateTicketSystemAsync(object args) => CreateTicketSystemAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Creates a Ticket System @@ -83235,10 +81420,7 @@ namespace SecretServerRestClient.DSS /// Ticket System ID /// Ticket System Model /// A server side error occurred. - public System.Threading.Tasks.Task GetTicketSystemAsync(int id) - { - return GetTicketSystemAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetTicketSystemAsync(int id) => GetTicketSystemAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets a ticket system by ID @@ -83348,10 +81530,7 @@ namespace SecretServerRestClient.DSS /// id /// Ticket System Model /// A server side error occurred. - public System.Threading.Tasks.Task UpdateTicketSystemAsync(object args, int id) - { - return UpdateTicketSystemAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateTicketSystemAsync(object args, int id) => UpdateTicketSystemAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates a Ticket System @@ -83471,10 +81650,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Ticket System Summaries /// A server side error occurred. - public System.Threading.Tasks.Task GetTicketSystemsV2Async(bool? includeInactive, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetTicketSystemsV2Async(includeInactive, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetTicketSystemsV2Async(bool? includeInactive, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetTicketSystemsV2Async(includeInactive, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets all ticket systems @@ -83609,10 +81785,7 @@ namespace SecretServerRestClient.DSS /// Ticket System ID /// Ticket System Model /// A server side error occurred. - public System.Threading.Tasks.Task GetTicketSystemV2Async(int id) - { - return GetTicketSystemV2Async(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetTicketSystemV2Async(int id) => GetTicketSystemV2Async(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets a ticket system by ID @@ -83860,10 +82033,7 @@ namespace SecretServerRestClient.DSS /// User ID /// User object /// A server side error occurred. - public System.Threading.Tasks.Task GetAsync(bool? includeInactive, int id) - { - return GetAsync(includeInactive, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAsync(bool? includeInactive, int id) => GetAsync(includeInactive, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get User @@ -83979,10 +82149,7 @@ namespace SecretServerRestClient.DSS /// User ID /// User object /// A server side error occurred. - public System.Threading.Tasks.Task UpdateUserAsync(UserUpdateArgs args, int id) - { - return UpdateUserAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateUserAsync(UserUpdateArgs args, int id) => UpdateUserAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update User @@ -84095,10 +82262,7 @@ namespace SecretServerRestClient.DSS /// User ID /// Object deletion result /// A server side error occurred. - public System.Threading.Tasks.Task DeleteAsync(int id) - { - return DeleteAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DeleteAsync(int id) => DeleteAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete User @@ -84208,10 +82372,7 @@ namespace SecretServerRestClient.DSS /// patchModel /// User Configuration /// A server side error occurred. - public System.Threading.Tasks.Task PatchUserAsync(int id, PatchUserModel patchModel) - { - return PatchUserAsync(id, patchModel, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchUserAsync(int id, PatchUserModel patchModel) => PatchUserAsync(id, patchModel, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update included properties for user by Id @@ -84325,10 +82486,7 @@ namespace SecretServerRestClient.DSS /// Owner ID /// User owner object /// A server side error occurred. - public System.Threading.Tasks.Task GetUserOwnerAsync(int id, int ownerId) - { - return GetUserOwnerAsync(id, ownerId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetUserOwnerAsync(int id, int ownerId) => GetUserOwnerAsync(id, ownerId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get User Owner @@ -84443,10 +82601,7 @@ namespace SecretServerRestClient.DSS /// Owner ID is the unique sequence for this specific owner. This is returned as ID on UserOwnerModel /// Object deletion result /// A server side error occurred. - public System.Threading.Tasks.Task DeleteUserOwnerAsync(int id, int ownerId) - { - return DeleteUserOwnerAsync(id, ownerId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DeleteUserOwnerAsync(int id, int ownerId) => DeleteUserOwnerAsync(id, ownerId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Remove User Owner @@ -84565,10 +82720,7 @@ namespace SecretServerRestClient.DSS /// id /// Success / Fail /// A server side error occurred. - public System.Threading.Tasks.Task GetRolesAsync(int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take, int id) - { - return GetRolesAsync(skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetRolesAsync(int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take, int id) => GetRolesAsync(skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets roles for user @@ -84704,10 +82856,7 @@ namespace SecretServerRestClient.DSS /// id /// Success / Fail /// A server side error occurred. - public System.Threading.Tasks.Task UpdateUserRolesAsync(RoleAssignments args, int id) - { - return UpdateUserRolesAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateUserRolesAsync(RoleAssignments args, int id) => UpdateUserRolesAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update all roles on user @@ -84821,10 +82970,7 @@ namespace SecretServerRestClient.DSS /// id /// Success / Fail /// A server side error occurred. - public System.Threading.Tasks.Task CreateUserRolesAsync(RoleAssignments args, int id) - { - return CreateUserRolesAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateUserRolesAsync(RoleAssignments args, int id) => CreateUserRolesAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Add roles to existing user @@ -84938,10 +83084,7 @@ namespace SecretServerRestClient.DSS /// id /// Success / Fail /// A server side error occurred. - public System.Threading.Tasks.Task DeleteUserRolesAsync(RoleRemovals args, int id) - { - return DeleteUserRolesAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DeleteUserRolesAsync(RoleRemovals args, int id) => DeleteUserRolesAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Remove roles from existing user @@ -85059,10 +83202,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Group membership results /// A server side error occurred. - public System.Threading.Tasks.Task GetUserGroupsAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetUserGroupsAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetUserGroupsAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetUserGroupsAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get User Groups @@ -85198,10 +83338,7 @@ namespace SecretServerRestClient.DSS /// id /// Success / Fail /// A server side error occurred. - public System.Threading.Tasks.Task UpdateUserGroupsAsync(GroupAssignments args, int id) - { - return UpdateUserGroupsAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateUserGroupsAsync(GroupAssignments args, int id) => UpdateUserGroupsAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update all groups on user @@ -85315,10 +83452,7 @@ namespace SecretServerRestClient.DSS /// id /// Success / Fail /// A server side error occurred. - public System.Threading.Tasks.Task AddUserToGroupsAsync(GroupAssignments args, int id) - { - return AddUserToGroupsAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task AddUserToGroupsAsync(GroupAssignments args, int id) => AddUserToGroupsAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Add groups to existing user @@ -85432,10 +83566,7 @@ namespace SecretServerRestClient.DSS /// id /// Success / Fail /// A server side error occurred. - public System.Threading.Tasks.Task RemoveUserGroupsAsync(System.Collections.Generic.IEnumerable groupIds, int id) - { - return RemoveUserGroupsAsync(groupIds, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task RemoveUserGroupsAsync(System.Collections.Generic.IEnumerable groupIds, int id) => RemoveUserGroupsAsync(groupIds, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Remove groups from existing user @@ -85560,10 +83691,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// User search result object /// A server side error occurred. - public System.Threading.Tasks.Task SearchUsersAsync(int? filter_domainId, int? filter_excludeInboxRuleIdSubscribers, bool? filter_includeInactive, System.Collections.Generic.IEnumerable filter_searchFields, string filter_searchText, System.Collections.Generic.IEnumerable filter_userIds, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchUsersAsync(filter_domainId, filter_excludeInboxRuleIdSubscribers, filter_includeInactive, filter_searchFields, filter_searchText, filter_userIds, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchUsersAsync(int? filter_domainId, int? filter_excludeInboxRuleIdSubscribers, bool? filter_includeInactive, System.Collections.Generic.IEnumerable filter_searchFields, string filter_searchText, System.Collections.Generic.IEnumerable filter_userIds, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchUsersAsync(filter_domainId, filter_excludeInboxRuleIdSubscribers, filter_includeInactive, filter_searchFields, filter_searchText, filter_userIds, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search Users @@ -85723,10 +83851,7 @@ namespace SecretServerRestClient.DSS /// User creation options /// User object /// A server side error occurred. - public System.Threading.Tasks.Task CreateUserAsync(UserCreateArgs args) - { - return CreateUserAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateUserAsync(UserCreateArgs args) => CreateUserAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create User @@ -85833,10 +83958,7 @@ namespace SecretServerRestClient.DSS /// Current User /// Current user result object /// A server side error occurred. - public System.Threading.Tasks.Task GetCurrentUserAsync() - { - return GetCurrentUserAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetCurrentUserAsync() => GetCurrentUserAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Current User @@ -85950,10 +84072,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// User search result object /// A server side error occurred. - public System.Threading.Tasks.Task LookupAsync(int? filter_domainId, int? filter_excludeInboxRuleIdSubscribers, bool? filter_includeInactive, System.Collections.Generic.IEnumerable filter_searchFields, string filter_searchText, System.Collections.Generic.IEnumerable filter_userIds, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return LookupAsync(filter_domainId, filter_excludeInboxRuleIdSubscribers, filter_includeInactive, filter_searchFields, filter_searchText, filter_userIds, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task LookupAsync(int? filter_domainId, int? filter_excludeInboxRuleIdSubscribers, bool? filter_includeInactive, System.Collections.Generic.IEnumerable filter_searchFields, string filter_searchText, System.Collections.Generic.IEnumerable filter_userIds, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => LookupAsync(filter_domainId, filter_excludeInboxRuleIdSubscribers, filter_includeInactive, filter_searchFields, filter_searchText, filter_userIds, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Lookup Users @@ -86112,10 +84231,7 @@ namespace SecretServerRestClient.DSS /// Get User Stub /// Default User /// A server side error occurred. - public System.Threading.Tasks.Task StubAsync() - { - return StubAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task StubAsync() => StubAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get User Stub @@ -86227,10 +84343,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Public ssh key results /// A server side error occurred. - public System.Threading.Tasks.Task GetUserPublicSshKeysAsync(bool? filter_includeExpired, bool? filter_includeInactive, string filter_searchText, int? filter_userId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetUserPublicSshKeysAsync(filter_includeExpired, filter_includeInactive, filter_searchText, filter_userId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetUserPublicSshKeysAsync(bool? filter_includeExpired, bool? filter_includeInactive, string filter_searchText, int? filter_userId, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetUserPublicSshKeysAsync(filter_includeExpired, filter_includeInactive, filter_searchText, filter_userId, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get User Public Ssh Keys @@ -86380,10 +84493,7 @@ namespace SecretServerRestClient.DSS /// args /// Private ssh key result /// A server side error occurred. - public System.Threading.Tasks.Task CreateUserPublicSshKeyAsync(UserPublicSshKeyCreateArgs args) - { - return CreateUserPublicSshKeyAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateUserPublicSshKeyAsync(UserPublicSshKeyCreateArgs args) => CreateUserPublicSshKeyAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create a User Ssh Key @@ -86496,10 +84606,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// User owner results /// A server side error occurred. - public System.Threading.Tasks.Task SearchUserOwnersAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchUserOwnersAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchUserOwnersAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchUserOwnersAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get User Owners @@ -86635,10 +84742,7 @@ namespace SecretServerRestClient.DSS /// User ID /// User owner object /// A server side error occurred. - public System.Threading.Tasks.Task AddUserOwnerAsync(UserOwnerCreateArgs args, int id) - { - return AddUserOwnerAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task AddUserOwnerAsync(UserOwnerCreateArgs args, int id) => AddUserOwnerAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Add User Owner @@ -86752,10 +84856,7 @@ namespace SecretServerRestClient.DSS /// patchModel /// A list of all user owner objects for the user /// A server side error occurred. - public System.Threading.Tasks.Task PatchUserOwnersAsync(int id, UserOwnerPatchUserModel patchModel) - { - return PatchUserOwnersAsync(id, patchModel, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task PatchUserOwnersAsync(int id, UserOwnerPatchUserModel patchModel) => PatchUserOwnersAsync(id, patchModel, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Add and remove the owners on the user @@ -86872,10 +84973,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Domain summary list /// A server side error occurred. - public System.Threading.Tasks.Task GetDomainsAsync(int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetDomainsAsync(skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetDomainsAsync(int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetDomainsAsync(skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Domains @@ -87010,10 +85108,7 @@ namespace SecretServerRestClient.DSS /// User ID /// User role summary /// A server side error occurred. - public System.Threading.Tasks.Task GetUserRolesAsync(int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take, int userId) - { - return GetUserRolesAsync(skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, userId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetUserRolesAsync(int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take, int userId) => GetUserRolesAsync(skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, userId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get User Roles @@ -87153,10 +85248,7 @@ namespace SecretServerRestClient.DSS /// userId /// Paged List of Audits /// A server side error occurred. - public System.Threading.Tasks.Task GetSiteAuditsAsync(int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take, int userId) - { - return GetSiteAuditsAsync(skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, userId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetSiteAuditsAsync(int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take, int userId) => GetSiteAuditsAsync(skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, userId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// User Audits @@ -87296,10 +85388,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// Paged List of Audits /// A server side error occurred. - public System.Threading.Tasks.Task GetUserActionAuditsAsync(System.Collections.Generic.IEnumerable actions, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetUserActionAuditsAsync(actions, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetUserActionAuditsAsync(System.Collections.Generic.IEnumerable actions, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetUserActionAuditsAsync(actions, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// User Audits by Action @@ -87442,10 +85531,7 @@ namespace SecretServerRestClient.DSS /// userId /// Paged List of Team Summaries /// A server side error occurred. - public System.Threading.Tasks.Task GetUserTeamsAsync(bool? filter_includeGroupMemberships, bool? filter_includeInactive, string filter_searchTerm, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take, int userId) - { - return GetUserTeamsAsync(filter_includeGroupMemberships, filter_includeInactive, filter_searchTerm, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, userId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetUserTeamsAsync(bool? filter_includeGroupMemberships, bool? filter_includeInactive, string filter_searchTerm, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take, int userId) => GetUserTeamsAsync(filter_includeGroupMemberships, filter_includeInactive, filter_searchTerm, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, userId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// User Teams @@ -87597,10 +85683,7 @@ namespace SecretServerRestClient.DSS /// Setting Name /// Preference /// A server side error occurred. - public System.Threading.Tasks.Task GetPreferenceAsync(bool? isLegacy, string settingCode, string settingName) - { - return GetPreferenceAsync(isLegacy, settingCode, settingName, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetPreferenceAsync(bool? isLegacy, string settingCode, string settingName) => GetPreferenceAsync(isLegacy, settingCode, settingName, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Preference @@ -87720,10 +85803,7 @@ namespace SecretServerRestClient.DSS /// args /// Preference /// A server side error occurred. - public System.Threading.Tasks.Task UpdatePreferenceAsync(RestPreferenceUpdateArgs args) - { - return UpdatePreferenceAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdatePreferenceAsync(RestPreferenceUpdateArgs args) => UpdatePreferenceAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Preference @@ -87831,10 +85911,7 @@ namespace SecretServerRestClient.DSS /// Public SSH Key ID /// The ID if the key deactivated /// A server side error occurred. - public System.Threading.Tasks.Task DeactivateUserPublicSshKeyAsync(int id) - { - return DeactivateUserPublicSshKeyAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task DeactivateUserPublicSshKeyAsync(int id) => DeactivateUserPublicSshKeyAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deactivate SSH Key @@ -87944,10 +86021,7 @@ namespace SecretServerRestClient.DSS /// User password change options /// User object /// A server side error occurred. - public System.Threading.Tasks.Task ChangePasswordAsync(UserChangePasswordArgs args) - { - return ChangePasswordAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task ChangePasswordAsync(UserChangePasswordArgs args) => ChangePasswordAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Change User Password @@ -88055,10 +86129,7 @@ namespace SecretServerRestClient.DSS /// User password verification options /// Success / Fail /// A server side error occurred. - public System.Threading.Tasks.Task VerifyPasswordAsync(UserPasswordVerifyArgs args) - { - return VerifyPasswordAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task VerifyPasswordAsync(UserPasswordVerifyArgs args) => VerifyPasswordAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Verify the Current User Password @@ -88167,10 +86238,7 @@ namespace SecretServerRestClient.DSS /// userId /// Result of 2FA reset /// A server side error occurred. - public System.Threading.Tasks.Task ResetTwoFactorAsync(ResetTwoFactorArgs args, int userId) - { - return ResetTwoFactorAsync(args, userId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task ResetTwoFactorAsync(ResetTwoFactorArgs args, int userId) => ResetTwoFactorAsync(args, userId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Reset 2FA @@ -88284,10 +86352,7 @@ namespace SecretServerRestClient.DSS /// userId /// Password Reset Result /// A server side error occurred. - public System.Threading.Tasks.Task ResetUserPasswordAsync(PasswordResetArgs args, int userId) - { - return ResetUserPasswordAsync(args, userId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task ResetUserPasswordAsync(PasswordResetArgs args, int userId) => ResetUserPasswordAsync(args, userId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Reset a user password as an admin @@ -88400,10 +86465,7 @@ namespace SecretServerRestClient.DSS /// id /// Success / Fail /// A server side error occurred. - public System.Threading.Tasks.Task UserPersonalInfoDeleteCommandAsync(int id) - { - return UserPersonalInfoDeleteCommandAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UserPersonalInfoDeleteCommandAsync(int id) => UserPersonalInfoDeleteCommandAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete a user's personally identifiable info @@ -88514,10 +86576,7 @@ namespace SecretServerRestClient.DSS /// userId /// Result of Lock Out /// A server side error occurred. - public System.Threading.Tasks.Task LockOutAsync(LockOutArgs args, int userId) - { - return LockOutAsync(args, userId, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task LockOutAsync(LockOutArgs args, int userId) => LockOutAsync(args, userId, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Lock Out @@ -88767,10 +86826,7 @@ namespace SecretServerRestClient.DSS /// Secret Server Version /// Unknown or empty response /// A server side error occurred. - public System.Threading.Tasks.Task GetAsync() - { - return GetAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetAsync() => GetAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Secret Server Version @@ -89006,10 +87062,7 @@ namespace SecretServerRestClient.DSS /// Workflow Template ID /// The active workflow instances that use the Workflow Template /// A server side error occurred. - public System.Threading.Tasks.Task> GetByTemplateIdAsync(int id) - { - return GetByTemplateIdAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> GetByTemplateIdAsync(int id) => GetByTemplateIdAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Workflow Instances By Workflow Template Id. @@ -89261,10 +87314,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// A list of workflow step models /// A server side error occurred. - public System.Threading.Tasks.Task GetTemplateStepsAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return GetTemplateStepsAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetTemplateStepsAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => GetTemplateStepsAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get Workflow Template Steps @@ -89400,10 +87450,7 @@ namespace SecretServerRestClient.DSS /// Workflow Template ID /// The workflow template steps /// A server side error occurred. - public System.Threading.Tasks.Task> UpdateStepAsync(WorkflowStepTemplateUpdateArgs args, int id) - { - return UpdateStepAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task> UpdateStepAsync(WorkflowStepTemplateUpdateArgs args, int id) => UpdateStepAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update Workflow Template Steps @@ -89517,10 +87564,7 @@ namespace SecretServerRestClient.DSS /// Workflow Template Id /// New Workflow Template Steps ID /// A server side error occurred. - public System.Threading.Tasks.Task CreateStepAsync(WorkflowStepTemplateCreateArgs args, int id) - { - return CreateStepAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateStepAsync(WorkflowStepTemplateCreateArgs args, int id) => CreateStepAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create Workflow Step @@ -89632,10 +87676,7 @@ namespace SecretServerRestClient.DSS /// Get a Workflow Template Step Stub /// An empty workflow step /// A server side error occurred. - public System.Threading.Tasks.Task StubAsync() - { - return StubAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task StubAsync() => StubAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get a Workflow Template Step Stub @@ -89740,10 +87781,7 @@ namespace SecretServerRestClient.DSS /// Workflow Step Number /// A workflow step model /// A server side error occurred. - public System.Threading.Tasks.Task GetTemplateStepAsync(int id, int stepNum) - { - return GetTemplateStepAsync(id, stepNum, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetTemplateStepAsync(int id, int stepNum) => GetTemplateStepAsync(id, stepNum, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get a Workflow Template Step @@ -89859,10 +87897,7 @@ namespace SecretServerRestClient.DSS /// Workflow Step Number /// Workflow Template Step /// A server side error occurred. - public System.Threading.Tasks.Task UpdateStepModelAsync(WorkflowStepTemplateUpdateModel args, int id, int stepNum) - { - return UpdateStepModelAsync(args, id, stepNum, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateStepModelAsync(WorkflowStepTemplateUpdateModel args, int id, int stepNum) => UpdateStepModelAsync(args, id, stepNum, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update a Workflow Template Step @@ -90124,10 +88159,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// A paginated list of Workflow Templates. /// A server side error occurred. - public System.Threading.Tasks.Task SearchWorkflowTemplatesAsync(bool? filter_includeInactive, string filter_workflowType, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchWorkflowTemplatesAsync(filter_includeInactive, filter_workflowType, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchWorkflowTemplatesAsync(bool? filter_includeInactive, string filter_workflowType, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchWorkflowTemplatesAsync(filter_includeInactive, filter_workflowType, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get a Workflow Template List @@ -90267,10 +88299,7 @@ namespace SecretServerRestClient.DSS /// Workflow Template creation options /// The new Workflow Template's ID. /// A server side error occurred. - public System.Threading.Tasks.Task CreateWorkflowTemplateAsync(WorkflowTemplateCreateArgs args) - { - return CreateWorkflowTemplateAsync(args, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CreateWorkflowTemplateAsync(WorkflowTemplateCreateArgs args) => CreateWorkflowTemplateAsync(args, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create a Workflow Template @@ -90377,10 +88406,7 @@ namespace SecretServerRestClient.DSS /// Get a Workflow Template Stub /// An Workflow Template. /// A server side error occurred. - public System.Threading.Tasks.Task StubWorkflowTemplateAsync() - { - return StubWorkflowTemplateAsync(System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task StubWorkflowTemplateAsync() => StubWorkflowTemplateAsync(System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get a Workflow Template Stub @@ -90484,10 +88510,7 @@ namespace SecretServerRestClient.DSS /// Workflow Template Id /// The requested Workflow Template. /// A server side error occurred. - public System.Threading.Tasks.Task GetTemplateAsync(int id) - { - return GetTemplateAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetTemplateAsync(int id) => GetTemplateAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get a Workflow Template @@ -90597,10 +88620,7 @@ namespace SecretServerRestClient.DSS /// Workflow Template ID /// The updated Workflow Template. /// A server side error occurred. - public System.Threading.Tasks.Task UpdateWorkflowTemplateAsync(WorkflowTemplateUpdateModel args, int id) - { - return UpdateWorkflowTemplateAsync(args, id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task UpdateWorkflowTemplateAsync(WorkflowTemplateUpdateModel args, int id) => UpdateWorkflowTemplateAsync(args, id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update a Workflow Template @@ -90718,10 +88738,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// A paginated list of Workflow Template Audits. /// A server side error occurred. - public System.Threading.Tasks.Task SearchTemplateAuditAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchTemplateAuditAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchTemplateAuditAsync(int id, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchTemplateAuditAsync(id, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get a Workflow Template Audit List @@ -90857,10 +88874,7 @@ namespace SecretServerRestClient.DSS /// includeAll /// The number of entities that use the workflow template. /// A server side error occurred. - public System.Threading.Tasks.Task GetWorkflowEntitiesAsync(int id, bool includeAll) - { - return GetWorkflowEntitiesAsync(id, includeAll, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task GetWorkflowEntitiesAsync(int id, bool includeAll) => GetWorkflowEntitiesAsync(id, includeAll, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Count of Entities using a Workflow Template @@ -90974,10 +88988,7 @@ namespace SecretServerRestClient.DSS /// Workflow Template Id /// Confirmation of cancellation. /// A server side error occurred. - public System.Threading.Tasks.Task CancelRequestAsync(int id) - { - return CancelRequestAsync(id, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task CancelRequestAsync(int id) => CancelRequestAsync(id, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Cancel Workflow Requests @@ -91231,10 +89242,7 @@ namespace SecretServerRestClient.DSS /// Maximum number of records to include in results /// System log messages that match /// A server side error occurred. - public System.Threading.Tasks.Task SearchSystemLogAsync(string filter_logLevel, string filter_searchTerm, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) - { - return SearchSystemLogAsync(filter_logLevel, filter_searchTerm, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); - } + public System.Threading.Tasks.Task SearchSystemLogAsync(string filter_logLevel, string filter_searchTerm, int? skip, string sortBy0_direction, string sortBy0_name, int? sortBy0_priority, int? take) => SearchSystemLogAsync(filter_logLevel, filter_searchTerm, skip, sortBy0_direction, sortBy0_name, sortBy0_priority, take, System.Threading.CancellationToken.None); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Search system log @@ -130325,10 +128333,7 @@ namespace SecretServerRestClient.DSS Headers = headers; } - public override string ToString() - { - return string.Format("HTTP Response: \n\n{0}\n\n{1}", Response, base.ToString()); - } + public override string ToString() => string.Format("HTTP Response: \n\n{0}\n\n{1}", Response, base.ToString()); } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.14.8.0 (NJsonSchema v10.5.2.0 (Newtonsoft.Json v11.0.0.0))")] diff --git a/ObjectListView/CellEditing/CellEditors.cs b/ObjectListView/CellEditing/CellEditors.cs index 6f608925..215c5b03 100644 --- a/ObjectListView/CellEditing/CellEditors.cs +++ b/ObjectListView/CellEditing/CellEditors.cs @@ -46,18 +46,14 @@ namespace BrightIdeasSoftware /// /// These items allow combo boxes to remember a value and its description. /// - public class ComboBoxItem + /// + /// + /// + /// + /// + public class ComboBoxItem(Object key, String description) { - /// - /// - /// - /// - /// - public ComboBoxItem(Object key, String description) { - this.key = key; - this.description = description; - } - private readonly String description; + private readonly String description = description; /// /// @@ -65,7 +61,7 @@ namespace BrightIdeasSoftware public Object Key { get { return key; } } - private readonly Object key; + private readonly Object key = key; /// /// Returns a string that represents the current object. diff --git a/ObjectListView/FastObjectListView.cs b/ObjectListView/FastObjectListView.cs index 0c5fe302..19a63ed5 100644 --- a/ObjectListView/FastObjectListView.cs +++ b/ObjectListView/FastObjectListView.cs @@ -158,15 +158,12 @@ namespace BrightIdeasSoftware /// This class isn't intended to be used directly, but it is left as a public /// class just in case someone wants to subclass it. /// - public class FastObjectListDataSource : AbstractVirtualListDataSource + /// + /// Create a FastObjectListDataSource + /// + /// + public class FastObjectListDataSource(FastObjectListView listView) : AbstractVirtualListDataSource(listView) { - /// - /// Create a FastObjectListDataSource - /// - /// - public FastObjectListDataSource(FastObjectListView listView) - : base(listView) { - } #region IVirtualListDataSource Members diff --git a/ObjectListView/Filtering/Filters.cs b/ObjectListView/Filtering/Filters.cs index db69a624..f684e4cd 100644 --- a/ObjectListView/Filtering/Filters.cs +++ b/ObjectListView/Filtering/Filters.cs @@ -185,15 +185,11 @@ namespace BrightIdeasSoftware /// A model object must satisfy all filters to be included. /// If there are no filters, all model objects are included /// - public class CompositeAllFilter : CompositeFilter { - - /// - /// Create a filter - /// - /// - public CompositeAllFilter(List filters) - : base(filters) { - } + /// + /// Create a filter + /// + /// + public class CompositeAllFilter(List filters) : CompositeFilter(filters) { /// /// Decide whether or not the given model should be included by the filter @@ -215,15 +211,11 @@ namespace BrightIdeasSoftware /// A model object must only satisfy one of the filters to be included. /// If there are no filters, all model objects are included /// - public class CompositeAnyFilter : CompositeFilter { - - /// - /// Create a filter from the given filters - /// - /// - public CompositeAnyFilter(List filters) - : base(filters) { - } + /// + /// Create a filter from the given filters + /// + /// + public class CompositeAnyFilter(List filters) : CompositeFilter(filters) { /// /// Decide whether or not the given model should be included by the filter diff --git a/ObjectListView/Implementation/Comparers.cs b/ObjectListView/Implementation/Comparers.cs index 1ec33d03..b001feef 100644 --- a/ObjectListView/Implementation/Comparers.cs +++ b/ObjectListView/Implementation/Comparers.cs @@ -50,7 +50,13 @@ namespace BrightIdeasSoftware /// This is used by normal (non-virtual) ObjectListViews. Virtual lists use /// ModelObjectComparer /// - public class ColumnComparer : IComparer, IComparer + /// + /// Create a ColumnComparer that will order the rows in a list view according + /// to the values in a given column + /// + /// The column whose values will be compared + /// The ordering for column values + public class ColumnComparer(OLVColumn col, SortOrder order) : IComparer, IComparer { /// /// Gets or sets the method that will be used to compare two strings. @@ -63,18 +69,6 @@ namespace BrightIdeasSoftware } private static StringCompareDelegate stringComparer; - /// - /// Create a ColumnComparer that will order the rows in a list view according - /// to the values in a given column - /// - /// The column whose values will be compared - /// The ordering for column values - public ColumnComparer(OLVColumn col, SortOrder order) - { - this.column = col; - this.sortOrder = order; - } - /// /// Create a ColumnComparer that will order the rows in a list view according /// to the values in a given column, and by a secondary column if the primary @@ -165,8 +159,8 @@ namespace BrightIdeasSoftware return StringComparer(x, y); } - private OLVColumn column; - private SortOrder sortOrder; + private OLVColumn column = col; + private SortOrder sortOrder = order; private ColumnComparer secondComparer; } @@ -175,15 +169,12 @@ namespace BrightIdeasSoftware /// This comparer sort list view groups. OLVGroups have a "SortValue" property, /// which is used if present. Otherwise, the titles of the groups will be compared. /// - public class OLVGroupComparer : IComparer + /// + /// Create a group comparer + /// + /// The ordering for column values + public class OLVGroupComparer(SortOrder order) : IComparer { - /// - /// Create a group comparer - /// - /// The ordering for column values - public OLVGroupComparer(SortOrder order) { - this.sortOrder = order; - } /// /// Compare the two groups. OLVGroups have a "SortValue" property, @@ -207,7 +198,7 @@ namespace BrightIdeasSoftware return result; } - private SortOrder sortOrder; + private SortOrder sortOrder = order; } /// @@ -217,7 +208,12 @@ namespace BrightIdeasSoftware /// This is used by virtual ObjectListViews. Non-virtual lists use /// ColumnComparer /// - public class ModelObjectComparer : IComparer, IComparer + /// + /// Create a model object comparer + /// + /// + /// + public class ModelObjectComparer(OLVColumn col, SortOrder order) : IComparer, IComparer { /// /// Gets or sets the method that will be used to compare two strings. @@ -230,17 +226,6 @@ namespace BrightIdeasSoftware } private static StringCompareDelegate stringComparer; - /// - /// Create a model object comparer - /// - /// - /// - public ModelObjectComparer(OLVColumn col, SortOrder order) - { - this.column = col; - this.sortOrder = order; - } - /// /// Create a model object comparer with a secondary sorting column /// @@ -318,8 +303,8 @@ namespace BrightIdeasSoftware return StringComparer(x, y); } - private OLVColumn column; - private SortOrder sortOrder; + private OLVColumn column = col; + private SortOrder sortOrder = order; private ModelObjectComparer secondComparer; #region IComparer Members diff --git a/ObjectListView/Implementation/Events.cs b/ObjectListView/Implementation/Events.cs index 68f7c7bf..88bf4e04 100644 --- a/ObjectListView/Implementation/Events.cs +++ b/ObjectListView/Implementation/Events.cs @@ -878,25 +878,16 @@ namespace BrightIdeasSoftware /// /// Let the world know that a cell edit operation is beginning or ending /// - public class CellEditEventArgs : EventArgs + /// + /// Create an event args + /// + /// + /// + /// + /// + /// + public class CellEditEventArgs(OLVColumn column, Control control, Rectangle cellBounds, OLVListItem item, int subItemIndex) : EventArgs { - /// - /// Create an event args - /// - /// - /// - /// - /// - /// - public CellEditEventArgs(OLVColumn column, Control control, Rectangle cellBounds, OLVListItem item, int subItemIndex) { - this.Control = control; - this.column = column; - this.cellBounds = cellBounds; - this.listViewItem = item; - this.rowObject = item.RowObject; - this.subItemIndex = subItemIndex; - this.value = column.GetValue(item.RowObject); - } /// /// Change this to true to cancel the cell editing operation. @@ -917,7 +908,7 @@ namespace BrightIdeasSoftware /// entered and commit that value to the model. Changing the control during the finishing /// event has no effect. /// - public Control Control; + public Control Control = control; /// /// The column of the cell that is going to be or has been edited. @@ -925,7 +916,7 @@ namespace BrightIdeasSoftware public OLVColumn Column { get { return this.column; } } - private OLVColumn column; + private OLVColumn column = column; /// /// The model object of the row of the cell that is going to be or has been edited. @@ -933,7 +924,7 @@ namespace BrightIdeasSoftware public Object RowObject { get { return this.rowObject; } } - private Object rowObject; + private Object rowObject = item.RowObject; /// /// The listview item of the cell that is going to be or has been edited. @@ -941,7 +932,7 @@ namespace BrightIdeasSoftware public OLVListItem ListViewItem { get { return this.listViewItem; } } - private OLVListItem listViewItem; + private OLVListItem listViewItem = item; /// /// The data value of the cell as it stands in the control. @@ -959,7 +950,7 @@ namespace BrightIdeasSoftware public int SubItemIndex { get { return this.subItemIndex; } } - private int subItemIndex; + private int subItemIndex = subItemIndex; /// /// The data value of the cell before the edit operation began. @@ -967,7 +958,7 @@ namespace BrightIdeasSoftware public Object Value { get { return this.value; } } - private Object value; + private Object value = column.GetValue(item.RowObject); /// /// The bounds of the cell that is going to be or has been edited. @@ -975,7 +966,7 @@ namespace BrightIdeasSoftware public Rectangle CellBounds { get { return this.cellBounds; } } - private Rectangle cellBounds; + private Rectangle cellBounds = cellBounds; /// /// Gets or sets whether the control used for editing should be auto matically disposed @@ -1160,25 +1151,22 @@ namespace BrightIdeasSoftware } private SortOrder secondarySortOrder; } - + /// /// This event is triggered when the contents of a list have changed /// and we want the world to have a chance to filter the list. /// - public class FilterEventArgs : EventArgs + /// + /// Create a FilterEventArgs + /// + /// + public class FilterEventArgs(IEnumerable objects) : EventArgs { - /// - /// Create a FilterEventArgs - /// - /// - public FilterEventArgs(IEnumerable objects) { - this.Objects = objects; - } /// /// Gets or sets what objects are being filtered /// - public IEnumerable Objects; + public IEnumerable Objects = objects; /// /// Gets or sets what objects survived the filtering @@ -1267,17 +1255,13 @@ namespace BrightIdeasSoftware /// /// When used with a virtual list, OldObjects will always be null. /// - public class ItemsChangingEventArgs : CancellableEventArgs + /// + /// Create ItemsChangingEventArgs + /// + /// + /// + public class ItemsChangingEventArgs(IEnumerable oldObjects, IEnumerable newObjects) : CancellableEventArgs { - /// - /// Create ItemsChangingEventArgs - /// - /// - /// - public ItemsChangingEventArgs(IEnumerable oldObjects, IEnumerable newObjects) { - this.oldObjects = oldObjects; - this.NewObjects = newObjects; - } /// /// Gets the objects that were in the list before it change. @@ -1286,47 +1270,40 @@ namespace BrightIdeasSoftware public IEnumerable OldObjects { get { return oldObjects; } } - private IEnumerable oldObjects; + private IEnumerable oldObjects = oldObjects; /// /// Gets or sets the objects that will be in the list after it changes. /// - public IEnumerable NewObjects; + public IEnumerable NewObjects = newObjects; } /// /// This event is triggered by RemoveObjects before any change has been made to the list. /// - public class ItemsRemovingEventArgs : CancellableEventArgs + /// + /// Create an ItemsRemovingEventArgs + /// + /// + public class ItemsRemovingEventArgs(ICollection objectsToRemove) : CancellableEventArgs { - /// - /// Create an ItemsRemovingEventArgs - /// - /// - public ItemsRemovingEventArgs(ICollection objectsToRemove) { - this.ObjectsToRemove = objectsToRemove; - } /// /// Gets or sets the objects that will be removed /// - public ICollection ObjectsToRemove; + public ICollection ObjectsToRemove = objectsToRemove; } /// /// Triggered after the user types into a list /// - public class AfterSearchingEventArgs : EventArgs + /// + /// Create an AfterSearchingEventArgs + /// + /// + /// + public class AfterSearchingEventArgs(string stringToFind, int indexSelected) : EventArgs { - /// - /// Create an AfterSearchingEventArgs - /// - /// - /// - public AfterSearchingEventArgs(string stringToFind, int indexSelected) { - this.stringToFind = stringToFind; - this.indexSelected = indexSelected; - } /// /// Gets the string that was actually searched for @@ -1334,7 +1311,7 @@ namespace BrightIdeasSoftware public string StringToFind { get { return this.stringToFind; } } - private string stringToFind; + private string stringToFind = stringToFind; /// /// Gets or sets whether an the event handler already handled this event @@ -1348,23 +1325,19 @@ namespace BrightIdeasSoftware public int IndexSelected { get { return this.indexSelected; } } - private int indexSelected; + private int indexSelected = indexSelected; } /// /// Triggered when the user types into a list /// - public class BeforeSearchingEventArgs : CancellableEventArgs + /// + /// Create BeforeSearchingEventArgs + /// + /// + /// + public class BeforeSearchingEventArgs(string stringToFind, int startSearchFrom) : CancellableEventArgs { - /// - /// Create BeforeSearchingEventArgs - /// - /// - /// - public BeforeSearchingEventArgs(string stringToFind, int startSearchFrom) { - this.StringToFind = stringToFind; - this.StartSearchFrom = startSearchFrom; - } /// /// Gets or sets the string that will be found by the search routine @@ -1372,12 +1345,12 @@ namespace BrightIdeasSoftware /// Modifying this value does not modify the memory of what the user has typed. /// When the user next presses a character, the search string will revert to what /// the user has actually typed. - public string StringToFind; + public string StringToFind = stringToFind; /// /// Gets or sets the index of the first row that will be considered to matching. /// - public int StartSearchFrom; + public int StartSearchFrom = startSearchFrom; } /// @@ -2035,27 +2008,20 @@ namespace BrightIdeasSoftware return string.Format("NewHotCellHitLocation: {0}, HotCellHitLocationEx: {1}, NewHotColumnIndex: {2}, NewHotRowIndex: {3}, HotGroup: {4}", this.newHotCellHitLocation, this.hotCellHitLocationEx, this.newHotColumnIndex, this.newHotRowIndex, this.hotGroup); } } - + /// /// Let the world know that a checkbox on a subitem is changing /// - public class SubItemCheckingEventArgs : CancellableEventArgs + /// + /// Create a new event block + /// + /// + /// + /// + /// + /// + public class SubItemCheckingEventArgs(OLVColumn column, OLVListItem item, int subItemIndex, CheckState currentValue, CheckState newValue) : CancellableEventArgs { - /// - /// Create a new event block - /// - /// - /// - /// - /// - /// - public SubItemCheckingEventArgs(OLVColumn column, OLVListItem item, int subItemIndex, CheckState currentValue, CheckState newValue) { - this.column = column; - this.listViewItem = item; - this.subItemIndex = subItemIndex; - this.currentValue = currentValue; - this.newValue = newValue; - } /// /// The column of the cell that is having its checkbox changed. @@ -2063,7 +2029,7 @@ namespace BrightIdeasSoftware public OLVColumn Column { get { return this.column; } } - private OLVColumn column; + private OLVColumn column = column; /// /// The model object of the row of the cell that is having its checkbox changed. @@ -2078,7 +2044,7 @@ namespace BrightIdeasSoftware public OLVListItem ListViewItem { get { return this.listViewItem; } } - private OLVListItem listViewItem; + private OLVListItem listViewItem = item; /// /// The current check state of the cell. @@ -2086,7 +2052,7 @@ namespace BrightIdeasSoftware public CheckState CurrentValue { get { return this.currentValue; } } - private CheckState currentValue; + private CheckState currentValue = currentValue; /// /// The proposed new check state of the cell. @@ -2095,7 +2061,7 @@ namespace BrightIdeasSoftware get { return this.newValue; } set { this.newValue = value; } } - private CheckState newValue; + private CheckState newValue = newValue; /// /// The index of the cell that is going to be or has been edited. @@ -2103,21 +2069,18 @@ namespace BrightIdeasSoftware public int SubItemIndex { get { return this.subItemIndex; } } - private int subItemIndex; + private int subItemIndex = subItemIndex; } /// /// This event argument block is used when groups are created for a list. /// - public class CreateGroupsEventArgs : EventArgs + /// + /// Create a CreateGroupsEventArgs + /// + /// + public class CreateGroupsEventArgs(GroupingParameters parms) : EventArgs { - /// - /// Create a CreateGroupsEventArgs - /// - /// - public CreateGroupsEventArgs(GroupingParameters parms) { - this.parameters = parms; - } /// /// Gets the settings that control the creation of groups @@ -2125,7 +2088,7 @@ namespace BrightIdeasSoftware public GroupingParameters Parameters { get { return this.parameters; } } - private GroupingParameters parameters; + private GroupingParameters parameters = parms; /// /// Gets or sets the groups that should be used @@ -2151,16 +2114,12 @@ namespace BrightIdeasSoftware /// /// This event argument block is used when the text of a group task is clicked /// - public class GroupTaskClickedEventArgs : EventArgs + /// + /// Create a GroupTaskClickedEventArgs + /// + /// + public class GroupTaskClickedEventArgs(OLVGroup group) : EventArgs { - /// - /// Create a GroupTaskClickedEventArgs - /// - /// - public GroupTaskClickedEventArgs(OLVGroup group) - { - this.group = group; - } /// /// Gets which group was clicked @@ -2169,7 +2128,7 @@ namespace BrightIdeasSoftware { get { return this.group; } } - private readonly OLVGroup group; + private readonly OLVGroup group = group; } /// @@ -2207,18 +2166,13 @@ namespace BrightIdeasSoftware /// /// This event argument block is used when the state of group has changed (collapsed, selected) /// - public class GroupStateChangedEventArgs : EventArgs { - /// - /// Create a GroupStateChangedEventArgs - /// - /// - /// - /// - public GroupStateChangedEventArgs(OLVGroup group, GroupState oldState, GroupState newState) { - this.group = group; - this.oldState = oldState; - this.newState = newState; - } + /// + /// Create a GroupStateChangedEventArgs + /// + /// + /// + /// + public class GroupStateChangedEventArgs(OLVGroup group, GroupState oldState, GroupState newState) : EventArgs { /// /// Gets whether the group was collapsed by this event @@ -2291,7 +2245,7 @@ namespace BrightIdeasSoftware get { return this.group; } } - private readonly OLVGroup group; + private readonly OLVGroup group = group; /// /// Gets the previous state of the group @@ -2300,7 +2254,7 @@ namespace BrightIdeasSoftware get { return this.oldState; } } - private readonly GroupState oldState; + private readonly GroupState oldState = oldState; /// @@ -2310,7 +2264,7 @@ namespace BrightIdeasSoftware get { return this.newState; } } - private readonly GroupState newState; + private readonly GroupState newState = newState; } /// diff --git a/ObjectListView/Implementation/Munger.cs b/ObjectListView/Implementation/Munger.cs index 639ba6c2..1a7d30bd 100644 --- a/ObjectListView/Implementation/Munger.cs +++ b/ObjectListView/Implementation/Munger.cs @@ -311,18 +311,14 @@ namespace BrightIdeasSoftware /// /// Munger uses a chain of these resolve a dotted aspect name. /// - public class SimpleMunger + /// + /// Create a SimpleMunger + /// + /// + public class SimpleMunger(String aspectName) { - #region Life and death - /// - /// Create a SimpleMunger - /// - /// - public SimpleMunger(String aspectName) - { - this.aspectName = aspectName; - } + #region Life and death #endregion @@ -344,7 +340,7 @@ namespace BrightIdeasSoftware public string AspectName { get { return aspectName; } } - private readonly string aspectName; + private readonly string aspectName = aspectName; #endregion @@ -494,19 +490,14 @@ namespace BrightIdeasSoftware /// /// These exceptions are raised when a munger finds something it cannot process /// - public class MungerException : ApplicationException + /// + /// Create a MungerException + /// + /// + /// + /// + public class MungerException(SimpleMunger munger, object target, Exception ex) : ApplicationException("Munger failed", ex) { - /// - /// Create a MungerException - /// - /// - /// - /// - public MungerException(SimpleMunger munger, object target, Exception ex) - : base("Munger failed", ex) { - this.munger = munger; - this.target = target; - } /// /// Get the munger that raised the exception @@ -514,7 +505,7 @@ namespace BrightIdeasSoftware public SimpleMunger Munger { get { return munger; } } - private readonly SimpleMunger munger; + private readonly SimpleMunger munger = munger; /// /// Gets the target that threw the exception @@ -522,7 +513,7 @@ namespace BrightIdeasSoftware public object Target { get { return target; } } - private readonly object target; + private readonly object target = target; } /* diff --git a/ObjectListView/Implementation/VirtualGroups.cs b/ObjectListView/Implementation/VirtualGroups.cs index 76bc56d0..0722ffb3 100644 --- a/ObjectListView/Implementation/VirtualGroups.cs +++ b/ObjectListView/Implementation/VirtualGroups.cs @@ -309,12 +309,9 @@ namespace BrightIdeasSoftware /// A default implementation of the IOwnerDataCallback interface /// [Guid("6FC61F50-80E8-49b4-B200-3F38D3865ABD")] - internal class OwnerDataCallbackImpl : IOwnerDataCallback + internal class OwnerDataCallbackImpl(VirtualObjectListView olv) : IOwnerDataCallback { - public OwnerDataCallbackImpl(VirtualObjectListView olv) { - this.olv = olv; - } - VirtualObjectListView olv; + VirtualObjectListView olv = olv; #region IOwnerDataCallback Members diff --git a/ObjectListView/Implementation/VirtualListDataSource.cs b/ObjectListView/Implementation/VirtualListDataSource.cs index 7bc378d3..38f30a12 100644 --- a/ObjectListView/Implementation/VirtualListDataSource.cs +++ b/ObjectListView/Implementation/VirtualListDataSource.cs @@ -145,20 +145,17 @@ namespace BrightIdeasSoftware /// /// A do-nothing implementation of the VirtualListDataSource interface. /// - public class AbstractVirtualListDataSource : IVirtualListDataSource, IFilterableDataSource + /// + /// Creates an AbstractVirtualListDataSource + /// + /// + public class AbstractVirtualListDataSource(VirtualObjectListView listView) : IVirtualListDataSource, IFilterableDataSource { - /// - /// Creates an AbstractVirtualListDataSource - /// - /// - public AbstractVirtualListDataSource(VirtualObjectListView listView) { - this.listView = listView; - } /// /// The list view that this data source is giving information to. /// - protected VirtualObjectListView listView; + protected VirtualObjectListView listView = listView; /// /// @@ -295,15 +292,12 @@ namespace BrightIdeasSoftware /// /// This class mimics the behavior of VirtualObjectListView v1.x. /// - public class VirtualListVersion1DataSource : AbstractVirtualListDataSource + /// + /// Creates a VirtualListVersion1DataSource + /// + /// + public class VirtualListVersion1DataSource(VirtualObjectListView listView) : AbstractVirtualListDataSource(listView) { - /// - /// Creates a VirtualListVersion1DataSource - /// - /// - public VirtualListVersion1DataSource(VirtualObjectListView listView) - : base(listView) { - } #region Public properties diff --git a/ObjectListView/ObjectListView.DesignTime.cs b/ObjectListView/ObjectListView.DesignTime.cs index 7584a9ae..58d58bb5 100644 --- a/ObjectListView/ObjectListView.DesignTime.cs +++ b/ObjectListView/ObjectListView.DesignTime.cs @@ -369,14 +369,8 @@ namespace BrightIdeasSoftware.Design /// only have to modify the returned collection of actions, but we have to implement /// the properties and commands that the returned actions use. /// - private class ListViewActionListAdapter : DesignerActionList + private class ListViewActionListAdapter(ObjectListViewDesigner designer, DesignerActionList wrappedList) : DesignerActionList(wrappedList.Component) { - public ListViewActionListAdapter(ObjectListViewDesigner designer, DesignerActionList wrappedList) - : base(wrappedList.Component) { - this.designer = designer; - this.wrappedList = wrappedList; - } - public override DesignerActionItemCollection GetSortedActionItems() { DesignerActionItemCollection items = wrappedList.GetSortedActionItems(); items.RemoveAt(2); // remove Edit Groups @@ -425,21 +419,16 @@ namespace BrightIdeasSoftware.Design set { SetValue(base.Component, "View", value); } } - ObjectListViewDesigner designer; - DesignerActionList wrappedList; + ObjectListViewDesigner designer = designer; + DesignerActionList wrappedList = wrappedList; } #endregion #region DesignerCommandSet - private class CDDesignerCommandSet : DesignerCommandSet + private class CDDesignerCommandSet(ComponentDesigner componentDesigner) : DesignerCommandSet { - - public CDDesignerCommandSet(ComponentDesigner componentDesigner) { - this.componentDesigner = componentDesigner; - } - public override ICollection GetCommands(string name) { // Debug.WriteLine("CDDesignerCommandSet.GetCommands:" + name); if (componentDesigner != null) { @@ -453,7 +442,7 @@ namespace BrightIdeasSoftware.Design return base.GetCommands(name); } - private readonly ComponentDesigner componentDesigner; + private readonly ComponentDesigner componentDesigner = componentDesigner; } #endregion @@ -463,15 +452,12 @@ namespace BrightIdeasSoftware.Design /// This class works in conjunction with the OLVColumns property to allow OLVColumns /// to be added to the ObjectListView. /// - public class OLVColumnCollectionEditor : System.ComponentModel.Design.CollectionEditor + /// + /// Create a OLVColumnCollectionEditor + /// + /// + public class OLVColumnCollectionEditor(Type t) : System.ComponentModel.Design.CollectionEditor(t) { - /// - /// Create a OLVColumnCollectionEditor - /// - /// - public OLVColumnCollectionEditor(Type t) - : base(t) { - } /// /// What type of object does this editor create? diff --git a/ObjectListView/ObjectListView.cs b/ObjectListView/ObjectListView.cs index e14caa19..0dd33b81 100644 --- a/ObjectListView/ObjectListView.cs +++ b/ObjectListView/ObjectListView.cs @@ -588,6 +588,7 @@ using System.Runtime.Versioning; using System.Threading; using System.Windows.Forms; using System.Windows.Forms.VisualStyles; +using System.Text.Json; using MethodInvoker = System.Windows.Forms.MethodInvoker; @@ -5869,9 +5870,18 @@ namespace BrightIdeasSoftware // Now that we have stored our state, convert it to a byte array using (MemoryStream ms = new MemoryStream()) { - BinaryFormatter serializer = new BinaryFormatter(); - serializer.AssemblyFormat = FormatterAssemblyStyle.Simple; - serializer.Serialize(ms, olvState); + //BinaryFormatter serializer = new BinaryFormatter(); + //serializer.AssemblyFormat = FormatterAssemblyStyle.Simple; + //serializer.Serialize(ms, olvState); + //return ms.ToArray(); + + // Use System.Text.Json for serialization instead of BinaryFormatter + var options = new JsonSerializerOptions + { + WriteIndented = false + }; + byte[] serializedData = JsonSerializer.SerializeToUtf8Bytes(olvState, options); + ms.Write(serializedData, 0, serializedData.Length); return ms.ToArray(); } } @@ -5886,6 +5896,7 @@ namespace BrightIdeasSoftware { using (MemoryStream ms = new MemoryStream(state)) { + /* BinaryFormatter deserializer = new BinaryFormatter(); ObjectListViewState olvState; try @@ -5925,6 +5936,45 @@ namespace BrightIdeasSoftware this.RebuildColumns(); else this.View = olvState.CurrentView; + */ + ObjectListViewState olvState; + try + { + olvState = JsonSerializer.Deserialize(ms.ToArray()); + } + catch (JsonException) + { + return false; + } + // The number of columns has changed. We have no way to match old + // columns to the new ones, so we just give up. + if (olvState == null || olvState.NumberOfColumns != this.AllColumns.Count) + return false; + if (olvState.SortColumn == -1) + { + this.PrimarySortColumn = null; + this.PrimarySortOrder = SortOrder.None; + } + else + { + this.PrimarySortColumn = this.AllColumns[olvState.SortColumn]; + this.PrimarySortOrder = olvState.LastSortOrder; + } + for (int i = 0; i < olvState.NumberOfColumns; i++) + { + OLVColumn column = this.AllColumns[i]; + column.Width = (int)olvState.ColumnWidths[i]; + column.IsVisible = (bool)olvState.ColumnIsVisible[i]; + column.LastDisplayIndex = (int)olvState.ColumnDisplayIndicies[i]; + } + // ReSharper disable RedundantCheckBeforeAssignment + if (olvState.IsShowingGroups != this.ShowGroups) + // ReSharper restore RedundantCheckBeforeAssignment + this.ShowGroups = olvState.IsShowingGroups; + if (this.View == olvState.CurrentView) + this.RebuildColumns(); + else + this.View = olvState.CurrentView; } return true; diff --git a/ObjectListView/Rendering/Renderers.cs b/ObjectListView/Rendering/Renderers.cs index e6bce219..864f6e7b 100644 --- a/ObjectListView/Rendering/Renderers.cs +++ b/ObjectListView/Rendering/Renderers.cs @@ -231,15 +231,12 @@ namespace BrightIdeasSoftware { /// This class provides compatibility for v1 RendererDelegates /// [ToolboxItem(false)] - internal class Version1Renderer : AbstractRenderer { - public Version1Renderer(RenderDelegate renderDelegate) { - this.RenderDelegate = renderDelegate; - } + internal class Version1Renderer(RenderDelegate renderDelegate) : AbstractRenderer { /// /// The renderer delegate that this renderer wraps /// - public RenderDelegate RenderDelegate; + public RenderDelegate RenderDelegate = renderDelegate; #region IRenderer Members diff --git a/ObjectListView/SubControls/HeaderControl.cs b/ObjectListView/SubControls/HeaderControl.cs index 51328793..cf8160d1 100644 --- a/ObjectListView/SubControls/HeaderControl.cs +++ b/ObjectListView/SubControls/HeaderControl.cs @@ -51,17 +51,20 @@ * If you wish to use this code in a closed source application, please contact phillip.piper@gmail.com. */ +using BrightIdeasSoftware.Properties; + using System; using System.Drawing; -using System.Windows.Forms; -using System.Runtime.InteropServices; -using System.Windows.Forms.VisualStyles; using System.Drawing.Drawing2D; -using BrightIdeasSoftware.Properties; +using System.Runtime.InteropServices; +using System.Runtime.Versioning; using System.Security.Permissions; +using System.Windows.Forms; +using System.Windows.Forms.VisualStyles; namespace BrightIdeasSoftware { + [SupportedOSPlatform("windows")] /// /// Class used to capture window messages for the header of the list view /// control. diff --git a/ObjectListView/SubControls/ToolTipControl.cs b/ObjectListView/SubControls/ToolTipControl.cs index e212bc61..9cd345a9 100644 --- a/ObjectListView/SubControls/ToolTipControl.cs +++ b/ObjectListView/SubControls/ToolTipControl.cs @@ -40,11 +40,13 @@ using System.Collections; using System.ComponentModel; using System.Drawing; using System.Runtime.InteropServices; -using System.Windows.Forms; +using System.Runtime.Versioning; using System.Security.Permissions; +using System.Windows.Forms; namespace BrightIdeasSoftware { + [SupportedOSPlatform("windows")] /// /// A limited wrapper around a Windows tooltip window. /// diff --git a/ObjectListView/TreeListView.cs b/ObjectListView/TreeListView.cs index c7c971be..0b6f29f8 100644 --- a/ObjectListView/TreeListView.cs +++ b/ObjectListView/TreeListView.cs @@ -2180,15 +2180,12 @@ namespace BrightIdeasSoftware /// /// This class sorts branches according to how their respective model objects are sorted /// - public class BranchComparer : IComparer + /// + /// Create a BranchComparer + /// + /// + public class BranchComparer(IComparer actualComparer) : IComparer { - /// - /// Create a BranchComparer - /// - /// - public BranchComparer(IComparer actualComparer) { - this.actualComparer = actualComparer; - } /// /// Order the two branches @@ -2200,7 +2197,7 @@ namespace BrightIdeasSoftware return this.actualComparer.Compare(x.Model, y.Model); } - private readonly IComparer actualComparer; + private readonly IComparer actualComparer = actualComparer; } } diff --git a/ObjectListView/Utilities/ColumnSelectionForm.cs b/ObjectListView/Utilities/ColumnSelectionForm.cs index eb0c2342..12c1d771 100644 --- a/ObjectListView/Utilities/ColumnSelectionForm.cs +++ b/ObjectListView/Utilities/ColumnSelectionForm.cs @@ -233,13 +233,9 @@ namespace BrightIdeasSoftware /// A Comparer that will sort a list of columns so that visible ones come before hidden ones, /// and that are ordered by their display order. /// - private class SortByDisplayOrder : IComparer + private class SortByDisplayOrder(ColumnSelectionForm form) : IComparer { - public SortByDisplayOrder(ColumnSelectionForm form) - { - this.Form = form; - } - private ColumnSelectionForm Form; + private ColumnSelectionForm Form = form; #region IComparer Members diff --git a/ObjectListView/Utilities/TypedObjectListView.cs b/ObjectListView/Utilities/TypedObjectListView.cs index 1db2ae47..0a9974a1 100644 --- a/ObjectListView/Utilities/TypedObjectListView.cs +++ b/ObjectListView/Utilities/TypedObjectListView.cs @@ -72,15 +72,12 @@ namespace BrightIdeasSoftware /// } /// /// - public class TypedObjectListView where T : class + /// + /// Create a typed wrapper around the given list. + /// + /// The listview to be wrapped + public class TypedObjectListView(ObjectListView olv) where T : class { - /// - /// Create a typed wrapper around the given list. - /// - /// The listview to be wrapped - public TypedObjectListView(ObjectListView olv) { - this.olv = olv; - } //-------------------------------------------------------------------------------------- // Properties @@ -115,7 +112,7 @@ namespace BrightIdeasSoftware get { return olv; } set { olv = value; } } - private ObjectListView olv; + private ObjectListView olv = olv; /// /// Get or set the list of all model objects @@ -325,16 +322,13 @@ namespace BrightIdeasSoftware /// A type-safe wrapper around an OLVColumn /// /// - public class TypedColumn where T : class + /// + /// Creates a TypedColumn + /// + /// + public class TypedColumn(OLVColumn column) where T : class { - /// - /// Creates a TypedColumn - /// - /// - public TypedColumn(OLVColumn column) { - this.column = column; - } - private OLVColumn column; + private OLVColumn column = column; /// /// diff --git a/mRemoteNG/App/Initialization/StartupDataLogger.cs b/mRemoteNG/App/Initialization/StartupDataLogger.cs index 49e211c1..9710b4bf 100644 --- a/mRemoteNG/App/Initialization/StartupDataLogger.cs +++ b/mRemoteNG/App/Initialization/StartupDataLogger.cs @@ -9,14 +9,9 @@ using mRemoteNG.Resources.Language; namespace mRemoteNG.App.Initialization { [SupportedOSPlatform("windows")] - public class StartupDataLogger + public class StartupDataLogger(MessageCollector messageCollector) { - private readonly MessageCollector _messageCollector; - - public StartupDataLogger(MessageCollector messageCollector) - { - _messageCollector = messageCollector ?? throw new ArgumentNullException(nameof(messageCollector)); - } + private readonly MessageCollector _messageCollector = messageCollector ?? throw new ArgumentNullException(nameof(messageCollector)); public void LogStartupData() { diff --git a/mRemoteNG/Config/Connections/SqlConnectionsLoader.cs b/mRemoteNG/Config/Connections/SqlConnectionsLoader.cs index 5b2936b0..eff8f5a2 100644 --- a/mRemoteNG/Config/Connections/SqlConnectionsLoader.cs +++ b/mRemoteNG/Config/Connections/SqlConnectionsLoader.cs @@ -19,22 +19,16 @@ using mRemoteNG.Tree.Root; namespace mRemoteNG.Config.Connections { [SupportedOSPlatform("windows")] - public class SqlConnectionsLoader : IConnectionsLoader + public class SqlConnectionsLoader( + IDeserializer> localConnectionPropertiesDeserializer, + IDataProvider dataProvider) : IConnectionsLoader { - private readonly IDeserializer> _localConnectionPropertiesDeserializer; + private readonly IDeserializer> _localConnectionPropertiesDeserializer = localConnectionPropertiesDeserializer.ThrowIfNull(nameof(localConnectionPropertiesDeserializer)); - private readonly IDataProvider _dataProvider; + private readonly IDataProvider _dataProvider = dataProvider.ThrowIfNull(nameof(dataProvider)); private Func> AuthenticationRequestor { get; set; } = () => MiscTools.PasswordDialog("", false); - public SqlConnectionsLoader( - IDeserializer> localConnectionPropertiesDeserializer, - IDataProvider dataProvider) - { - _localConnectionPropertiesDeserializer = localConnectionPropertiesDeserializer.ThrowIfNull(nameof(localConnectionPropertiesDeserializer)); - _dataProvider = dataProvider.ThrowIfNull(nameof(dataProvider)); - } - public ConnectionTreeModel Load() { IDatabaseConnector connector = DatabaseConnectorFactory.DatabaseConnectorFromSettings(); diff --git a/mRemoteNG/Config/Connections/SqlConnectionsSaver.cs b/mRemoteNG/Config/Connections/SqlConnectionsSaver.cs index 0a0657cf..7119550a 100644 --- a/mRemoteNG/Config/Connections/SqlConnectionsSaver.cs +++ b/mRemoteNG/Config/Connections/SqlConnectionsSaver.cs @@ -23,18 +23,11 @@ using mRemoteNG.Config.Serializers.ConnectionSerializers.Sql; namespace mRemoteNG.Config.Connections { [SupportedOSPlatform("windows")] - public class SqlConnectionsSaver : ISaver + public class SqlConnectionsSaver(SaveFilter saveFilter, ISerializer, string> localPropertieSerializer, IDataProvider localPropertiesDataProvider) : ISaver { - private readonly SaveFilter _saveFilter; - private readonly ISerializer, string> _localPropertiesSerializer; - private readonly IDataProvider _dataProvider; - - public SqlConnectionsSaver(SaveFilter saveFilter, ISerializer, string> localPropertieSerializer, IDataProvider localPropertiesDataProvider) - { - _saveFilter = saveFilter ?? throw new ArgumentNullException(nameof(saveFilter)); - _localPropertiesSerializer = localPropertieSerializer.ThrowIfNull(nameof(localPropertieSerializer)); - _dataProvider = localPropertiesDataProvider.ThrowIfNull(nameof(localPropertiesDataProvider)); - } + private readonly SaveFilter _saveFilter = saveFilter ?? throw new ArgumentNullException(nameof(saveFilter)); + private readonly ISerializer, string> _localPropertiesSerializer = localPropertieSerializer.ThrowIfNull(nameof(localPropertieSerializer)); + private readonly IDataProvider _dataProvider = localPropertiesDataProvider.ThrowIfNull(nameof(localPropertiesDataProvider)); public void Save(ConnectionTreeModel connectionTreeModel, string propertyNameTrigger = "") { diff --git a/mRemoteNG/Config/DataProviders/FileDataProvider.cs b/mRemoteNG/Config/DataProviders/FileDataProvider.cs index c741c603..42360edd 100644 --- a/mRemoteNG/Config/DataProviders/FileDataProvider.cs +++ b/mRemoteNG/Config/DataProviders/FileDataProvider.cs @@ -6,15 +6,10 @@ using mRemoteNG.App; namespace mRemoteNG.Config.DataProviders { [SupportedOSPlatform("windows")] - public class FileDataProvider : IDataProvider + public class FileDataProvider(string filePath) : IDataProvider { [SupportedOSPlatform("windows")] - public string FilePath { get; set; } - - public FileDataProvider(string filePath) - { - FilePath = filePath; - } + public string FilePath { get; set; } = filePath; public virtual string Load() { diff --git a/mRemoteNG/Config/DataProviders/FileDataProviderWithRollingBackup.cs b/mRemoteNG/Config/DataProviders/FileDataProviderWithRollingBackup.cs index e2f05b79..2768bfab 100644 --- a/mRemoteNG/Config/DataProviders/FileDataProviderWithRollingBackup.cs +++ b/mRemoteNG/Config/DataProviders/FileDataProviderWithRollingBackup.cs @@ -3,14 +3,9 @@ namespace mRemoteNG.Config.DataProviders { [SupportedOSPlatform("windows")] - public class FileDataProviderWithRollingBackup : FileDataProvider + public class FileDataProviderWithRollingBackup(string filePath) : FileDataProvider(filePath) { - private readonly FileBackupCreator _fileBackupCreator; - - public FileDataProviderWithRollingBackup(string filePath) : base(filePath) - { - _fileBackupCreator = new FileBackupCreator(); - } + private readonly FileBackupCreator _fileBackupCreator = new FileBackupCreator(); public override void Save(string content) { diff --git a/mRemoteNG/Config/DataProviders/InMemoryStringDataProvider.cs b/mRemoteNG/Config/DataProviders/InMemoryStringDataProvider.cs index fa0e16ba..4cb5f9a5 100644 --- a/mRemoteNG/Config/DataProviders/InMemoryStringDataProvider.cs +++ b/mRemoteNG/Config/DataProviders/InMemoryStringDataProvider.cs @@ -1,13 +1,8 @@ namespace mRemoteNG.Config.DataProviders { - public class InMemoryStringDataProvider : IDataProvider + public class InMemoryStringDataProvider(string initialContents = "") : IDataProvider { - private string _contents; - - public InMemoryStringDataProvider(string initialContents = "") - { - _contents = initialContents; - } + private string _contents = initialContents; public string Load() { diff --git a/mRemoteNG/Config/DataProviders/SqlDataProvider.cs b/mRemoteNG/Config/DataProviders/SqlDataProvider.cs index 5bdbd598..00e6950a 100644 --- a/mRemoteNG/Config/DataProviders/SqlDataProvider.cs +++ b/mRemoteNG/Config/DataProviders/SqlDataProvider.cs @@ -9,14 +9,9 @@ using System.Runtime.Versioning; namespace mRemoteNG.Config.DataProviders { [SupportedOSPlatform("windows")] - public class SqlDataProvider : IDataProvider + public class SqlDataProvider(IDatabaseConnector databaseConnector) : IDataProvider { - public IDatabaseConnector DatabaseConnector { get; } - - public SqlDataProvider(IDatabaseConnector databaseConnector) - { - DatabaseConnector = databaseConnector; - } + public IDatabaseConnector DatabaseConnector { get; } = databaseConnector; public DataTable Load() { diff --git a/mRemoteNG/Config/DatabaseConnectors/DatabaseConnectionTester.cs b/mRemoteNG/Config/DatabaseConnectors/DatabaseConnectionTester.cs index 1517a4a8..75e0673d 100644 --- a/mRemoteNG/Config/DatabaseConnectors/DatabaseConnectionTester.cs +++ b/mRemoteNG/Config/DatabaseConnectors/DatabaseConnectionTester.cs @@ -17,21 +17,40 @@ namespace mRemoteNG.Config.DatabaseConnectors public class DatabaseConnectionTester { - //string connectionString = "Data Source=172.22.155.100,1433;Initial Catalog=Demo;User ID=sa;Password=London123"; - - public static void TestConnection(string connectionString) + public async Task TestConnectivity(string type, string server, string database, string username, string password) { try { + // Build the connection string based on the provided parameters + string connectionString = $"Data Source={server};Initial Catalog={database};User ID={username};Password={password}"; + + // Attempt to open a connection to the database using (SqlConnection connection = new SqlConnection(connectionString)) { - connection.Open(); - Console.WriteLine("Connection successful!"); + await connection.OpenAsync(); + } + + return ConnectionTestResult.ConnectionSucceded; + } + catch (SqlException ex) + { + // Handle specific SQL exceptions + switch (ex.Number) + { + case 4060: // Invalid Database + return ConnectionTestResult.UnknownDatabase; + case 18456: // Login Failed + return ConnectionTestResult.CredentialsRejected; + case -1: // Server not accessible + return ConnectionTestResult.ServerNotAccessible; + default: + return ConnectionTestResult.UnknownError; } } - catch (Exception ex) + catch { - Console.WriteLine($"Connection failed: {ex.Message}"); + // Handle any other exceptions + return ConnectionTestResult.UnknownError; } } } diff --git a/mRemoteNG/Config/Import/PortScanImporter.cs b/mRemoteNG/Config/Import/PortScanImporter.cs index 0021f9aa..3da490d9 100644 --- a/mRemoteNG/Config/Import/PortScanImporter.cs +++ b/mRemoteNG/Config/Import/PortScanImporter.cs @@ -10,14 +10,9 @@ using mRemoteNG.Tools; namespace mRemoteNG.Config.Import { [SupportedOSPlatform("windows")] - public class PortScanImporter : IConnectionImporter> + public class PortScanImporter(ProtocolType targetProtocolType) : IConnectionImporter> { - private readonly ProtocolType _targetProtocolType; - - public PortScanImporter(ProtocolType targetProtocolType) - { - _targetProtocolType = targetProtocolType; - } + private readonly ProtocolType _targetProtocolType = targetProtocolType; public void Import(IEnumerable hosts, ContainerInfo destinationContainer) { diff --git a/mRemoteNG/Config/Putty/PuttySessionChangedEventArgs.cs b/mRemoteNG/Config/Putty/PuttySessionChangedEventArgs.cs index febb5f42..6b32dc06 100644 --- a/mRemoteNG/Config/Putty/PuttySessionChangedEventArgs.cs +++ b/mRemoteNG/Config/Putty/PuttySessionChangedEventArgs.cs @@ -4,13 +4,8 @@ using mRemoteNG.Connection; namespace mRemoteNG.Config.Putty { - public class PuttySessionChangedEventArgs : EventArgs + public class PuttySessionChangedEventArgs(PuttySessionInfo sessionChanged = null) : EventArgs { - public PuttySessionInfo Session { get; set; } - - public PuttySessionChangedEventArgs(PuttySessionInfo sessionChanged = null) - { - Session = sessionChanged; - } + public PuttySessionInfo Session { get; set; } = sessionChanged; } } \ No newline at end of file diff --git a/mRemoteNG/Config/Putty/PuttySessionsManager.cs b/mRemoteNG/Config/Putty/PuttySessionsManager.cs index 0793b30f..42f7b51f 100644 --- a/mRemoteNG/Config/Putty/PuttySessionsManager.cs +++ b/mRemoteNG/Config/Putty/PuttySessionsManager.cs @@ -135,17 +135,17 @@ namespace mRemoteNG.Config.Putty { public static string[] Names => Instance.GetSessionNames(); - public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context) + public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext? context) { return new StandardValuesCollection(Names); } - public override bool GetStandardValuesExclusive(ITypeDescriptorContext context) + public override bool GetStandardValuesExclusive(ITypeDescriptorContext? context) { return true; } - public override bool GetStandardValuesSupported(ITypeDescriptorContext context) + public override bool GetStandardValuesSupported(ITypeDescriptorContext? context) { return true; } diff --git a/mRemoteNG/Config/Serializers/ConnectionSerializers/Sql/DataTableDeserializer.cs b/mRemoteNG/Config/Serializers/ConnectionSerializers/Sql/DataTableDeserializer.cs index ea3d9301..cd726b13 100644 --- a/mRemoteNG/Config/Serializers/ConnectionSerializers/Sql/DataTableDeserializer.cs +++ b/mRemoteNG/Config/Serializers/ConnectionSerializers/Sql/DataTableDeserializer.cs @@ -21,16 +21,10 @@ using mRemoteNG.Tree.Root; namespace mRemoteNG.Config.Serializers.ConnectionSerializers.Sql { [SupportedOSPlatform("windows")] - public class DataTableDeserializer : IDeserializer + public class DataTableDeserializer(ICryptographyProvider cryptographyProvider, SecureString decryptionKey) : IDeserializer { - private readonly ICryptographyProvider _cryptographyProvider; - private readonly SecureString _decryptionKey; - - public DataTableDeserializer(ICryptographyProvider cryptographyProvider, SecureString decryptionKey) - { - _cryptographyProvider = cryptographyProvider.ThrowIfNull(nameof(cryptographyProvider)); - _decryptionKey = decryptionKey.ThrowIfNull(nameof(decryptionKey)); - } + private readonly ICryptographyProvider _cryptographyProvider = cryptographyProvider.ThrowIfNull(nameof(cryptographyProvider)); + private readonly SecureString _decryptionKey = decryptionKey.ThrowIfNull(nameof(decryptionKey)); public ConnectionTreeModel Deserialize(DataTable table) { diff --git a/mRemoteNG/Config/Serializers/ConnectionSerializers/Sql/DataTableSerializer.cs b/mRemoteNG/Config/Serializers/ConnectionSerializers/Sql/DataTableSerializer.cs index 73bff0a1..ea0de756 100644 --- a/mRemoteNG/Config/Serializers/ConnectionSerializers/Sql/DataTableSerializer.cs +++ b/mRemoteNG/Config/Serializers/ConnectionSerializers/Sql/DataTableSerializer.cs @@ -14,27 +14,20 @@ using mRemoteNG.Tree.Root; namespace mRemoteNG.Config.Serializers.ConnectionSerializers.Sql { [SupportedOSPlatform("windows")] - public class DataTableSerializer : ISerializer + public class DataTableSerializer(SaveFilter saveFilter, ICryptographyProvider cryptographyProvider, SecureString encryptionKey) : ISerializer { private const int DELETE = 0; - private readonly ICryptographyProvider _cryptographyProvider; - private readonly SecureString _encryptionKey; + private readonly ICryptographyProvider _cryptographyProvider = cryptographyProvider.ThrowIfNull(nameof(cryptographyProvider)); + private readonly SecureString _encryptionKey = encryptionKey.ThrowIfNull(nameof(encryptionKey)); private DataTable _dataTable; private DataTable _sourceDataTable; private readonly Dictionary _sourcePrimaryKeyDict = []; private const string TABLE_NAME = "tblCons"; - private readonly SaveFilter _saveFilter; + private readonly SaveFilter _saveFilter = saveFilter.ThrowIfNull(nameof(saveFilter)); private int _currentNodeIndex; public Version Version { get; } = new Version(3, 0); - public DataTableSerializer(SaveFilter saveFilter, ICryptographyProvider cryptographyProvider, SecureString encryptionKey) - { - _saveFilter = saveFilter.ThrowIfNull(nameof(saveFilter)); - _cryptographyProvider = cryptographyProvider.ThrowIfNull(nameof(cryptographyProvider)); - _encryptionKey = encryptionKey.ThrowIfNull(nameof(encryptionKey)); - } - public void SetSourceDataTable(DataTable sourceDataTable) { _sourceDataTable = sourceDataTable; diff --git a/mRemoteNG/Config/Serializers/ConnectionSerializers/Xml/XmlConnectionNodeSerializer27.cs b/mRemoteNG/Config/Serializers/ConnectionSerializers/Xml/XmlConnectionNodeSerializer27.cs index af005510..ea413894 100644 --- a/mRemoteNG/Config/Serializers/ConnectionSerializers/Xml/XmlConnectionNodeSerializer27.cs +++ b/mRemoteNG/Config/Serializers/ConnectionSerializers/Xml/XmlConnectionNodeSerializer27.cs @@ -11,23 +11,16 @@ namespace mRemoteNG.Config.Serializers.ConnectionSerializers.Xml { // ReSharper disable once InconsistentNaming [SupportedOSPlatform("windows")] - public class XmlConnectionNodeSerializer27 : ISerializer + public class XmlConnectionNodeSerializer27(ICryptographyProvider cryptographyProvider, + SecureString encryptionKey, + SaveFilter saveFilter) : ISerializer { - private readonly ICryptographyProvider _cryptographyProvider; - private readonly SecureString _encryptionKey; - private readonly SaveFilter _saveFilter; + private readonly ICryptographyProvider _cryptographyProvider = cryptographyProvider ?? throw new ArgumentNullException(nameof(cryptographyProvider)); + private readonly SecureString _encryptionKey = encryptionKey ?? throw new ArgumentNullException(nameof(encryptionKey)); + private readonly SaveFilter _saveFilter = saveFilter ?? throw new ArgumentNullException(nameof(saveFilter)); public Version Version { get; } = new Version(2, 7); - public XmlConnectionNodeSerializer27(ICryptographyProvider cryptographyProvider, - SecureString encryptionKey, - SaveFilter saveFilter) - { - _cryptographyProvider = cryptographyProvider ?? throw new ArgumentNullException(nameof(cryptographyProvider)); - _encryptionKey = encryptionKey ?? throw new ArgumentNullException(nameof(encryptionKey)); - _saveFilter = saveFilter ?? throw new ArgumentNullException(nameof(saveFilter)); - } - public XElement Serialize(ConnectionInfo connectionInfo) { XElement element = new(XName.Get("Node", "")); diff --git a/mRemoteNG/Config/Serializers/ConnectionSerializers/Xml/XmlConnectionNodeSerializer28.cs b/mRemoteNG/Config/Serializers/ConnectionSerializers/Xml/XmlConnectionNodeSerializer28.cs index a8a00265..06bb6124 100644 --- a/mRemoteNG/Config/Serializers/ConnectionSerializers/Xml/XmlConnectionNodeSerializer28.cs +++ b/mRemoteNG/Config/Serializers/ConnectionSerializers/Xml/XmlConnectionNodeSerializer28.cs @@ -11,23 +11,16 @@ namespace mRemoteNG.Config.Serializers.ConnectionSerializers.Xml { // ReSharper disable once InconsistentNaming [SupportedOSPlatform("windows")] - public class XmlConnectionNodeSerializer28 : ISerializer + public class XmlConnectionNodeSerializer28(ICryptographyProvider cryptographyProvider, + SecureString encryptionKey, + SaveFilter saveFilter) : ISerializer { - private readonly ICryptographyProvider _cryptographyProvider; - private readonly SecureString _encryptionKey; - private readonly SaveFilter _saveFilter; + private readonly ICryptographyProvider _cryptographyProvider = cryptographyProvider ?? throw new ArgumentNullException(nameof(cryptographyProvider)); + private readonly SecureString _encryptionKey = encryptionKey ?? throw new ArgumentNullException(nameof(encryptionKey)); + private readonly SaveFilter _saveFilter = saveFilter ?? throw new ArgumentNullException(nameof(saveFilter)); public Version Version { get; } = new Version(2, 8); - public XmlConnectionNodeSerializer28(ICryptographyProvider cryptographyProvider, - SecureString encryptionKey, - SaveFilter saveFilter) - { - _cryptographyProvider = cryptographyProvider ?? throw new ArgumentNullException(nameof(cryptographyProvider)); - _encryptionKey = encryptionKey ?? throw new ArgumentNullException(nameof(encryptionKey)); - _saveFilter = saveFilter ?? throw new ArgumentNullException(nameof(saveFilter)); - } - public XElement Serialize(ConnectionInfo connectionInfo) { XElement element = new(XName.Get("Node", "")); diff --git a/mRemoteNG/Config/Serializers/ConnectionSerializers/Xml/XmlConnectionsDocumentCompiler.cs b/mRemoteNG/Config/Serializers/ConnectionSerializers/Xml/XmlConnectionsDocumentCompiler.cs index 1444ee8e..a5faf0c2 100644 --- a/mRemoteNG/Config/Serializers/ConnectionSerializers/Xml/XmlConnectionsDocumentCompiler.cs +++ b/mRemoteNG/Config/Serializers/ConnectionSerializers/Xml/XmlConnectionsDocumentCompiler.cs @@ -12,17 +12,11 @@ using mRemoteNG.Tree.Root; namespace mRemoteNG.Config.Serializers.ConnectionSerializers.Xml { [SupportedOSPlatform("windows")] - public class XmlConnectionsDocumentCompiler + public class XmlConnectionsDocumentCompiler(ICryptographyProvider cryptographyProvider, ISerializer connectionNodeSerializer) { - private readonly ICryptographyProvider _cryptographyProvider; + private readonly ICryptographyProvider _cryptographyProvider = cryptographyProvider ?? throw new ArgumentNullException(nameof(cryptographyProvider)); private SecureString _encryptionKey; - private readonly ISerializer _connectionNodeSerializer; - - public XmlConnectionsDocumentCompiler(ICryptographyProvider cryptographyProvider, ISerializer connectionNodeSerializer) - { - _cryptographyProvider = cryptographyProvider ?? throw new ArgumentNullException(nameof(cryptographyProvider)); - _connectionNodeSerializer = connectionNodeSerializer ?? throw new ArgumentNullException(nameof(connectionNodeSerializer)); - } + private readonly ISerializer _connectionNodeSerializer = connectionNodeSerializer ?? throw new ArgumentNullException(nameof(connectionNodeSerializer)); public XDocument CompileDocument(ConnectionTreeModel connectionTreeModel, bool fullFileEncryption) { diff --git a/mRemoteNG/Config/Serializers/ConnectionSerializers/Xml/XmlConnectionsDocumentEncryptor.cs b/mRemoteNG/Config/Serializers/ConnectionSerializers/Xml/XmlConnectionsDocumentEncryptor.cs index fbdcab1a..bd343546 100644 --- a/mRemoteNG/Config/Serializers/ConnectionSerializers/Xml/XmlConnectionsDocumentEncryptor.cs +++ b/mRemoteNG/Config/Serializers/ConnectionSerializers/Xml/XmlConnectionsDocumentEncryptor.cs @@ -4,14 +4,9 @@ using mRemoteNG.Security; namespace mRemoteNG.Config.Serializers.ConnectionSerializers.Xml { - public class XmlConnectionsDocumentEncryptor + public class XmlConnectionsDocumentEncryptor(ICryptographyProvider cryptographyProvider) { - private readonly ICryptographyProvider _cryptographyProvider; - - public XmlConnectionsDocumentEncryptor(ICryptographyProvider cryptographyProvider) - { - _cryptographyProvider = cryptographyProvider; - } + private readonly ICryptographyProvider _cryptographyProvider = cryptographyProvider; public XDocument EncryptDocument(XDocument documentToEncrypt, SecureString encryptionKey) { diff --git a/mRemoteNG/Config/Serializers/ConnectionSerializers/Xml/XmlConnectionsSerializer.cs b/mRemoteNG/Config/Serializers/ConnectionSerializers/Xml/XmlConnectionsSerializer.cs index 7823e091..0ce8ff83 100644 --- a/mRemoteNG/Config/Serializers/ConnectionSerializers/Xml/XmlConnectionsSerializer.cs +++ b/mRemoteNG/Config/Serializers/ConnectionSerializers/Xml/XmlConnectionsSerializer.cs @@ -14,22 +14,16 @@ using mRemoteNG.Tree.Root; namespace mRemoteNG.Config.Serializers.ConnectionSerializers.Xml { [SupportedOSPlatform("windows")] - public class XmlConnectionsSerializer : ISerializer, + public class XmlConnectionsSerializer(ICryptographyProvider cryptographyProvider, + ISerializer connectionNodeSerializer) : ISerializer, ISerializer { - private readonly ICryptographyProvider _cryptographyProvider; - private readonly ISerializer _connectionNodeSerializer; + private readonly ICryptographyProvider _cryptographyProvider = cryptographyProvider; + private readonly ISerializer _connectionNodeSerializer = connectionNodeSerializer; public Version Version => _connectionNodeSerializer.Version; public bool UseFullEncryption { get; set; } - public XmlConnectionsSerializer(ICryptographyProvider cryptographyProvider, - ISerializer connectionNodeSerializer) - { - _cryptographyProvider = cryptographyProvider; - _connectionNodeSerializer = connectionNodeSerializer; - } - public string Serialize(ConnectionTreeModel connectionTreeModel) { RootNodeInfo rootNode = (RootNodeInfo)connectionTreeModel.RootNodes.First(node => node is RootNodeInfo); diff --git a/mRemoteNG/Config/Serializers/MiscSerializers/ActiveDirectoryDeserializer.cs b/mRemoteNG/Config/Serializers/MiscSerializers/ActiveDirectoryDeserializer.cs index d7d53824..f9ec3e7b 100644 --- a/mRemoteNG/Config/Serializers/MiscSerializers/ActiveDirectoryDeserializer.cs +++ b/mRemoteNG/Config/Serializers/MiscSerializers/ActiveDirectoryDeserializer.cs @@ -15,16 +15,10 @@ using System.Runtime.Versioning; namespace mRemoteNG.Config.Serializers.MiscSerializers { [SupportedOSPlatform("windows")] - public class ActiveDirectoryDeserializer + public class ActiveDirectoryDeserializer(string ldapPath, bool importSubOu) { - private readonly string _ldapPath; - private readonly bool _importSubOu; - - public ActiveDirectoryDeserializer(string ldapPath, bool importSubOu) - { - _ldapPath = ldapPath.ThrowIfNullOrEmpty(nameof(ldapPath)); - _importSubOu = importSubOu; - } + private readonly string _ldapPath = ldapPath.ThrowIfNullOrEmpty(nameof(ldapPath)); + private readonly bool _importSubOu = importSubOu; public ConnectionTreeModel Deserialize() { diff --git a/mRemoteNG/Config/Serializers/MiscSerializers/PortScanDeserializer.cs b/mRemoteNG/Config/Serializers/MiscSerializers/PortScanDeserializer.cs index 2fce4105..f80081b8 100644 --- a/mRemoteNG/Config/Serializers/MiscSerializers/PortScanDeserializer.cs +++ b/mRemoteNG/Config/Serializers/MiscSerializers/PortScanDeserializer.cs @@ -10,14 +10,9 @@ using mRemoteNG.Tree.Root; namespace mRemoteNG.Config.Serializers.MiscSerializers { [SupportedOSPlatform("windows")] - public class PortScanDeserializer : IDeserializer, ConnectionTreeModel> + public class PortScanDeserializer(ProtocolType targetProtocolType) : IDeserializer, ConnectionTreeModel> { - private readonly ProtocolType _targetProtocolType; - - public PortScanDeserializer(ProtocolType targetProtocolType) - { - _targetProtocolType = targetProtocolType; - } + private readonly ProtocolType _targetProtocolType = targetProtocolType; public ConnectionTreeModel Deserialize(IEnumerable scannedHosts) { diff --git a/mRemoteNG/Config/Serializers/Versioning/SqlDatabaseVersionVerifier.cs b/mRemoteNG/Config/Serializers/Versioning/SqlDatabaseVersionVerifier.cs index 8d883fc4..aa10a314 100644 --- a/mRemoteNG/Config/Serializers/Versioning/SqlDatabaseVersionVerifier.cs +++ b/mRemoteNG/Config/Serializers/Versioning/SqlDatabaseVersionVerifier.cs @@ -9,16 +9,11 @@ using System.Runtime.Versioning; namespace mRemoteNG.Config.Serializers.Versioning { [SupportedOSPlatform("windows")] - public class SqlDatabaseVersionVerifier + public class SqlDatabaseVersionVerifier(IDatabaseConnector databaseConnector) { private readonly Version _currentSupportedVersion = new(3, 0); - private readonly IDatabaseConnector _databaseConnector; - - public SqlDatabaseVersionVerifier(IDatabaseConnector databaseConnector) - { - _databaseConnector = databaseConnector ?? throw new ArgumentNullException(nameof(databaseConnector)); - } + private readonly IDatabaseConnector _databaseConnector = databaseConnector ?? throw new ArgumentNullException(nameof(databaseConnector)); public bool VerifyDatabaseVersion(Version dbVersion) { diff --git a/mRemoteNG/Config/Serializers/Versioning/SqlVersion22To23Upgrader.cs b/mRemoteNG/Config/Serializers/Versioning/SqlVersion22To23Upgrader.cs index c161ab96..02e02abf 100644 --- a/mRemoteNG/Config/Serializers/Versioning/SqlVersion22To23Upgrader.cs +++ b/mRemoteNG/Config/Serializers/Versioning/SqlVersion22To23Upgrader.cs @@ -7,14 +7,9 @@ using System.Runtime.Versioning; namespace mRemoteNG.Config.Serializers.Versioning { [SupportedOSPlatform("windows")] - public class SqlVersion22To23Upgrader : IVersionUpgrader + public class SqlVersion22To23Upgrader(IDatabaseConnector databaseConnector) : IVersionUpgrader { - private readonly IDatabaseConnector _databaseConnector; - - public SqlVersion22To23Upgrader(IDatabaseConnector databaseConnector) - { - _databaseConnector = databaseConnector ?? throw new ArgumentNullException(nameof(databaseConnector)); - } + private readonly IDatabaseConnector _databaseConnector = databaseConnector ?? throw new ArgumentNullException(nameof(databaseConnector)); public bool CanUpgrade(Version currentVersion) { diff --git a/mRemoteNG/Config/Serializers/Versioning/SqlVersion23To24Upgrader.cs b/mRemoteNG/Config/Serializers/Versioning/SqlVersion23To24Upgrader.cs index ea4e5be2..ed150f3d 100644 --- a/mRemoteNG/Config/Serializers/Versioning/SqlVersion23To24Upgrader.cs +++ b/mRemoteNG/Config/Serializers/Versioning/SqlVersion23To24Upgrader.cs @@ -7,14 +7,9 @@ using System.Runtime.Versioning; namespace mRemoteNG.Config.Serializers.Versioning { [SupportedOSPlatform("windows")] - public class SqlVersion23To24Upgrader : IVersionUpgrader + public class SqlVersion23To24Upgrader(IDatabaseConnector databaseConnector) : IVersionUpgrader { - private readonly IDatabaseConnector _databaseConnector; - - public SqlVersion23To24Upgrader(IDatabaseConnector databaseConnector) - { - _databaseConnector = databaseConnector ?? throw new ArgumentNullException(nameof(databaseConnector)); - } + private readonly IDatabaseConnector _databaseConnector = databaseConnector ?? throw new ArgumentNullException(nameof(databaseConnector)); public bool CanUpgrade(Version currentVersion) { diff --git a/mRemoteNG/Config/Serializers/Versioning/SqlVersion24To25Upgrader.cs b/mRemoteNG/Config/Serializers/Versioning/SqlVersion24To25Upgrader.cs index e4de34c1..9c9a9462 100644 --- a/mRemoteNG/Config/Serializers/Versioning/SqlVersion24To25Upgrader.cs +++ b/mRemoteNG/Config/Serializers/Versioning/SqlVersion24To25Upgrader.cs @@ -7,14 +7,9 @@ using System.Runtime.Versioning; namespace mRemoteNG.Config.Serializers.Versioning { [SupportedOSPlatform("windows")] - public class SqlVersion24To25Upgrader : IVersionUpgrader + public class SqlVersion24To25Upgrader(IDatabaseConnector databaseConnector) : IVersionUpgrader { - private readonly IDatabaseConnector _databaseConnector; - - public SqlVersion24To25Upgrader(IDatabaseConnector databaseConnector) - { - _databaseConnector = databaseConnector ?? throw new ArgumentNullException(nameof(databaseConnector)); - } + private readonly IDatabaseConnector _databaseConnector = databaseConnector ?? throw new ArgumentNullException(nameof(databaseConnector)); public bool CanUpgrade(Version currentVersion) { diff --git a/mRemoteNG/Config/Serializers/Versioning/SqlVersion25To26Upgrader.cs b/mRemoteNG/Config/Serializers/Versioning/SqlVersion25To26Upgrader.cs index 59af6903..1d28d7a6 100644 --- a/mRemoteNG/Config/Serializers/Versioning/SqlVersion25To26Upgrader.cs +++ b/mRemoteNG/Config/Serializers/Versioning/SqlVersion25To26Upgrader.cs @@ -7,14 +7,9 @@ using System.Runtime.Versioning; namespace mRemoteNG.Config.Serializers.Versioning { [SupportedOSPlatform("windows")] - public class SqlVersion25To26Upgrader : IVersionUpgrader + public class SqlVersion25To26Upgrader(IDatabaseConnector databaseConnector) : IVersionUpgrader { - private readonly IDatabaseConnector _databaseConnector; - - public SqlVersion25To26Upgrader(IDatabaseConnector databaseConnector) - { - _databaseConnector = databaseConnector ?? throw new ArgumentNullException(nameof(databaseConnector)); - } + private readonly IDatabaseConnector _databaseConnector = databaseConnector ?? throw new ArgumentNullException(nameof(databaseConnector)); public bool CanUpgrade(Version currentVersion) { diff --git a/mRemoteNG/Config/Serializers/Versioning/SqlVersion26To27Upgrader.cs b/mRemoteNG/Config/Serializers/Versioning/SqlVersion26To27Upgrader.cs index acbc3f92..af2bfb4d 100644 --- a/mRemoteNG/Config/Serializers/Versioning/SqlVersion26To27Upgrader.cs +++ b/mRemoteNG/Config/Serializers/Versioning/SqlVersion26To27Upgrader.cs @@ -8,14 +8,9 @@ using System.Runtime.Versioning; namespace mRemoteNG.Config.Serializers.Versioning { [SupportedOSPlatform("windows")] - public class SqlVersion26To27Upgrader : IVersionUpgrader + public class SqlVersion26To27Upgrader(IDatabaseConnector databaseConnector) : IVersionUpgrader { - private readonly IDatabaseConnector _databaseConnector; - - public SqlVersion26To27Upgrader(IDatabaseConnector databaseConnector) - { - _databaseConnector = databaseConnector ?? throw new ArgumentNullException(nameof(databaseConnector)); - } + private readonly IDatabaseConnector _databaseConnector = databaseConnector ?? throw new ArgumentNullException(nameof(databaseConnector)); public bool CanUpgrade(Version currentVersion) { diff --git a/mRemoteNG/Config/Serializers/Versioning/SqlVersion27To28Upgrader.cs b/mRemoteNG/Config/Serializers/Versioning/SqlVersion27To28Upgrader.cs index dd2a838e..dc5d817e 100644 --- a/mRemoteNG/Config/Serializers/Versioning/SqlVersion27To28Upgrader.cs +++ b/mRemoteNG/Config/Serializers/Versioning/SqlVersion27To28Upgrader.cs @@ -9,14 +9,9 @@ using System.Runtime.Versioning; namespace mRemoteNG.Config.Serializers.Versioning { [SupportedOSPlatform("windows")] - public class SqlVersion27To28Upgrader : IVersionUpgrader + public class SqlVersion27To28Upgrader(IDatabaseConnector databaseConnector) : IVersionUpgrader { - private readonly IDatabaseConnector _databaseConnector; - - public SqlVersion27To28Upgrader(IDatabaseConnector databaseConnector) - { - _databaseConnector = databaseConnector ?? throw new ArgumentNullException(nameof(databaseConnector)); - } + private readonly IDatabaseConnector _databaseConnector = databaseConnector ?? throw new ArgumentNullException(nameof(databaseConnector)); public bool CanUpgrade(Version currentVersion) { diff --git a/mRemoteNG/Config/Serializers/Versioning/SqlVersion28To29Upgrader.cs b/mRemoteNG/Config/Serializers/Versioning/SqlVersion28To29Upgrader.cs index 32eae44b..50a1ba00 100644 --- a/mRemoteNG/Config/Serializers/Versioning/SqlVersion28To29Upgrader.cs +++ b/mRemoteNG/Config/Serializers/Versioning/SqlVersion28To29Upgrader.cs @@ -8,15 +8,10 @@ using System.Runtime.Versioning; namespace mRemoteNG.Config.Serializers.Versioning { [SupportedOSPlatform("windows")] - public class SqlVersion28To29Upgrader : IVersionUpgrader + public class SqlVersion28To29Upgrader(IDatabaseConnector databaseConnector) : IVersionUpgrader { private readonly Version _version = new(2, 9); - private readonly IDatabaseConnector _databaseConnector; - - public SqlVersion28To29Upgrader(IDatabaseConnector databaseConnector) - { - _databaseConnector = databaseConnector ?? throw new ArgumentNullException(nameof(databaseConnector)); - } + private readonly IDatabaseConnector _databaseConnector = databaseConnector ?? throw new ArgumentNullException(nameof(databaseConnector)); public bool CanUpgrade(Version currentVersion) { diff --git a/mRemoteNG/Config/Serializers/Versioning/SqlVersion29To30Upgrader.cs b/mRemoteNG/Config/Serializers/Versioning/SqlVersion29To30Upgrader.cs index 185fb08a..534a627f 100644 --- a/mRemoteNG/Config/Serializers/Versioning/SqlVersion29To30Upgrader.cs +++ b/mRemoteNG/Config/Serializers/Versioning/SqlVersion29To30Upgrader.cs @@ -8,15 +8,10 @@ using System.Runtime.Versioning; namespace mRemoteNG.Config.Serializers.Versioning { [SupportedOSPlatform("windows")] - public class SqlVersion29To30Upgrader : IVersionUpgrader + public class SqlVersion29To30Upgrader(IDatabaseConnector databaseConnector) : IVersionUpgrader { private readonly Version _version = new(3, 0); - private readonly IDatabaseConnector _databaseConnector; - - public SqlVersion29To30Upgrader(IDatabaseConnector databaseConnector) - { - _databaseConnector = databaseConnector ?? throw new ArgumentNullException(nameof(databaseConnector)); - } + private readonly IDatabaseConnector _databaseConnector = databaseConnector ?? throw new ArgumentNullException(nameof(databaseConnector)); public bool CanUpgrade(Version currentVersion) { diff --git a/mRemoteNG/Config/Settings/Providers/PortableSettingsProvider.cs b/mRemoteNG/Config/Settings/Providers/PortableSettingsProvider.cs index ec29bf76..bd0a64cb 100644 --- a/mRemoteNG/Config/Settings/Providers/PortableSettingsProvider.cs +++ b/mRemoteNG/Config/Settings/Providers/PortableSettingsProvider.cs @@ -1,4 +1,4 @@ -// The MIT License (MIT) +// The MIT License (MIT) // // Copyright(c) crdx // diff --git a/mRemoteNG/Connection/AbstractConnectionRecord.cs b/mRemoteNG/Connection/AbstractConnectionRecord.cs index da933afb..8d80602c 100644 --- a/mRemoteNG/Connection/AbstractConnectionRecord.cs +++ b/mRemoteNG/Connection/AbstractConnectionRecord.cs @@ -14,7 +14,7 @@ using System.Security; namespace mRemoteNG.Connection { [SupportedOSPlatform("windows")] - public abstract class AbstractConnectionRecord : INotifyPropertyChanged + public abstract class AbstractConnectionRecord(string uniqueId) : INotifyPropertyChanged { #region Fields @@ -829,7 +829,7 @@ namespace mRemoteNG.Connection #region Misc - [Browsable(false)] public string ConstantID { get; } + [Browsable(false)] public string ConstantID { get; } = uniqueId.ThrowIfNullOrEmpty(nameof(uniqueId)); [LocalizedAttributes.LocalizedCategory(nameof(Language.Miscellaneous), 7), LocalizedAttributes.LocalizedDisplayName(nameof(Language.ExternalToolBefore)), @@ -1032,20 +1032,14 @@ namespace mRemoteNG.Connection } #endregion - #endregion - protected AbstractConnectionRecord(string uniqueId) - { - ConstantID = uniqueId.ThrowIfNullOrEmpty(nameof(uniqueId)); - } - protected virtual TPropertyType GetPropertyValue(string propertyName, TPropertyType value) { return (TPropertyType)GetType().GetProperty(propertyName)?.GetValue(this, null); } - public event PropertyChangedEventHandler PropertyChanged; + public event PropertyChangedEventHandler? PropertyChanged; protected virtual void RaisePropertyChangedEvent(object sender, PropertyChangedEventArgs args) { diff --git a/mRemoteNG/Connection/ConnectionIcon.cs b/mRemoteNG/Connection/ConnectionIcon.cs index 9d41e738..540f6c1f 100644 --- a/mRemoteNG/Connection/ConnectionIcon.cs +++ b/mRemoteNG/Connection/ConnectionIcon.cs @@ -12,22 +12,22 @@ namespace mRemoteNG.Connection { public static string[] Icons = { }; - public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context) + public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext? context) { return new StandardValuesCollection(Icons); } - public override bool GetStandardValuesExclusive(ITypeDescriptorContext context) + public override bool GetStandardValuesExclusive(ITypeDescriptorContext? context) { return true; } - public override bool GetStandardValuesSupported(ITypeDescriptorContext context) + public override bool GetStandardValuesSupported(ITypeDescriptorContext? context) { return true; } - public static System.Drawing.Icon FromString(string iconName) + public static System.Drawing.Icon? FromString(string iconName) { try { @@ -41,7 +41,7 @@ namespace mRemoteNG.Connection } catch (Exception ex) { - Runtime.MessageCollector.AddMessage(Messages.MessageClass.ErrorMsg, $"Couldn\'t get Icon from String" + Environment.NewLine + ex.Message); + Runtime.MessageCollector.AddMessage(Messages.MessageClass.ErrorMsg, $"Couldn't get Icon from String" + Environment.NewLine + ex.Message); } return null; diff --git a/mRemoteNG/Connection/ConnectionInfoComparer.cs b/mRemoteNG/Connection/ConnectionInfoComparer.cs index 8c6a4a17..503d929d 100644 --- a/mRemoteNG/Connection/ConnectionInfoComparer.cs +++ b/mRemoteNG/Connection/ConnectionInfoComparer.cs @@ -6,18 +6,17 @@ using System.Runtime.Versioning; namespace mRemoteNG.Connection { [SupportedOSPlatform("windows")] - public class ConnectionInfoComparer : IComparer where TProperty : IComparable + public class ConnectionInfoComparer(Func sortExpression) : IComparer where TProperty : IComparable { - private readonly Func _sortExpression; + private readonly Func _sortExpression = sortExpression; public ListSortDirection SortDirection { get; set; } = ListSortDirection.Ascending; - public ConnectionInfoComparer(Func sortExpression) + public int Compare(ConnectionInfo? x, ConnectionInfo? y) { - _sortExpression = sortExpression; - } + if (x == null && y == null) return 0; + if (x == null) return SortDirection == ListSortDirection.Ascending ? -1 : 1; + if (y == null) return SortDirection == ListSortDirection.Ascending ? 1 : -1; - public int Compare(ConnectionInfo x, ConnectionInfo y) - { return SortDirection == ListSortDirection.Ascending ? CompareAscending(x, y) : CompareDescending(x, y); } diff --git a/mRemoteNG/Connection/ConnectionsService.cs b/mRemoteNG/Connection/ConnectionsService.cs index 58dd2ca9..137a5192 100644 --- a/mRemoteNG/Connection/ConnectionsService.cs +++ b/mRemoteNG/Connection/ConnectionsService.cs @@ -23,12 +23,12 @@ using mRemoteNG.Config.Serializers.ConnectionSerializers.Sql; namespace mRemoteNG.Connection { [SupportedOSPlatform("windows")] - public class ConnectionsService + public class ConnectionsService(PuttySessionsManager puttySessionsManager) { private static readonly object SaveLock = new(); - private readonly PuttySessionsManager _puttySessionsManager; - private readonly IDataProvider _localConnectionPropertiesDataProvider; - private readonly LocalConnectionPropertiesXmlSerializer _localConnectionPropertiesSerializer; + private readonly PuttySessionsManager _puttySessionsManager = puttySessionsManager ?? throw new ArgumentNullException(nameof(puttySessionsManager)); + private readonly IDataProvider _localConnectionPropertiesDataProvider = new FileDataProvider(Path.Combine(SettingsFileInfo.SettingsPath, SettingsFileInfo.LocalConnectionProperties)); + private readonly LocalConnectionPropertiesXmlSerializer _localConnectionPropertiesSerializer = new LocalConnectionPropertiesXmlSerializer(); private bool _batchingSaves = false; private bool _saveRequested = false; private bool _saveAsyncRequested = false; @@ -42,13 +42,6 @@ namespace mRemoteNG.Connection public ConnectionTreeModel ConnectionTreeModel { get; private set; } - public ConnectionsService(PuttySessionsManager puttySessionsManager) - { - _puttySessionsManager = puttySessionsManager ?? throw new ArgumentNullException(nameof(puttySessionsManager)); - _localConnectionPropertiesDataProvider = new FileDataProvider(Path.Combine(SettingsFileInfo.SettingsPath, SettingsFileInfo.LocalConnectionProperties)); - _localConnectionPropertiesSerializer = new LocalConnectionPropertiesXmlSerializer(); - } - public void NewConnectionsFile(string filename) { try diff --git a/mRemoteNG/Connection/InterfaceControl.Designer.cs b/mRemoteNG/Connection/InterfaceControl.Designer.cs index 440fdce4..27f65266 100644 --- a/mRemoteNG/Connection/InterfaceControl.Designer.cs +++ b/mRemoteNG/Connection/InterfaceControl.Designer.cs @@ -1,4 +1,4 @@ -namespace mRemoteNG.Connection +namespace mRemoteNG.Connection { public sealed partial class InterfaceControl : System.Windows.Forms.Panel { @@ -21,14 +21,11 @@ namespace mRemoteNG.Connection //Required by the Windows Form Designer private System.ComponentModel.Container components = null; - - //NOTE: The following procedure is required by the Windows Form Designer - //It can be modified using the Windows Form Designer. - //Do not modify it using the code editor. - [System.Diagnostics.DebuggerStepThrough()] - private void InitializeComponent() - { - components = new System.ComponentModel.Container(); - } - } + + //NOTE: The following procedure is required by the Windows Form Designer + //It can be modified using the Windows Form Designer. + //Do not modify it using the code editor. + [System.Diagnostics.DebuggerStepThrough()] + private void InitializeComponent() => components = new System.ComponentModel.Container(); + } } diff --git a/mRemoteNG/Connection/Protocol/ProtocolList.cs b/mRemoteNG/Connection/Protocol/ProtocolList.cs index 4b49eedc..a076cf96 100644 --- a/mRemoteNG/Connection/Protocol/ProtocolList.cs +++ b/mRemoteNG/Connection/Protocol/ProtocolList.cs @@ -1,11 +1,13 @@ using System; using System.Collections; using System.Collections.Specialized; +using System.Runtime.Versioning; // ReSharper disable ArrangeAccessorOwnerBody namespace mRemoteNG.Connection.Protocol { + [SupportedOSPlatform("windows")] public class ProtocolList : CollectionBase, INotifyCollectionChanged { public ProtocolBase this[object index] @@ -23,7 +25,6 @@ namespace mRemoteNG.Connection.Protocol public new int Count => List.Count; - public void Add(ProtocolBase cProt) { List.Add(cProt); @@ -64,7 +65,7 @@ namespace mRemoteNG.Connection.Protocol RaiseCollectionChangedEvent(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); } - public event NotifyCollectionChangedEventHandler CollectionChanged; + public event NotifyCollectionChangedEventHandler? CollectionChanged; // Fix for CS8612: Declare the event as nullable to match the interface. private void RaiseCollectionChangedEvent(object sender, NotifyCollectionChangedEventArgs args) { diff --git a/mRemoteNG/Connection/PuttySessionInfo.cs b/mRemoteNG/Connection/PuttySessionInfo.cs index a8ce07d9..d5443d8d 100644 --- a/mRemoteNG/Connection/PuttySessionInfo.cs +++ b/mRemoteNG/Connection/PuttySessionInfo.cs @@ -19,11 +19,11 @@ namespace mRemoteNG.Connection [Browsable(false)] public RootPuttySessionsNodeInfo RootRootPuttySessionsInfo { get; set; } - [ReadOnly(true)] public override string PuttySession { get; set; } + [ReadOnly(true)] public override string PuttySession { get; set; } = string.Empty; - [ReadOnly(true)] public override string Name { get; set; } + [ReadOnly(true)] public override string Name { get; set; } = string.Empty; - [ReadOnly(true), Browsable(false)] public override string Description { get; set; } + [ReadOnly(true), Browsable(false)] public override string Description { get; set; } = string.Empty; [ReadOnly(true), Browsable(false)] public override string Icon @@ -39,24 +39,24 @@ namespace mRemoteNG.Connection set { } } - [ReadOnly(true)] public override string Hostname { get; set; } + [ReadOnly(true)] public override string Hostname { get; set; } = string.Empty; - [ReadOnly(true)] public override string Username { get; set; } + [ReadOnly(true)] public override string Username { get; set; } = string.Empty; //[ReadOnly(true), Browsable(false)] public override SecureString Password { get; set; } - [ReadOnly(true), Browsable(false)] public override string Password { get; set; } + [ReadOnly(true), Browsable(false)] public override string Password { get; set; } = string.Empty; [ReadOnly(true)] public override ProtocolType Protocol { get; set; } [ReadOnly(true)] public override int Port { get; set; } - [ReadOnly(true), Browsable(false)] public override string PreExtApp { get; set; } + [ReadOnly(true), Browsable(false)] public override string PreExtApp { get; set; } = string.Empty; - [ReadOnly(true), Browsable(false)] public override string PostExtApp { get; set; } + [ReadOnly(true), Browsable(false)] public override string PostExtApp { get; set; } = string.Empty; - [ReadOnly(true), Browsable(false)] public override string MacAddress { get; set; } + [ReadOnly(true), Browsable(false)] public override string MacAddress { get; set; } = string.Empty; - [ReadOnly(true), Browsable(false)] public override string UserField { get; set; } + [ReadOnly(true), Browsable(false)] public override string UserField { get; set; } = string.Empty; #endregion diff --git a/mRemoteNG/Container/ContainerInfo.cs b/mRemoteNG/Container/ContainerInfo.cs index 5ed0f2a8..5edeffbf 100644 --- a/mRemoteNG/Container/ContainerInfo.cs +++ b/mRemoteNG/Container/ContainerInfo.cs @@ -313,7 +313,7 @@ namespace mRemoteNG.Container childAsContainer.CollectionChanged -= RaiseCollectionChangedEvent; } - public event NotifyCollectionChangedEventHandler CollectionChanged; + public event NotifyCollectionChangedEventHandler? CollectionChanged; private void RaiseCollectionChangedEvent(object sender, NotifyCollectionChangedEventArgs args) { diff --git a/mRemoteNG/Credential/CredentialDomainUserComparer.cs b/mRemoteNG/Credential/CredentialDomainUserComparer.cs index 436b3687..1d92ec25 100644 --- a/mRemoteNG/Credential/CredentialDomainUserComparer.cs +++ b/mRemoteNG/Credential/CredentialDomainUserComparer.cs @@ -1,18 +1,24 @@ using System.Collections; using System.Collections.Generic; +using System.Runtime.Versioning; namespace mRemoteNG.Credential { + [SupportedOSPlatform("windows")] public class CredentialDomainUserComparer : IComparer, IEqualityComparer { - public int Compare(ICredentialRecord x, ICredentialRecord y) + public int Compare(ICredentialRecord? x, ICredentialRecord? y) { + if (x == null && y == null) return 0; + if (x == null) return -1; + if (y == null) return 1; + CaseInsensitiveComparer comparer = new(); return comparer.Compare($"{x.Domain}\\{x.Username}", $"{y.Domain}\\{y.Username}"); } - public bool Equals(ICredentialRecord x, ICredentialRecord y) + public bool Equals(ICredentialRecord? x, ICredentialRecord? y) { return Compare(x, y) == 0; } diff --git a/mRemoteNG/Credential/CredentialRecord.cs b/mRemoteNG/Credential/CredentialRecord.cs index 60773ba0..7ad8dfbc 100644 --- a/mRemoteNG/Credential/CredentialRecord.cs +++ b/mRemoteNG/Credential/CredentialRecord.cs @@ -76,7 +76,7 @@ namespace mRemoteNG.Credential return Title; } - public event PropertyChangedEventHandler PropertyChanged; + public event PropertyChangedEventHandler? PropertyChanged; protected virtual void RaisePropertyChangedEvent(string propertyName) { diff --git a/mRemoteNG/Credential/CredentialRecordTypeConverter.cs b/mRemoteNG/Credential/CredentialRecordTypeConverter.cs index 50d32b2b..f78a5c77 100644 --- a/mRemoteNG/Credential/CredentialRecordTypeConverter.cs +++ b/mRemoteNG/Credential/CredentialRecordTypeConverter.cs @@ -11,17 +11,12 @@ namespace mRemoteNG.Credential [SupportedOSPlatform("windows")] public class CredentialRecordTypeConverter : TypeConverter { - public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) + public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) { return sourceType == typeof(Guid) || base.CanConvertFrom(context, sourceType); } - public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) - { - return destinationType == typeof(Guid) || destinationType == typeof(ICredentialRecord) || base.CanConvertTo(context, destinationType); - } - - public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) + public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) { if (value is ICredentialRecord && destinationType == typeof(Guid)) return ((ICredentialRecord)value).Id; @@ -30,7 +25,7 @@ namespace mRemoteNG.Credential return base.ConvertTo(context, culture, value, destinationType); } - public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) + public override object ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) { if (!(value is Guid)) return base.ConvertFrom(context, culture, value); ICredentialRecord[] matchedCredentials = Runtime.CredentialProviderCatalog.GetCredentialRecords() diff --git a/mRemoteNG/Credential/PlaceholderCredentialRecord.cs b/mRemoteNG/Credential/PlaceholderCredentialRecord.cs index 18d5eb2c..622c2690 100644 --- a/mRemoteNG/Credential/PlaceholderCredentialRecord.cs +++ b/mRemoteNG/Credential/PlaceholderCredentialRecord.cs @@ -11,7 +11,7 @@ namespace mRemoteNG.Credential [SupportedOSPlatform("windows")] public class PlaceholderCredentialRecord(IEnumerable id) : ICredentialRecord { - public event PropertyChangedEventHandler PropertyChanged; + public event PropertyChangedEventHandler? PropertyChanged; public Guid Id { get; } = id.FirstOrDefault(); diff --git a/mRemoteNG/Credential/Repositories/CredentialRepositoryConfig.cs b/mRemoteNG/Credential/Repositories/CredentialRepositoryConfig.cs index c4981b39..cca697c0 100644 --- a/mRemoteNG/Credential/Repositories/CredentialRepositoryConfig.cs +++ b/mRemoteNG/Credential/Repositories/CredentialRepositoryConfig.cs @@ -4,7 +4,7 @@ using System.Security; namespace mRemoteNG.Credential.Repositories { - public class CredentialRepositoryConfig : ICredentialRepositoryConfig + public class CredentialRepositoryConfig(Guid id) : ICredentialRepositoryConfig { private string _title = "New Credential Repository"; private string _source = ""; @@ -12,7 +12,7 @@ namespace mRemoteNG.Credential.Repositories private string _typeName = ""; private bool _loaded; - public Guid Id { get; } + public Guid Id { get; } = id; public string Title { @@ -68,12 +68,7 @@ namespace mRemoteNG.Credential.Repositories { } - public CredentialRepositoryConfig(Guid id) - { - Id = id; - } - - public event PropertyChangedEventHandler PropertyChanged; + public event PropertyChangedEventHandler? PropertyChanged; protected virtual void RaisePropertyChangedEvent(string propertyName) { diff --git a/mRemoteNG/Messages/Message.cs b/mRemoteNG/Messages/Message.cs index 5888e579..b0453aa2 100644 --- a/mRemoteNG/Messages/Message.cs +++ b/mRemoteNG/Messages/Message.cs @@ -1,20 +1,12 @@ -using System; +using System; namespace mRemoteNG.Messages { - public class Message : IMessage + public class Message(MessageClass messageClass, string messageText, bool onlyLog = false) : IMessage { - public MessageClass Class { get; set; } - public string Text { get; set; } - public DateTime Date { get; set; } - public bool OnlyLog { get; set; } - - public Message(MessageClass messageClass, string messageText, bool onlyLog = false) - { - Class = messageClass; - Text = messageText; - Date = DateTime.Now; - OnlyLog = onlyLog; - } + public MessageClass Class { get; set; } = messageClass; + public string Text { get; set; } = messageText; + public DateTime Date { get; set; } = DateTime.Now; + public bool OnlyLog { get; set; } = onlyLog; } } \ No newline at end of file diff --git a/mRemoteNG/Messages/MessageCollector.cs b/mRemoteNG/Messages/MessageCollector.cs index 488f4b39..3c3066f8 100644 --- a/mRemoteNG/Messages/MessageCollector.cs +++ b/mRemoteNG/Messages/MessageCollector.cs @@ -63,7 +63,7 @@ namespace mRemoteNG.Messages _messageList.Clear(); } - public event NotifyCollectionChangedEventHandler CollectionChanged; + public event NotifyCollectionChangedEventHandler? CollectionChanged; private void RaiseCollectionChangedEvent(NotifyCollectionChangedAction action, IList items) { diff --git a/mRemoteNG/Messages/MessageWriters/NotificationPanelMessageWriter.cs b/mRemoteNG/Messages/MessageWriters/NotificationPanelMessageWriter.cs index 8395cde9..1832a9f1 100644 --- a/mRemoteNG/Messages/MessageWriters/NotificationPanelMessageWriter.cs +++ b/mRemoteNG/Messages/MessageWriters/NotificationPanelMessageWriter.cs @@ -7,14 +7,9 @@ using mRemoteNG.UI.Window; namespace mRemoteNG.Messages.MessageWriters { [SupportedOSPlatform("windows")] - public class NotificationPanelMessageWriter : IMessageWriter + public class NotificationPanelMessageWriter(ErrorAndInfoWindow messageWindow) : IMessageWriter { - private readonly ErrorAndInfoWindow _messageWindow; - - public NotificationPanelMessageWriter(ErrorAndInfoWindow messageWindow) - { - _messageWindow = messageWindow ?? throw new ArgumentNullException(nameof(messageWindow)); - } + private readonly ErrorAndInfoWindow _messageWindow = messageWindow ?? throw new ArgumentNullException(nameof(messageWindow)); public void Write(IMessage message) { diff --git a/mRemoteNG/Messages/MessageWriters/TextLogMessageWriter.cs b/mRemoteNG/Messages/MessageWriters/TextLogMessageWriter.cs index a676b81e..8c60c315 100644 --- a/mRemoteNG/Messages/MessageWriters/TextLogMessageWriter.cs +++ b/mRemoteNG/Messages/MessageWriters/TextLogMessageWriter.cs @@ -5,14 +5,9 @@ using mRemoteNG.App; namespace mRemoteNG.Messages.MessageWriters { [SupportedOSPlatform("windows")] - public class TextLogMessageWriter : IMessageWriter + public class TextLogMessageWriter(Logger logger) : IMessageWriter { - private readonly Logger _logger; - - public TextLogMessageWriter(Logger logger) - { - _logger = logger ?? throw new ArgumentNullException(nameof(logger)); - } + private readonly Logger _logger = logger ?? throw new ArgumentNullException(nameof(logger)); public void Write(IMessage message) { diff --git a/mRemoteNG/Messages/WriterDecorators/MessageFocusDecorator.cs b/mRemoteNG/Messages/WriterDecorators/MessageFocusDecorator.cs index f16e5f11..3f455e1b 100644 --- a/mRemoteNG/Messages/WriterDecorators/MessageFocusDecorator.cs +++ b/mRemoteNG/Messages/WriterDecorators/MessageFocusDecorator.cs @@ -11,20 +11,13 @@ using WeifenLuo.WinFormsUI.Docking; namespace mRemoteNG.Messages.WriterDecorators { [SupportedOSPlatform("windows")] - public class MessageFocusDecorator : IMessageWriter + public class MessageFocusDecorator(ErrorAndInfoWindow messageWindow, IMessageTypeFilteringOptions filter, IMessageWriter decoratedWriter) : IMessageWriter { - private readonly IMessageTypeFilteringOptions _filter; - private readonly IMessageWriter _decoratedWriter; - private readonly ErrorAndInfoWindow _messageWindow; + private readonly IMessageTypeFilteringOptions _filter = filter ?? throw new ArgumentNullException(nameof(filter)); + private readonly IMessageWriter _decoratedWriter = decoratedWriter ?? throw new ArgumentNullException(nameof(decoratedWriter)); + private readonly ErrorAndInfoWindow _messageWindow = messageWindow ?? throw new ArgumentNullException(nameof(messageWindow)); private readonly FrmMain _frmMain = FrmMain.Default; - public MessageFocusDecorator(ErrorAndInfoWindow messageWindow, IMessageTypeFilteringOptions filter, IMessageWriter decoratedWriter) - { - _filter = filter ?? throw new ArgumentNullException(nameof(filter)); - _messageWindow = messageWindow ?? throw new ArgumentNullException(nameof(messageWindow)); - _decoratedWriter = decoratedWriter ?? throw new ArgumentNullException(nameof(decoratedWriter)); - } - public async void Write(IMessage message) { _decoratedWriter.Write(message); diff --git a/mRemoteNG/Properties/AssemblyInfo.cs b/mRemoteNG/Properties/AssemblyInfo.cs index 4849f55d..c309bc09 100644 --- a/mRemoteNG/Properties/AssemblyInfo.cs +++ b/mRemoteNG/Properties/AssemblyInfo.cs @@ -18,10 +18,10 @@ using System.Resources; [assembly: AssemblyCulture("")] // Version information -[assembly: AssemblyVersion("1.78.2.3028")] -[assembly: AssemblyFileVersion("1.78.2.3028")] +[assembly: AssemblyVersion("1.78.2.3038")] +[assembly: AssemblyFileVersion("1.78.2.3038")] [assembly: NeutralResourcesLanguageAttribute("en-US")] -[assembly: AssemblyInformationalVersion("1.78.2 (Nightly Build 3028)")] +[assembly: AssemblyInformationalVersion("1.78.2 (Nightly Build 3038)")] // Logging [assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.config")] diff --git a/mRemoteNG/Security/Authentication/PasswordAuthenticator.cs b/mRemoteNG/Security/Authentication/PasswordAuthenticator.cs index be15b1fa..69f77174 100644 --- a/mRemoteNG/Security/Authentication/PasswordAuthenticator.cs +++ b/mRemoteNG/Security/Authentication/PasswordAuthenticator.cs @@ -5,24 +5,17 @@ using mRemoteNG.Tools; namespace mRemoteNG.Security.Authentication { - public class PasswordAuthenticator : IAuthenticator + public class PasswordAuthenticator(ICryptographyProvider cryptographyProvider, + string cipherText, + Func> authenticationRequestor) : IAuthenticator { - private readonly ICryptographyProvider _cryptographyProvider; - private readonly string _cipherText; - private readonly Func> _authenticationRequestor; + private readonly ICryptographyProvider _cryptographyProvider = cryptographyProvider.ThrowIfNull(nameof(cryptographyProvider)); + private readonly string _cipherText = cipherText.ThrowIfNullOrEmpty(nameof(cipherText)); + private readonly Func> _authenticationRequestor = authenticationRequestor.ThrowIfNull(nameof(authenticationRequestor)); public int MaxAttempts { get; set; } = 3; public SecureString LastAuthenticatedPassword { get; private set; } - public PasswordAuthenticator(ICryptographyProvider cryptographyProvider, - string cipherText, - Func> authenticationRequestor) - { - _cryptographyProvider = cryptographyProvider.ThrowIfNull(nameof(cryptographyProvider)); - _cipherText = cipherText.ThrowIfNullOrEmpty(nameof(cipherText)); - _authenticationRequestor = authenticationRequestor.ThrowIfNull(nameof(authenticationRequestor)); - } - public bool Authenticate(SecureString password) { bool authenticated = false; diff --git a/mRemoteNG/Themes/ExtendedColorPalette.cs b/mRemoteNG/Themes/ExtendedColorPalette.cs index dbb42004..77fad8b7 100644 --- a/mRemoteNG/Themes/ExtendedColorPalette.cs +++ b/mRemoteNG/Themes/ExtendedColorPalette.cs @@ -6,17 +6,11 @@ namespace mRemoteNG.Themes /// /// Class used for the UI to display the color tables,as the Dictionary value keys cannot be directly replaced /// - public class PseudoKeyColor + public class PseudoKeyColor(string _key, Color _value) { - public PseudoKeyColor(string _key, Color _value) - { - Key = _key; - Value = _value; - } + public string Key { get; set; } = _key; - public string Key { get; set; } - - public Color Value { get; set; } + public Color Value { get; set; } = _value; } diff --git a/mRemoteNG/Tools/ADhelper.cs b/mRemoteNG/Tools/ADhelper.cs index a9e572b0..6e4d6a3e 100644 --- a/mRemoteNG/Tools/ADhelper.cs +++ b/mRemoteNG/Tools/ADhelper.cs @@ -7,19 +7,13 @@ using System.Runtime.Versioning; namespace mRemoteNG.Tools { [SupportedOSPlatform("windows")] - public class AdHelper + public class AdHelper(string domain) { private DirectoryEntry _dEntry; - public AdHelper(string domain) - { - Children = []; - Domain = domain; - } + public Hashtable Children { get; } = []; - public Hashtable Children { get; } - - private string Domain { get; } + private string Domain { get; } = domain; public void GetChildEntries(string adPath = "") { diff --git a/mRemoteNG/Tools/Attributes/AttributeUsedInAllProtocolsExcept.cs b/mRemoteNG/Tools/Attributes/AttributeUsedInAllProtocolsExcept.cs index 917f5079..048ef141 100644 --- a/mRemoteNG/Tools/Attributes/AttributeUsedInAllProtocolsExcept.cs +++ b/mRemoteNG/Tools/Attributes/AttributeUsedInAllProtocolsExcept.cs @@ -4,15 +4,11 @@ using mRemoteNG.Connection.Protocol; namespace mRemoteNG.Tools.Attributes { - public class AttributeUsedInAllProtocolsExcept : AttributeUsedInProtocol - { - public AttributeUsedInAllProtocolsExcept(params ProtocolType[] exceptions) - : base(Enum + public class AttributeUsedInAllProtocolsExcept(params ProtocolType[] exceptions) : AttributeUsedInProtocol(Enum .GetValues(typeof(ProtocolType)) .Cast() .Except(exceptions) .ToArray()) - { - } + { } } diff --git a/mRemoteNG/Tools/Attributes/AttributeUsedInProtocol.cs b/mRemoteNG/Tools/Attributes/AttributeUsedInProtocol.cs index d40af7cb..ab16e61c 100644 --- a/mRemoteNG/Tools/Attributes/AttributeUsedInProtocol.cs +++ b/mRemoteNG/Tools/Attributes/AttributeUsedInProtocol.cs @@ -4,13 +4,8 @@ using mRemoteNG.Connection.Protocol; namespace mRemoteNG.Tools.Attributes { [AttributeUsage(AttributeTargets.Property)] - public class AttributeUsedInProtocol : Attribute + public class AttributeUsedInProtocol(params ProtocolType[] supportedProtocolTypes) : Attribute { - public ProtocolType[] SupportedProtocolTypes { get; } - - public AttributeUsedInProtocol(params ProtocolType[] supportedProtocolTypes) - { - SupportedProtocolTypes = supportedProtocolTypes; - } + public ProtocolType[] SupportedProtocolTypes { get; } = supportedProtocolTypes; } } diff --git a/mRemoteNG/Tools/Authenticode.cs b/mRemoteNG/Tools/Authenticode.cs index f6f904cf..d95f4a2a 100644 --- a/mRemoteNG/Tools/Authenticode.cs +++ b/mRemoteNG/Tools/Authenticode.cs @@ -1,12 +1,13 @@ -#if !PORTABLE +#if !PORTABLE using System; -using System.Windows.Forms; -using System.IO; -using System.Security.Cryptography.X509Certificates; -using System.Runtime.InteropServices; -using System.Security.Cryptography; -using System.Reflection; using System.ComponentModel; +using System.IO; +using System.Reflection; +using System.Runtime.InteropServices; +using System.Runtime.Versioning; +using System.Security.Cryptography; +using System.Security.Cryptography.X509Certificates; +using System.Windows.Forms; // ReSharper disable UnusedMember.Local // ReSharper disable NotAccessedField.Local // ReSharper disable UnusedAutoPropertyAccessor.Local @@ -16,15 +17,10 @@ using System.ComponentModel; namespace mRemoteNG.Tools { - public class Authenticode - { - #region Public Methods - public Authenticode(string filePath) - { - FilePath = filePath; - } - - public StatusValue Verify() + [SupportedOSPlatform("windows")] + public class Authenticode(string filePath) + { + public StatusValue Verify() { IntPtr trustFileInfoPointer = default(IntPtr); IntPtr trustDataPointer = default(IntPtr); @@ -50,14 +46,17 @@ namespace mRemoteNG.Tools return Status; } + //X509Certificate2 certificate2 = new(X509Certificate.CreateFromSignedFile(FilePath)); + X509Certificate2 certificate2 = new(X509Certificate.CreateFromSignedFile(FilePath)); - _thumbprint = certificate2.Thumbprint; - if (_thumbprint != ThumbprintToMatch) - { - Status = StatusValue.ThumbprintNotMatch; - return Status; - } - } + _thumbprint = certificate2.Thumbprint; + + if (_thumbprint != ThumbprintToMatch) + { + Status = StatusValue.ThumbprintNotMatch; + return Status; + } + } NativeMethods.WINTRUST_FILE_INFO trustFileInfo = new() { pcwszFilePath = FilePath}; trustFileInfoPointer = Marshal.AllocCoTaskMem(Marshal.SizeOf(trustFileInfo)); @@ -78,8 +77,7 @@ namespace mRemoteNG.Tools IntPtr windowHandle = DisplayParentForm?.Handle ?? IntPtr.Zero; - _trustProviderErrorCode = - NativeMethods.WinVerifyTrust(windowHandle, NativeMethods.WINTRUST_ACTION_GENERIC_VERIFY_V2, trustDataPointer); + _trustProviderErrorCode = NativeMethods.WinVerifyTrust(windowHandle, NativeMethods.WINTRUST_ACTION_GENERIC_VERIFY_V2, trustDataPointer); // ReSharper disable once SwitchStatementMissingSomeCases switch (_trustProviderErrorCode) { @@ -104,8 +102,7 @@ namespace mRemoteNG.Tools if (ex is CryptographicException) { - PropertyInfo hResultProperty = - ex.GetType().GetProperty("HResult", BindingFlags.NonPublic | BindingFlags.Instance); + PropertyInfo? hResultProperty = ex.GetType().GetProperty("HResult", BindingFlags.NonPublic | BindingFlags.Instance); if (hResultProperty != null) { int hResult = Convert.ToInt32(hResultProperty.GetValue(ex, null)); @@ -134,61 +131,54 @@ namespace mRemoteNG.Tools } } } - #endregion + #region Public Properties private DisplayValue Display { get; set; } = DisplayValue.None; private DisplayContextValue DisplayContext {get; set;} - private Form DisplayParentForm {get; set;} - internal Exception Exception {get; private set;} - private string FilePath {get; set;} + private Form? DisplayParentForm { get; set; } = null; // Use nullable reference type + internal Exception? Exception { get; private set; } = null; // Set to null to satisfy non-nullable property + private string FilePath { get; set; } = filePath; internal bool RequireThumbprintMatch { get; set;} internal StatusValue Status { get; private set; } - public string GetStatusMessage() - { - // ReSharper disable once SwitchStatementMissingSomeCases - switch (Status) - { - case StatusValue.Verified: - return "The file was verified successfully."; - case StatusValue.FileNotExist: - return "The specified file does not exist."; - case StatusValue.FileEmpty: - return "The specified file is empty."; - case StatusValue.NoSignature: - return "The specified file is not digitally signed."; - case StatusValue.NoThumbprintToMatch: - return "A thumbprint match is required but no thumbprint to match against was specified."; - case StatusValue.ThumbprintNotMatch: - /* (char)0x2260 == the "not equal to" symbol (which I cannot print in here without changing the encoding of the file) - * Fancy... - * - * "<>" is fiarly cryptic for non-programers - * So is "!=" - * "=/=" gets the job done, no? - * What about plain old English (or localized value): X is not equal to Y? - * :P - */ - return $"The thumbprint does not match. {_thumbprint} {(char) 0x2260} {ThumbprintToMatch}."; - case StatusValue.TrustProviderError: + public string GetStatusMessage() + { + // ReSharper disable once SwitchStatementMissingSomeCases + switch (Status) + { + case StatusValue.Verified: + return "The file was verified successfully."; + case StatusValue.FileNotExist: + return "The specified file does not exist."; + case StatusValue.FileEmpty: + return "The specified file is empty."; + case StatusValue.NoSignature: + return "The specified file is not digitally signed."; + case StatusValue.NoThumbprintToMatch: + return "A thumbprint match is required but no thumbprint to match against was specified."; + case StatusValue.ThumbprintNotMatch: + return $"The thumbprint does not match. {_thumbprint} {(char)0x2260} {ThumbprintToMatch}."; + case StatusValue.TrustProviderError: Win32Exception ex = new(_trustProviderErrorCode); - return $"The trust provider returned an error. {ex.Message}"; - case StatusValue.UnhandledException: - return $"An unhandled exception occurred. {Exception.Message}"; - default: - return "The status is unknown."; - } - } + return $"The trust provider returned an error. {ex.Message}"; + case StatusValue.UnhandledException: + return Exception != null + ? $"An unhandled exception occurred. {Exception.Message}" + : "An unhandled exception occurred, but no exception details are available."; + default: + return "The status is unknown."; + } + } - private string _thumbprint; + private string _thumbprint = string.Empty; - internal string ThumbprintToMatch { get; set;} - - private int _trustProviderErrorCode; + internal string ThumbprintToMatch { get; set; } = string.Empty; // Initialize to an empty string to satisfy non-nullable property + + private int _trustProviderErrorCode; #endregion diff --git a/mRemoteNG/Tools/Cmdline/CommandLineArguments.cs b/mRemoteNG/Tools/Cmdline/CommandLineArguments.cs index a380291d..5f2afd39 100644 --- a/mRemoteNG/Tools/Cmdline/CommandLineArguments.cs +++ b/mRemoteNG/Tools/Cmdline/CommandLineArguments.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; @@ -115,18 +115,11 @@ namespace mRemoteNG.Tools.Cmdline #region Protected Classes - protected class Argument + protected class Argument(string text, bool isFileName = false, bool forceQuotes = false) { - public Argument(string text, bool isFileName = false, bool forceQuotes = false) - { - Text = text; - IsFileName = isFileName; - ForceQuotes = forceQuotes; - } - - public string Text { get; set; } - public bool IsFileName { get; set; } - public bool ForceQuotes { get; set; } + public string Text { get; set; } = text; + public bool IsFileName { get; set; } = isFileName; + public bool ForceQuotes { get; set; } = forceQuotes; } #endregion diff --git a/mRemoteNG/Tools/DisposableOptional.cs b/mRemoteNG/Tools/DisposableOptional.cs index 371c83b7..95ca2967 100644 --- a/mRemoteNG/Tools/DisposableOptional.cs +++ b/mRemoteNG/Tools/DisposableOptional.cs @@ -3,14 +3,9 @@ using System.Linq; namespace mRemoteNG.Tools { - public class DisposableOptional : Optional, IDisposable + public class DisposableOptional(T value) : Optional(value), IDisposable where T : IDisposable { - public DisposableOptional(T value) - : base(value) - { - } - public void Dispose() { Dispose(true); diff --git a/mRemoteNG/Tools/ExternalTool.cs b/mRemoteNG/Tools/ExternalTool.cs index 8c86eea8..41c379b6 100644 --- a/mRemoteNG/Tools/ExternalTool.cs +++ b/mRemoteNG/Tools/ExternalTool.cs @@ -19,11 +19,11 @@ namespace mRemoteNG.Tools [SupportedOSPlatform("windows")] public class ExternalTool : INotifyPropertyChanged { - private string _displayName; - private string _fileName; + private string _displayName = string.Empty; // Initialize to avoid CS8618 + private string _fileName = string.Empty; // Initialize to avoid CS8618 private bool _waitForExit; - private string _arguments; - private string _workingDir; + private string _arguments = string.Empty; // Initialize to avoid CS8618 + private string _workingDir = string.Empty; // Initialize to avoid CS8618 private bool _tryIntegrate; private bool _showOnToolbar = true; private bool _runElevated; @@ -90,9 +90,9 @@ namespace mRemoteNG.Tools set => SetField(ref _runElevated, value, nameof(RunElevated)); } - public ConnectionInfo ConnectionInfo { get; set; } + public ConnectionInfo ConnectionInfo { get; set; } = new ConnectionInfo(); // Initialize to avoid CS8618 - public Icon Icon => File.Exists(FileName) ? MiscTools.GetIconFromFile(FileName) : Properties.Resources.mRemoteNG_Icon; + public Icon Icon => File.Exists(FileName) ? MiscTools.GetIconFromFile(FileName) ?? Properties.Resources.mRemoteNG_Icon : Properties.Resources.mRemoteNG_Icon; public Image Image => Icon?.ToBitmap() ?? Properties.Resources.mRemoteNG_Icon.ToBitmap(); @@ -111,18 +111,17 @@ namespace mRemoteNG.Tools RunElevated = runElevated; } - public void Start(ConnectionInfo startConnectionInfo = null) + public void Start(ConnectionInfo startConnectionInfo = null!) { try { if (string.IsNullOrEmpty(FileName)) { - Runtime.MessageCollector.AddMessage(MessageClass.ErrorMsg, - "ExternalApp.Start() failed: FileName cannot be blank."); + Runtime.MessageCollector.AddMessage(MessageClass.ErrorMsg, "ExternalApp.Start() failed: FileName cannot be blank."); return; } - ConnectionInfo = startConnectionInfo; + ConnectionInfo = startConnectionInfo ?? new ConnectionInfo(); // Ensure ConnectionInfo is not null if (startConnectionInfo is ContainerInfo container) { container.Children.ForEach(Start); @@ -196,7 +195,7 @@ namespace mRemoteNG.Tools newConnectionInfo.Panel = Language._Tools; } - public event PropertyChangedEventHandler PropertyChanged; + public event PropertyChangedEventHandler? PropertyChanged = delegate { }; // Updated to match nullability protected virtual void RaisePropertyChangedEvent(object sender, string propertyName) { diff --git a/mRemoteNG/Tools/ExternalToolArgumentParser.cs b/mRemoteNG/Tools/ExternalToolArgumentParser.cs index 6d2cfbaa..75eb9970 100644 --- a/mRemoteNG/Tools/ExternalToolArgumentParser.cs +++ b/mRemoteNG/Tools/ExternalToolArgumentParser.cs @@ -11,14 +11,9 @@ using mRemoteNG.Tools.Cmdline; namespace mRemoteNG.Tools { [SupportedOSPlatform("windows")] - public class ExternalToolArgumentParser + public class ExternalToolArgumentParser(ConnectionInfo connectionInfo) { - private readonly ConnectionInfo _connectionInfo; - - public ExternalToolArgumentParser(ConnectionInfo connectionInfo) - { - _connectionInfo = connectionInfo; - } + private readonly ConnectionInfo _connectionInfo = connectionInfo; public string ParseArguments(string input) { @@ -246,20 +241,13 @@ namespace mRemoteNG.Tools None } - private struct Replacement + private struct Replacement(int start, int length, string value) { - public int Start { get; } + public int Start { get; } = start; - public int Length { get; } + public int Length { get; } = length; - public string Value { get; } - - public Replacement(int start, int length, string value) - { - Start = start; - Length = length; - Value = value; - } + public string Value { get; } = value; } } } \ No newline at end of file diff --git a/mRemoteNG/Tools/ExternalToolsTypeConverter.cs b/mRemoteNG/Tools/ExternalToolsTypeConverter.cs index 3c5d8f5d..d2eea22d 100644 --- a/mRemoteNG/Tools/ExternalToolsTypeConverter.cs +++ b/mRemoteNG/Tools/ExternalToolsTypeConverter.cs @@ -1,5 +1,6 @@ using System.Collections.Generic; using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; using System.Runtime.Versioning; namespace mRemoteNG.Tools @@ -26,18 +27,33 @@ namespace mRemoteNG.Tools } } - public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context) + public override StandardValuesCollection GetStandardValues([NotNull] ITypeDescriptorContext? context) { + if (context == null) + { + throw new System.ArgumentNullException(nameof(context)); + } + return new StandardValuesCollection(ExternalTools); } - public override bool GetStandardValuesExclusive(System.ComponentModel.ITypeDescriptorContext context) + public override bool GetStandardValuesExclusive([NotNull] ITypeDescriptorContext? context) { + if (context == null) + { + throw new System.ArgumentNullException(nameof(context)); + } + return true; } - public override bool GetStandardValuesSupported(ITypeDescriptorContext context) + public override bool GetStandardValuesSupported([NotNull] ITypeDescriptorContext? context) { + if (context == null) + { + throw new System.ArgumentNullException(nameof(context)); + } + return true; } } diff --git a/mRemoteNG/Tools/MiscTools.cs b/mRemoteNG/Tools/MiscTools.cs index 7eba7e4a..d35af82a 100644 --- a/mRemoteNG/Tools/MiscTools.cs +++ b/mRemoteNG/Tools/MiscTools.cs @@ -18,36 +18,32 @@ namespace mRemoteNG.Tools [SupportedOSPlatform("windows")] public static class MiscTools { - public static Icon GetIconFromFile(string FileName) + public static Icon? GetIconFromFile(string FileName) { try { - return File.Exists(FileName) == false ? null : Icon.ExtractAssociatedIcon(FileName); + return File.Exists(FileName) ? Icon.ExtractAssociatedIcon(FileName) : null; } catch (ArgumentException AEx) { - Runtime.MessageCollector.AddMessage(MessageClass.WarningMsg, - "GetIconFromFile failed (Tools.Misc) - using default icon" + - Environment.NewLine + AEx.Message, - true); + Runtime.MessageCollector.AddMessage(MessageClass.WarningMsg, "GetIconFromFile failed (Tools.Misc) - using default icon" + Environment.NewLine + AEx.Message, true); return Properties.Resources.mRemoteNG_Icon; } catch (Exception ex) { - Runtime.MessageCollector.AddMessage(MessageClass.WarningMsg, - "GetIconFromFile failed (Tools.Misc)" + Environment.NewLine + - ex.Message, true); + Runtime.MessageCollector.AddMessage(MessageClass.WarningMsg, "GetIconFromFile failed (Tools.Misc)" + Environment.NewLine + ex.Message, true); return null; } } - public static Optional PasswordDialog(string passwordName = null, bool verify = true) + public static Optional PasswordDialog(string? passwordName = null, bool verify = true) { //var splash = FrmSplashScreenNew.GetInstance(); //TODO: something not right there //if (PresentationSource.FromVisual(splash)) // splash.Close(); + passwordName ??= string.Empty; // Ensure passwordName is not null FrmPassword passwordForm = new(passwordName, verify); return passwordForm.GetKey(); } @@ -139,7 +135,7 @@ namespace mRemoteNG.Tools } - public static Image TakeScreenshot(UI.Tabs.ConnectionTab sender) + public static Image? TakeScreenshot(UI.Tabs.ConnectionTab sender) { try { @@ -159,74 +155,88 @@ namespace mRemoteNG.Tools return null; } - public class EnumTypeConverter : EnumConverter + public class EnumTypeConverter(Type type) : EnumConverter(type) { - private readonly Type _enumType; + private readonly Type _enumType = type; - public EnumTypeConverter(Type type) : base(type) - { - _enumType = type; - } - - public override bool CanConvertTo(ITypeDescriptorContext context, Type destType) + public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destType) { return destType == typeof(string); } - public override object ConvertTo(ITypeDescriptorContext context, - CultureInfo culture, - object value, - Type destType) + public override object ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type? destType) { - if (value == null) return null; - System.Reflection.FieldInfo fi = _enumType.GetField(Enum.GetName(_enumType, value)); - DescriptionAttribute dna = (DescriptionAttribute)Attribute.GetCustomAttribute(fi, typeof(DescriptionAttribute)); + if (value == null) return string.Empty; - return dna != null ? dna.Description : value.ToString(); + string? enumName = Enum.GetName(_enumType, value); + if (enumName == null) + { + throw new ArgumentException("Invalid enum value provided."); + } + + System.Reflection.FieldInfo? fi = _enumType.GetField(enumName); + if (fi == null) + { + throw new ArgumentException("FieldInfo could not be retrieved for the provided enum value."); + } + + DescriptionAttribute? dna = (DescriptionAttribute?)Attribute.GetCustomAttribute(fi, typeof(DescriptionAttribute)); + return dna?.Description ?? value.ToString() ?? string.Empty; } - public override bool CanConvertFrom(ITypeDescriptorContext context, Type srcType) + public override bool CanConvertFrom(ITypeDescriptorContext? context, Type? srcType) { return srcType == typeof(string); } - public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) + public override object ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object? value) { - foreach (System.Reflection.FieldInfo fi in _enumType.GetFields()) + if (value is string stringValue) { - DescriptionAttribute dna = (DescriptionAttribute)Attribute.GetCustomAttribute(fi, typeof(DescriptionAttribute)); - - if (dna != null && (string)value == dna.Description) + foreach (System.Reflection.FieldInfo fi in _enumType.GetFields()) { - return Enum.Parse(_enumType, fi.Name); + DescriptionAttribute? dna = (DescriptionAttribute?)Attribute.GetCustomAttribute(fi, typeof(DescriptionAttribute)); + + if (dna != null && string.Equals(stringValue, dna.Description, StringComparison.Ordinal)) + { + return Enum.Parse(_enumType, fi.Name); + } } + + return Enum.Parse(_enumType, stringValue); } - return value != null ? Enum.Parse(_enumType, (string)value) : null; + throw new ArgumentNullException(nameof(value), "Value cannot be null."); } } public class YesNoTypeConverter : TypeConverter { - public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) + public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) { return sourceType == typeof(string) || base.CanConvertFrom(context, sourceType); } - - public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) + public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType) { return destinationType == typeof(string) || base.CanConvertTo(context, destinationType); } - public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) + public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object? value) { - if (!(value is string)) return base.ConvertFrom(context, culture, value); - if (string.Equals(value.ToString(), Language.Yes, StringComparison.CurrentCultureIgnoreCase)) + if (value is not string stringValue) + { + // Ensure 'value' is not null before passing it to the base method + return value != null + ? base.ConvertFrom(context, culture, value) + : throw new ArgumentNullException(nameof(value), "Value cannot be null."); + } + + if (string.Equals(stringValue, Language.Yes, StringComparison.CurrentCultureIgnoreCase)) { return true; } - if (string.Equals(value.ToString(), Language.No, StringComparison.CurrentCultureIgnoreCase)) + if (string.Equals(stringValue, Language.No, StringComparison.CurrentCultureIgnoreCase)) { return false; } @@ -234,27 +244,24 @@ namespace mRemoteNG.Tools throw new Exception("Values must be \"Yes\" or \"No\""); } - public override object ConvertTo(ITypeDescriptorContext context, - CultureInfo culture, - object value, - Type destinationType) + public override object ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) { if (destinationType == typeof(string)) { return Convert.ToBoolean(value) ? Language.Yes : Language.No; } - return base.ConvertTo(context, culture, value, destinationType); + return base.ConvertTo(context, culture, value, destinationType) ?? throw new InvalidOperationException("Base conversion returned null."); } - public override bool GetStandardValuesSupported(ITypeDescriptorContext context) + public override bool GetStandardValuesSupported(ITypeDescriptorContext? context) { return true; } - public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context) + public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext? context) { - bool[] bools = {true, false}; + bool[] bools = { true, false }; StandardValuesCollection svc = new(bools); diff --git a/mRemoteNG/Tools/Optional.cs b/mRemoteNG/Tools/Optional.cs index 46e4ebf9..da147cfe 100644 --- a/mRemoteNG/Tools/Optional.cs +++ b/mRemoteNG/Tools/Optional.cs @@ -35,7 +35,13 @@ namespace mRemoteNG.Tools public override string ToString() { - return _optional.Any() ? _optional.First().ToString() : ""; + // Fixes CS8602 and CS8603 by ensuring null checks and returning a non-null value + if (_optional.Length > 0 && _optional[0] != null) + { + return _optional[0]?.ToString() ?? string.Empty; + } + + return string.Empty; } public static implicit operator Optional(T value) @@ -79,8 +85,11 @@ namespace mRemoteNG.Tools /// values, the values are compared directly. /// /// - public int CompareTo(Optional other) + public int CompareTo(Optional? other) { + if (other is null) + return 1; // Treat null as less than any non-null Optional + bool otherHasAnything = other.Any(); bool thisHasAnything = _optional.Length > 0; @@ -100,21 +109,16 @@ namespace mRemoteNG.Tools throw new ArgumentException($"Cannot compare objects. Optional type {typeof(T).FullName} is not comparable to itself"); } - #endregion - - #region Override Equals and GetHashCode - - public override bool Equals(object obj) + public override bool Equals(object? obj) { if (ReferenceEquals(this, obj)) return true; - Optional objAsOptional = obj as Optional; - if (objAsOptional != null) + if (obj is Optional objAsOptional) return Equals(objAsOptional); - if (obj is T) - Equals((T)obj); + if (obj is T objAsT) + return Equals(objAsT); return false; } diff --git a/mRemoteNG/Tools/PropertyGridCommandSite.cs b/mRemoteNG/Tools/PropertyGridCommandSite.cs index ad176133..70f1d93a 100644 --- a/mRemoteNG/Tools/PropertyGridCommandSite.cs +++ b/mRemoteNG/Tools/PropertyGridCommandSite.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ComponentModel; using System.ComponentModel.Design; using System.Reflection; @@ -7,14 +7,9 @@ using System.Reflection; namespace mRemoteNG.Tools { - public class PropertyGridCommandSite : IMenuCommandService, ISite + public class PropertyGridCommandSite(object @object) : IMenuCommandService, ISite { - private readonly object TheObject; - - public PropertyGridCommandSite(object @object) - { - TheObject = @object; - } + private readonly object TheObject = @object; public DesignerVerbCollection Verbs { @@ -56,10 +51,9 @@ namespace mRemoteNG.Tools } } - private void VerbEventHandler(object sender, EventArgs e) + private void VerbEventHandler(object? sender, EventArgs e) { - DesignerVerb verb = sender as DesignerVerb; - if (verb == null) + if (sender is not DesignerVerb verb) { return; } @@ -100,16 +94,16 @@ namespace mRemoteNG.Tools public object GetService(Type serviceType) { - return serviceType == typeof(IMenuCommandService) ? this : null; + return serviceType == typeof(IMenuCommandService) ? this : null!; } public IComponent Component => throw new NotSupportedException(); - public IContainer Container => null; + public IContainer Container => null!; public bool DesignMode => true; - public string Name + public string? Name { get => throw new NotSupportedException(); set => throw new NotSupportedException(); @@ -151,13 +145,8 @@ namespace mRemoteNG.Tools } } - public class CommandAttribute : Attribute + public class CommandAttribute(bool isCommand = true) : Attribute { - public bool Command { get; set; } - - public CommandAttribute(bool isCommand = true) - { - Command = isCommand; - } + public bool Command { get; set; } = isCommand; } } \ No newline at end of file diff --git a/mRemoteNG/Tools/ScanHost.cs b/mRemoteNG/Tools/ScanHost.cs index 5fe506ad..004d8b8f 100644 --- a/mRemoteNG/Tools/ScanHost.cs +++ b/mRemoteNG/Tools/ScanHost.cs @@ -15,7 +15,7 @@ using mRemoteNG.Resources.Language; namespace mRemoteNG.Tools { [SupportedOSPlatform("windows")] - public class ScanHost + public class ScanHost(string host) { #region Properties @@ -26,8 +26,8 @@ namespace mRemoteNG.Tools public static int RloginPort { get; set; } = (int)ProtocolRlogin.Defaults.Port; public static int RdpPort { get; set; } = (int)RdpProtocol.Defaults.Port; public static int VncPort { get; set; } = (int)ProtocolVNC.Defaults.Port; - public ArrayList OpenPorts { get; set; } - public ArrayList ClosedPorts { get; set; } + public ArrayList OpenPorts { get; set; } = []; + public ArrayList ClosedPorts { get; set; } = []; public bool Rdp { get; set; } public bool Vnc { get; set; } public bool Ssh { get; set; } @@ -35,7 +35,7 @@ namespace mRemoteNG.Tools public bool Rlogin { get; set; } public bool Http { get; set; } public bool Https { get; set; } - public string HostIp { get; set; } + public string HostIp { get; set; } = host; public string HostName { get; set; } = ""; public string HostNameWithoutDomain @@ -52,16 +52,8 @@ namespace mRemoteNG.Tools } #endregion - #region Methods - public ScanHost(string host) - { - HostIp = host; - OpenPorts = []; - ClosedPorts = []; - } - public override string ToString() { try diff --git a/mRemoteNG/Tools/Tools.LocalizedAttributes.cs b/mRemoteNG/Tools/Tools.LocalizedAttributes.cs index d4c2d7fb..a963bf60 100644 --- a/mRemoteNG/Tools/Tools.LocalizedAttributes.cs +++ b/mRemoteNG/Tools/Tools.LocalizedAttributes.cs @@ -9,15 +9,10 @@ namespace mRemoteNG.Tools public class LocalizedAttributes { [AttributeUsage(AttributeTargets.All, AllowMultiple = false, Inherited = true)] - public class LocalizedCategoryAttribute : CategoryAttribute + public class LocalizedCategoryAttribute(string value, int Order = 1) : CategoryAttribute(value) { private const int MaxOrder = 10; - private int Order; - - public LocalizedCategoryAttribute(string value, int Order = 1) : base(value) - { - this.Order = Order > MaxOrder ? MaxOrder : Order; - } + private int Order = Order > MaxOrder ? MaxOrder : Order; protected override string GetLocalizedString(string value) { @@ -32,14 +27,9 @@ namespace mRemoteNG.Tools } [AttributeUsage(AttributeTargets.All, AllowMultiple = false, Inherited = true)] - public class LocalizedDisplayNameAttribute : DisplayNameAttribute + public class LocalizedDisplayNameAttribute(string value) : DisplayNameAttribute(value) { - private bool Localized; - - public LocalizedDisplayNameAttribute(string value) : base(value) - { - Localized = false; - } + private bool Localized = false; public override string DisplayName { @@ -57,14 +47,9 @@ namespace mRemoteNG.Tools } [AttributeUsage(AttributeTargets.All, AllowMultiple = false, Inherited = true)] - public class LocalizedDescriptionAttribute : DescriptionAttribute + public class LocalizedDescriptionAttribute(string value) : DescriptionAttribute(value) { - private bool Localized; - - public LocalizedDescriptionAttribute(string value) : base(value) - { - Localized = false; - } + private bool Localized = false; public override string Description { @@ -82,11 +67,8 @@ namespace mRemoteNG.Tools } [AttributeUsage(AttributeTargets.All, AllowMultiple = false, Inherited = true)] - public class LocalizedDefaultValueAttribute : DefaultValueAttribute + public class LocalizedDefaultValueAttribute(string name) : DefaultValueAttribute(Language.ResourceManager.GetString(name)) { - public LocalizedDefaultValueAttribute(string name) : base(Language.ResourceManager.GetString(name)) - { - } // This allows localized attributes in a derived class to override a matching // non-localized attribute inherited from its base class @@ -96,14 +78,9 @@ namespace mRemoteNG.Tools #region Special localization - with String.Format [AttributeUsage(AttributeTargets.All, AllowMultiple = false, Inherited = true)] - public class LocalizedDisplayNameInheritAttribute : DisplayNameAttribute + public class LocalizedDisplayNameInheritAttribute(string value) : DisplayNameAttribute(value) { - private bool Localized; - - public LocalizedDisplayNameInheritAttribute(string value) : base(value) - { - Localized = false; - } + private bool Localized = false; public override string DisplayName { @@ -122,14 +99,9 @@ namespace mRemoteNG.Tools } [AttributeUsage(AttributeTargets.All, AllowMultiple = false, Inherited = true)] - public class LocalizedDescriptionInheritAttribute : DescriptionAttribute + public class LocalizedDescriptionInheritAttribute(string value) : DescriptionAttribute(value) { - private bool Localized; - - public LocalizedDescriptionInheritAttribute(string value) : base(value) - { - Localized = false; - } + private bool Localized = false; public override string Description { diff --git a/mRemoteNG/Tools/Tools.WindowPlacement.cs b/mRemoteNG/Tools/Tools.WindowPlacement.cs index 1a5721ff..d837c1b2 100644 --- a/mRemoteNG/Tools/Tools.WindowPlacement.cs +++ b/mRemoteNG/Tools/Tools.WindowPlacement.cs @@ -7,15 +7,9 @@ using System.Runtime.Versioning; namespace mRemoteNG.Tools { [SupportedOSPlatform("windows")] - public class WindowPlacement + public class WindowPlacement(Form form) { - private Form _form; - - - public WindowPlacement(Form form) - { - _form = form; - } + private Form _form = form; #region Public Properties diff --git a/mRemoteNG/Tree/ConnectionTreeModel.cs b/mRemoteNG/Tree/ConnectionTreeModel.cs index 95f9a53e..47795822 100644 --- a/mRemoteNG/Tree/ConnectionTreeModel.cs +++ b/mRemoteNG/Tree/ConnectionTreeModel.cs @@ -19,22 +19,18 @@ namespace mRemoteNG.Tree { if (RootNodes.Contains(rootNode)) return; RootNodes.Add(rootNode); - rootNode.CollectionChanged += RaiseCollectionChangedEvent; - rootNode.PropertyChanged += RaisePropertyChangedEvent; - RaiseCollectionChangedEvent(this, - new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, - rootNode)); + rootNode.CollectionChanged += RaiseCollectionChangedEvent!; + rootNode.PropertyChanged += RaisePropertyChangedEvent!; + RaiseCollectionChangedEvent(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, rootNode)); } public void RemoveRootNode(ContainerInfo rootNode) { if (!RootNodes.Contains(rootNode)) return; - rootNode.CollectionChanged -= RaiseCollectionChangedEvent; - rootNode.PropertyChanged -= RaisePropertyChangedEvent; + rootNode.CollectionChanged -= RaiseCollectionChangedEvent!; + rootNode.PropertyChanged -= RaisePropertyChangedEvent!; RootNodes.Remove(rootNode); - RaiseCollectionChangedEvent(this, - new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, - rootNode)); + RaiseCollectionChangedEvent(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, rootNode)); } public IReadOnlyList GetRecursiveChildList() @@ -76,16 +72,16 @@ namespace mRemoteNG.Tree connectionInfo?.RemoveParent(); } - public event NotifyCollectionChangedEventHandler CollectionChanged; + public event NotifyCollectionChangedEventHandler? CollectionChanged; - private void RaiseCollectionChangedEvent(object sender, NotifyCollectionChangedEventArgs args) + public event PropertyChangedEventHandler? PropertyChanged; + + private void RaiseCollectionChangedEvent(object? sender, NotifyCollectionChangedEventArgs args) { CollectionChanged?.Invoke(sender, args); } - public event PropertyChangedEventHandler PropertyChanged; - - private void RaisePropertyChangedEvent(object sender, PropertyChangedEventArgs args) + private void RaisePropertyChangedEvent(object? sender, PropertyChangedEventArgs args) { PropertyChanged?.Invoke(sender, args); } diff --git a/mRemoteNG/Tree/NodeSearcher.cs b/mRemoteNG/Tree/NodeSearcher.cs index 51782f9e..2ba3addb 100644 --- a/mRemoteNG/Tree/NodeSearcher.cs +++ b/mRemoteNG/Tree/NodeSearcher.cs @@ -7,19 +7,13 @@ using mRemoteNG.Connection; namespace mRemoteNG.Tree { [SupportedOSPlatform("windows")] - public class NodeSearcher + public class NodeSearcher(ConnectionTreeModel connectionTreeModel) { - private readonly ConnectionTreeModel _connectionTreeModel; + private readonly ConnectionTreeModel _connectionTreeModel = connectionTreeModel; private List Matches { get; set; } public ConnectionInfo CurrentMatch { get; private set; } - - public NodeSearcher(ConnectionTreeModel connectionTreeModel) - { - _connectionTreeModel = connectionTreeModel; - } - public IEnumerable SearchByName(string searchText) { ResetMatches(); diff --git a/mRemoteNG/Tree/Root/RootNodeInfo.cs b/mRemoteNG/Tree/Root/RootNodeInfo.cs index f45907ce..27ba11f8 100644 --- a/mRemoteNG/Tree/Root/RootNodeInfo.cs +++ b/mRemoteNG/Tree/Root/RootNodeInfo.cs @@ -10,18 +10,11 @@ namespace mRemoteNG.Tree.Root { [SupportedOSPlatform("windows")] [DefaultProperty("Name")] - public class RootNodeInfo : ContainerInfo + public class RootNodeInfo(RootNodeType rootType, string uniqueId) : ContainerInfo(uniqueId) { - private string _name; + private string _name = Language.Connections; private string _customPassword = ""; - public RootNodeInfo(RootNodeType rootType, string uniqueId) - : base(uniqueId) - { - _name = Language.Connections; - Type = rootType; - } - public RootNodeInfo(RootNodeType rootType) : this(rootType, Guid.NewGuid().ToString()) { @@ -60,7 +53,7 @@ namespace mRemoteNG.Tree.Root [Browsable(false)] public string DefaultPassword { get; } = "mR3m"; //TODO move password away from code to settings - [Browsable(false)] public RootNodeType Type { get; set; } + [Browsable(false)] public RootNodeType Type { get; set; } = rootType; public override TreeNodeType GetTreeNodeType() { diff --git a/mRemoteNG/Tree/SelectedConnectionDeletionConfirmer.cs b/mRemoteNG/Tree/SelectedConnectionDeletionConfirmer.cs index cbbf23fd..b579a05a 100644 --- a/mRemoteNG/Tree/SelectedConnectionDeletionConfirmer.cs +++ b/mRemoteNG/Tree/SelectedConnectionDeletionConfirmer.cs @@ -8,14 +8,9 @@ using System.Runtime.Versioning; namespace mRemoteNG.Tree { [SupportedOSPlatform("windows")] - public class SelectedConnectionDeletionConfirmer : IConfirm + public class SelectedConnectionDeletionConfirmer(Func confirmationFunc) : IConfirm { - private readonly Func _confirmationFunc; - - public SelectedConnectionDeletionConfirmer(Func confirmationFunc) - { - _confirmationFunc = confirmationFunc; - } + private readonly Func _confirmationFunc = confirmationFunc; public bool Confirm(ConnectionInfo deletionTarget) { diff --git a/mRemoteNG/UI/Controls/Adapters/CredentialRecordListAdaptor.cs b/mRemoteNG/UI/Controls/Adapters/CredentialRecordListAdaptor.cs index 472b7b9b..f2baf437 100644 --- a/mRemoteNG/UI/Controls/Adapters/CredentialRecordListAdaptor.cs +++ b/mRemoteNG/UI/Controls/Adapters/CredentialRecordListAdaptor.cs @@ -1,5 +1,6 @@ using System; using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; using System.Drawing.Design; using System.Runtime.Versioning; using System.Windows.Forms.Design; @@ -12,12 +13,12 @@ namespace mRemoteNG.UI.Controls.Adapters { private IWindowsFormsEditorService _editorService; - public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context) + public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context) { return UITypeEditorEditStyle.DropDown; } - public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) + public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) { if (provider == null) return value; _editorService = provider.GetService(typeof(IWindowsFormsEditorService)) as IWindowsFormsEditorService; @@ -30,7 +31,7 @@ namespace mRemoteNG.UI.Controls.Adapters _editorService.DropDownControl(listBox); if (listBox.SelectedItem == listBox.NoneSelection) - return null; + return null!; if (listBox.SelectedItem == listBox.AddNewSelection) { //var newCred = new CredentialRecord(); @@ -41,7 +42,7 @@ namespace mRemoteNG.UI.Controls.Adapters return listBox.SelectedItem ?? value; } - private void ListBoxOnSelectedValueChanged(object sender, EventArgs eventArgs) + private void ListBoxOnSelectedValueChanged([NotNull] object? sender, EventArgs eventArgs) { _editorService.CloseDropDown(); } diff --git a/mRemoteNG/UI/Controls/FilteredPropertyGrid/ObjectWrapper.cs b/mRemoteNG/UI/Controls/FilteredPropertyGrid/ObjectWrapper.cs index 4f4f81c0..7d35c6c2 100644 --- a/mRemoteNG/UI/Controls/FilteredPropertyGrid/ObjectWrapper.cs +++ b/mRemoteNG/UI/Controls/FilteredPropertyGrid/ObjectWrapper.cs @@ -15,7 +15,7 @@ namespace mRemoteNG.UI.Controls.FilteredPropertyGrid /// A reference to the selected object that will linked to the parent PropertyGrid. internal ObjectWrapper(object obj) { - SelectedObject = obj; + SelectedObject = obj ?? throw new ArgumentNullException(nameof(obj)); } /// @@ -26,11 +26,11 @@ namespace mRemoteNG.UI.Controls.FilteredPropertyGrid /// /// Get or set a reference to the collection of properties to show in the parent PropertyGrid /// - public List PropertyDescriptors { get; set; } = []; + public List PropertyDescriptors { get; set; } = new List(); #region ICustomTypeDescriptor Members - public PropertyDescriptorCollection GetProperties(Attribute[] attributes) + public PropertyDescriptorCollection GetProperties(Attribute[]? attributes) { return GetProperties(); } @@ -55,7 +55,7 @@ namespace mRemoteNG.UI.Controls.FilteredPropertyGrid /// String public string GetClassName() { - return TypeDescriptor.GetClassName(SelectedObject, true); + return TypeDescriptor.GetClassName(SelectedObject, true) ?? string.Empty; } /// @@ -64,7 +64,7 @@ namespace mRemoteNG.UI.Controls.FilteredPropertyGrid /// String public string GetComponentName() { - return TypeDescriptor.GetComponentName(SelectedObject, true); + return TypeDescriptor.GetComponentName(SelectedObject, true) ?? string.Empty; } /// @@ -80,8 +80,9 @@ namespace mRemoteNG.UI.Controls.FilteredPropertyGrid /// GetDefaultEvent /// /// EventDescriptor - public EventDescriptor GetDefaultEvent() + public EventDescriptor? GetDefaultEvent() { + // Explicitly mark the return type as nullable to handle the possibility of null. return TypeDescriptor.GetDefaultEvent(SelectedObject, true); } @@ -89,7 +90,7 @@ namespace mRemoteNG.UI.Controls.FilteredPropertyGrid /// GetDefaultProperty /// /// PropertyDescriptor - public PropertyDescriptor GetDefaultProperty() + public PropertyDescriptor? GetDefaultProperty() { return TypeDescriptor.GetDefaultProperty(SelectedObject, true); } @@ -99,12 +100,12 @@ namespace mRemoteNG.UI.Controls.FilteredPropertyGrid /// /// editorBaseType /// object - public object GetEditor(Type editorBaseType) + public object? GetEditor(Type editorBaseType) { return TypeDescriptor.GetEditor(this, editorBaseType, true); } - public EventDescriptorCollection GetEvents(Attribute[] attributes) + public EventDescriptorCollection GetEvents(Attribute[]? attributes) { return TypeDescriptor.GetEvents(SelectedObject, attributes, true); } @@ -114,7 +115,7 @@ namespace mRemoteNG.UI.Controls.FilteredPropertyGrid return TypeDescriptor.GetEvents(SelectedObject, true); } - public object GetPropertyOwner(PropertyDescriptor pd) + public object? GetPropertyOwner(PropertyDescriptor? pd) { return SelectedObject; } diff --git a/mRemoteNG/UI/Controls/PageSequence/SequencedPageReplcementRequestArgs.cs b/mRemoteNG/UI/Controls/PageSequence/SequencedPageReplcementRequestArgs.cs index 4cd85108..37590181 100644 --- a/mRemoteNG/UI/Controls/PageSequence/SequencedPageReplcementRequestArgs.cs +++ b/mRemoteNG/UI/Controls/PageSequence/SequencedPageReplcementRequestArgs.cs @@ -11,15 +11,9 @@ namespace mRemoteNG.UI.Controls.PageSequence NextPage } - public class SequencedPageReplcementRequestArgs + public class SequencedPageReplcementRequestArgs(SequencedControl newControl, RelativePagePosition pageToReplace) { - public SequencedControl NewControl { get; } - public RelativePagePosition PagePosition { get; } - - public SequencedPageReplcementRequestArgs(SequencedControl newControl, RelativePagePosition pageToReplace) - { - NewControl = newControl ?? throw new ArgumentNullException(nameof(newControl)); - PagePosition = pageToReplace; - } + public SequencedControl NewControl { get; } = newControl ?? throw new ArgumentNullException(nameof(newControl)); + public RelativePagePosition PagePosition { get; } = pageToReplace; } } \ No newline at end of file diff --git a/mRemoteNG/UI/Controls/QuickConnectComboBox.cs b/mRemoteNG/UI/Controls/QuickConnectComboBox.cs index d00de8fb..96b6481d 100644 --- a/mRemoteNG/UI/Controls/QuickConnectComboBox.cs +++ b/mRemoteNG/UI/Controls/QuickConnectComboBox.cs @@ -185,14 +185,9 @@ namespace mRemoteNG.UI.Controls #region Events - public class ConnectRequestedEventArgs : EventArgs + public class ConnectRequestedEventArgs(string connectionString) : EventArgs { - public ConnectRequestedEventArgs(string connectionString) - { - ConnectionString = connectionString; - } - - public string ConnectionString { get; } + public string ConnectionString { get; } = connectionString; } public delegate void ConnectRequestedEventHandler(object sender, ConnectRequestedEventArgs e); @@ -212,14 +207,9 @@ namespace mRemoteNG.UI.Controls ConnectRequestedEvent?.Invoke(this, new ConnectRequestedEventArgs(e.ConnectionString)); } - public class ProtocolChangedEventArgs : EventArgs + public class ProtocolChangedEventArgs(ProtocolType protocol) : EventArgs { - public ProtocolChangedEventArgs(ProtocolType protocol) - { - Protocol = protocol; - } - - public ProtocolType Protocol { get; } + public ProtocolType Protocol { get; } = protocol; } public delegate void ProtocolChangedEventHandler(object sender, ProtocolChangedEventArgs e); diff --git a/mRemoteNG/UI/Controls/mrngIpTextBox.cs b/mRemoteNG/UI/Controls/mrngIpTextBox.cs index 445dd7e7..0c81acdb 100644 --- a/mRemoteNG/UI/Controls/mrngIpTextBox.cs +++ b/mRemoteNG/UI/Controls/mrngIpTextBox.cs @@ -32,7 +32,7 @@ namespace mRemoteNG.UI.Controls /* Sets and Gets the tooltiptext on toolTip1 */ public string ToolTipText { - get => toolTip1.GetToolTip(Octet1); + get => toolTip1.GetToolTip(Octet1) ?? string.Empty; set { toolTip1.SetToolTip(Octet1, value); @@ -46,34 +46,48 @@ namespace mRemoteNG.UI.Controls } /* Set or Get the string that represents the value in the box */ - public override string Text + public override string? Text { - get => Octet1.Text + @"." + Octet2.Text + @"." + Octet3.Text + @"." + Octet4.Text; + get => (Octet1.Text ?? string.Empty) + @"." + (Octet2.Text ?? string.Empty) + @"." + (Octet3.Text ?? string.Empty) + @"." + (Octet4.Text ?? string.Empty); set { if (!string.IsNullOrEmpty(value)) { string[] pieces = value.Split(@".".ToCharArray(), 4); - Octet1.Text = pieces[0]; - Octet2.Text = pieces[1]; - Octet3.Text = pieces[2]; - Octet4.Text = pieces[3]; + Octet1.Text = pieces.Length > 0 ? pieces[0] : string.Empty; + Octet2.Text = pieces.Length > 1 ? pieces[1] : string.Empty; + Octet3.Text = pieces.Length > 2 ? pieces[2] : string.Empty; + Octet4.Text = pieces.Length > 3 ? pieces[3] : string.Empty; } else { - Octet1.Text = ""; - Octet2.Text = ""; - Octet3.Text = ""; - Octet4.Text = ""; + Octet1.Text = string.Empty; + Octet2.Text = string.Empty; + Octet3.Text = string.Empty; + Octet4.Text = string.Empty; } } } + /* Fix for CS8618: Initialize all non-nullable fields in the constructor to ensure they are not null. */ + public MrngIpTextBox() { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); SetTabSTopProperties(); + + // Initialize non-nullable fields to avoid CS8618 warnings + panel1 = new Panel(); + Octet1 = new MrngTextBox(); + Octet2 = new MrngTextBox(); + Octet3 = new MrngTextBox(); + Octet4 = new MrngTextBox(); + label1 = new MrngLabel(); + label2 = new MrngLabel(); + label3 = new MrngLabel(); + toolTip1 = new ToolTip(); + components = new System.ComponentModel.Container(); } private void SetTabSTopProperties() @@ -269,10 +283,11 @@ namespace mRemoteNG.UI.Controls } } - /* Performs KeyPress analysis and handling to ensure a valid ip octet is - * being entered in Box1. + /* Update the method signatures to include nullable reference type annotations + * to match the nullability of the target delegate 'KeyPressEventHandler'. */ - private void Box1_KeyPress(object sender, KeyPressEventArgs e) + + private void Box1_KeyPress(object? sender, KeyPressEventArgs e) { //Only Accept a '.', a numeral, or backspace if (e.KeyChar.ToString() == "." || char.IsDigit(e.KeyChar) || e.KeyChar == 8) @@ -317,7 +332,7 @@ namespace mRemoteNG.UI.Controls /* Performs KeyPress analysis and handling to ensure a valid ip octet is * being entered in Box2. */ - private void Box2_KeyPress(object sender, KeyPressEventArgs e) + private void Box2_KeyPress(object? sender, KeyPressEventArgs e) { //Similar to Box1_KeyPress but in special case for backspace moves cursor //to the previous box (Box1) @@ -361,7 +376,7 @@ namespace mRemoteNG.UI.Controls /* Performs KeyPress analysis and handling to ensure a valid ip octet is * being entered in Box3. */ - private void Box3_KeyPress(object sender, KeyPressEventArgs e) + private void Box3_KeyPress(object? sender, KeyPressEventArgs e) { //Identical to Box2_KeyPress except that previous box is Box2 and //next box is Box3 @@ -405,7 +420,7 @@ namespace mRemoteNG.UI.Controls /* Performs KeyPress analysis and handling to ensure a valid ip octet is * being entered in Box4. */ - private void Box4_KeyPress(object sender, KeyPressEventArgs e) + private void Box4_KeyPress(object? sender, KeyPressEventArgs e) { //Similar to Box3 but ignores the '.' character and does not advance //to the next box. Also Box3 is previous box for backspace case. @@ -428,11 +443,11 @@ namespace mRemoteNG.UI.Controls e.Handled = true; } - // Selects All text in a box for overwriting upon entering the box - private void Box_Enter(object sender, EventArgs e) + // Update the method signature to include nullable reference type annotations + private void Box_Enter(object? sender, EventArgs e) { - TextBox tb = (TextBox)sender; - tb.SelectAll(); + TextBox? tb = sender as TextBox; + tb?.SelectAll(); } } } \ No newline at end of file diff --git a/mRemoteNG/UI/Controls/mrngPictureBox.Designer.cs b/mRemoteNG/UI/Controls/mrngPictureBox.Designer.cs index 6c207be6..57e47e49 100644 --- a/mRemoteNG/UI/Controls/mrngPictureBox.Designer.cs +++ b/mRemoteNG/UI/Controls/mrngPictureBox.Designer.cs @@ -26,10 +26,7 @@ /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// - private void InitializeComponent() - { - components = new System.ComponentModel.Container(); - } + private void InitializeComponent() => components = new System.ComponentModel.Container(); #endregion } diff --git a/mRemoteNG/UI/DisplayProperties.cs b/mRemoteNG/UI/DisplayProperties.cs index 2487d1ef..9cc8263e 100644 --- a/mRemoteNG/UI/DisplayProperties.cs +++ b/mRemoteNG/UI/DisplayProperties.cs @@ -8,10 +8,15 @@ using mRemoteNG.UI.GraphicsUtilities; namespace mRemoteNG.UI { + /// + /// Creates a new instance with the given + /// . + /// + /// [SupportedOSPlatform("windows")] - public class DisplayProperties + public class DisplayProperties(IGraphicsProvider graphicsProvider) { - private readonly IGraphicsProvider _graphicsProvider; + private readonly IGraphicsProvider _graphicsProvider = graphicsProvider.ThrowIfNull(nameof(graphicsProvider)); public SizeF ResolutionScalingFactor => _graphicsProvider.GetResolutionScalingFactor(); @@ -24,16 +29,6 @@ namespace mRemoteNG.UI { } - /// - /// Creates a new instance with the given - /// . - /// - /// - public DisplayProperties(IGraphicsProvider graphicsProvider) - { - _graphicsProvider = graphicsProvider.ThrowIfNull(nameof(graphicsProvider)); - } - /// /// Scale the given nominal width value by the /// diff --git a/mRemoteNG/UI/Forms/FrmExport.cs b/mRemoteNG/UI/Forms/FrmExport.cs index fc5d284c..52b487d3 100644 --- a/mRemoteNG/UI/Forms/FrmExport.cs +++ b/mRemoteNG/UI/Forms/FrmExport.cs @@ -272,21 +272,15 @@ namespace mRemoteNG.UI.Forms #region Private Classes [ImmutableObject(true)] - private class ExportFormat + private class ExportFormat(SaveFormat format) { #region Public Properties - public SaveFormat Format { get; } + public SaveFormat Format { get; } = format; #endregion - #region Constructors - public ExportFormat(SaveFormat format) - { - Format = format; - } - #endregion #region Public Methods diff --git a/mRemoteNG/UI/Forms/OptionsPages/OptionsPage.cs b/mRemoteNG/UI/Forms/OptionsPages/OptionsPage.cs index 7ebce5cf..cc26edda 100644 --- a/mRemoteNG/UI/Forms/OptionsPages/OptionsPage.cs +++ b/mRemoteNG/UI/Forms/OptionsPages/OptionsPage.cs @@ -94,15 +94,9 @@ namespace mRemoteNG.UI.Forms.OptionsPages } } } - internal class DropdownList + internal class DropdownList(int argIndex, string argDisplay) { - public int Index { get; set; } - public string DisplayString { get; set; } - - public DropdownList(int argIndex, string argDisplay) - { - Index = argIndex; - DisplayString = argDisplay; - } + public int Index { get; set; } = argIndex; + public string DisplayString { get; set; } = argDisplay; } } \ No newline at end of file diff --git a/mRemoteNG/UI/Forms/OptionsPages/SqlServerPage.Designer.cs b/mRemoteNG/UI/Forms/OptionsPages/SqlServerPage.Designer.cs index 01231eba..95edf7f7 100644 --- a/mRemoteNG/UI/Forms/OptionsPages/SqlServerPage.Designer.cs +++ b/mRemoteNG/UI/Forms/OptionsPages/SqlServerPage.Designer.cs @@ -9,10 +9,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages //UserControl overrides dispose to clean up the component list. [System.Diagnostics.DebuggerNonUserCode()] - protected override void Dispose(bool disposing) - { - base.Dispose(disposing); - } + protected override void Dispose(bool disposing) => base.Dispose(disposing); //NOTE: The following procedure is required by the Windows Form Designer //It can be modified using the Windows Form Designer. diff --git a/mRemoteNG/UI/Forms/OptionsPages/SqlServerPage.cs b/mRemoteNG/UI/Forms/OptionsPages/SqlServerPage.cs index d391d804..0c89be55 100644 --- a/mRemoteNG/UI/Forms/OptionsPages/SqlServerPage.cs +++ b/mRemoteNG/UI/Forms/OptionsPages/SqlServerPage.cs @@ -28,6 +28,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages ApplyTheme(); PageIcon = Resources.ImageConverter.GetImageAsIcon(Properties.Resources.SQLDatabase_16x); _databaseConnectionTester = new DatabaseConnectionTester(); + pageRegSettingsInstance = new OptRegistrySqlServerPage(); // Initialize the field to avoid nullability issues } public override string PageName @@ -195,13 +196,12 @@ namespace mRemoteNG.UI.Forms.OptionsPages imgConnectionStatus.Image = Properties.Resources.Loading_Spinner; btnTestConnection.Enabled = false; - string connectionString = "Data Source=172.22.155.100,1433;Initial Catalog=Demo;User ID=sa;Password=London123"; - DatabaseConnectionTester.TestConnection(connectionString); - //ConnectionTestResult connectionTestResult = true - // await _databaseConnectionTester.TestConnectivity(type, server, database, username, password); + // Replace the hardcoded connection string with the actual parameters + string connectionString = $"Data Source={server};Initial Catalog={database};User ID={username};Password={password}"; + ConnectionTestResult connectionTestResult = await _databaseConnectionTester.TestConnectivity(type, server, database, username, password); btnTestConnection.Enabled = true; - /* + switch (connectionTestResult) { case ConnectionTestResult.ConnectionSucceded: @@ -232,7 +232,6 @@ namespace mRemoteNG.UI.Forms.OptionsPages lblTestConnectionResults.Text = BuildTestFailedMessage(Language.RdpErrorUnknown); break; } - */ } private void UpdateConnectionImage(bool connectionSuccess) @@ -365,7 +364,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages DCMSetupddschema.DropDown += DCMSetupddschema_DropDown; } - private void DCMSetupddschema_DropDown(object sender, EventArgs e) + private void DCMSetupddschema_DropDown(object? sender, EventArgs e) { // Refresh files each time dropdown is opened RefreshSchemaFiles(); @@ -376,7 +375,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages try { // Store the currently selected item - string currentSelection = DCMSetupddschema.SelectedValue?.ToString(); + string? currentSelection = DCMSetupddschema.SelectedValue?.ToString(); // Get the application's running directory string schemasFolder = Path.Combine(Application.StartupPath, "Schemas"); diff --git a/mRemoteNG/UI/FullscreenHandler.cs b/mRemoteNG/UI/FullscreenHandler.cs index 0863f468..e5700f80 100644 --- a/mRemoteNG/UI/FullscreenHandler.cs +++ b/mRemoteNG/UI/FullscreenHandler.cs @@ -3,9 +3,9 @@ using System.Windows.Forms; namespace mRemoteNG.UI { - public class FullscreenHandler + public class FullscreenHandler(Form handledForm) { - private readonly Form _handledForm; + private readonly Form _handledForm = handledForm; private FormWindowState _savedWindowState; private FormBorderStyle _savedBorderStyle; private Rectangle _savedBounds; @@ -25,11 +25,6 @@ namespace mRemoteNG.UI } } - public FullscreenHandler(Form handledForm) - { - _handledForm = handledForm; - } - private void EnterFullscreen() { _savedBorderStyle = _handledForm.FormBorderStyle; diff --git a/mRemoteNG/UI/Menu/AdvancedWindowMenu.cs b/mRemoteNG/UI/Menu/AdvancedWindowMenu.cs index 4c179d6c..5e6ba93e 100644 --- a/mRemoteNG/UI/Menu/AdvancedWindowMenu.cs +++ b/mRemoteNG/UI/Menu/AdvancedWindowMenu.cs @@ -8,16 +8,11 @@ namespace mRemoteNG.UI.Menu { [SupportedOSPlatform("windows")] // This class creates new menu items to menu that appears when you right click the top of the app (where the window title is) - public class AdvancedWindowMenu : IDisposable + public class AdvancedWindowMenu(IWin32Window boundControl) : IDisposable { - private readonly WindowMenu _windowMenu; + private readonly WindowMenu _windowMenu = new WindowMenu(boundControl.Handle); private readonly int[] _sysMenSubItems = new int[51]; - public AdvancedWindowMenu(IWin32Window boundControl) - { - _windowMenu = new WindowMenu(boundControl.Handle); - } - public Screen GetScreenById(int id) { for (int i = 0; i <= _sysMenSubItems.Length - 1; i++) diff --git a/mRemoteNG/UI/Tabs/DockPaneStripNG.cs b/mRemoteNG/UI/Tabs/DockPaneStripNG.cs index 485c651f..a149ebbf 100644 --- a/mRemoteNG/UI/Tabs/DockPaneStripNG.cs +++ b/mRemoteNG/UI/Tabs/DockPaneStripNG.cs @@ -19,13 +19,8 @@ namespace mRemoteNG.UI.Tabs [ToolboxItem(false)] internal class DockPaneStripNG : DockPaneStripBase { - private class MremoteNGTab : Tab + private class MremoteNGTab(IDockContent content) : Tab(content) { - public MremoteNGTab(IDockContent content) - : base(content) - { - } - public int TabX { get; set; } public int TabWidth { get; set; } @@ -41,20 +36,13 @@ namespace mRemoteNG.UI.Tabs } [ToolboxItem(false)] - private sealed class InertButton : InertButtonBase + private sealed class InertButton(Bitmap hovered, Bitmap normal, Bitmap pressed) : InertButtonBase { - public InertButton(Bitmap hovered, Bitmap normal, Bitmap pressed) - { - HoverImage = hovered; - Image = normal; - PressImage = pressed; - } + public override Bitmap Image { get; } = normal; - public override Bitmap Image { get; } + public override Bitmap HoverImage { get; } = hovered; - public override Bitmap HoverImage { get; } - - public override Bitmap PressImage { get; } + public override Bitmap PressImage { get; } = pressed; } #region Constants diff --git a/mRemoteNG/UI/TaskDialog/CommandButton.cs b/mRemoteNG/UI/TaskDialog/CommandButton.cs index 5ea7e9d4..6f4d5ef0 100644 --- a/mRemoteNG/UI/TaskDialog/CommandButton.cs +++ b/mRemoteNG/UI/TaskDialog/CommandButton.cs @@ -84,6 +84,8 @@ namespace mRemoteNG.UI.TaskDialog Font = new Font("Segoe UI", 11.75F, FontStyle.Regular, GraphicsUnit.Point, 0); SmallFont = new Font("Segoe UI", 8F, FontStyle.Regular, GraphicsUnit.Point, 0); _themeManager = ThemeManager.getInstance(); + imgArrow1 = Properties.Resources.GlyphRight_16x; // Initialize imgArrow1 + imgArrow2 = Properties.Resources.GlyphRight_16x; // Initialize imgArrow2 } #endregion diff --git a/mRemoteNG/UI/WindowList.cs b/mRemoteNG/UI/WindowList.cs index b66ad85f..e27d05c2 100644 --- a/mRemoteNG/UI/WindowList.cs +++ b/mRemoteNG/UI/WindowList.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections; using mRemoteNG.UI.Window;