/// <summary> /// Retrieves the properties of the requested container. This returns a single <code>Container</code> /// object based on <code>ContainerName</code>. To return all <code>Container</code> objects /// that are associated with a specified AWS account, use <a>ListContainers</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeContainer service method.</param> /// /// <returns>The response from the DescribeContainer service method, as returned by MediaStore.</returns> /// <exception cref="Amazon.MediaStore.Model.ContainerNotFoundException"> /// Could not perform an operation on a container that does not exist. /// </exception> /// <exception cref="Amazon.MediaStore.Model.InternalServerErrorException"> /// The service is temporarily unavailable. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DescribeContainer">REST API Reference for DescribeContainer Operation</seealso> public virtual DescribeContainerResponse DescribeContainer(DescribeContainerRequest request) { var marshaller = new DescribeContainerRequestMarshaller(); var unmarshaller = DescribeContainerResponseUnmarshaller.Instance; return(Invoke <DescribeContainerRequest, DescribeContainerResponse>(request, marshaller, unmarshaller)); }
public void DescribeContainerMarshallTest() { var request = InstantiateClassGenerator.Execute <DescribeContainerRequest>(); var marshaller = new DescribeContainerRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson <DescribeContainerRequest>(request, jsonRequest); var webResponse = new WebResponseData { Headers = { { "x-amzn-RequestId", Guid.NewGuid().ToString() }, { "x-amz-crc32", "0" } } }; var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("DescribeContainer").ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); var response = DescribeContainerResponseUnmarshaller.Instance.Unmarshall(context) as DescribeContainerResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the DescribeContainer operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeContainer operation on AmazonMediaStoreClient.</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 EndDescribeContainer /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DescribeContainer">REST API Reference for DescribeContainer Operation</seealso> public virtual IAsyncResult BeginDescribeContainer(DescribeContainerRequest request, AsyncCallback callback, object state) { var marshaller = new DescribeContainerRequestMarshaller(); var unmarshaller = DescribeContainerResponseUnmarshaller.Instance; return(BeginInvoke <DescribeContainerRequest>(request, marshaller, unmarshaller, callback, state)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeContainer operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeContainer 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-2017-09-01/DescribeContainer">REST API Reference for DescribeContainer Operation</seealso> public virtual Task <DescribeContainerResponse> DescribeContainerAsync(DescribeContainerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeContainerRequestMarshaller(); var unmarshaller = DescribeContainerResponseUnmarshaller.Instance; return(InvokeAsync <DescribeContainerRequest, DescribeContainerResponse>(request, marshaller, unmarshaller, cancellationToken)); }