IAsyncResult invokeDescribeReservedNodes(DescribeReservedNodesRequest describeReservedNodesRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DescribeReservedNodesRequestMarshaller().Marshall(describeReservedNodesRequest); var unmarshaller = DescribeReservedNodesResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Returns the descriptions of the reserved nodes. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeReservedNodes service method.</param> /// /// <returns>The response from the DescribeReservedNodes service method, as returned by Redshift.</returns> /// <exception cref="Amazon.Redshift.Model.ReservedNodeNotFoundException"> /// The specified reserved compute node not found. /// </exception> public DescribeReservedNodesResponse DescribeReservedNodes(DescribeReservedNodesRequest request) { var marshaller = new DescribeReservedNodesRequestMarshaller(); var unmarshaller = DescribeReservedNodesResponseUnmarshaller.Instance; return Invoke<DescribeReservedNodesRequest,DescribeReservedNodesResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DescribeReservedNodes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeReservedNodes operation on AmazonRedshiftClient.</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 EndDescribeReservedNodes /// operation.</returns> public IAsyncResult BeginDescribeReservedNodes(DescribeReservedNodesRequest request, AsyncCallback callback, object state) { var marshaller = new DescribeReservedNodesRequestMarshaller(); var unmarshaller = DescribeReservedNodesResponseUnmarshaller.Instance; return BeginInvoke<DescribeReservedNodesRequest>(request, marshaller, unmarshaller, callback, state); }
public void DescribeReservedNodesMarshallTest() { var operation = service_model.FindOperation("DescribeReservedNodes"); var request = InstantiateClassGenerator.Execute<DescribeReservedNodesRequest>(); var marshaller = new DescribeReservedNodesRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null); var response = DescribeReservedNodesResponseUnmarshaller.Instance.Unmarshall(context) as DescribeReservedNodesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// <para> Returns the descriptions of the reserved nodes. </para> /// </summary> /// /// <param name="describeReservedNodesRequest">Container for the necessary parameters to execute the DescribeReservedNodes service method on /// AmazonRedshift.</param> /// /// <returns>The response from the DescribeReservedNodes service method, as returned by AmazonRedshift.</returns> /// /// <exception cref="T:Amazon.Redshift.Model.ReservedNodeNotFoundException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<DescribeReservedNodesResponse> DescribeReservedNodesAsync(DescribeReservedNodesRequest describeReservedNodesRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeReservedNodesRequestMarshaller(); var unmarshaller = DescribeReservedNodesResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DescribeReservedNodesRequest, DescribeReservedNodesResponse>(describeReservedNodesRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// <para> Returns the descriptions of the reserved nodes. </para> /// </summary> /// /// <param name="describeReservedNodesRequest">Container for the necessary parameters to execute the DescribeReservedNodes service method on /// AmazonRedshift.</param> /// /// <returns>The response from the DescribeReservedNodes service method, as returned by AmazonRedshift.</returns> /// /// <exception cref="T:Amazon.Redshift.Model.ReservedNodeNotFoundException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<DescribeReservedNodesResponse> DescribeReservedNodesAsync(DescribeReservedNodesRequest describeReservedNodesRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeReservedNodesRequestMarshaller(); var unmarshaller = DescribeReservedNodesResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DescribeReservedNodesRequest, DescribeReservedNodesResponse>(describeReservedNodesRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// Initiates the asynchronous execution of the DescribeReservedNodes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeReservedNodes 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<DescribeReservedNodesResponse> DescribeReservedNodesAsync(DescribeReservedNodesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeReservedNodesRequestMarshaller(); var unmarshaller = DescribeReservedNodesResponseUnmarshaller.Instance; return InvokeAsync<DescribeReservedNodesRequest,DescribeReservedNodesResponse>(request, marshaller, unmarshaller, cancellationToken); }
IAsyncResult invokeDescribeReservedNodes(DescribeReservedNodesRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new DescribeReservedNodesRequestMarshaller(); var unmarshaller = DescribeReservedNodesResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }