internal virtual ListVirtualNodesResponse ListVirtualNodes(ListVirtualNodesRequest request) { var marshaller = ListVirtualNodesRequestMarshaller.Instance; var unmarshaller = ListVirtualNodesResponseUnmarshaller.Instance; return(Invoke <ListVirtualNodesRequest, ListVirtualNodesResponse>(request, marshaller, unmarshaller)); }
public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems) { AmazonAppMeshConfig config = new AmazonAppMeshConfig(); config.RegionEndpoint = region; ConfigureClient(config); AmazonAppMeshClient client = new AmazonAppMeshClient(creds, config); ListVirtualNodesResponse resp = new ListVirtualNodesResponse(); do { ListVirtualNodesRequest req = new ListVirtualNodesRequest { NextToken = resp.NextToken , Limit = maxItems }; resp = client.ListVirtualNodes(req); CheckError(resp.HttpStatusCode, "200"); foreach (var obj in resp.VirtualNodes) { AddObject(obj); } }while (!string.IsNullOrEmpty(resp.NextToken)); }
/// <summary> /// Initiates the asynchronous execution of the ListVirtualNodes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListVirtualNodes 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/appmesh-2018-10-01/ListVirtualNodes">REST API Reference for ListVirtualNodes Operation</seealso> public virtual Task <ListVirtualNodesResponse> ListVirtualNodesAsync(ListVirtualNodesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = ListVirtualNodesRequestMarshaller.Instance; var unmarshaller = ListVirtualNodesResponseUnmarshaller.Instance; return(InvokeAsync <ListVirtualNodesRequest, ListVirtualNodesResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the ListVirtualNodes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListVirtualNodes 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/appmesh-2018-10-01/ListVirtualNodes">REST API Reference for ListVirtualNodes Operation</seealso> public virtual Task <ListVirtualNodesResponse> ListVirtualNodesAsync(ListVirtualNodesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListVirtualNodesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListVirtualNodesResponseUnmarshaller.Instance; return(InvokeAsync <ListVirtualNodesResponse>(request, options, cancellationToken)); }
internal virtual ListVirtualNodesResponse ListVirtualNodes(ListVirtualNodesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListVirtualNodesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListVirtualNodesResponseUnmarshaller.Instance; return(Invoke <ListVirtualNodesResponse>(request, options)); }