Ejemplo n.º 1
0
        internal virtual DescribePlacementResponse DescribePlacement(DescribePlacementRequest request)
        {
            var marshaller   = DescribePlacementRequestMarshaller.Instance;
            var unmarshaller = DescribePlacementResponseUnmarshaller.Instance;

            return(Invoke <DescribePlacementRequest, DescribePlacementResponse>(request, marshaller, unmarshaller));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initiates the asynchronous execution of the DescribePlacement operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the DescribePlacement 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/DescribePlacement">REST API Reference for DescribePlacement Operation</seealso>
        public virtual Task <DescribePlacementResponse> DescribePlacementAsync(DescribePlacementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = DescribePlacementRequestMarshaller.Instance;
            var unmarshaller = DescribePlacementResponseUnmarshaller.Instance;

            return(InvokeAsync <DescribePlacementRequest, DescribePlacementResponse>(request, marshaller,
                                                                                     unmarshaller, cancellationToken));
        }
        /// <summary>
        /// Describes a placement in a project.
        /// </summary>
        /// <param name="request">Container for the necessary parameters to execute the DescribePlacement 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 DescribePlacement 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/DescribePlacement">REST API Reference for DescribePlacement Operation</seealso>
        public virtual Task <DescribePlacementResponse> DescribePlacementAsync(DescribePlacementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = DescribePlacementRequestMarshaller.Instance;
            options.ResponseUnmarshaller = DescribePlacementResponseUnmarshaller.Instance;

            return(InvokeAsync <DescribePlacementResponse>(request, options, cancellationToken));
        }
        internal virtual DescribePlacementResponse DescribePlacement(DescribePlacementRequest request)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = DescribePlacementRequestMarshaller.Instance;
            options.ResponseUnmarshaller = DescribePlacementResponseUnmarshaller.Instance;

            return(Invoke <DescribePlacementResponse>(request, options));
        }