internal DescribeApplicationResponse DescribeApplication(DescribeApplicationRequest request) { var marshaller = new DescribeApplicationRequestMarshaller(); var unmarshaller = DescribeApplicationResponseUnmarshaller.Instance; return(Invoke <DescribeApplicationRequest, DescribeApplicationResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeApplication operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeApplication 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 <DescribeApplicationResponse> DescribeApplicationAsync(DescribeApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeApplicationRequestMarshaller(); var unmarshaller = DescribeApplicationResponseUnmarshaller.Instance; return(InvokeAsync <DescribeApplicationRequest, DescribeApplicationResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Gets information about a Fleet Hub for AWS IoT Device Management web application. /// /// <note> /// <para> /// Fleet Hub for AWS IoT Device Management is in public preview and is subject to change. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeApplication 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 DescribeApplication service method, as returned by IoTFleetHub.</returns> /// <exception cref="Amazon.IoTFleetHub.Model.InternalFailureException"> /// An unexpected error has occurred. /// </exception> /// <exception cref="Amazon.IoTFleetHub.Model.InvalidRequestException"> /// The request is not valid. /// </exception> /// <exception cref="Amazon.IoTFleetHub.Model.ResourceNotFoundException"> /// The specified resource does not exist. /// </exception> /// <exception cref="Amazon.IoTFleetHub.Model.ThrottlingException"> /// The rate exceeds the limit. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/iotfleethub-2020-11-03/DescribeApplication">REST API Reference for DescribeApplication Operation</seealso> public virtual Task <DescribeApplicationResponse> DescribeApplicationAsync(DescribeApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeApplicationResponseUnmarshaller.Instance; return(InvokeAsync <DescribeApplicationResponse>(request, options, cancellationToken)); }
internal virtual DescribeApplicationResponse DescribeApplication(DescribeApplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeApplicationResponseUnmarshaller.Instance; return(Invoke <DescribeApplicationResponse>(request, options)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeApplication operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeApplication operation on AmazonIoTFleetHubClient.</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 EndDescribeApplication /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/iotfleethub-2020-11-03/DescribeApplication">REST API Reference for DescribeApplication Operation</seealso> public virtual IAsyncResult BeginDescribeApplication(DescribeApplicationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeApplicationResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }
/// <summary> /// 获取一个应用的信息。 /// </summary> /// <param name="req"><see cref="DescribeApplicationRequest"/></param> /// <returns><see cref="DescribeApplicationResponse"/></returns> public DescribeApplicationResponse DescribeApplicationSync(DescribeApplicationRequest req) { JsonResponseModel <DescribeApplicationResponse> rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeApplication"); rsp = JsonConvert.DeserializeObject <JsonResponseModel <DescribeApplicationResponse> >(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return(rsp.Response); }