/// <summary> /// Returns the metadata and content of the entity. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeEntity service method.</param> /// /// <returns>The response from the DescribeEntity service method, as returned by MarketplaceCatalog.</returns> /// <exception cref="Amazon.MarketplaceCatalog.Model.AccessDeniedException"> /// Access is denied. /// </exception> /// <exception cref="Amazon.MarketplaceCatalog.Model.InternalServiceException"> /// There was an internal service exception. /// </exception> /// <exception cref="Amazon.MarketplaceCatalog.Model.ResourceNotFoundException"> /// The specified resource wasn't found. /// </exception> /// <exception cref="Amazon.MarketplaceCatalog.Model.ResourceNotSupportedException"> /// Currently, the specified resource is not supported. /// </exception> /// <exception cref="Amazon.MarketplaceCatalog.Model.ThrottlingException"> /// Too many requests. /// </exception> /// <exception cref="Amazon.MarketplaceCatalog.Model.ValidationException"> /// An error occurred during validation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/DescribeEntity">REST API Reference for DescribeEntity Operation</seealso> public virtual DescribeEntityResponse DescribeEntity(DescribeEntityRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEntityRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEntityResponseUnmarshaller.Instance; return(Invoke <DescribeEntityResponse>(request, options)); }
/// <summary> /// Returns the metadata and content of the entity. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeEntity 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 DescribeEntity service method, as returned by MarketplaceCatalog.</returns> /// <exception cref="Amazon.MarketplaceCatalog.Model.AccessDeniedException"> /// Access is denied. /// </exception> /// <exception cref="Amazon.MarketplaceCatalog.Model.InternalServiceException"> /// There was an internal service exception. /// </exception> /// <exception cref="Amazon.MarketplaceCatalog.Model.ResourceNotFoundException"> /// The specified resource wasn't found. /// </exception> /// <exception cref="Amazon.MarketplaceCatalog.Model.ResourceNotSupportedException"> /// Currently, the specified resource is not supported. /// </exception> /// <exception cref="Amazon.MarketplaceCatalog.Model.ThrottlingException"> /// Too many requests. /// </exception> /// <exception cref="Amazon.MarketplaceCatalog.Model.ValidationException"> /// An error occurred during validation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/DescribeEntity">REST API Reference for DescribeEntity Operation</seealso> public virtual Task <DescribeEntityResponse> DescribeEntityAsync(DescribeEntityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEntityRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEntityResponseUnmarshaller.Instance; return(InvokeAsync <DescribeEntityResponse>(request, options, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeEntity operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeEntity operation on AmazonMarketplaceCatalogClient.</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 EndDescribeEntity /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/DescribeEntity">REST API Reference for DescribeEntity Operation</seealso> public virtual IAsyncResult BeginDescribeEntity(DescribeEntityRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEntityRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEntityResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }
/// <summary> /// 输入实体名称,返回实体相关的信息如实体别名、实体英文名、实体详细信息、相关实体等。 /// </summary> /// <param name="req"><see cref="DescribeEntityRequest"/></param> /// <returns><see cref="DescribeEntityResponse"/></returns> public DescribeEntityResponse DescribeEntitySync(DescribeEntityRequest req) { JsonResponseModel <DescribeEntityResponse> rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeEntity"); rsp = JsonConvert.DeserializeObject <JsonResponseModel <DescribeEntityResponse> >(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return(rsp.Response); }