internal UpdateFleetResponse UpdateFleet(UpdateFleetRequest request) { var marshaller = new UpdateFleetRequestMarshaller(); var unmarshaller = UpdateFleetResponseUnmarshaller.Instance; return(Invoke <UpdateFleetRequest, UpdateFleetResponse>(request, marshaller, unmarshaller)); }
public void UpdateFleetMarshallTest() { var request = InstantiateClassGenerator.Execute <UpdateFleetRequest>(); var marshaller = new UpdateFleetRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson <UpdateFleetRequest>(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("UpdateFleet").ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); var response = UpdateFleetResponseUnmarshaller.Instance.Unmarshall(context) as UpdateFleetResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the UpdateFleet operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateFleet 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/appstream-2016-12-01/UpdateFleet">REST API Reference for UpdateFleet Operation</seealso> public Task <UpdateFleetResponse> UpdateFleetAsync(UpdateFleetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new UpdateFleetRequestMarshaller(); var unmarshaller = UpdateFleetResponseUnmarshaller.Instance; return(InvokeAsync <UpdateFleetRequest, UpdateFleetResponse>(request, marshaller, unmarshaller, cancellationToken)); }
public void UpdateFleetMarshallTest() { var request = InstantiateClassGenerator.Execute<UpdateFleetRequest>(); var marshaller = new UpdateFleetRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson<UpdateFleetRequest>(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("UpdateFleet").ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); var response = UpdateFleetResponseUnmarshaller.Instance.Unmarshall(context) as UpdateFleetResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the UpdateFleet operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateFleet 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<UpdateFleetResponse> UpdateFleetAsync(UpdateFleetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new UpdateFleetRequestMarshaller(); var unmarshaller = UpdateFleetResponseUnmarshaller.Instance; return InvokeAsync<UpdateFleetRequest,UpdateFleetResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Updates an existing fleet. All the attributes except the fleet name can be updated /// in the INACTIVE state. Only ComputeResourceCapacity and imageName can be updated in /// any other state. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateFleet service method.</param> /// /// <returns>The response from the UpdateFleet service method, as returned by AppStream.</returns> /// <exception cref="Amazon.AppStream.Model.InvalidRoleException"> /// The specified role is invalid. /// </exception> /// <exception cref="Amazon.AppStream.Model.LimitExceededException"> /// The requested limit exceeds the permitted limit for an account. /// </exception> /// <exception cref="Amazon.AppStream.Model.ResourceInUseException"> /// The specified resource is in use. /// </exception> /// <exception cref="Amazon.AppStream.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> public UpdateFleetResponse UpdateFleet(UpdateFleetRequest request) { var marshaller = new UpdateFleetRequestMarshaller(); var unmarshaller = UpdateFleetResponseUnmarshaller.Instance; return Invoke<UpdateFleetRequest,UpdateFleetResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the UpdateFleet operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateFleet operation on AmazonAppStreamClient.</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 EndUpdateFleet /// operation.</returns> public IAsyncResult BeginUpdateFleet(UpdateFleetRequest request, AsyncCallback callback, object state) { var marshaller = new UpdateFleetRequestMarshaller(); var unmarshaller = UpdateFleetResponseUnmarshaller.Instance; return BeginInvoke<UpdateFleetRequest>(request, marshaller, unmarshaller, callback, state); }