public void DescribeCacheSubnetGroupsMarshallTest() { var operation = service_model.FindOperation("DescribeCacheSubnetGroups"); var request = InstantiateClassGenerator.Execute <DescribeCacheSubnetGroupsRequest>(); var marshaller = new DescribeCacheSubnetGroupsRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null); var response = DescribeCacheSubnetGroupsResponseUnmarshaller.Instance.Unmarshall(context) as DescribeCacheSubnetGroupsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the DescribeCacheSubnetGroups operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeCacheSubnetGroups 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<DescribeCacheSubnetGroupsResponse> DescribeCacheSubnetGroupsAsync(DescribeCacheSubnetGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeCacheSubnetGroupsRequestMarshaller(); var unmarshaller = DescribeCacheSubnetGroupsResponseUnmarshaller.Instance; return InvokeAsync<DescribeCacheSubnetGroupsRequest,DescribeCacheSubnetGroupsResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// The <i>DescribeCacheSubnetGroups</i> operation returns a list of cache subnet group /// descriptions. If a subnet group name is specified, the list will contain only the /// description of that group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeCacheSubnetGroups service method.</param> /// /// <returns>The response from the DescribeCacheSubnetGroups service method, as returned by ElastiCache.</returns> /// <exception cref="Amazon.ElastiCache.Model.CacheSubnetGroupNotFoundException"> /// The requested cache subnet group name does not refer to an existing cache subnet group. /// </exception> public DescribeCacheSubnetGroupsResponse DescribeCacheSubnetGroups(DescribeCacheSubnetGroupsRequest request) { var marshaller = new DescribeCacheSubnetGroupsRequestMarshaller(); var unmarshaller = DescribeCacheSubnetGroupsResponseUnmarshaller.Instance; return Invoke<DescribeCacheSubnetGroupsRequest,DescribeCacheSubnetGroupsResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DescribeCacheSubnetGroups operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeCacheSubnetGroups operation on AmazonElastiCacheClient.</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 EndDescribeCacheSubnetGroups /// operation.</returns> public IAsyncResult BeginDescribeCacheSubnetGroups(DescribeCacheSubnetGroupsRequest request, AsyncCallback callback, object state) { var marshaller = new DescribeCacheSubnetGroupsRequestMarshaller(); var unmarshaller = DescribeCacheSubnetGroupsResponseUnmarshaller.Instance; return BeginInvoke<DescribeCacheSubnetGroupsRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// Initiates the asynchronous execution of the DescribeCacheSubnetGroups operation. /// <seealso cref="Amazon.ElastiCache.IAmazonElastiCache.DescribeCacheSubnetGroups"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeCacheSubnetGroups 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<DescribeCacheSubnetGroupsResponse> DescribeCacheSubnetGroupsAsync(DescribeCacheSubnetGroupsRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeCacheSubnetGroupsRequestMarshaller(); var unmarshaller = DescribeCacheSubnetGroupsResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DescribeCacheSubnetGroupsRequest, DescribeCacheSubnetGroupsResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
IAsyncResult invokeDescribeCacheSubnetGroups(DescribeCacheSubnetGroupsRequest describeCacheSubnetGroupsRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DescribeCacheSubnetGroupsRequestMarshaller().Marshall(describeCacheSubnetGroupsRequest); var unmarshaller = DescribeCacheSubnetGroupsResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
public void DescribeCacheSubnetGroupsMarshallTest() { var operation = service_model.FindOperation("DescribeCacheSubnetGroups"); var request = InstantiateClassGenerator.Execute<DescribeCacheSubnetGroupsRequest>(); var marshaller = new DescribeCacheSubnetGroupsRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null); var response = DescribeCacheSubnetGroupsResponseUnmarshaller.Instance.Unmarshall(context) as DescribeCacheSubnetGroupsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// <para>The <i>DescribeCacheSubnetGroups</i> operation returns a list of cache subnet group descriptions. If a subnet group name is specified, /// the list will contain only the description of that group.</para> /// </summary> /// /// <param name="describeCacheSubnetGroupsRequest">Container for the necessary parameters to execute the DescribeCacheSubnetGroups service /// method on AmazonElastiCache.</param> /// /// <returns>The response from the DescribeCacheSubnetGroups service method, as returned by AmazonElastiCache.</returns> /// /// <exception cref="T:Amazon.ElastiCache.Model.CacheSubnetGroupNotFoundException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<DescribeCacheSubnetGroupsResponse> DescribeCacheSubnetGroupsAsync(DescribeCacheSubnetGroupsRequest describeCacheSubnetGroupsRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeCacheSubnetGroupsRequestMarshaller(); var unmarshaller = DescribeCacheSubnetGroupsResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DescribeCacheSubnetGroupsRequest, DescribeCacheSubnetGroupsResponse>(describeCacheSubnetGroupsRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }