diff --git a/api_names_out.yaml b/api_names_out.yaml index ed884ac3828..7992836f841 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -109670,6 +109670,15 @@ "/healthcare:v1beta1/ActivateConsentRequest/consentArtifact": consent_artifact "/healthcare:v1beta1/ActivateConsentRequest/expireTime": expire_time "/healthcare:v1beta1/ActivateConsentRequest/ttl": ttl +"/healthcare:v1beta1/AnalyzeEntitiesRequest": analyze_entities_request +"/healthcare:v1beta1/AnalyzeEntitiesRequest/documentContent": document_content +"/healthcare:v1beta1/AnalyzeEntitiesResponse": analyze_entities_response +"/healthcare:v1beta1/AnalyzeEntitiesResponse/entities": entities +"/healthcare:v1beta1/AnalyzeEntitiesResponse/entities/entity": entity +"/healthcare:v1beta1/AnalyzeEntitiesResponse/entityMentions": entity_mentions +"/healthcare:v1beta1/AnalyzeEntitiesResponse/entityMentions/entity_mention": entity_mention +"/healthcare:v1beta1/AnalyzeEntitiesResponse/relationships": relationships +"/healthcare:v1beta1/AnalyzeEntitiesResponse/relationships/relationship": relationship "/healthcare:v1beta1/Annotation": annotation "/healthcare:v1beta1/Annotation/annotationSource": annotation_source "/healthcare:v1beta1/Annotation/customData": custom_data @@ -109820,6 +109829,25 @@ "/healthcare:v1beta1/DicomStore/streamConfigs": stream_configs "/healthcare:v1beta1/DicomStore/streamConfigs/stream_config": stream_config "/healthcare:v1beta1/Empty": empty +"/healthcare:v1beta1/Entity": entity +"/healthcare:v1beta1/Entity/entityId": entity_id +"/healthcare:v1beta1/Entity/preferredTerm": preferred_term +"/healthcare:v1beta1/Entity/vocabularyCodes": vocabulary_codes +"/healthcare:v1beta1/Entity/vocabularyCodes/vocabulary_code": vocabulary_code +"/healthcare:v1beta1/EntityMention": entity_mention +"/healthcare:v1beta1/EntityMention/certaintyAssessment": certainty_assessment +"/healthcare:v1beta1/EntityMention/confidence": confidence +"/healthcare:v1beta1/EntityMention/linkedEntities": linked_entities +"/healthcare:v1beta1/EntityMention/linkedEntities/linked_entity": linked_entity +"/healthcare:v1beta1/EntityMention/mentionId": mention_id +"/healthcare:v1beta1/EntityMention/subject": subject +"/healthcare:v1beta1/EntityMention/temporalAssessment": temporal_assessment +"/healthcare:v1beta1/EntityMention/text": text +"/healthcare:v1beta1/EntityMention/type": type +"/healthcare:v1beta1/EntityMentionRelationship": entity_mention_relationship +"/healthcare:v1beta1/EntityMentionRelationship/confidence": confidence +"/healthcare:v1beta1/EntityMentionRelationship/objectId": object_id_prop +"/healthcare:v1beta1/EntityMentionRelationship/subjectId": subject_id "/healthcare:v1beta1/ErrorDetail": error_detail "/healthcare:v1beta1/ErrorDetail/error": error "/healthcare:v1beta1/ErrorDetail/resource": resource @@ -109878,6 +109906,9 @@ "/healthcare:v1beta1/Expr/expression": expression "/healthcare:v1beta1/Expr/location": location "/healthcare:v1beta1/Expr/title": title +"/healthcare:v1beta1/Feature": feature +"/healthcare:v1beta1/Feature/confidence": confidence +"/healthcare:v1beta1/Feature/value": value "/healthcare:v1beta1/FhirConfig": fhir_config "/healthcare:v1beta1/FhirConfig/fieldMetadataList": field_metadata_list "/healthcare:v1beta1/FhirConfig/fieldMetadataList/field_metadata_list": field_metadata_list @@ -110061,6 +110092,8 @@ "/healthcare:v1beta1/IngestMessageResponse": ingest_message_response "/healthcare:v1beta1/IngestMessageResponse/hl7Ack": hl7_ack "/healthcare:v1beta1/IngestMessageResponse/message": message +"/healthcare:v1beta1/LinkedEntity": linked_entity +"/healthcare:v1beta1/LinkedEntity/entityId": entity_id "/healthcare:v1beta1/ListAnnotationStoresResponse": list_annotation_stores_response "/healthcare:v1beta1/ListAnnotationStoresResponse/annotationStores": annotation_stores "/healthcare:v1beta1/ListAnnotationStoresResponse/annotationStores/annotation_store": annotation_store @@ -110271,6 +110304,9 @@ "/healthcare:v1beta1/TextConfig": text_config "/healthcare:v1beta1/TextConfig/transformations": transformations "/healthcare:v1beta1/TextConfig/transformations/transformation": transformation +"/healthcare:v1beta1/TextSpan": text_span +"/healthcare:v1beta1/TextSpan/beginOffset": begin_offset +"/healthcare:v1beta1/TextSpan/content": content "/healthcare:v1beta1/Type": type "/healthcare:v1beta1/Type/fields": fields "/healthcare:v1beta1/Type/fields/field": field @@ -110699,6 +110735,8 @@ "/healthcare:v1beta1/healthcare.projects.locations.list/name": name "/healthcare:v1beta1/healthcare.projects.locations.list/pageSize": page_size "/healthcare:v1beta1/healthcare.projects.locations.list/pageToken": page_token +"/healthcare:v1beta1/healthcare.projects.locations.services.nlp.analyzeEntities": analyze_nlp_entities +"/healthcare:v1beta1/healthcare.projects.locations.services.nlp.analyzeEntities/nlpService": nlp_service "/healthcare:v1beta1/key": key "/healthcare:v1beta1/quotaUser": quota_user "/homegraph:v1/AgentDeviceId": agent_device_id diff --git a/generated/google/apis/healthcare_v1beta1.rb b/generated/google/apis/healthcare_v1beta1.rb index c2ec996d8ab..9ef0ee4747e 100644 --- a/generated/google/apis/healthcare_v1beta1.rb +++ b/generated/google/apis/healthcare_v1beta1.rb @@ -25,7 +25,7 @@ module Apis # @see https://cloud.google.com/healthcare module HealthcareV1beta1 VERSION = 'V1beta1' - REVISION = '20201013' + REVISION = '20201028' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/healthcare_v1beta1/classes.rb b/generated/google/apis/healthcare_v1beta1/classes.rb index f19514e9de5..8f88aa989af 100644 --- a/generated/google/apis/healthcare_v1beta1/classes.rb +++ b/generated/google/apis/healthcare_v1beta1/classes.rb @@ -59,6 +59,59 @@ def update!(**args) end end + # The request to analyze healthcare entities in a document. + class AnalyzeEntitiesRequest + include Google::Apis::Core::Hashable + + # document_content is a document to be annotated. + # Corresponds to the JSON property `documentContent` + # @return [String] + attr_accessor :document_content + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @document_content = args[:document_content] if args.key?(:document_content) + end + end + + # Includes recognized entity mentions and relationships between them. + class AnalyzeEntitiesResponse + include Google::Apis::Core::Hashable + + # The union of all the candidate entities that the entity_mentions in this + # response could link to. These are UMLS concepts or normalized mention content. + # Corresponds to the JSON property `entities` + # @return [Array] + attr_accessor :entities + + # entity_mentions contains all the annotated medical entities that were were + # mentioned in the provided document. + # Corresponds to the JSON property `entityMentions` + # @return [Array] + attr_accessor :entity_mentions + + # relationships contains all the binary relationships that were identified + # between entity mentions within the provided document. + # Corresponds to the JSON property `relationships` + # @return [Array] + attr_accessor :relationships + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entities = args[:entities] if args.key?(:entities) + @entity_mentions = args[:entity_mentions] if args.key?(:entity_mentions) + @relationships = args[:relationships] if args.key?(:relationships) + end + end + # An annotation record. class Annotation include Google::Apis::Core::Hashable @@ -1241,6 +1294,145 @@ def update!(**args) end end + # The candidate entities that an entity mention could link to. + class Entity + include Google::Apis::Core::Hashable + + # entity_id is a first class field entity_id uniquely identifies this concept + # and its meta-vocabulary. For example, "UMLS/C0000970". + # Corresponds to the JSON property `entityId` + # @return [String] + attr_accessor :entity_id + + # preferred_term is the preferred term for this concept. For example, " + # Acetaminophen". For ad hoc entities formed by normalization, this is the most + # popular unnormalized string. + # Corresponds to the JSON property `preferredTerm` + # @return [String] + attr_accessor :preferred_term + + # Vocabulary codes are first-class fields and differentiated from the concept + # unique identifier (entity_id). vocabulary_codes contains the representation of + # this concept in particular vocabularies, such as ICD-10, SNOMED-CT and RxNORM. + # These are prefixed by the name of the vocabulary, followed by the unique code + # within that vocabulary. For example, "RXNORM/A10334543". + # Corresponds to the JSON property `vocabularyCodes` + # @return [Array] + attr_accessor :vocabulary_codes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entity_id = args[:entity_id] if args.key?(:entity_id) + @preferred_term = args[:preferred_term] if args.key?(:preferred_term) + @vocabulary_codes = args[:vocabulary_codes] if args.key?(:vocabulary_codes) + end + end + + # An entity mention in the document. + class EntityMention + include Google::Apis::Core::Hashable + + # A feature of an entity mention. + # Corresponds to the JSON property `certaintyAssessment` + # @return [Google::Apis::HealthcareV1beta1::Feature] + attr_accessor :certainty_assessment + + # The model's confidence in this entity mention annotation. A number between 0 + # and 1. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # linked_entities are candidate ontological concepts that this entity mention + # may refer to. They are sorted by decreasing confidence.it + # Corresponds to the JSON property `linkedEntities` + # @return [Array] + attr_accessor :linked_entities + + # mention_id uniquely identifies each entity mention in a single response. + # Corresponds to the JSON property `mentionId` + # @return [String] + attr_accessor :mention_id + + # A feature of an entity mention. + # Corresponds to the JSON property `subject` + # @return [Google::Apis::HealthcareV1beta1::Feature] + attr_accessor :subject + + # A feature of an entity mention. + # Corresponds to the JSON property `temporalAssessment` + # @return [Google::Apis::HealthcareV1beta1::Feature] + attr_accessor :temporal_assessment + + # A span of text in the provided document. + # Corresponds to the JSON property `text` + # @return [Google::Apis::HealthcareV1beta1::TextSpan] + attr_accessor :text + + # The semantic type of the entity: UNKNOWN_ENTITY_TYPE, ALONE, + # ANATOMICAL_STRUCTURE, ASSISTED_LIVING, BF_RESULT, BM_RESULT, BM_UNIT, BM_VALUE, + # BODY_FUNCTION, BODY_MEASUREMENT, COMPLIANT, DOESNOT_FOLLOWUP, FAMILY, + # FOLLOWSUP, LABORATORY_DATA, LAB_RESULT, LAB_UNIT, LAB_VALUE, MEDICAL_DEVICE, + # MEDICINE, MED_DOSE, MED_DURATION, MED_FORM, MED_FREQUENCY, MED_ROUTE, + # MED_STATUS, MED_STRENGTH, MED_TOTALDOSE, MED_UNIT, NON_COMPLIANT, + # OTHER_LIVINGSTATUS, PROBLEM, PROCEDURE, PROCEDURE_RESULT, PROC_METHOD, + # REASON_FOR_NONCOMPLIANCE, SEVERITY, SUBSTANCE_ABUSE, UNCLEAR_FOLLOWUP. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @certainty_assessment = args[:certainty_assessment] if args.key?(:certainty_assessment) + @confidence = args[:confidence] if args.key?(:confidence) + @linked_entities = args[:linked_entities] if args.key?(:linked_entities) + @mention_id = args[:mention_id] if args.key?(:mention_id) + @subject = args[:subject] if args.key?(:subject) + @temporal_assessment = args[:temporal_assessment] if args.key?(:temporal_assessment) + @text = args[:text] if args.key?(:text) + @type = args[:type] if args.key?(:type) + end + end + + # Defines directed relationship from one entity mention to another. + class EntityMentionRelationship + include Google::Apis::Core::Hashable + + # The model's confidence in this annotation. A number between 0 and 1. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # object_id is the id of the object entity mention. + # Corresponds to the JSON property `objectId` + # @return [String] + attr_accessor :object_id_prop + + # subject_id is the id of the subject entity mention. + # Corresponds to the JSON property `subjectId` + # @return [String] + attr_accessor :subject_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @confidence = args[:confidence] if args.key?(:confidence) + @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop) + @subject_id = args[:subject_id] if args.key?(:subject_id) + end + end + # Structure to describe the error encountered during batch operation on one # resource. This is used both for sample errors in operation response, and for # format of errors in error reports. @@ -1629,6 +1821,32 @@ def update!(**args) end end + # A feature of an entity mention. + class Feature + include Google::Apis::Core::Hashable + + # The model's confidence in this feature annotation. A number between 0 and 1. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # The value of this feature annotation. Its range depends on the type of the + # feature. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @confidence = args[:confidence] if args.key?(:confidence) + @value = args[:value] if args.key?(:value) + end + end + # Specifies how to handle de-identification of a FHIR store. class FhirConfig include Google::Apis::Core::Hashable @@ -3202,6 +3420,29 @@ def update!(**args) end end + # EntityMentions can be linked to multiple entities using a LinkedEntity message + # lets us add other fields, e.g. confidence. + class LinkedEntity + include Google::Apis::Core::Hashable + + # entity_id is a concept unique identifier. These are prefixed by a string that + # identifies the entity coding system, followed by the unique identifier within + # that system. For example, "UMLS/C0000970". This also supports ad hoc entities, + # which are formed by normalizing entity mention content. + # Corresponds to the JSON property `entityId` + # @return [String] + attr_accessor :entity_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entity_id = args[:entity_id] if args.key?(:entity_id) + end + end + # Lists the Annotation stores in the given dataset. class ListAnnotationStoresResponse include Google::Apis::Core::Hashable @@ -4784,6 +5025,31 @@ def update!(**args) end end + # A span of text in the provided document. + class TextSpan + include Google::Apis::Core::Hashable + + # The unicode codepoint index of the beginning of this span. + # Corresponds to the JSON property `beginOffset` + # @return [Fixnum] + attr_accessor :begin_offset + + # The original text contained in this span. + # Corresponds to the JSON property `content` + # @return [String] + attr_accessor :content + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @begin_offset = args[:begin_offset] if args.key?(:begin_offset) + @content = args[:content] if args.key?(:content) + end + end + # A type definition for some HL7v2 type (incl. Segments and Datatypes). class Type include Google::Apis::Core::Hashable diff --git a/generated/google/apis/healthcare_v1beta1/representations.rb b/generated/google/apis/healthcare_v1beta1/representations.rb index 17419b3b048..ee72ca68b94 100644 --- a/generated/google/apis/healthcare_v1beta1/representations.rb +++ b/generated/google/apis/healthcare_v1beta1/representations.rb @@ -28,6 +28,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class AnalyzeEntitiesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AnalyzeEntitiesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Annotation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -244,6 +256,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class Entity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class EntityMention + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class EntityMentionRelationship + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ErrorDetail class Representation < Google::Apis::Core::JsonRepresentation; end @@ -316,6 +346,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class Feature + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class FhirConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -616,6 +652,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class LinkedEntity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListAnnotationStoresResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -910,6 +952,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class TextSpan + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Type class Representation < Google::Apis::Core::JsonRepresentation; end @@ -943,6 +991,25 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class AnalyzeEntitiesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :document_content, as: 'documentContent' + end + end + + class AnalyzeEntitiesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entities, as: 'entities', class: Google::Apis::HealthcareV1beta1::Entity, decorator: Google::Apis::HealthcareV1beta1::Entity::Representation + + collection :entity_mentions, as: 'entityMentions', class: Google::Apis::HealthcareV1beta1::EntityMention, decorator: Google::Apis::HealthcareV1beta1::EntityMention::Representation + + collection :relationships, as: 'relationships', class: Google::Apis::HealthcareV1beta1::EntityMentionRelationship, decorator: Google::Apis::HealthcareV1beta1::EntityMentionRelationship::Representation + + end + end + class Annotation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1277,6 +1344,43 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class Entity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :entity_id, as: 'entityId' + property :preferred_term, as: 'preferredTerm' + collection :vocabulary_codes, as: 'vocabularyCodes' + end + end + + class EntityMention + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :certainty_assessment, as: 'certaintyAssessment', class: Google::Apis::HealthcareV1beta1::Feature, decorator: Google::Apis::HealthcareV1beta1::Feature::Representation + + property :confidence, as: 'confidence' + collection :linked_entities, as: 'linkedEntities', class: Google::Apis::HealthcareV1beta1::LinkedEntity, decorator: Google::Apis::HealthcareV1beta1::LinkedEntity::Representation + + property :mention_id, as: 'mentionId' + property :subject, as: 'subject', class: Google::Apis::HealthcareV1beta1::Feature, decorator: Google::Apis::HealthcareV1beta1::Feature::Representation + + property :temporal_assessment, as: 'temporalAssessment', class: Google::Apis::HealthcareV1beta1::Feature, decorator: Google::Apis::HealthcareV1beta1::Feature::Representation + + property :text, as: 'text', class: Google::Apis::HealthcareV1beta1::TextSpan, decorator: Google::Apis::HealthcareV1beta1::TextSpan::Representation + + property :type, as: 'type' + end + end + + class EntityMentionRelationship + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :confidence, as: 'confidence' + property :object_id_prop, as: 'objectId' + property :subject_id, as: 'subjectId' + end + end + class ErrorDetail # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1390,6 +1494,14 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class Feature + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :confidence, as: 'confidence' + property :value, as: 'value' + end + end + class FhirConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1823,6 +1935,13 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class LinkedEntity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :entity_id, as: 'entityId' + end + end + class ListAnnotationStoresResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2269,6 +2388,14 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class TextSpan + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :begin_offset, as: 'beginOffset' + property :content, as: 'content' + end + end + class Type # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/healthcare_v1beta1/service.rb b/generated/google/apis/healthcare_v1beta1/service.rb index 73397e4e16d..f282b2bb9ee 100644 --- a/generated/google/apis/healthcare_v1beta1/service.rb +++ b/generated/google/apis/healthcare_v1beta1/service.rb @@ -1511,8 +1511,8 @@ def create_project_location_dataset_consent_store_attribute_definition(parent, a execute_or_queue_command(command, &block) end - # Deletes the specified Attribute definition. Fails if it is referenced by the - # latest revision of any Consent or User data mapping. + # Deletes the specified Attribute definition. Fails if it is referenced by any + # User data mapping, or the latest revision of any Consent. # @param [String] name # Required. The resource name of the Attribute definition to delete. # @param [String] fields @@ -5861,6 +5861,42 @@ def list_project_location_dataset_operations(name, filter: nil, page_size: nil, command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # Analyze heathcare entity in a document. Its response includes the recognized + # entity mentions and the relationships between them. AnalyzeEntities uses + # context aware models to detect entities. + # @param [String] nlp_service + # The resource name of the service of the form: "projects/`project_id`/locations/ + # `location_id`/services/nlp". + # @param [Google::Apis::HealthcareV1beta1::AnalyzeEntitiesRequest] analyze_entities_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::HealthcareV1beta1::AnalyzeEntitiesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HealthcareV1beta1::AnalyzeEntitiesResponse] + # + # @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 analyze_nlp_entities(nlp_service, analyze_entities_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+nlpService}:analyzeEntities', options) + command.request_representation = Google::Apis::HealthcareV1beta1::AnalyzeEntitiesRequest::Representation + command.request_object = analyze_entities_request_object + command.response_representation = Google::Apis::HealthcareV1beta1::AnalyzeEntitiesResponse::Representation + command.response_class = Google::Apis::HealthcareV1beta1::AnalyzeEntitiesResponse + command.params['nlpService'] = nlp_service unless nlp_service.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end protected diff --git a/generated/google/apis/healthcare_v1beta1/synth.metadata b/generated/google/apis/healthcare_v1beta1/synth.metadata index 8ba18e27d63..25526403c72 100644 --- a/generated/google/apis/healthcare_v1beta1/synth.metadata +++ b/generated/google/apis/healthcare_v1beta1/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "cb0c5bf94e2b1c915107eec83041d4409c900155" + "sha": "7734906e2abc5c94bac484eeb5a89320be9a8e01" } } ]