/// <summary> /// <para> Deletes the specified version from the specified application. </para> <para><b>NOTE:</b>You cannot delete an application version that /// is associated with a running environment.</para> /// </summary> /// /// <param name="deleteApplicationVersionRequest">Container for the necessary parameters to execute the DeleteApplicationVersion service method /// on AmazonElasticBeanstalk.</param> /// /// <exception cref="SourceBundleDeletionException"/> public DeleteApplicationVersionResponse DeleteApplicationVersion(DeleteApplicationVersionRequest deleteApplicationVersionRequest) { IRequest <DeleteApplicationVersionRequest> request = new DeleteApplicationVersionRequestMarshaller().Marshall(deleteApplicationVersionRequest); DeleteApplicationVersionResponse response = Invoke <DeleteApplicationVersionRequest, DeleteApplicationVersionResponse> (request, this.signer, DeleteApplicationVersionResponseUnmarshaller.GetInstance()); return(response); }
public void DeleteApplicationVersionMarshallTest() { var operation = service_model.FindOperation("DeleteApplicationVersion"); var request = InstantiateClassGenerator.Execute <DeleteApplicationVersionRequest>(); var marshaller = new DeleteApplicationVersionRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
IAsyncResult invokeDeleteApplicationVersion(DeleteApplicationVersionRequest deleteApplicationVersionRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DeleteApplicationVersionRequestMarshaller().Marshall(deleteApplicationVersionRequest); var unmarshaller = DeleteApplicationVersionResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Initiates the asynchronous execution of the DeleteApplicationVersion operation. /// <seealso cref="Amazon.ElasticBeanstalk.IAmazonElasticBeanstalk"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteApplicationVersion 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<DeleteApplicationVersionResponse> DeleteApplicationVersionAsync(DeleteApplicationVersionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteApplicationVersionRequestMarshaller(); var unmarshaller = DeleteApplicationVersionResponseUnmarshaller.Instance; return InvokeAsync<DeleteApplicationVersionRequest,DeleteApplicationVersionResponse>(request, marshaller, unmarshaller, cancellationToken); }
internal DeleteApplicationVersionResponse DeleteApplicationVersion(DeleteApplicationVersionRequest request) { var marshaller = new DeleteApplicationVersionRequestMarshaller(); var unmarshaller = DeleteApplicationVersionResponseUnmarshaller.Instance; return Invoke<DeleteApplicationVersionRequest,DeleteApplicationVersionResponse>(request, marshaller, unmarshaller); }
/// <summary> /// <para> Deletes the specified version from the specified application. </para> <para><b>NOTE:</b>You cannot delete an application version that /// is associated with a running environment.</para> /// </summary> /// /// <param name="deleteApplicationVersionRequest">Container for the necessary parameters to execute the DeleteApplicationVersion service method /// on AmazonElasticBeanstalk.</param> /// /// <exception cref="SourceBundleDeletionException"/> public DeleteApplicationVersionResponse DeleteApplicationVersion(DeleteApplicationVersionRequest deleteApplicationVersionRequest) { IRequest<DeleteApplicationVersionRequest> request = new DeleteApplicationVersionRequestMarshaller().Marshall(deleteApplicationVersionRequest); DeleteApplicationVersionResponse response = Invoke<DeleteApplicationVersionRequest, DeleteApplicationVersionResponse> (request, this.signer, DeleteApplicationVersionResponseUnmarshaller.GetInstance()); return response; }
public void DeleteApplicationVersionMarshallTest() { var operation = service_model.FindOperation("DeleteApplicationVersion"); var request = InstantiateClassGenerator.Execute<DeleteApplicationVersionRequest>(); var marshaller = new DeleteApplicationVersionRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// <para> Deletes the specified version from the specified application. </para> <para><b>NOTE:</b>You cannot delete an application version that /// is associated with a running environment.</para> /// </summary> /// /// <param name="deleteApplicationVersionRequest">Container for the necessary parameters to execute the DeleteApplicationVersion service method /// on AmazonElasticBeanstalk.</param> /// /// <exception cref="T:Amazon.ElasticBeanstalk.Model.OperationInProgressException" /> /// <exception cref="T:Amazon.ElasticBeanstalk.Model.InsufficientPrivilegesException" /> /// <exception cref="T:Amazon.ElasticBeanstalk.Model.SourceBundleDeletionException" /> /// <exception cref="T:Amazon.ElasticBeanstalk.Model.S3LocationNotInServiceRegionException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<DeleteApplicationVersionResponse> DeleteApplicationVersionAsync(DeleteApplicationVersionRequest deleteApplicationVersionRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteApplicationVersionRequestMarshaller(); var unmarshaller = DeleteApplicationVersionResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DeleteApplicationVersionRequest, DeleteApplicationVersionResponse>(deleteApplicationVersionRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the DeleteApplicationVersion operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteApplicationVersion operation on AmazonElasticBeanstalkClient.</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 EndDeleteApplicationVersion /// operation.</returns> public IAsyncResult BeginDeleteApplicationVersion(DeleteApplicationVersionRequest request, AsyncCallback callback, object state) { var marshaller = new DeleteApplicationVersionRequestMarshaller(); var unmarshaller = DeleteApplicationVersionResponseUnmarshaller.Instance; return BeginInvoke<DeleteApplicationVersionRequest>(request, marshaller, unmarshaller, callback, state); }
IAsyncResult invokeDeleteApplicationVersion(DeleteApplicationVersionRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new DeleteApplicationVersionRequestMarshaller(); var unmarshaller = DeleteApplicationVersionResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }
/// <summary> /// <para> Deletes the specified version from the specified application. </para> <para><b>NOTE:</b>You cannot delete an application version that /// is associated with a running environment.</para> /// </summary> /// /// <param name="deleteApplicationVersionRequest">Container for the necessary parameters to execute the DeleteApplicationVersion service method /// on AmazonElasticBeanstalk.</param> /// /// <exception cref="T:Amazon.ElasticBeanstalk.Model.OperationInProgressException" /> /// <exception cref="T:Amazon.ElasticBeanstalk.Model.InsufficientPrivilegesException" /> /// <exception cref="T:Amazon.ElasticBeanstalk.Model.SourceBundleDeletionException" /> /// <exception cref="T:Amazon.ElasticBeanstalk.Model.S3LocationNotInServiceRegionException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<DeleteApplicationVersionResponse> DeleteApplicationVersionAsync(DeleteApplicationVersionRequest deleteApplicationVersionRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteApplicationVersionRequestMarshaller(); var unmarshaller = DeleteApplicationVersionResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DeleteApplicationVersionRequest, DeleteApplicationVersionResponse>(deleteApplicationVersionRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }