internal virtual ModifyWorkspacePropertiesResponse ModifyWorkspaceProperties(ModifyWorkspacePropertiesRequest request) { var marshaller = new ModifyWorkspacePropertiesRequestMarshaller(); var unmarshaller = ModifyWorkspacePropertiesResponseUnmarshaller.Instance; return(Invoke <ModifyWorkspacePropertiesRequest, ModifyWorkspacePropertiesResponse>(request, marshaller, unmarshaller)); }
public void ModifyWorkspacePropertiesMarshallTest() { var request = InstantiateClassGenerator.Execute <ModifyWorkspacePropertiesRequest>(); var marshaller = new ModifyWorkspacePropertiesRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson <ModifyWorkspacePropertiesRequest>(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("ModifyWorkspaceProperties").ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); var response = ModifyWorkspacePropertiesResponseUnmarshaller.Instance.Unmarshall(context) as ModifyWorkspacePropertiesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the ModifyWorkspaceProperties operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ModifyWorkspaceProperties 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 <ModifyWorkspacePropertiesResponse> ModifyWorkspacePropertiesAsync(ModifyWorkspacePropertiesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ModifyWorkspacePropertiesRequestMarshaller(); var unmarshaller = ModifyWorkspacePropertiesResponseUnmarshaller.Instance; return(InvokeAsync <ModifyWorkspacePropertiesRequest, ModifyWorkspacePropertiesResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the ModifyWorkspaceProperties operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ModifyWorkspaceProperties operation on AmazonWorkSpacesClient.</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 EndModifyWorkspaceProperties /// operation.</returns> public IAsyncResult BeginModifyWorkspaceProperties(ModifyWorkspacePropertiesRequest request, AsyncCallback callback, object state) { var marshaller = new ModifyWorkspacePropertiesRequestMarshaller(); var unmarshaller = ModifyWorkspacePropertiesResponseUnmarshaller.Instance; return BeginInvoke<ModifyWorkspacePropertiesRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// Modifies the WorkSpace properties, including the RunningMode and AutoStop time. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ModifyWorkspaceProperties service method.</param> /// /// <returns>The response from the ModifyWorkspaceProperties service method, as returned by WorkSpaces.</returns> /// <exception cref="Amazon.WorkSpaces.Model.AccessDeniedException"> /// /// </exception> /// <exception cref="Amazon.WorkSpaces.Model.InvalidParameterValuesException"> /// One or more parameter values are not valid. /// </exception> /// <exception cref="Amazon.WorkSpaces.Model.InvalidResourceStateException"> /// The specified WorkSpace has an invalid state for this operation. /// </exception> /// <exception cref="Amazon.WorkSpaces.Model.OperationInProgressException"> /// The properties of this WorkSpace are currently being modified. Try again in a moment. /// </exception> /// <exception cref="Amazon.WorkSpaces.Model.ResourceNotFoundException"> /// The resource could not be found. /// </exception> /// <exception cref="Amazon.WorkSpaces.Model.ResourceUnavailableException"> /// The specified resource is not available. /// </exception> /// <exception cref="Amazon.WorkSpaces.Model.UnsupportedWorkspaceConfigurationException"> /// The WorkSpace does not have the supported configuration for this operation. For more /// information, see the <a href="http://docs.aws.amazon.com/workspaces/latest/adminguide">Amazon /// WorkSpaces Administration Guide</a>. /// </exception> public ModifyWorkspacePropertiesResponse ModifyWorkspaceProperties(ModifyWorkspacePropertiesRequest request) { var marshaller = new ModifyWorkspacePropertiesRequestMarshaller(); var unmarshaller = ModifyWorkspacePropertiesResponseUnmarshaller.Instance; return Invoke<ModifyWorkspacePropertiesRequest,ModifyWorkspacePropertiesResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the ModifyWorkspaceProperties operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ModifyWorkspaceProperties 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<ModifyWorkspacePropertiesResponse> ModifyWorkspacePropertiesAsync(ModifyWorkspacePropertiesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ModifyWorkspacePropertiesRequestMarshaller(); var unmarshaller = ModifyWorkspacePropertiesResponseUnmarshaller.Instance; return InvokeAsync<ModifyWorkspacePropertiesRequest,ModifyWorkspacePropertiesResponse>(request, marshaller, unmarshaller, cancellationToken); }
public void ModifyWorkspacePropertiesMarshallTest() { var request = InstantiateClassGenerator.Execute<ModifyWorkspacePropertiesRequest>(); var marshaller = new ModifyWorkspacePropertiesRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson<ModifyWorkspacePropertiesRequest>(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("ModifyWorkspaceProperties").ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); var response = ModifyWorkspacePropertiesResponseUnmarshaller.Instance.Unmarshall(context) as ModifyWorkspacePropertiesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }