/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the workdocs-2016-05-01.normal.json service model. */ using System; using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using System.Net; using Amazon.WorkDocs.Model; using Amazon.WorkDocs.Model.Internal.MarshallTransformations; using Amazon.WorkDocs.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.WorkDocs { /// /// Implementation for accessing WorkDocs /// /// The Amazon WorkDocs API is designed for the following use cases: /// /// /// /// All Amazon WorkDocs API actions are Amazon authenticated and certificate-signed. They /// not only require the use of the Amazon Web Services SDK, but also allow for the exclusive /// use of IAM users and roles to help facilitate access, trust, and permission policies. /// By creating a role and allowing an IAM user to access the Amazon WorkDocs site, the /// IAM user gains full administrative visibility into the entire Amazon WorkDocs site /// (or as set in the IAM policy). This includes, but is not limited to, the ability to /// modify file permissions and upload any file to any user. This allows developers to /// perform the three use cases above, as well as give users the ability to grant access /// on a selective basis using the IAM model. /// /// /// /// The pricing for Amazon WorkDocs APIs varies depending on the API call type for these /// actions: /// /// /// /// For information about Amazon WorkDocs API pricing, see Amazon /// WorkDocs Pricing. /// /// /// public partial class AmazonWorkDocsClient : AmazonServiceClient, IAmazonWorkDocs { private static IServiceMetadata serviceMetadata = new AmazonWorkDocsMetadata(); #region Constructors /// /// Constructs AmazonWorkDocsClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// public AmazonWorkDocsClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonWorkDocsConfig()) { } /// /// Constructs AmazonWorkDocsClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The region to connect. public AmazonWorkDocsClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonWorkDocsConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonWorkDocsClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The AmazonWorkDocsClient Configuration Object public AmazonWorkDocsClient(AmazonWorkDocsConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonWorkDocsClient with AWS Credentials /// /// AWS Credentials public AmazonWorkDocsClient(AWSCredentials credentials) : this(credentials, new AmazonWorkDocsConfig()) { } /// /// Constructs AmazonWorkDocsClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonWorkDocsClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonWorkDocsConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonWorkDocsClient with AWS Credentials and an /// AmazonWorkDocsClient Configuration object. /// /// AWS Credentials /// The AmazonWorkDocsClient Configuration Object public AmazonWorkDocsClient(AWSCredentials credentials, AmazonWorkDocsConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonWorkDocsClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonWorkDocsClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonWorkDocsConfig()) { } /// /// Constructs AmazonWorkDocsClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonWorkDocsClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonWorkDocsConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonWorkDocsClient with AWS Access Key ID, AWS Secret Key and an /// AmazonWorkDocsClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonWorkDocsClient Configuration Object public AmazonWorkDocsClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonWorkDocsConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonWorkDocsClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonWorkDocsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonWorkDocsConfig()) { } /// /// Constructs AmazonWorkDocsClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The region to connect. public AmazonWorkDocsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonWorkDocsConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonWorkDocsClient with AWS Access Key ID, AWS Secret Key and an /// AmazonWorkDocsClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonWorkDocsClient Configuration Object public AmazonWorkDocsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonWorkDocsConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private IWorkDocsPaginatorFactory _paginators; /// /// Paginators for the service /// public IWorkDocsPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new WorkDocsPaginatorFactory(this); } return this._paginators; } } #endif #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customizes the runtime pipeline. /// /// Runtime pipeline for the current client. protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler(); pipeline.AddHandlerAfter(new AmazonWorkDocsEndpointResolver()); } /// /// Capture metadata for the service. /// protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// /// Disposes the service client. /// protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region AbortDocumentVersionUpload internal virtual AbortDocumentVersionUploadResponse AbortDocumentVersionUpload(AbortDocumentVersionUploadRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AbortDocumentVersionUploadRequestMarshaller.Instance; options.ResponseUnmarshaller = AbortDocumentVersionUploadResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Aborts the upload of the specified document version that was previously initiated /// by InitiateDocumentVersionUpload. The client should make this call only when /// it no longer intends to upload the document version, or fails to do so. /// /// Container for the necessary parameters to execute the AbortDocumentVersionUpload service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the AbortDocumentVersionUpload service method, as returned by WorkDocs. /// /// The resource hierarchy is changing. /// /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// The specified document version is not in the INITIALIZED state. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for AbortDocumentVersionUpload Operation public virtual Task AbortDocumentVersionUploadAsync(AbortDocumentVersionUploadRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AbortDocumentVersionUploadRequestMarshaller.Instance; options.ResponseUnmarshaller = AbortDocumentVersionUploadResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ActivateUser internal virtual ActivateUserResponse ActivateUser(ActivateUserRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ActivateUserRequestMarshaller.Instance; options.ResponseUnmarshaller = ActivateUserResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Activates the specified user. Only active users can access Amazon WorkDocs. /// /// Container for the necessary parameters to execute the ActivateUser service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ActivateUser service method, as returned by WorkDocs. /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for ActivateUser Operation public virtual Task ActivateUserAsync(ActivateUserRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ActivateUserRequestMarshaller.Instance; options.ResponseUnmarshaller = ActivateUserResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region AddResourcePermissions internal virtual AddResourcePermissionsResponse AddResourcePermissions(AddResourcePermissionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AddResourcePermissionsRequestMarshaller.Instance; options.ResponseUnmarshaller = AddResourcePermissionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a set of permissions for the specified folder or document. The resource permissions /// are overwritten if the principals already have different permissions. /// /// Container for the necessary parameters to execute the AddResourcePermissions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the AddResourcePermissions service method, as returned by WorkDocs. /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// The specified document version is not in the INITIALIZED state. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for AddResourcePermissions Operation public virtual Task AddResourcePermissionsAsync(AddResourcePermissionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AddResourcePermissionsRequestMarshaller.Instance; options.ResponseUnmarshaller = AddResourcePermissionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateComment internal virtual CreateCommentResponse CreateComment(CreateCommentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCommentRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCommentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Adds a new comment to the specified document version. /// /// Container for the necessary parameters to execute the CreateComment service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateComment service method, as returned by WorkDocs. /// /// This exception is thrown when the document is locked for comments and user tries to /// create or delete a comment on that document. /// /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// The requested operation is not allowed on the specified comment object. /// /// /// The specified document version is not in the INITIALIZED state. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for CreateComment Operation public virtual Task CreateCommentAsync(CreateCommentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCommentRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCommentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateCustomMetadata internal virtual CreateCustomMetadataResponse CreateCustomMetadata(CreateCustomMetadataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCustomMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCustomMetadataResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Adds one or more custom properties to the specified resource (a folder, document, /// or version). /// /// Container for the necessary parameters to execute the CreateCustomMetadata service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateCustomMetadata service method, as returned by WorkDocs. /// /// The limit has been reached on the number of custom properties for the specified resource. /// /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// The specified document version is not in the INITIALIZED state. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for CreateCustomMetadata Operation public virtual Task CreateCustomMetadataAsync(CreateCustomMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCustomMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCustomMetadataResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateFolder internal virtual CreateFolderResponse CreateFolder(CreateFolderRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFolderRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFolderResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a folder with the specified name and parent folder. /// /// Container for the necessary parameters to execute the CreateFolder service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateFolder service method, as returned by WorkDocs. /// /// The resource hierarchy is changing. /// /// /// Another operation is in progress on the resource that conflicts with the current operation. /// /// /// The resource already exists. /// /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// The maximum of 100,000 files and folders under the parent folder has been exceeded. /// /// /// The specified document version is not in the INITIALIZED state. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for CreateFolder Operation public virtual Task CreateFolderAsync(CreateFolderRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFolderRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFolderResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateLabels internal virtual CreateLabelsResponse CreateLabels(CreateLabelsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLabelsRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLabelsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Adds the specified list of labels to the given resource (a document or folder) /// /// Container for the necessary parameters to execute the CreateLabels service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateLabels service method, as returned by WorkDocs. /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// One or more of the dependencies is unavailable. /// /// /// The limit has been reached on the number of labels for the specified resource. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for CreateLabels Operation public virtual Task CreateLabelsAsync(CreateLabelsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLabelsRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLabelsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateNotificationSubscription internal virtual CreateNotificationSubscriptionResponse CreateNotificationSubscription(CreateNotificationSubscriptionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNotificationSubscriptionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNotificationSubscriptionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Configure Amazon WorkDocs to use Amazon SNS notifications. The endpoint receives a /// confirmation message, and must confirm the subscription. /// /// /// /// For more information, see Setting /// up notifications for an IAM user or role in the Amazon WorkDocs Developer Guide. /// /// /// Container for the necessary parameters to execute the CreateNotificationSubscription service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateNotificationSubscription service method, as returned by WorkDocs. /// /// The pagination marker or limit fields are not valid. /// /// /// One or more of the dependencies is unavailable. /// /// /// You've reached the limit on the number of subscriptions for the WorkDocs instance. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for CreateNotificationSubscription Operation public virtual Task CreateNotificationSubscriptionAsync(CreateNotificationSubscriptionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNotificationSubscriptionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNotificationSubscriptionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateUser internal virtual CreateUserResponse CreateUser(CreateUserRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateUserRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateUserResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a user in a Simple AD or Microsoft AD directory. The status of a newly created /// user is "ACTIVE". New users can access Amazon WorkDocs. /// /// Container for the necessary parameters to execute the CreateUser service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateUser service method, as returned by WorkDocs. /// /// The resource already exists. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for CreateUser Operation public virtual Task CreateUserAsync(CreateUserRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateUserRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateUserResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeactivateUser internal virtual DeactivateUserResponse DeactivateUser(DeactivateUserRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeactivateUserRequestMarshaller.Instance; options.ResponseUnmarshaller = DeactivateUserResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deactivates the specified user, which revokes the user's access to Amazon WorkDocs. /// /// Container for the necessary parameters to execute the DeactivateUser service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeactivateUser service method, as returned by WorkDocs. /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for DeactivateUser Operation public virtual Task DeactivateUserAsync(DeactivateUserRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeactivateUserRequestMarshaller.Instance; options.ResponseUnmarshaller = DeactivateUserResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteComment internal virtual DeleteCommentResponse DeleteComment(DeleteCommentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCommentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCommentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the specified comment from the document version. /// /// Container for the necessary parameters to execute the DeleteComment service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteComment service method, as returned by WorkDocs. /// /// This exception is thrown when the document is locked for comments and user tries to /// create or delete a comment on that document. /// /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// The specified document version is not in the INITIALIZED state. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for DeleteComment Operation public virtual Task DeleteCommentAsync(DeleteCommentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCommentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCommentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteCustomMetadata internal virtual DeleteCustomMetadataResponse DeleteCustomMetadata(DeleteCustomMetadataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCustomMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCustomMetadataResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes custom metadata from the specified resource. /// /// Container for the necessary parameters to execute the DeleteCustomMetadata service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteCustomMetadata service method, as returned by WorkDocs. /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// The specified document version is not in the INITIALIZED state. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for DeleteCustomMetadata Operation public virtual Task DeleteCustomMetadataAsync(DeleteCustomMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCustomMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCustomMetadataResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteDocument internal virtual DeleteDocumentResponse DeleteDocument(DeleteDocumentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDocumentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDocumentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Permanently deletes the specified document and its associated metadata. /// /// Container for the necessary parameters to execute the DeleteDocument service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteDocument service method, as returned by WorkDocs. /// /// The resource hierarchy is changing. /// /// /// Another operation is in progress on the resource that conflicts with the current operation. /// /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// The maximum of 100,000 files and folders under the parent folder has been exceeded. /// /// /// The specified document version is not in the INITIALIZED state. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for DeleteDocument Operation public virtual Task DeleteDocumentAsync(DeleteDocumentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDocumentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDocumentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteDocumentVersion internal virtual DeleteDocumentVersionResponse DeleteDocumentVersion(DeleteDocumentVersionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDocumentVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDocumentVersionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a specific version of a document. /// /// Container for the necessary parameters to execute the DeleteDocumentVersion service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteDocumentVersion service method, as returned by WorkDocs. /// /// The resource hierarchy is changing. /// /// /// Another operation is in progress on the resource that conflicts with the current operation. /// /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// The operation is invalid. /// /// /// The specified document version is not in the INITIALIZED state. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for DeleteDocumentVersion Operation public virtual Task DeleteDocumentVersionAsync(DeleteDocumentVersionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDocumentVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDocumentVersionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteFolder internal virtual DeleteFolderResponse DeleteFolder(DeleteFolderRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFolderRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFolderResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Permanently deletes the specified folder and its contents. /// /// Container for the necessary parameters to execute the DeleteFolder service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteFolder service method, as returned by WorkDocs. /// /// The resource hierarchy is changing. /// /// /// Another operation is in progress on the resource that conflicts with the current operation. /// /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// The maximum of 100,000 files and folders under the parent folder has been exceeded. /// /// /// The specified document version is not in the INITIALIZED state. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for DeleteFolder Operation public virtual Task DeleteFolderAsync(DeleteFolderRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFolderRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFolderResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteFolderContents internal virtual DeleteFolderContentsResponse DeleteFolderContents(DeleteFolderContentsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFolderContentsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFolderContentsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the contents of the specified folder. /// /// Container for the necessary parameters to execute the DeleteFolderContents service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteFolderContents service method, as returned by WorkDocs. /// /// Another operation is in progress on the resource that conflicts with the current operation. /// /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// The specified document version is not in the INITIALIZED state. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for DeleteFolderContents Operation public virtual Task DeleteFolderContentsAsync(DeleteFolderContentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFolderContentsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFolderContentsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteLabels internal virtual DeleteLabelsResponse DeleteLabels(DeleteLabelsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLabelsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLabelsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the specified list of labels from a resource. /// /// Container for the necessary parameters to execute the DeleteLabels service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteLabels service method, as returned by WorkDocs. /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// The specified document version is not in the INITIALIZED state. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for DeleteLabels Operation public virtual Task DeleteLabelsAsync(DeleteLabelsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLabelsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLabelsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteNotificationSubscription internal virtual DeleteNotificationSubscriptionResponse DeleteNotificationSubscription(DeleteNotificationSubscriptionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNotificationSubscriptionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNotificationSubscriptionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the specified subscription from the specified organization. /// /// Container for the necessary parameters to execute the DeleteNotificationSubscription service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteNotificationSubscription service method, as returned by WorkDocs. /// /// The resource does not exist. /// /// /// The specified document version is not in the INITIALIZED state. /// /// /// One or more of the dependencies is unavailable. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for DeleteNotificationSubscription Operation public virtual Task DeleteNotificationSubscriptionAsync(DeleteNotificationSubscriptionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNotificationSubscriptionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNotificationSubscriptionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteUser internal virtual DeleteUserResponse DeleteUser(DeleteUserRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteUserRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteUserResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the specified user from a Simple AD or Microsoft AD directory. /// /// /// /// Deleting a user immediately and permanently deletes all content in that user's folder /// structure. Site retention policies do NOT apply to this type of deletion. /// /// /// /// Container for the necessary parameters to execute the DeleteUser service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteUser service method, as returned by WorkDocs. /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for DeleteUser Operation public virtual Task DeleteUserAsync(DeleteUserRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteUserRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteUserResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeActivities internal virtual DescribeActivitiesResponse DescribeActivities(DescribeActivitiesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeActivitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeActivitiesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes the user activities in a specified time period. /// /// Container for the necessary parameters to execute the DescribeActivities service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeActivities service method, as returned by WorkDocs. /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// The pagination marker or limit fields are not valid. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for DescribeActivities Operation public virtual Task DescribeActivitiesAsync(DescribeActivitiesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeActivitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeActivitiesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeComments internal virtual DescribeCommentsResponse DescribeComments(DescribeCommentsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeCommentsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeCommentsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// List all the comments for the specified document version. /// /// Container for the necessary parameters to execute the DescribeComments service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeComments service method, as returned by WorkDocs. /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// The specified document version is not in the INITIALIZED state. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for DescribeComments Operation public virtual Task DescribeCommentsAsync(DescribeCommentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeCommentsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeCommentsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeDocumentVersions internal virtual DescribeDocumentVersionsResponse DescribeDocumentVersions(DescribeDocumentVersionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDocumentVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDocumentVersionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves the document versions for the specified document. /// /// /// /// By default, only active versions are returned. /// /// /// Container for the necessary parameters to execute the DescribeDocumentVersions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeDocumentVersions service method, as returned by WorkDocs. /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// The pagination marker or limit fields are not valid. /// /// /// The password is invalid. /// /// /// The specified document version is not in the INITIALIZED state. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for DescribeDocumentVersions Operation public virtual Task DescribeDocumentVersionsAsync(DescribeDocumentVersionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDocumentVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDocumentVersionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeFolderContents internal virtual DescribeFolderContentsResponse DescribeFolderContents(DescribeFolderContentsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeFolderContentsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeFolderContentsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes the contents of the specified folder, including its documents and subfolders. /// /// /// /// By default, Amazon WorkDocs returns the first 100 active document and folder metadata /// items. If there are more results, the response includes a marker that you can use /// to request the next set of results. You can also request initialized documents. /// /// /// Container for the necessary parameters to execute the DescribeFolderContents service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeFolderContents service method, as returned by WorkDocs. /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// The pagination marker or limit fields are not valid. /// /// /// The specified document version is not in the INITIALIZED state. /// /// /// One or more of the dependencies is unavailable. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for DescribeFolderContents Operation public virtual Task DescribeFolderContentsAsync(DescribeFolderContentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeFolderContentsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeFolderContentsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeGroups internal virtual DescribeGroupsResponse DescribeGroups(DescribeGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeGroupsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes the groups specified by the query. Groups are defined by the underlying /// Active Directory. /// /// Container for the necessary parameters to execute the DescribeGroups service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeGroups service method, as returned by WorkDocs. /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for DescribeGroups Operation public virtual Task DescribeGroupsAsync(DescribeGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeGroupsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeNotificationSubscriptions internal virtual DescribeNotificationSubscriptionsResponse DescribeNotificationSubscriptions(DescribeNotificationSubscriptionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeNotificationSubscriptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeNotificationSubscriptionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the specified notification subscriptions. /// /// Container for the necessary parameters to execute the DescribeNotificationSubscriptions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeNotificationSubscriptions service method, as returned by WorkDocs. /// /// The resource does not exist. /// /// /// One or more of the dependencies is unavailable. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for DescribeNotificationSubscriptions Operation public virtual Task DescribeNotificationSubscriptionsAsync(DescribeNotificationSubscriptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeNotificationSubscriptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeNotificationSubscriptionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeResourcePermissions internal virtual DescribeResourcePermissionsResponse DescribeResourcePermissions(DescribeResourcePermissionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeResourcePermissionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeResourcePermissionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes the permissions of a specified resource. /// /// Container for the necessary parameters to execute the DescribeResourcePermissions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeResourcePermissions service method, as returned by WorkDocs. /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// The pagination marker or limit fields are not valid. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for DescribeResourcePermissions Operation public virtual Task DescribeResourcePermissionsAsync(DescribeResourcePermissionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeResourcePermissionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeResourcePermissionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeRootFolders internal virtual DescribeRootFoldersResponse DescribeRootFolders(DescribeRootFoldersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeRootFoldersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeRootFoldersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes the current user's special folders; the RootFolder and the /// RecycleBin. RootFolder is the root of user's files and folders /// and RecycleBin is the root of recycled items. This is not a valid action /// for SigV4 (administrative API) clients. /// /// /// /// This action requires an authentication token. To get an authentication token, register /// an application with Amazon WorkDocs. For more information, see Authentication /// and Access Control for User Applications in the Amazon WorkDocs Developer Guide. /// /// /// Container for the necessary parameters to execute the DescribeRootFolders service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeRootFolders service method, as returned by WorkDocs. /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// The pagination marker or limit fields are not valid. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for DescribeRootFolders Operation public virtual Task DescribeRootFoldersAsync(DescribeRootFoldersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeRootFoldersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeRootFoldersResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeUsers internal virtual DescribeUsersResponse DescribeUsers(DescribeUsersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeUsersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeUsersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes the specified users. You can describe all users or filter the results (for /// example, by status or organization). /// /// /// /// By default, Amazon WorkDocs returns the first 24 active or pending users. If there /// are more results, the response includes a marker that you can use to request the next /// set of results. /// /// /// Container for the necessary parameters to execute the DescribeUsers service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeUsers service method, as returned by WorkDocs. /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// The pagination marker or limit fields are not valid. /// /// /// The response is too large to return. The request must include a filter to reduce the /// size of the response. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for DescribeUsers Operation public virtual Task DescribeUsersAsync(DescribeUsersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeUsersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeUsersResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetCurrentUser internal virtual GetCurrentUserResponse GetCurrentUser(GetCurrentUserRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCurrentUserRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCurrentUserResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves details of the current user for whom the authentication token was generated. /// This is not a valid action for SigV4 (administrative API) clients. /// /// /// /// This action requires an authentication token. To get an authentication token, register /// an application with Amazon WorkDocs. For more information, see Authentication /// and Access Control for User Applications in the Amazon WorkDocs Developer Guide. /// /// /// Container for the necessary parameters to execute the GetCurrentUser service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetCurrentUser service method, as returned by WorkDocs. /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for GetCurrentUser Operation public virtual Task GetCurrentUserAsync(GetCurrentUserRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetCurrentUserRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCurrentUserResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetDocument internal virtual GetDocumentResponse GetDocument(GetDocumentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDocumentRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDocumentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves details of a document. /// /// Container for the necessary parameters to execute the GetDocument service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetDocument service method, as returned by WorkDocs. /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// The pagination marker or limit fields are not valid. /// /// /// The password is invalid. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for GetDocument Operation public virtual Task GetDocumentAsync(GetDocumentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDocumentRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDocumentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetDocumentPath internal virtual GetDocumentPathResponse GetDocumentPath(GetDocumentPathRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDocumentPathRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDocumentPathResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves the path information (the hierarchy from the root folder) for the requested /// document. /// /// /// /// By default, Amazon WorkDocs returns a maximum of 100 levels upwards from the requested /// document and only includes the IDs of the parent folders in the path. You can limit /// the maximum number of levels. You can also request the names of the parent folders. /// /// /// Container for the necessary parameters to execute the GetDocumentPath service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetDocumentPath service method, as returned by WorkDocs. /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for GetDocumentPath Operation public virtual Task GetDocumentPathAsync(GetDocumentPathRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDocumentPathRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDocumentPathResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetDocumentVersion internal virtual GetDocumentVersionResponse GetDocumentVersion(GetDocumentVersionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDocumentVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDocumentVersionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves version metadata for the specified document. /// /// Container for the necessary parameters to execute the GetDocumentVersion service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetDocumentVersion service method, as returned by WorkDocs. /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// The password is invalid. /// /// /// The specified document version is not in the INITIALIZED state. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for GetDocumentVersion Operation public virtual Task GetDocumentVersionAsync(GetDocumentVersionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDocumentVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDocumentVersionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetFolder internal virtual GetFolderResponse GetFolder(GetFolderRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetFolderRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFolderResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves the metadata of the specified folder. /// /// Container for the necessary parameters to execute the GetFolder service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetFolder service method, as returned by WorkDocs. /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// The pagination marker or limit fields are not valid. /// /// /// The specified document version is not in the INITIALIZED state. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for GetFolder Operation public virtual Task GetFolderAsync(GetFolderRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetFolderRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFolderResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetFolderPath internal virtual GetFolderPathResponse GetFolderPath(GetFolderPathRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetFolderPathRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFolderPathResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves the path information (the hierarchy from the root folder) for the specified /// folder. /// /// /// /// By default, Amazon WorkDocs returns a maximum of 100 levels upwards from the requested /// folder and only includes the IDs of the parent folders in the path. You can limit /// the maximum number of levels. You can also request the parent folder names. /// /// /// Container for the necessary parameters to execute the GetFolderPath service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetFolderPath service method, as returned by WorkDocs. /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for GetFolderPath Operation public virtual Task GetFolderPathAsync(GetFolderPathRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetFolderPathRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFolderPathResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetResources internal virtual GetResourcesResponse GetResources(GetResourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResourcesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves a collection of resources, including folders and documents. The only CollectionType /// supported is SHARED_WITH_ME. /// /// Container for the necessary parameters to execute the GetResources service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetResources service method, as returned by WorkDocs. /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// The pagination marker or limit fields are not valid. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for GetResources Operation public virtual Task GetResourcesAsync(GetResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResourcesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region InitiateDocumentVersionUpload internal virtual InitiateDocumentVersionUploadResponse InitiateDocumentVersionUpload(InitiateDocumentVersionUploadRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = InitiateDocumentVersionUploadRequestMarshaller.Instance; options.ResponseUnmarshaller = InitiateDocumentVersionUploadResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a new document object and version object. /// /// /// /// The client specifies the parent folder ID and name of the document to upload. The /// ID is optionally specified when creating a new version of an existing document. This /// is the first step to upload a document. Next, upload the document to the URL returned /// from the call, and then call UpdateDocumentVersion. /// /// /// /// To cancel the document upload, call AbortDocumentVersionUpload. /// /// /// Container for the necessary parameters to execute the InitiateDocumentVersionUpload service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the InitiateDocumentVersionUpload service method, as returned by WorkDocs. /// /// This exception is thrown when a valid checkout ID is not presented on document version /// upload calls for a document that has been checked out from Web client. /// /// /// The resource already exists. /// /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// The pagination marker or limit fields are not valid. /// /// /// The password is invalid. /// /// /// The maximum of 100,000 files and folders under the parent folder has been exceeded. /// /// /// The specified document version is not in the INITIALIZED state. /// /// /// The resource is already checked out. /// /// /// One or more of the dependencies is unavailable. /// /// /// The storage limit has been exceeded. /// /// /// The storage limit will be exceeded. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for InitiateDocumentVersionUpload Operation public virtual Task InitiateDocumentVersionUploadAsync(InitiateDocumentVersionUploadRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = InitiateDocumentVersionUploadRequestMarshaller.Instance; options.ResponseUnmarshaller = InitiateDocumentVersionUploadResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region RemoveAllResourcePermissions internal virtual RemoveAllResourcePermissionsResponse RemoveAllResourcePermissions(RemoveAllResourcePermissionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveAllResourcePermissionsRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveAllResourcePermissionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Removes all the permissions from the specified resource. /// /// Container for the necessary parameters to execute the RemoveAllResourcePermissions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the RemoveAllResourcePermissions service method, as returned by WorkDocs. /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for RemoveAllResourcePermissions Operation public virtual Task RemoveAllResourcePermissionsAsync(RemoveAllResourcePermissionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveAllResourcePermissionsRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveAllResourcePermissionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region RemoveResourcePermission internal virtual RemoveResourcePermissionResponse RemoveResourcePermission(RemoveResourcePermissionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveResourcePermissionRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveResourcePermissionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Removes the permission for the specified principal from the specified resource. /// /// Container for the necessary parameters to execute the RemoveResourcePermission service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the RemoveResourcePermission service method, as returned by WorkDocs. /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for RemoveResourcePermission Operation public virtual Task RemoveResourcePermissionAsync(RemoveResourcePermissionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveResourcePermissionRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveResourcePermissionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region RestoreDocumentVersions internal virtual RestoreDocumentVersionsResponse RestoreDocumentVersions(RestoreDocumentVersionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RestoreDocumentVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = RestoreDocumentVersionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Recovers a deleted version of an Amazon WorkDocs document. /// /// Container for the necessary parameters to execute the RestoreDocumentVersions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the RestoreDocumentVersions service method, as returned by WorkDocs. /// /// The resource hierarchy is changing. /// /// /// Another operation is in progress on the resource that conflicts with the current operation. /// /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// The operation is invalid. /// /// /// The specified document version is not in the INITIALIZED state. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for RestoreDocumentVersions Operation public virtual Task RestoreDocumentVersionsAsync(RestoreDocumentVersionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RestoreDocumentVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = RestoreDocumentVersionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region SearchResources internal virtual SearchResourcesResponse SearchResources(SearchResourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SearchResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchResourcesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Searches metadata and the content of folders, documents, document versions, and comments. /// /// Container for the necessary parameters to execute the SearchResources service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the SearchResources service method, as returned by WorkDocs. /// /// The pagination marker or limit fields are not valid. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for SearchResources Operation public virtual Task SearchResourcesAsync(SearchResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SearchResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchResourcesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateDocument internal virtual UpdateDocumentResponse UpdateDocument(UpdateDocumentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDocumentRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDocumentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the specified attributes of a document. The user must have access to both /// the document and its parent folder, if applicable. /// /// Container for the necessary parameters to execute the UpdateDocument service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateDocument service method, as returned by WorkDocs. /// /// The resource hierarchy is changing. /// /// /// Another operation is in progress on the resource that conflicts with the current operation. /// /// /// The resource already exists. /// /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// The maximum of 100,000 files and folders under the parent folder has been exceeded. /// /// /// The specified document version is not in the INITIALIZED state. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for UpdateDocument Operation public virtual Task UpdateDocumentAsync(UpdateDocumentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDocumentRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDocumentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateDocumentVersion internal virtual UpdateDocumentVersionResponse UpdateDocumentVersion(UpdateDocumentVersionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDocumentVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDocumentVersionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Changes the status of the document version to ACTIVE. /// /// /// /// Amazon WorkDocs also sets its document container to ACTIVE. This is the last step /// in a document upload, after the client uploads the document to an S3-presigned URL /// returned by InitiateDocumentVersionUpload. /// /// /// Container for the necessary parameters to execute the UpdateDocumentVersion service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateDocumentVersion service method, as returned by WorkDocs. /// /// The resource hierarchy is changing. /// /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// The operation is invalid. /// /// /// The specified document version is not in the INITIALIZED state. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for UpdateDocumentVersion Operation public virtual Task UpdateDocumentVersionAsync(UpdateDocumentVersionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDocumentVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDocumentVersionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateFolder internal virtual UpdateFolderResponse UpdateFolder(UpdateFolderRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFolderRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFolderResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the specified attributes of the specified folder. The user must have access /// to both the folder and its parent folder, if applicable. /// /// Container for the necessary parameters to execute the UpdateFolder service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateFolder service method, as returned by WorkDocs. /// /// The resource hierarchy is changing. /// /// /// Another operation is in progress on the resource that conflicts with the current operation. /// /// /// The resource already exists. /// /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// The maximum of 100,000 files and folders under the parent folder has been exceeded. /// /// /// The specified document version is not in the INITIALIZED state. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for UpdateFolder Operation public virtual Task UpdateFolderAsync(UpdateFolderRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFolderRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFolderResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateUser internal virtual UpdateUserResponse UpdateUser(UpdateUserRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateUserRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateUserResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the specified attributes of the specified user, and grants or revokes administrative /// privileges to the Amazon WorkDocs site. /// /// Container for the necessary parameters to execute the UpdateUser service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateUser service method, as returned by WorkDocs. /// /// The last user in the organization is being deactivated. /// /// /// The resource does not exist. /// /// /// The Directory Service cannot reach an on-premises instance. Or a dependency under /// the control of the organization is failing, such as a connected Active Directory. /// /// /// The user is undergoing transfer of ownership. /// /// /// The pagination marker or limit fields are not valid. /// /// /// The specified document version is not in the INITIALIZED state. /// /// /// One or more of the dependencies is unavailable. /// /// /// The operation is not permitted. /// /// /// The caller does not have access to perform the action on the resource. /// /// REST API Reference for UpdateUser Operation public virtual Task UpdateUserAsync(UpdateUserRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateUserRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateUserResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }