/// <summary> /// Returns all the tagged resources that are associated with the specified tags (keys /// and values) located in the specified region for the AWS account. The tags and the /// resource types that you specify in the request are known as <i>filters</i>. The response /// includes all tags that are associated with the requested resources. If no filter is /// provided, this action returns a paginated resource list with the associated tags. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetResources service method.</param> /// /// <returns>The response from the GetResources 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/GetResources">REST API Reference for GetResources Operation</seealso> public virtual GetResourcesResponse GetResources(GetResourcesRequest request) { var marshaller = new GetResourcesRequestMarshaller(); var unmarshaller = GetResourcesResponseUnmarshaller.Instance; return(Invoke <GetResourcesRequest, GetResourcesResponse>(request, marshaller, unmarshaller)); }
public void GetResourcesMarshallTest() { var request = InstantiateClassGenerator.Execute <GetResourcesRequest>(); var marshaller = new GetResourcesRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson <GetResourcesRequest>(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("GetResources").ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); var response = GetResourcesResponseUnmarshaller.Instance.Unmarshall(context) as GetResourcesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the GetResources operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetResources 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/GetResources">REST API Reference for GetResources Operation</seealso> public virtual Task <GetResourcesResponse> GetResourcesAsync(GetResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetResourcesRequestMarshaller(); var unmarshaller = GetResourcesResponseUnmarshaller.Instance; return(InvokeAsync <GetResourcesRequest, GetResourcesResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the GetResources operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetResources 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 EndGetResources /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/resourcegroupstaggingapi-2017-01-26/GetResources">REST API Reference for GetResources Operation</seealso> public IAsyncResult BeginGetResources(GetResourcesRequest request, AsyncCallback callback, object state) { var marshaller = new GetResourcesRequestMarshaller(); var unmarshaller = GetResourcesResponseUnmarshaller.Instance; return(BeginInvoke <GetResourcesRequest>(request, marshaller, unmarshaller, callback, state)); }
/// <summary> /// Initiates the asynchronous execution of the GetResources operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetResources 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<GetResourcesResponse> GetResourcesAsync(GetResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetResourcesRequestMarshaller(); var unmarshaller = GetResourcesResponseUnmarshaller.Instance; return InvokeAsync<GetResourcesRequest,GetResourcesResponse>(request, marshaller, unmarshaller, cancellationToken); }
internal GetResourcesResponse GetResources(GetResourcesRequest request) { var marshaller = new GetResourcesRequestMarshaller(); var unmarshaller = GetResourcesResponseUnmarshaller.Instance; return Invoke<GetResourcesRequest,GetResourcesResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the GetResources operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetResources operation on AmazonAPIGatewayClient.</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 EndGetResources /// operation.</returns> public IAsyncResult BeginGetResources(GetResourcesRequest request, AsyncCallback callback, object state) { var marshaller = new GetResourcesRequestMarshaller(); var unmarshaller = GetResourcesResponseUnmarshaller.Instance; return BeginInvoke<GetResourcesRequest>(request, marshaller, unmarshaller, callback, state); }
public void GetResourcesMarshallTest() { var operation = service_model.FindOperation("GetResources"); var request = InstantiateClassGenerator.Execute<GetResourcesRequest>(); var marshaller = new GetResourcesRequestMarshaller(); var internalRequest = marshaller.Marshall(request); RequestValidator.Validate("GetResources", request, internalRequest, service_model); var webResponse = new WebResponseData { Headers = { {"x-amzn-RequestId", Guid.NewGuid().ToString()}, {"x-amz-crc32","0"} } }; var payloadResponse = new JsonSampleGenerator(service_model, operation.ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(payloadResponse).Length.ToString()); var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, webResponse); ResponseUnmarshaller unmarshaller = GetResourcesResponseUnmarshaller.Instance; var response = unmarshaller.Unmarshall(context) as GetResourcesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }