/// <summary> /// Initiates the asynchronous execution of the DescribeObject operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeObject operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/mediastore-data-2017-09-01/DescribeObject">REST API Reference for DescribeObject Operation</seealso> public virtual Task <DescribeObjectResponse> DescribeObjectAsync(DescribeObjectRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = DescribeObjectRequestMarshaller.Instance; var unmarshaller = DescribeObjectResponseUnmarshaller.Instance; return(InvokeAsync <DescribeObjectRequest, DescribeObjectResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Gets the headers for an object at the specified path. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeObject service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeObject service method, as returned by MediaStoreData.</returns> /// <exception cref="Amazon.MediaStoreData.Model.ContainerNotFoundException"> /// The specified container was not found for the specified account. /// </exception> /// <exception cref="Amazon.MediaStoreData.Model.InternalServerErrorException"> /// The service is temporarily unavailable. /// </exception> /// <exception cref="Amazon.MediaStoreData.Model.ObjectNotFoundException"> /// Could not perform an operation on an object that does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/mediastore-data-2017-09-01/DescribeObject">REST API Reference for DescribeObject Operation</seealso> public virtual Task <DescribeObjectResponse> DescribeObjectAsync(DescribeObjectRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeObjectRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeObjectResponseUnmarshaller.Instance; return(InvokeAsync <DescribeObjectResponse>(request, options, cancellationToken)); }
internal virtual DescribeObjectResponse DescribeObject(DescribeObjectRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeObjectRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeObjectResponseUnmarshaller.Instance; return(Invoke <DescribeObjectResponse>(request, options)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeObject operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeObject operation on AmazonMediaStoreDataClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeObject /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/mediastore-data-2017-09-01/DescribeObject">REST API Reference for DescribeObject Operation</seealso> public virtual IAsyncResult BeginDescribeObject(DescribeObjectRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeObjectRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeObjectResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }