/// <summary> /// <para> Returns information about DBSnapshots. This API supports pagination. </para> /// </summary> /// /// <param name="describeDBSnapshotsRequest">Container for the necessary parameters to execute the DescribeDBSnapshots service method on /// AmazonRDS.</param> /// /// <returns>The response from the DescribeDBSnapshots service method, as returned by AmazonRDS.</returns> /// /// <exception cref="DBSnapshotNotFoundException"/> public DescribeDBSnapshotsResponse DescribeDBSnapshots(DescribeDBSnapshotsRequest describeDBSnapshotsRequest) { IRequest <DescribeDBSnapshotsRequest> request = new DescribeDBSnapshotsRequestMarshaller().Marshall(describeDBSnapshotsRequest); DescribeDBSnapshotsResponse response = Invoke <DescribeDBSnapshotsRequest, DescribeDBSnapshotsResponse> (request, this.signer, DescribeDBSnapshotsResponseUnmarshaller.GetInstance()); return(response); }
IAsyncResult invokeDescribeDBSnapshots(DescribeDBSnapshotsRequest describeDBSnapshotsRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DescribeDBSnapshotsRequestMarshaller().Marshall(describeDBSnapshotsRequest); var unmarshaller = DescribeDBSnapshotsResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Initiates the asynchronous execution of the DescribeDBSnapshots operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeDBSnapshots 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<DescribeDBSnapshotsResponse> DescribeDBSnapshotsAsync(DescribeDBSnapshotsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeDBSnapshotsRequestMarshaller(); var unmarshaller = DescribeDBSnapshotsResponseUnmarshaller.Instance; return InvokeAsync<DescribeDBSnapshotsRequest,DescribeDBSnapshotsResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Returns information about DB snapshots. This API supports pagination. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeDBSnapshots service method.</param> /// /// <returns>The response from the DescribeDBSnapshots service method, as returned by RDS.</returns> /// <exception cref="Amazon.RDS.Model.DBSnapshotNotFoundException"> /// <i>DBSnapshotIdentifier</i> does not refer to an existing DB snapshot. /// </exception> public DescribeDBSnapshotsResponse DescribeDBSnapshots(DescribeDBSnapshotsRequest request) { var marshaller = new DescribeDBSnapshotsRequestMarshaller(); var unmarshaller = DescribeDBSnapshotsResponseUnmarshaller.Instance; return Invoke<DescribeDBSnapshotsRequest,DescribeDBSnapshotsResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DescribeDBSnapshots operation. /// <seealso cref="Amazon.RDS.IAmazonRDS.DescribeDBSnapshots"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeDBSnapshots 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<DescribeDBSnapshotsResponse> DescribeDBSnapshotsAsync(DescribeDBSnapshotsRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeDBSnapshotsRequestMarshaller(); var unmarshaller = DescribeDBSnapshotsResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DescribeDBSnapshotsRequest, DescribeDBSnapshotsResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
public void DescribeDBSnapshotsMarshallTest() { var operation = service_model.FindOperation("DescribeDBSnapshots"); var request = InstantiateClassGenerator.Execute<DescribeDBSnapshotsRequest>(); var marshaller = new DescribeDBSnapshotsRequestMarshaller(); 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 = DescribeDBSnapshotsResponseUnmarshaller.Instance.Unmarshall(context) as DescribeDBSnapshotsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// <para> Returns information about DB snapshots. This API supports pagination. </para> /// </summary> /// /// <param name="describeDBSnapshotsRequest">Container for the necessary parameters to execute the DescribeDBSnapshots service method on /// AmazonRDS.</param> /// /// <returns>The response from the DescribeDBSnapshots service method, as returned by AmazonRDS.</returns> /// /// <exception cref="T:Amazon.RDS.Model.DBSnapshotNotFoundException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<DescribeDBSnapshotsResponse> DescribeDBSnapshotsAsync(DescribeDBSnapshotsRequest describeDBSnapshotsRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeDBSnapshotsRequestMarshaller(); var unmarshaller = DescribeDBSnapshotsResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DescribeDBSnapshotsRequest, DescribeDBSnapshotsResponse>(describeDBSnapshotsRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// Initiates the asynchronous execution of the DescribeDBSnapshots operation. /// <seealso cref="Amazon.RDS.IAmazonRDS"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeDBSnapshots operation on AmazonRDSClient.</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 EndDescribeDBSnapshots /// operation.</returns> public IAsyncResult BeginDescribeDBSnapshots(DescribeDBSnapshotsRequest request, AsyncCallback callback, object state) { var marshaller = new DescribeDBSnapshotsRequestMarshaller(); var unmarshaller = DescribeDBSnapshotsResponseUnmarshaller.Instance; return BeginInvoke<DescribeDBSnapshotsRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// <para> Returns information about DBSnapshots. This API supports pagination. </para> /// </summary> /// /// <param name="describeDBSnapshotsRequest">Container for the necessary parameters to execute the DescribeDBSnapshots service method on /// AmazonRDS.</param> /// /// <returns>The response from the DescribeDBSnapshots service method, as returned by AmazonRDS.</returns> /// /// <exception cref="DBSnapshotNotFoundException"/> public DescribeDBSnapshotsResponse DescribeDBSnapshots(DescribeDBSnapshotsRequest describeDBSnapshotsRequest) { IRequest<DescribeDBSnapshotsRequest> request = new DescribeDBSnapshotsRequestMarshaller().Marshall(describeDBSnapshotsRequest); DescribeDBSnapshotsResponse response = Invoke<DescribeDBSnapshotsRequest, DescribeDBSnapshotsResponse> (request, this.signer, DescribeDBSnapshotsResponseUnmarshaller.GetInstance()); return response; }