lib/google/apis/healthcare_v1/service.rb in google-apis-healthcare_v1-0.63.0 vs lib/google/apis/healthcare_v1/service.rb in google-apis-healthcare_v1-0.64.0

- old
+ new

@@ -5371,9 +5371,51 @@ command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + # Rolls back messages from the HL7 store to the specified time. This method + # returns an Operation that can be used to track the status of the rollback by + # calling GetOperation. Immediate fatal errors appear in the error field, errors + # are also logged to Cloud Logging (see [Viewing error logs in Cloud Logging]( + # https://cloud.google.com/healthcare/docs/how-tos/logging)). Otherwise, when + # the operation finishes, a detailed response of type + # RollbackHl7V2MessagesResponse is returned in the response field. The metadata + # field type for this operation is OperationMetadata. + # @param [String] name + # Required. The name of the HL7v2 store to rollback, in the format of "projects/` + # project_id`/locations/`location_id`/datasets/`dataset_id` /hl7V2Stores/` + # hl7v2_store_id`". + # @param [Google::Apis::HealthcareV1::RollbackHl7V2MessagesRequest] rollback_hl7_v2_messages_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::HealthcareV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def rollback_hl7_v2_store_hl7_v2_messages(name, rollback_hl7_v2_messages_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:rollback', options) + command.request_representation = Google::Apis::HealthcareV1::RollbackHl7V2MessagesRequest::Representation + command.request_object = rollback_hl7_v2_messages_request_object + command.response_representation = Google::Apis::HealthcareV1::Operation::Representation + command.response_class = Google::Apis::HealthcareV1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Sets the access control policy on the specified resource. Replaces any # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` # PERMISSION_DENIED` errors. # @param [String] resource # REQUIRED: The resource for which the policy is being specified. See [Resource