public void DescribeStepMarshallTest() { var request = InstantiateClassGenerator.Execute <DescribeStepRequest>(); var marshaller = new DescribeStepRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson <DescribeStepRequest>(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("DescribeStep").ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); var response = DescribeStepResponseUnmarshaller.Instance.Unmarshall(context) as DescribeStepResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
internal DescribeStepResponse DescribeStep(DescribeStepRequest request) { var marshaller = new DescribeStepRequestMarshaller(); var unmarshaller = DescribeStepResponseUnmarshaller.Instance; return(Invoke <DescribeStepRequest, DescribeStepResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeStep operation. /// <seealso cref="Amazon.ElasticMapReduce.IAmazonElasticMapReduce"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeStep 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> public Task <DescribeStepResponse> DescribeStepAsync(DescribeStepRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeStepRequestMarshaller(); var unmarshaller = DescribeStepResponseUnmarshaller.Instance; return(Invoke <IRequest, DescribeStepRequest, DescribeStepResponse>(request, marshaller, unmarshaller, signer, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeStep operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeStep 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> public Task<DescribeStepResponse> DescribeStepAsync(DescribeStepRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeStepRequestMarshaller(); var unmarshaller = DescribeStepResponseUnmarshaller.Instance; return InvokeAsync<DescribeStepRequest,DescribeStepResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Provides more detail about the cluster step. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStep service method.</param> /// /// <returns>The response from the DescribeStep service method, as returned by ElasticMapReduce.</returns> /// <exception cref="Amazon.ElasticMapReduce.Model.InternalServerException"> /// This exception occurs when there is an internal failure in the EMR service. /// </exception> /// <exception cref="Amazon.ElasticMapReduce.Model.InvalidRequestException"> /// This exception occurs when there is something wrong with user input. /// </exception> public DescribeStepResponse DescribeStep(DescribeStepRequest request) { var marshaller = new DescribeStepRequestMarshaller(); var unmarshaller = DescribeStepResponseUnmarshaller.Instance; return Invoke<DescribeStepRequest,DescribeStepResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DescribeStep operation. /// <seealso cref="Amazon.ElasticMapReduce.IAmazonElasticMapReduce.DescribeStep"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeStep 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> public Task<DescribeStepResponse> DescribeStepAsync(DescribeStepRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeStepRequestMarshaller(); var unmarshaller = DescribeStepResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DescribeStepRequest, DescribeStepResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the DescribeStep operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeStep operation on AmazonElasticMapReduceClient.</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 EndDescribeStep /// operation.</returns> public IAsyncResult BeginDescribeStep(DescribeStepRequest request, AsyncCallback callback, object state) { var marshaller = new DescribeStepRequestMarshaller(); var unmarshaller = DescribeStepResponseUnmarshaller.Instance; return BeginInvoke<DescribeStepRequest>(request, marshaller, unmarshaller, callback, state); }
IAsyncResult invokeDescribeStep(DescribeStepRequest describeStepRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DescribeStepRequestMarshaller().Marshall(describeStepRequest); var unmarshaller = DescribeStepResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para>Provides more detail about the cluster step.</para> /// </summary> /// /// <param name="describeStepRequest">Container for the necessary parameters to execute the DescribeStep service method on /// AmazonElasticMapReduce.</param> /// /// <returns>The response from the DescribeStep service method, as returned by AmazonElasticMapReduce.</returns> /// /// <exception cref="T:Amazon.ElasticMapReduce.Model.InternalServerException" /> /// <exception cref="T:Amazon.ElasticMapReduce.Model.InvalidRequestException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<DescribeStepResponse> DescribeStepAsync(DescribeStepRequest describeStepRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeStepRequestMarshaller(); var unmarshaller = DescribeStepResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DescribeStepRequest, DescribeStepResponse>(describeStepRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
public void DescribeStepMarshallTest() { var request = InstantiateClassGenerator.Execute<DescribeStepRequest>(); var marshaller = new DescribeStepRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson<DescribeStepRequest>(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("DescribeStep").ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); var response = DescribeStepResponseUnmarshaller.Instance.Unmarshall(context) as DescribeStepResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
IAsyncResult invokeDescribeStep(DescribeStepRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new DescribeStepRequestMarshaller(); var unmarshaller = DescribeStepResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }