internal virtual ListPlacementsResponse ListPlacements(ListPlacementsRequest request) { var marshaller = ListPlacementsRequestMarshaller.Instance; var unmarshaller = ListPlacementsResponseUnmarshaller.Instance; return(Invoke <ListPlacementsRequest, ListPlacementsResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the ListPlacements operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListPlacements 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/iot1click-projects-2018-05-14/ListPlacements">REST API Reference for ListPlacements Operation</seealso> public virtual Task <ListPlacementsResponse> ListPlacementsAsync(ListPlacementsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = ListPlacementsRequestMarshaller.Instance; var unmarshaller = ListPlacementsResponseUnmarshaller.Instance; return(InvokeAsync <ListPlacementsRequest, ListPlacementsResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Lists the placement(s) of a project. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPlacements 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 ListPlacements service method, as returned by IoT1ClickProjects.</returns> /// <exception cref="Amazon.IoT1ClickProjects.Model.InternalFailureException"> /// /// </exception> /// <exception cref="Amazon.IoT1ClickProjects.Model.InvalidRequestException"> /// /// </exception> /// <exception cref="Amazon.IoT1ClickProjects.Model.ResourceNotFoundException"> /// /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/ListPlacements">REST API Reference for ListPlacements Operation</seealso> public virtual Task <ListPlacementsResponse> ListPlacementsAsync(ListPlacementsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListPlacementsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPlacementsResponseUnmarshaller.Instance; return(InvokeAsync <ListPlacementsResponse>(request, options, cancellationToken)); }
internal virtual ListPlacementsResponse ListPlacements(ListPlacementsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPlacementsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPlacementsResponseUnmarshaller.Instance; return(Invoke <ListPlacementsResponse>(request, options)); }