/* * 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.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(); #if BCL45 || 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 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 #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customize the pipeline /// /// 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 /// /// 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. /// /// 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 AbortDocumentVersionUploadResponse AbortDocumentVersionUpload(AbortDocumentVersionUploadRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AbortDocumentVersionUploadRequestMarshaller.Instance; options.ResponseUnmarshaller = AbortDocumentVersionUploadResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the AbortDocumentVersionUpload operation. /// /// /// Container for the necessary parameters to execute the AbortDocumentVersionUpload operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAbortDocumentVersionUpload /// operation. /// REST API Reference for AbortDocumentVersionUpload Operation public virtual IAsyncResult BeginAbortDocumentVersionUpload(AbortDocumentVersionUploadRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = AbortDocumentVersionUploadRequestMarshaller.Instance; options.ResponseUnmarshaller = AbortDocumentVersionUploadResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the AbortDocumentVersionUpload operation. /// /// /// The IAsyncResult returned by the call to BeginAbortDocumentVersionUpload. /// /// Returns a AbortDocumentVersionUploadResult from WorkDocs. /// REST API Reference for AbortDocumentVersionUpload Operation public virtual AbortDocumentVersionUploadResponse EndAbortDocumentVersionUpload(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ActivateUser /// /// Activates the specified user. Only active users can access Amazon WorkDocs. /// /// Container for the necessary parameters to execute the ActivateUser service method. /// /// 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 ActivateUserResponse ActivateUser(ActivateUserRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ActivateUserRequestMarshaller.Instance; options.ResponseUnmarshaller = ActivateUserResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ActivateUser operation. /// /// /// Container for the necessary parameters to execute the ActivateUser operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndActivateUser /// operation. /// REST API Reference for ActivateUser Operation public virtual IAsyncResult BeginActivateUser(ActivateUserRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ActivateUserRequestMarshaller.Instance; options.ResponseUnmarshaller = ActivateUserResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ActivateUser operation. /// /// /// The IAsyncResult returned by the call to BeginActivateUser. /// /// Returns a ActivateUserResult from WorkDocs. /// REST API Reference for ActivateUser Operation public virtual ActivateUserResponse EndActivateUser(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region AddResourcePermissions /// /// 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. /// /// 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 AddResourcePermissionsResponse AddResourcePermissions(AddResourcePermissionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AddResourcePermissionsRequestMarshaller.Instance; options.ResponseUnmarshaller = AddResourcePermissionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the AddResourcePermissions operation. /// /// /// Container for the necessary parameters to execute the AddResourcePermissions operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAddResourcePermissions /// operation. /// REST API Reference for AddResourcePermissions Operation public virtual IAsyncResult BeginAddResourcePermissions(AddResourcePermissionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = AddResourcePermissionsRequestMarshaller.Instance; options.ResponseUnmarshaller = AddResourcePermissionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the AddResourcePermissions operation. /// /// /// The IAsyncResult returned by the call to BeginAddResourcePermissions. /// /// Returns a AddResourcePermissionsResult from WorkDocs. /// REST API Reference for AddResourcePermissions Operation public virtual AddResourcePermissionsResponse EndAddResourcePermissions(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateComment /// /// Adds a new comment to the specified document version. /// /// Container for the necessary parameters to execute the CreateComment service method. /// /// 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 CreateCommentResponse CreateComment(CreateCommentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCommentRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCommentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateComment operation. /// /// /// Container for the necessary parameters to execute the CreateComment operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateComment /// operation. /// REST API Reference for CreateComment Operation public virtual IAsyncResult BeginCreateComment(CreateCommentRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCommentRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCommentResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateComment operation. /// /// /// The IAsyncResult returned by the call to BeginCreateComment. /// /// Returns a CreateCommentResult from WorkDocs. /// REST API Reference for CreateComment Operation public virtual CreateCommentResponse EndCreateComment(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateCustomMetadata /// /// 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. /// /// 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 CreateCustomMetadataResponse CreateCustomMetadata(CreateCustomMetadataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCustomMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCustomMetadataResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateCustomMetadata operation. /// /// /// Container for the necessary parameters to execute the CreateCustomMetadata operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateCustomMetadata /// operation. /// REST API Reference for CreateCustomMetadata Operation public virtual IAsyncResult BeginCreateCustomMetadata(CreateCustomMetadataRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCustomMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCustomMetadataResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateCustomMetadata operation. /// /// /// The IAsyncResult returned by the call to BeginCreateCustomMetadata. /// /// Returns a CreateCustomMetadataResult from WorkDocs. /// REST API Reference for CreateCustomMetadata Operation public virtual CreateCustomMetadataResponse EndCreateCustomMetadata(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateFolder /// /// Creates a folder with the specified name and parent folder. /// /// Container for the necessary parameters to execute the CreateFolder service method. /// /// 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 CreateFolderResponse CreateFolder(CreateFolderRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFolderRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFolderResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateFolder operation. /// /// /// Container for the necessary parameters to execute the CreateFolder operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateFolder /// operation. /// REST API Reference for CreateFolder Operation public virtual IAsyncResult BeginCreateFolder(CreateFolderRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFolderRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFolderResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateFolder operation. /// /// /// The IAsyncResult returned by the call to BeginCreateFolder. /// /// Returns a CreateFolderResult from WorkDocs. /// REST API Reference for CreateFolder Operation public virtual CreateFolderResponse EndCreateFolder(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateLabels /// /// 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. /// /// 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 CreateLabelsResponse CreateLabels(CreateLabelsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLabelsRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLabelsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateLabels operation. /// /// /// Container for the necessary parameters to execute the CreateLabels operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateLabels /// operation. /// REST API Reference for CreateLabels Operation public virtual IAsyncResult BeginCreateLabels(CreateLabelsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLabelsRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLabelsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateLabels operation. /// /// /// The IAsyncResult returned by the call to BeginCreateLabels. /// /// Returns a CreateLabelsResult from WorkDocs. /// REST API Reference for CreateLabels Operation public virtual CreateLabelsResponse EndCreateLabels(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateNotificationSubscription /// /// 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. /// /// 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 CreateNotificationSubscriptionResponse CreateNotificationSubscription(CreateNotificationSubscriptionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNotificationSubscriptionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNotificationSubscriptionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateNotificationSubscription operation. /// /// /// Container for the necessary parameters to execute the CreateNotificationSubscription operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateNotificationSubscription /// operation. /// REST API Reference for CreateNotificationSubscription Operation public virtual IAsyncResult BeginCreateNotificationSubscription(CreateNotificationSubscriptionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNotificationSubscriptionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNotificationSubscriptionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateNotificationSubscription operation. /// /// /// The IAsyncResult returned by the call to BeginCreateNotificationSubscription. /// /// Returns a CreateNotificationSubscriptionResult from WorkDocs. /// REST API Reference for CreateNotificationSubscription Operation public virtual CreateNotificationSubscriptionResponse EndCreateNotificationSubscription(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateUser /// /// 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. /// /// 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 CreateUserResponse CreateUser(CreateUserRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateUserRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateUserResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateUser operation. /// /// /// Container for the necessary parameters to execute the CreateUser operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateUser /// operation. /// REST API Reference for CreateUser Operation public virtual IAsyncResult BeginCreateUser(CreateUserRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateUserRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateUserResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateUser operation. /// /// /// The IAsyncResult returned by the call to BeginCreateUser. /// /// Returns a CreateUserResult from WorkDocs. /// REST API Reference for CreateUser Operation public virtual CreateUserResponse EndCreateUser(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeactivateUser /// /// Deactivates the specified user, which revokes the user's access to Amazon WorkDocs. /// /// Container for the necessary parameters to execute the DeactivateUser service method. /// /// 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 DeactivateUserResponse DeactivateUser(DeactivateUserRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeactivateUserRequestMarshaller.Instance; options.ResponseUnmarshaller = DeactivateUserResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeactivateUser operation. /// /// /// Container for the necessary parameters to execute the DeactivateUser operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeactivateUser /// operation. /// REST API Reference for DeactivateUser Operation public virtual IAsyncResult BeginDeactivateUser(DeactivateUserRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeactivateUserRequestMarshaller.Instance; options.ResponseUnmarshaller = DeactivateUserResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeactivateUser operation. /// /// /// The IAsyncResult returned by the call to BeginDeactivateUser. /// /// Returns a DeactivateUserResult from WorkDocs. /// REST API Reference for DeactivateUser Operation public virtual DeactivateUserResponse EndDeactivateUser(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteComment /// /// Deletes the specified comment from the document version. /// /// Container for the necessary parameters to execute the DeleteComment service method. /// /// 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 DeleteCommentResponse DeleteComment(DeleteCommentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCommentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCommentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteComment operation. /// /// /// Container for the necessary parameters to execute the DeleteComment operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteComment /// operation. /// REST API Reference for DeleteComment Operation public virtual IAsyncResult BeginDeleteComment(DeleteCommentRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCommentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCommentResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteComment operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteComment. /// /// Returns a DeleteCommentResult from WorkDocs. /// REST API Reference for DeleteComment Operation public virtual DeleteCommentResponse EndDeleteComment(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteCustomMetadata /// /// Deletes custom metadata from the specified resource. /// /// Container for the necessary parameters to execute the DeleteCustomMetadata service method. /// /// 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 DeleteCustomMetadataResponse DeleteCustomMetadata(DeleteCustomMetadataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCustomMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCustomMetadataResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteCustomMetadata operation. /// /// /// Container for the necessary parameters to execute the DeleteCustomMetadata operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteCustomMetadata /// operation. /// REST API Reference for DeleteCustomMetadata Operation public virtual IAsyncResult BeginDeleteCustomMetadata(DeleteCustomMetadataRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCustomMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCustomMetadataResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteCustomMetadata operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteCustomMetadata. /// /// Returns a DeleteCustomMetadataResult from WorkDocs. /// REST API Reference for DeleteCustomMetadata Operation public virtual DeleteCustomMetadataResponse EndDeleteCustomMetadata(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteDocument /// /// Permanently deletes the specified document and its associated metadata. /// /// Container for the necessary parameters to execute the DeleteDocument service method. /// /// 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 DeleteDocumentResponse DeleteDocument(DeleteDocumentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDocumentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDocumentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteDocument operation. /// /// /// Container for the necessary parameters to execute the DeleteDocument operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteDocument /// operation. /// REST API Reference for DeleteDocument Operation public virtual IAsyncResult BeginDeleteDocument(DeleteDocumentRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDocumentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDocumentResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteDocument operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteDocument. /// /// Returns a DeleteDocumentResult from WorkDocs. /// REST API Reference for DeleteDocument Operation public virtual DeleteDocumentResponse EndDeleteDocument(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteDocumentVersion /// /// Deletes a specific version of a document. /// /// Container for the necessary parameters to execute the DeleteDocumentVersion service method. /// /// 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 DeleteDocumentVersionResponse DeleteDocumentVersion(DeleteDocumentVersionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDocumentVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDocumentVersionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteDocumentVersion operation. /// /// /// Container for the necessary parameters to execute the DeleteDocumentVersion operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteDocumentVersion /// operation. /// REST API Reference for DeleteDocumentVersion Operation public virtual IAsyncResult BeginDeleteDocumentVersion(DeleteDocumentVersionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDocumentVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDocumentVersionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteDocumentVersion operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteDocumentVersion. /// /// Returns a DeleteDocumentVersionResult from WorkDocs. /// REST API Reference for DeleteDocumentVersion Operation public virtual DeleteDocumentVersionResponse EndDeleteDocumentVersion(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteFolder /// /// Permanently deletes the specified folder and its contents. /// /// Container for the necessary parameters to execute the DeleteFolder service method. /// /// 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 DeleteFolderResponse DeleteFolder(DeleteFolderRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFolderRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFolderResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteFolder operation. /// /// /// Container for the necessary parameters to execute the DeleteFolder operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteFolder /// operation. /// REST API Reference for DeleteFolder Operation public virtual IAsyncResult BeginDeleteFolder(DeleteFolderRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFolderRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFolderResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteFolder operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteFolder. /// /// Returns a DeleteFolderResult from WorkDocs. /// REST API Reference for DeleteFolder Operation public virtual DeleteFolderResponse EndDeleteFolder(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteFolderContents /// /// Deletes the contents of the specified folder. /// /// Container for the necessary parameters to execute the DeleteFolderContents service method. /// /// 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 DeleteFolderContentsResponse DeleteFolderContents(DeleteFolderContentsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFolderContentsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFolderContentsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteFolderContents operation. /// /// /// Container for the necessary parameters to execute the DeleteFolderContents operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteFolderContents /// operation. /// REST API Reference for DeleteFolderContents Operation public virtual IAsyncResult BeginDeleteFolderContents(DeleteFolderContentsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFolderContentsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFolderContentsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteFolderContents operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteFolderContents. /// /// Returns a DeleteFolderContentsResult from WorkDocs. /// REST API Reference for DeleteFolderContents Operation public virtual DeleteFolderContentsResponse EndDeleteFolderContents(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteLabels /// /// Deletes the specified list of labels from a resource. /// /// Container for the necessary parameters to execute the DeleteLabels service method. /// /// 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 DeleteLabelsResponse DeleteLabels(DeleteLabelsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLabelsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLabelsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteLabels operation. /// /// /// Container for the necessary parameters to execute the DeleteLabels operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteLabels /// operation. /// REST API Reference for DeleteLabels Operation public virtual IAsyncResult BeginDeleteLabels(DeleteLabelsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLabelsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLabelsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteLabels operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteLabels. /// /// Returns a DeleteLabelsResult from WorkDocs. /// REST API Reference for DeleteLabels Operation public virtual DeleteLabelsResponse EndDeleteLabels(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteNotificationSubscription /// /// Deletes the specified subscription from the specified organization. /// /// Container for the necessary parameters to execute the DeleteNotificationSubscription service method. /// /// 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 DeleteNotificationSubscriptionResponse DeleteNotificationSubscription(DeleteNotificationSubscriptionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNotificationSubscriptionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNotificationSubscriptionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteNotificationSubscription operation. /// /// /// Container for the necessary parameters to execute the DeleteNotificationSubscription operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteNotificationSubscription /// operation. /// REST API Reference for DeleteNotificationSubscription Operation public virtual IAsyncResult BeginDeleteNotificationSubscription(DeleteNotificationSubscriptionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNotificationSubscriptionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNotificationSubscriptionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteNotificationSubscription operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteNotificationSubscription. /// /// Returns a DeleteNotificationSubscriptionResult from WorkDocs. /// REST API Reference for DeleteNotificationSubscription Operation public virtual DeleteNotificationSubscriptionResponse EndDeleteNotificationSubscription(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteUser /// /// 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. /// /// 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 DeleteUserResponse DeleteUser(DeleteUserRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteUserRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteUserResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteUser operation. /// /// /// Container for the necessary parameters to execute the DeleteUser operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteUser /// operation. /// REST API Reference for DeleteUser Operation public virtual IAsyncResult BeginDeleteUser(DeleteUserRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteUserRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteUserResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteUser operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteUser. /// /// Returns a DeleteUserResult from WorkDocs. /// REST API Reference for DeleteUser Operation public virtual DeleteUserResponse EndDeleteUser(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeActivities /// /// Describes the user activities in a specified time period. /// /// Container for the necessary parameters to execute the DescribeActivities service method. /// /// 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 DescribeActivitiesResponse DescribeActivities(DescribeActivitiesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeActivitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeActivitiesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeActivities operation. /// /// /// Container for the necessary parameters to execute the DescribeActivities operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeActivities /// operation. /// REST API Reference for DescribeActivities Operation public virtual IAsyncResult BeginDescribeActivities(DescribeActivitiesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeActivitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeActivitiesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeActivities operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeActivities. /// /// Returns a DescribeActivitiesResult from WorkDocs. /// REST API Reference for DescribeActivities Operation public virtual DescribeActivitiesResponse EndDescribeActivities(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeComments /// /// List all the comments for the specified document version. /// /// Container for the necessary parameters to execute the DescribeComments service method. /// /// 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 DescribeCommentsResponse DescribeComments(DescribeCommentsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeCommentsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeCommentsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeComments operation. /// /// /// Container for the necessary parameters to execute the DescribeComments operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeComments /// operation. /// REST API Reference for DescribeComments Operation public virtual IAsyncResult BeginDescribeComments(DescribeCommentsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeCommentsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeCommentsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeComments operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeComments. /// /// Returns a DescribeCommentsResult from WorkDocs. /// REST API Reference for DescribeComments Operation public virtual DescribeCommentsResponse EndDescribeComments(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeDocumentVersions /// /// 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. /// /// 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 DescribeDocumentVersionsResponse DescribeDocumentVersions(DescribeDocumentVersionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDocumentVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDocumentVersionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeDocumentVersions operation. /// /// /// Container for the necessary parameters to execute the DescribeDocumentVersions operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeDocumentVersions /// operation. /// REST API Reference for DescribeDocumentVersions Operation public virtual IAsyncResult BeginDescribeDocumentVersions(DescribeDocumentVersionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDocumentVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDocumentVersionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeDocumentVersions operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeDocumentVersions. /// /// Returns a DescribeDocumentVersionsResult from WorkDocs. /// REST API Reference for DescribeDocumentVersions Operation public virtual DescribeDocumentVersionsResponse EndDescribeDocumentVersions(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeFolderContents /// /// 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. /// /// 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 DescribeFolderContentsResponse DescribeFolderContents(DescribeFolderContentsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeFolderContentsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeFolderContentsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeFolderContents operation. /// /// /// Container for the necessary parameters to execute the DescribeFolderContents operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeFolderContents /// operation. /// REST API Reference for DescribeFolderContents Operation public virtual IAsyncResult BeginDescribeFolderContents(DescribeFolderContentsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeFolderContentsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeFolderContentsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeFolderContents operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeFolderContents. /// /// Returns a DescribeFolderContentsResult from WorkDocs. /// REST API Reference for DescribeFolderContents Operation public virtual DescribeFolderContentsResponse EndDescribeFolderContents(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeGroups /// /// 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. /// /// 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 DescribeGroupsResponse DescribeGroups(DescribeGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeGroupsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeGroups operation. /// /// /// Container for the necessary parameters to execute the DescribeGroups operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeGroups /// operation. /// REST API Reference for DescribeGroups Operation public virtual IAsyncResult BeginDescribeGroups(DescribeGroupsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeGroupsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeGroups operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeGroups. /// /// Returns a DescribeGroupsResult from WorkDocs. /// REST API Reference for DescribeGroups Operation public virtual DescribeGroupsResponse EndDescribeGroups(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeNotificationSubscriptions /// /// Lists the specified notification subscriptions. /// /// Container for the necessary parameters to execute the DescribeNotificationSubscriptions service method. /// /// 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 DescribeNotificationSubscriptionsResponse DescribeNotificationSubscriptions(DescribeNotificationSubscriptionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeNotificationSubscriptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeNotificationSubscriptionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeNotificationSubscriptions operation. /// /// /// Container for the necessary parameters to execute the DescribeNotificationSubscriptions operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeNotificationSubscriptions /// operation. /// REST API Reference for DescribeNotificationSubscriptions Operation public virtual IAsyncResult BeginDescribeNotificationSubscriptions(DescribeNotificationSubscriptionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeNotificationSubscriptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeNotificationSubscriptionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeNotificationSubscriptions operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeNotificationSubscriptions. /// /// Returns a DescribeNotificationSubscriptionsResult from WorkDocs. /// REST API Reference for DescribeNotificationSubscriptions Operation public virtual DescribeNotificationSubscriptionsResponse EndDescribeNotificationSubscriptions(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeResourcePermissions /// /// Describes the permissions of a specified resource. /// /// Container for the necessary parameters to execute the DescribeResourcePermissions service method. /// /// 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 DescribeResourcePermissionsResponse DescribeResourcePermissions(DescribeResourcePermissionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeResourcePermissionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeResourcePermissionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeResourcePermissions operation. /// /// /// Container for the necessary parameters to execute the DescribeResourcePermissions operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeResourcePermissions /// operation. /// REST API Reference for DescribeResourcePermissions Operation public virtual IAsyncResult BeginDescribeResourcePermissions(DescribeResourcePermissionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeResourcePermissionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeResourcePermissionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeResourcePermissions operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeResourcePermissions. /// /// Returns a DescribeResourcePermissionsResult from WorkDocs. /// REST API Reference for DescribeResourcePermissions Operation public virtual DescribeResourcePermissionsResponse EndDescribeResourcePermissions(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeRootFolders /// /// 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. /// /// 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 DescribeRootFoldersResponse DescribeRootFolders(DescribeRootFoldersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeRootFoldersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeRootFoldersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeRootFolders operation. /// /// /// Container for the necessary parameters to execute the DescribeRootFolders operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeRootFolders /// operation. /// REST API Reference for DescribeRootFolders Operation public virtual IAsyncResult BeginDescribeRootFolders(DescribeRootFoldersRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeRootFoldersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeRootFoldersResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeRootFolders operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeRootFolders. /// /// Returns a DescribeRootFoldersResult from WorkDocs. /// REST API Reference for DescribeRootFolders Operation public virtual DescribeRootFoldersResponse EndDescribeRootFolders(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeUsers /// /// 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. /// /// 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 DescribeUsersResponse DescribeUsers(DescribeUsersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeUsersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeUsersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeUsers operation. /// /// /// Container for the necessary parameters to execute the DescribeUsers operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeUsers /// operation. /// REST API Reference for DescribeUsers Operation public virtual IAsyncResult BeginDescribeUsers(DescribeUsersRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeUsersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeUsersResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeUsers operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeUsers. /// /// Returns a DescribeUsersResult from WorkDocs. /// REST API Reference for DescribeUsers Operation public virtual DescribeUsersResponse EndDescribeUsers(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetCurrentUser /// /// 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. /// /// 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 GetCurrentUserResponse GetCurrentUser(GetCurrentUserRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCurrentUserRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCurrentUserResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetCurrentUser operation. /// /// /// Container for the necessary parameters to execute the GetCurrentUser operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetCurrentUser /// operation. /// REST API Reference for GetCurrentUser Operation public virtual IAsyncResult BeginGetCurrentUser(GetCurrentUserRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetCurrentUserRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCurrentUserResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetCurrentUser operation. /// /// /// The IAsyncResult returned by the call to BeginGetCurrentUser. /// /// Returns a GetCurrentUserResult from WorkDocs. /// REST API Reference for GetCurrentUser Operation public virtual GetCurrentUserResponse EndGetCurrentUser(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetDocument /// /// Retrieves details of a document. /// /// Container for the necessary parameters to execute the GetDocument service method. /// /// 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 GetDocumentResponse GetDocument(GetDocumentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDocumentRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDocumentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetDocument operation. /// /// /// Container for the necessary parameters to execute the GetDocument operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetDocument /// operation. /// REST API Reference for GetDocument Operation public virtual IAsyncResult BeginGetDocument(GetDocumentRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetDocumentRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDocumentResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetDocument operation. /// /// /// The IAsyncResult returned by the call to BeginGetDocument. /// /// Returns a GetDocumentResult from WorkDocs. /// REST API Reference for GetDocument Operation public virtual GetDocumentResponse EndGetDocument(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetDocumentPath /// /// 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. /// /// 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 GetDocumentPathResponse GetDocumentPath(GetDocumentPathRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDocumentPathRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDocumentPathResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetDocumentPath operation. /// /// /// Container for the necessary parameters to execute the GetDocumentPath operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetDocumentPath /// operation. /// REST API Reference for GetDocumentPath Operation public virtual IAsyncResult BeginGetDocumentPath(GetDocumentPathRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetDocumentPathRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDocumentPathResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetDocumentPath operation. /// /// /// The IAsyncResult returned by the call to BeginGetDocumentPath. /// /// Returns a GetDocumentPathResult from WorkDocs. /// REST API Reference for GetDocumentPath Operation public virtual GetDocumentPathResponse EndGetDocumentPath(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetDocumentVersion /// /// Retrieves version metadata for the specified document. /// /// Container for the necessary parameters to execute the GetDocumentVersion service method. /// /// 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 GetDocumentVersionResponse GetDocumentVersion(GetDocumentVersionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDocumentVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDocumentVersionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetDocumentVersion operation. /// /// /// Container for the necessary parameters to execute the GetDocumentVersion operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetDocumentVersion /// operation. /// REST API Reference for GetDocumentVersion Operation public virtual IAsyncResult BeginGetDocumentVersion(GetDocumentVersionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetDocumentVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDocumentVersionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetDocumentVersion operation. /// /// /// The IAsyncResult returned by the call to BeginGetDocumentVersion. /// /// Returns a GetDocumentVersionResult from WorkDocs. /// REST API Reference for GetDocumentVersion Operation public virtual GetDocumentVersionResponse EndGetDocumentVersion(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetFolder /// /// Retrieves the metadata of the specified folder. /// /// Container for the necessary parameters to execute the GetFolder service method. /// /// 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 GetFolderResponse GetFolder(GetFolderRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetFolderRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFolderResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetFolder operation. /// /// /// Container for the necessary parameters to execute the GetFolder operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetFolder /// operation. /// REST API Reference for GetFolder Operation public virtual IAsyncResult BeginGetFolder(GetFolderRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetFolderRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFolderResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetFolder operation. /// /// /// The IAsyncResult returned by the call to BeginGetFolder. /// /// Returns a GetFolderResult from WorkDocs. /// REST API Reference for GetFolder Operation public virtual GetFolderResponse EndGetFolder(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetFolderPath /// /// 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. /// /// 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 GetFolderPathResponse GetFolderPath(GetFolderPathRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetFolderPathRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFolderPathResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetFolderPath operation. /// /// /// Container for the necessary parameters to execute the GetFolderPath operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetFolderPath /// operation. /// REST API Reference for GetFolderPath Operation public virtual IAsyncResult BeginGetFolderPath(GetFolderPathRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetFolderPathRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFolderPathResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetFolderPath operation. /// /// /// The IAsyncResult returned by the call to BeginGetFolderPath. /// /// Returns a GetFolderPathResult from WorkDocs. /// REST API Reference for GetFolderPath Operation public virtual GetFolderPathResponse EndGetFolderPath(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetResources /// /// 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. /// /// 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 GetResourcesResponse GetResources(GetResourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResourcesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetResources operation. /// /// /// Container for the necessary parameters to execute the GetResources operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetResources /// operation. /// REST API Reference for GetResources Operation public virtual IAsyncResult BeginGetResources(GetResourcesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResourcesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetResources operation. /// /// /// The IAsyncResult returned by the call to BeginGetResources. /// /// Returns a GetResourcesResult from WorkDocs. /// REST API Reference for GetResources Operation public virtual GetResourcesResponse EndGetResources(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region InitiateDocumentVersionUpload /// /// 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. /// /// 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 InitiateDocumentVersionUploadResponse InitiateDocumentVersionUpload(InitiateDocumentVersionUploadRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = InitiateDocumentVersionUploadRequestMarshaller.Instance; options.ResponseUnmarshaller = InitiateDocumentVersionUploadResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the InitiateDocumentVersionUpload operation. /// /// /// Container for the necessary parameters to execute the InitiateDocumentVersionUpload operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndInitiateDocumentVersionUpload /// operation. /// REST API Reference for InitiateDocumentVersionUpload Operation public virtual IAsyncResult BeginInitiateDocumentVersionUpload(InitiateDocumentVersionUploadRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = InitiateDocumentVersionUploadRequestMarshaller.Instance; options.ResponseUnmarshaller = InitiateDocumentVersionUploadResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the InitiateDocumentVersionUpload operation. /// /// /// The IAsyncResult returned by the call to BeginInitiateDocumentVersionUpload. /// /// Returns a InitiateDocumentVersionUploadResult from WorkDocs. /// REST API Reference for InitiateDocumentVersionUpload Operation public virtual InitiateDocumentVersionUploadResponse EndInitiateDocumentVersionUpload(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region RemoveAllResourcePermissions /// /// Removes all the permissions from the specified resource. /// /// Container for the necessary parameters to execute the RemoveAllResourcePermissions service method. /// /// 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 RemoveAllResourcePermissionsResponse RemoveAllResourcePermissions(RemoveAllResourcePermissionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveAllResourcePermissionsRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveAllResourcePermissionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the RemoveAllResourcePermissions operation. /// /// /// Container for the necessary parameters to execute the RemoveAllResourcePermissions operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRemoveAllResourcePermissions /// operation. /// REST API Reference for RemoveAllResourcePermissions Operation public virtual IAsyncResult BeginRemoveAllResourcePermissions(RemoveAllResourcePermissionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveAllResourcePermissionsRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveAllResourcePermissionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the RemoveAllResourcePermissions operation. /// /// /// The IAsyncResult returned by the call to BeginRemoveAllResourcePermissions. /// /// Returns a RemoveAllResourcePermissionsResult from WorkDocs. /// REST API Reference for RemoveAllResourcePermissions Operation public virtual RemoveAllResourcePermissionsResponse EndRemoveAllResourcePermissions(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region RemoveResourcePermission /// /// Removes the permission for the specified principal from the specified resource. /// /// Container for the necessary parameters to execute the RemoveResourcePermission service method. /// /// 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 RemoveResourcePermissionResponse RemoveResourcePermission(RemoveResourcePermissionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveResourcePermissionRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveResourcePermissionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the RemoveResourcePermission operation. /// /// /// Container for the necessary parameters to execute the RemoveResourcePermission operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRemoveResourcePermission /// operation. /// REST API Reference for RemoveResourcePermission Operation public virtual IAsyncResult BeginRemoveResourcePermission(RemoveResourcePermissionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveResourcePermissionRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveResourcePermissionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the RemoveResourcePermission operation. /// /// /// The IAsyncResult returned by the call to BeginRemoveResourcePermission. /// /// Returns a RemoveResourcePermissionResult from WorkDocs. /// REST API Reference for RemoveResourcePermission Operation public virtual RemoveResourcePermissionResponse EndRemoveResourcePermission(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region RestoreDocumentVersions /// /// Recovers a deleted version of an Amazon WorkDocs document. /// /// Container for the necessary parameters to execute the RestoreDocumentVersions service method. /// /// 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 RestoreDocumentVersionsResponse RestoreDocumentVersions(RestoreDocumentVersionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RestoreDocumentVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = RestoreDocumentVersionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the RestoreDocumentVersions operation. /// /// /// Container for the necessary parameters to execute the RestoreDocumentVersions operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRestoreDocumentVersions /// operation. /// REST API Reference for RestoreDocumentVersions Operation public virtual IAsyncResult BeginRestoreDocumentVersions(RestoreDocumentVersionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = RestoreDocumentVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = RestoreDocumentVersionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the RestoreDocumentVersions operation. /// /// /// The IAsyncResult returned by the call to BeginRestoreDocumentVersions. /// /// Returns a RestoreDocumentVersionsResult from WorkDocs. /// REST API Reference for RestoreDocumentVersions Operation public virtual RestoreDocumentVersionsResponse EndRestoreDocumentVersions(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region SearchResources /// /// Searches metadata and the content of folders, documents, document versions, and comments. /// /// Container for the necessary parameters to execute the SearchResources service method. /// /// 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 SearchResourcesResponse SearchResources(SearchResourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SearchResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchResourcesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the SearchResources operation. /// /// /// Container for the necessary parameters to execute the SearchResources operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSearchResources /// operation. /// REST API Reference for SearchResources Operation public virtual IAsyncResult BeginSearchResources(SearchResourcesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = SearchResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchResourcesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the SearchResources operation. /// /// /// The IAsyncResult returned by the call to BeginSearchResources. /// /// Returns a SearchResourcesResult from WorkDocs. /// REST API Reference for SearchResources Operation public virtual SearchResourcesResponse EndSearchResources(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UpdateDocument /// /// 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. /// /// 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 UpdateDocumentResponse UpdateDocument(UpdateDocumentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDocumentRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDocumentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UpdateDocument operation. /// /// /// Container for the necessary parameters to execute the UpdateDocument operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateDocument /// operation. /// REST API Reference for UpdateDocument Operation public virtual IAsyncResult BeginUpdateDocument(UpdateDocumentRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDocumentRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDocumentResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateDocument operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateDocument. /// /// Returns a UpdateDocumentResult from WorkDocs. /// REST API Reference for UpdateDocument Operation public virtual UpdateDocumentResponse EndUpdateDocument(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UpdateDocumentVersion /// /// 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. /// /// 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 UpdateDocumentVersionResponse UpdateDocumentVersion(UpdateDocumentVersionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDocumentVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDocumentVersionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UpdateDocumentVersion operation. /// /// /// Container for the necessary parameters to execute the UpdateDocumentVersion operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateDocumentVersion /// operation. /// REST API Reference for UpdateDocumentVersion Operation public virtual IAsyncResult BeginUpdateDocumentVersion(UpdateDocumentVersionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDocumentVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDocumentVersionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateDocumentVersion operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateDocumentVersion. /// /// Returns a UpdateDocumentVersionResult from WorkDocs. /// REST API Reference for UpdateDocumentVersion Operation public virtual UpdateDocumentVersionResponse EndUpdateDocumentVersion(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UpdateFolder /// /// 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. /// /// 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 UpdateFolderResponse UpdateFolder(UpdateFolderRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFolderRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFolderResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UpdateFolder operation. /// /// /// Container for the necessary parameters to execute the UpdateFolder operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateFolder /// operation. /// REST API Reference for UpdateFolder Operation public virtual IAsyncResult BeginUpdateFolder(UpdateFolderRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFolderRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFolderResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateFolder operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateFolder. /// /// Returns a UpdateFolderResult from WorkDocs. /// REST API Reference for UpdateFolder Operation public virtual UpdateFolderResponse EndUpdateFolder(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UpdateUser /// /// 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. /// /// 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 UpdateUserResponse UpdateUser(UpdateUserRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateUserRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateUserResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UpdateUser operation. /// /// /// Container for the necessary parameters to execute the UpdateUser operation on AmazonWorkDocsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateUser /// operation. /// REST API Reference for UpdateUser Operation public virtual IAsyncResult BeginUpdateUser(UpdateUserRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateUserRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateUserResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateUser operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateUser. /// /// Returns a UpdateUserResult from WorkDocs. /// REST API Reference for UpdateUser Operation public virtual UpdateUserResponse EndUpdateUser(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion } }