public void UpdateEnvironmentMarshallTest() { var request = InstantiateClassGenerator.Execute <UpdateEnvironmentRequest>(); var marshaller = new UpdateEnvironmentRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson <UpdateEnvironmentRequest>(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("UpdateEnvironment").ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); var response = UpdateEnvironmentResponseUnmarshaller.Instance.Unmarshall(context) as UpdateEnvironmentResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// <para> Updates the environment description, deploys a new application version, updates the configuration settings to an entirely new /// configuration template, or updates select configuration option values in the running environment. </para> <para> Attempting to update both /// the release and configuration is not allowed and AWS Elastic Beanstalk returns an <c>InvalidParameterCombination</c> error. </para> <para> /// When updating the configuration settings to a new template or individual settings, a draft configuration is created and /// DescribeConfigurationSettings for this environment returns two setting descriptions with different <c>DeploymentStatus</c> values. </para> /// </summary> /// /// <param name="updateEnvironmentRequest">Container for the necessary parameters to execute the UpdateEnvironment service method on /// AmazonElasticBeanstalk.</param> /// /// <returns>The response from the UpdateEnvironment service method, as returned by AmazonElasticBeanstalk.</returns> /// public UpdateEnvironmentResponse UpdateEnvironment(UpdateEnvironmentRequest updateEnvironmentRequest) { IRequest <UpdateEnvironmentRequest> request = new UpdateEnvironmentRequestMarshaller().Marshall(updateEnvironmentRequest); UpdateEnvironmentResponse response = Invoke <UpdateEnvironmentRequest, UpdateEnvironmentResponse> (request, this.signer, UpdateEnvironmentResponseUnmarshaller.GetInstance()); return(response); }
public void UpdateEnvironmentMarshallTest() { var operation = service_model.FindOperation("UpdateEnvironment"); var request = InstantiateClassGenerator.Execute <UpdateEnvironmentRequest>(); var marshaller = new UpdateEnvironmentRequestMarshaller(); var internalRequest = marshaller.Marshall(request); TestTools.RequestValidator.Validate("UpdateEnvironment", 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["Content-Length"] = UTF8Encoding.UTF8.GetBytes(payloadResponse).Length.ToString(); var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, webResponse); ResponseUnmarshaller unmarshaller = UpdateEnvironmentResponseUnmarshaller.Instance; var response = unmarshaller.Unmarshall(context) as UpdateEnvironmentResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
internal virtual UpdateEnvironmentResponse UpdateEnvironment(UpdateEnvironmentRequest request) { var marshaller = new UpdateEnvironmentRequestMarshaller(); var unmarshaller = UpdateEnvironmentResponseUnmarshaller.Instance; return(Invoke <UpdateEnvironmentRequest, UpdateEnvironmentResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the UpdateEnvironment operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateEnvironment 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/cloud9-2017-09-23/UpdateEnvironment">REST API Reference for UpdateEnvironment Operation</seealso> public virtual Task <UpdateEnvironmentResponse> UpdateEnvironmentAsync(UpdateEnvironmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new UpdateEnvironmentRequestMarshaller(); var unmarshaller = UpdateEnvironmentResponseUnmarshaller.Instance; return(InvokeAsync <UpdateEnvironmentRequest, UpdateEnvironmentResponse>(request, marshaller, unmarshaller, cancellationToken)); }
public void UpdateEnvironmentMarshallTest() { var operation = service_model.FindOperation("UpdateEnvironment"); var request = InstantiateClassGenerator.Execute <UpdateEnvironmentRequest>(); var marshaller = new UpdateEnvironmentRequestMarshaller(); 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 = UpdateEnvironmentResponseUnmarshaller.Instance.Unmarshall(context) as UpdateEnvironmentResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
IAsyncResult invokeUpdateEnvironment(UpdateEnvironmentRequest updateEnvironmentRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new UpdateEnvironmentRequestMarshaller().Marshall(updateEnvironmentRequest); var unmarshaller = UpdateEnvironmentResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Initiates the asynchronous execution of the UpdateEnvironment operation. /// <seealso cref="Amazon.ElasticBeanstalk.IAmazonElasticBeanstalk"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateEnvironment 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<UpdateEnvironmentResponse> UpdateEnvironmentAsync(UpdateEnvironmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new UpdateEnvironmentRequestMarshaller(); var unmarshaller = UpdateEnvironmentResponseUnmarshaller.Instance; return InvokeAsync<UpdateEnvironmentRequest,UpdateEnvironmentResponse>(request, marshaller, unmarshaller, cancellationToken); }
internal UpdateEnvironmentResponse UpdateEnvironment(UpdateEnvironmentRequest request) { var marshaller = new UpdateEnvironmentRequestMarshaller(); var unmarshaller = UpdateEnvironmentResponseUnmarshaller.Instance; return Invoke<UpdateEnvironmentRequest,UpdateEnvironmentResponse>(request, marshaller, unmarshaller); }
/// <summary> /// <para> Updates the environment description, deploys a new application version, updates the configuration settings to an entirely new /// configuration template, or updates select configuration option values in the running environment. </para> <para> Attempting to update both /// the release and configuration is not allowed and AWS Elastic Beanstalk returns an <c>InvalidParameterCombination</c> error. </para> <para> /// When updating the configuration settings to a new template or individual settings, a draft configuration is created and /// DescribeConfigurationSettings for this environment returns two setting descriptions with different <c>DeploymentStatus</c> values. </para> /// </summary> /// /// <param name="updateEnvironmentRequest">Container for the necessary parameters to execute the UpdateEnvironment service method on /// AmazonElasticBeanstalk.</param> /// /// <returns>The response from the UpdateEnvironment service method, as returned by AmazonElasticBeanstalk.</returns> /// public UpdateEnvironmentResponse UpdateEnvironment(UpdateEnvironmentRequest updateEnvironmentRequest) { IRequest<UpdateEnvironmentRequest> request = new UpdateEnvironmentRequestMarshaller().Marshall(updateEnvironmentRequest); UpdateEnvironmentResponse response = Invoke<UpdateEnvironmentRequest, UpdateEnvironmentResponse> (request, this.signer, UpdateEnvironmentResponseUnmarshaller.GetInstance()); return response; }
public void UpdateEnvironmentMarshallTest() { var operation = service_model.FindOperation("UpdateEnvironment"); var request = InstantiateClassGenerator.Execute<UpdateEnvironmentRequest>(); var marshaller = new UpdateEnvironmentRequestMarshaller(); 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 = UpdateEnvironmentResponseUnmarshaller.Instance.Unmarshall(context) as UpdateEnvironmentResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// <para> Updates the environment description, deploys a new application version, updates the configuration settings to an entirely new /// configuration template, or updates select configuration option values in the running environment. </para> <para> Attempting to update both /// the release and configuration is not allowed and AWS Elastic Beanstalk returns an <c>InvalidParameterCombination</c> error. </para> <para> /// When updating the configuration settings to a new template or individual settings, a draft configuration is created and /// DescribeConfigurationSettings for this environment returns two setting descriptions with different <c>DeploymentStatus</c> values. </para> /// </summary> /// /// <param name="updateEnvironmentRequest">Container for the necessary parameters to execute the UpdateEnvironment service method on /// AmazonElasticBeanstalk.</param> /// /// <returns>The response from the UpdateEnvironment service method, as returned by AmazonElasticBeanstalk.</returns> /// /// <exception cref="T:Amazon.ElasticBeanstalk.Model.InsufficientPrivilegesException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<UpdateEnvironmentResponse> UpdateEnvironmentAsync(UpdateEnvironmentRequest updateEnvironmentRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new UpdateEnvironmentRequestMarshaller(); var unmarshaller = UpdateEnvironmentResponseUnmarshaller.GetInstance(); return Invoke<IRequest, UpdateEnvironmentRequest, UpdateEnvironmentResponse>(updateEnvironmentRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the UpdateEnvironment operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateEnvironment 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 EndUpdateEnvironment /// operation.</returns> public IAsyncResult BeginUpdateEnvironment(UpdateEnvironmentRequest request, AsyncCallback callback, object state) { var marshaller = new UpdateEnvironmentRequestMarshaller(); var unmarshaller = UpdateEnvironmentResponseUnmarshaller.Instance; return BeginInvoke<UpdateEnvironmentRequest>(request, marshaller, unmarshaller, callback, state); }
IAsyncResult invokeUpdateEnvironment(UpdateEnvironmentRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new UpdateEnvironmentRequestMarshaller(); var unmarshaller = UpdateEnvironmentResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }
/// <summary> /// <para> Updates the environment description, deploys a new application version, updates the configuration settings to an entirely new /// configuration template, or updates select configuration option values in the running environment. </para> <para> Attempting to update both /// the release and configuration is not allowed and AWS Elastic Beanstalk returns an <c>InvalidParameterCombination</c> error. </para> <para> /// When updating the configuration settings to a new template or individual settings, a draft configuration is created and /// DescribeConfigurationSettings for this environment returns two setting descriptions with different <c>DeploymentStatus</c> values. </para> /// </summary> /// /// <param name="updateEnvironmentRequest">Container for the necessary parameters to execute the UpdateEnvironment service method on /// AmazonElasticBeanstalk.</param> /// /// <returns>The response from the UpdateEnvironment service method, as returned by AmazonElasticBeanstalk.</returns> /// /// <exception cref="T:Amazon.ElasticBeanstalk.Model.InsufficientPrivilegesException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<UpdateEnvironmentResponse> UpdateEnvironmentAsync(UpdateEnvironmentRequest updateEnvironmentRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new UpdateEnvironmentRequestMarshaller(); var unmarshaller = UpdateEnvironmentResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, UpdateEnvironmentRequest, UpdateEnvironmentResponse>(updateEnvironmentRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }