public void GetTagKeysMarshallTest() { var request = InstantiateClassGenerator.Execute <GetTagKeysRequest>(); var marshaller = new GetTagKeysRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson <GetTagKeysRequest>(request, jsonRequest); var webResponse = new WebResponseData { Headers = { { "x-amzn-RequestId", Guid.NewGuid().ToString() }, { "x-amz-crc32", "0" } } }; var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("GetTagKeys").ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); var response = GetTagKeysResponseUnmarshaller.Instance.Unmarshall(context) as GetTagKeysResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Returns all tag keys in the specified region for the AWS account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetTagKeys service method.</param> /// /// <returns>The response from the GetTagKeys service method, as returned by ResourceGroupsTaggingAPI.</returns> /// <exception cref="Amazon.ResourceGroupsTaggingAPI.Model.InternalServiceException"> /// The request processing failed because of an unknown error, exception, or failure. /// You can retry the request. /// </exception> /// <exception cref="Amazon.ResourceGroupsTaggingAPI.Model.InvalidParameterException"> /// A parameter is missing or a malformed string or invalid or out-of-range value was /// supplied for the request parameter. /// </exception> /// <exception cref="Amazon.ResourceGroupsTaggingAPI.Model.PaginationTokenExpiredException"> /// A <code>PaginationToken</code> is valid for a maximum of 15 minutes. Your request /// was denied because the specified <code>PaginationToken</code> has expired. /// </exception> /// <exception cref="Amazon.ResourceGroupsTaggingAPI.Model.ThrottledException"> /// The request was denied to limit the frequency of submitted requests. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/resourcegroupstaggingapi-2017-01-26/GetTagKeys">REST API Reference for GetTagKeys Operation</seealso> public virtual GetTagKeysResponse GetTagKeys(GetTagKeysRequest request) { var marshaller = new GetTagKeysRequestMarshaller(); var unmarshaller = GetTagKeysResponseUnmarshaller.Instance; return(Invoke <GetTagKeysRequest, GetTagKeysResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the GetTagKeys operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetTagKeys 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/resourcegroupstaggingapi-2017-01-26/GetTagKeys">REST API Reference for GetTagKeys Operation</seealso> public virtual Task <GetTagKeysResponse> GetTagKeysAsync(GetTagKeysRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetTagKeysRequestMarshaller(); var unmarshaller = GetTagKeysResponseUnmarshaller.Instance; return(InvokeAsync <GetTagKeysRequest, GetTagKeysResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the GetTagKeys operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetTagKeys operation on AmazonResourceGroupsTaggingAPIClient.</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 EndGetTagKeys /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/resourcegroupstaggingapi-2017-01-26/GetTagKeys">REST API Reference for GetTagKeys Operation</seealso> public IAsyncResult BeginGetTagKeys(GetTagKeysRequest request, AsyncCallback callback, object state) { var marshaller = new GetTagKeysRequestMarshaller(); var unmarshaller = GetTagKeysResponseUnmarshaller.Instance; return(BeginInvoke <GetTagKeysRequest>(request, marshaller, unmarshaller, callback, state)); }