def update_software_set(
self,
id: "capo_workspaces_thin_client.types.software_set_id.SoftwareSetId",
validation_status: "capo_workspaces_thin_client.types.software_set_validation_status.SoftwareSetValidationStatus",
*,
config_overrides: Optional[WorkSpacesThinClientClientConfig] = None,
) -> "capo_workspaces_thin_client.types.update_software_set_response.UpdateSoftwareSetResponse":
"""<p>Updates a software set.</p>
Args:
id: <p>The ID of the software set to update.</p>
validation_status: <p>An option to define if the software set has been validated.</p>
Raises:
capo_workspaces_thin_client.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
capo_workspaces_thin_client.errors.internal_server_exception.InternalServerException: <p>The server encountered an internal error and is unable to complete the request.</p>
capo_workspaces_thin_client.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource specified in the request was not found.</p>
capo_workspaces_thin_client.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
capo_workspaces_thin_client.errors.validation_exception.ValidationException: <p>The input fails to satisfy the specified constraints.</p>
capo_workspaces_thin_client.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_workspaces_thin_client.types.update_software_set_request.UpdateSoftwareSetRequest]",
) -> OperationResponse[
"capo_workspaces_thin_client.types.update_software_set_response.UpdateSoftwareSetResponse"
]:
import capo_workspaces_thin_client._operations.thin_client.update_software_set
output, http_response = (
capo_workspaces_thin_client._operations.thin_client.update_software_set.update_software_set(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UpdateSoftwareSet")
)
input_: capo_workspaces_thin_client.types.update_software_set_request.UpdateSoftwareSetRequest = {
"id": id,
"validation_status": validation_status,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output