google-api-client 0.40.2 → 0.41.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +66 -0
  3. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  4. data/generated/google/apis/androidmanagement_v1/classes.rb +117 -0
  5. data/generated/google/apis/androidmanagement_v1/representations.rb +39 -0
  6. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  7. data/generated/google/apis/appsmarket_v2.rb +1 -1
  8. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  9. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +9 -0
  10. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +1 -0
  11. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  12. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +4 -4
  13. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  14. data/generated/google/apis/bigtableadmin_v1/classes.rb +5 -10
  15. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  16. data/generated/google/apis/bigtableadmin_v2/classes.rb +39 -31
  17. data/generated/google/apis/bigtableadmin_v2/service.rb +1 -5
  18. data/generated/google/apis/books_v1.rb +1 -1
  19. data/generated/google/apis/calendar_v3.rb +1 -1
  20. data/generated/google/apis/chat_v1.rb +1 -1
  21. data/generated/google/apis/chat_v1/classes.rb +2 -0
  22. data/generated/google/apis/cloudasset_v1.rb +1 -1
  23. data/generated/google/apis/cloudasset_v1/classes.rb +12 -3
  24. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  25. data/generated/google/apis/cloudasset_v1beta1/classes.rb +948 -36
  26. data/generated/google/apis/cloudasset_v1beta1/representations.rb +241 -0
  27. data/generated/google/apis/cloudasset_v1beta1/service.rb +4 -4
  28. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  29. data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +18 -19
  30. data/generated/google/apis/cloudasset_v1p4beta1/service.rb +10 -6
  31. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  32. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +1 -1
  33. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +5 -6
  34. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  35. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  36. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  37. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +14 -9
  38. data/generated/google/apis/cloudresourcemanager_v1/service.rb +15 -6
  39. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  40. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +4 -2
  41. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  42. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  43. data/generated/google/apis/compute_alpha.rb +1 -1
  44. data/generated/google/apis/compute_alpha/classes.rb +535 -43
  45. data/generated/google/apis/compute_alpha/representations.rb +167 -0
  46. data/generated/google/apis/compute_alpha/service.rb +922 -172
  47. data/generated/google/apis/compute_beta.rb +1 -1
  48. data/generated/google/apis/compute_beta/classes.rb +107 -42
  49. data/generated/google/apis/compute_beta/representations.rb +20 -0
  50. data/generated/google/apis/compute_v1.rb +1 -1
  51. data/generated/google/apis/compute_v1/classes.rb +22 -10
  52. data/generated/google/apis/compute_v1/representations.rb +1 -0
  53. data/generated/google/apis/container_v1beta1.rb +1 -1
  54. data/generated/google/apis/container_v1beta1/classes.rb +21 -7
  55. data/generated/google/apis/content_v2.rb +1 -1
  56. data/generated/google/apis/content_v2/classes.rb +7 -1
  57. data/generated/google/apis/content_v2/representations.rb +1 -0
  58. data/generated/google/apis/content_v2/service.rb +10 -5
  59. data/generated/google/apis/content_v2_1.rb +1 -1
  60. data/generated/google/apis/content_v2_1/classes.rb +93 -7
  61. data/generated/google/apis/content_v2_1/representations.rb +37 -0
  62. data/generated/google/apis/content_v2_1/service.rb +10 -5
  63. data/generated/google/apis/dataproc_v1.rb +1 -1
  64. data/generated/google/apis/dataproc_v1/classes.rb +46 -0
  65. data/generated/google/apis/dataproc_v1/representations.rb +17 -0
  66. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  67. data/generated/google/apis/dataproc_v1beta2/classes.rb +12 -0
  68. data/generated/google/apis/dataproc_v1beta2/representations.rb +1 -0
  69. data/generated/google/apis/dialogflow_v2.rb +1 -1
  70. data/generated/google/apis/dialogflow_v2/service.rb +14 -2
  71. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  72. data/generated/google/apis/dialogflow_v2beta1/service.rb +28 -4
  73. data/generated/google/apis/documentai_v1beta2.rb +36 -0
  74. data/generated/google/apis/documentai_v1beta2/classes.rb +3284 -0
  75. data/generated/google/apis/documentai_v1beta2/representations.rb +1344 -0
  76. data/generated/google/apis/documentai_v1beta2/service.rb +269 -0
  77. data/generated/google/apis/drive_v2.rb +1 -1
  78. data/generated/google/apis/drive_v2/service.rb +26 -78
  79. data/generated/google/apis/drive_v3.rb +1 -1
  80. data/generated/google/apis/drive_v3/service.rb +18 -54
  81. data/generated/google/apis/fcm_v1.rb +1 -1
  82. data/generated/google/apis/fcm_v1/classes.rb +6 -0
  83. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  84. data/generated/google/apis/firebase_v1beta1/classes.rb +7 -6
  85. data/generated/google/apis/firebase_v1beta1/service.rb +53 -49
  86. data/generated/google/apis/healthcare_v1.rb +1 -1
  87. data/generated/google/apis/healthcare_v1/service.rb +2 -0
  88. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  89. data/generated/google/apis/healthcare_v1beta1/classes.rb +910 -43
  90. data/generated/google/apis/healthcare_v1beta1/representations.rb +404 -0
  91. data/generated/google/apis/healthcare_v1beta1/service.rb +517 -0
  92. data/generated/google/apis/iam_v1.rb +1 -1
  93. data/generated/google/apis/iam_v1/classes.rb +5 -0
  94. data/generated/google/apis/iam_v1/service.rb +4 -0
  95. data/generated/google/apis/iamcredentials_v1.rb +2 -2
  96. data/generated/google/apis/iamcredentials_v1/service.rb +1 -1
  97. data/generated/google/apis/lifesciences_v2beta.rb +1 -1
  98. data/generated/google/apis/lifesciences_v2beta/classes.rb +10 -0
  99. data/generated/google/apis/lifesciences_v2beta/representations.rb +1 -0
  100. data/generated/google/apis/monitoring_v3.rb +1 -1
  101. data/generated/google/apis/monitoring_v3/classes.rb +56 -17
  102. data/generated/google/apis/people_v1.rb +1 -1
  103. data/generated/google/apis/people_v1/classes.rb +4 -4
  104. data/generated/google/apis/people_v1/service.rb +6 -5
  105. data/generated/google/apis/run_v1.rb +1 -1
  106. data/generated/google/apis/run_v1/classes.rb +6 -6
  107. data/generated/google/apis/run_v1alpha1.rb +1 -1
  108. data/generated/google/apis/run_v1alpha1/classes.rb +6 -6
  109. data/generated/google/apis/run_v1beta1.rb +1 -1
  110. data/generated/google/apis/secretmanager_v1.rb +1 -1
  111. data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
  112. data/generated/google/apis/securitycenter_v1.rb +1 -1
  113. data/generated/google/apis/securitycenter_v1/classes.rb +10 -10
  114. data/generated/google/apis/securitycenter_v1/service.rb +10 -10
  115. data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
  116. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +10 -10
  117. data/generated/google/apis/securitycenter_v1p1beta1/service.rb +10 -10
  118. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  119. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +21 -2
  120. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +1 -0
  121. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  122. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +21 -2
  123. data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +1 -0
  124. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  125. data/generated/google/apis/servicemanagement_v1/classes.rb +117 -37
  126. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  127. data/generated/google/apis/servicenetworking_v1/classes.rb +13 -2
  128. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  129. data/generated/google/apis/servicenetworking_v1beta/classes.rb +13 -2
  130. data/generated/google/apis/serviceusage_v1.rb +1 -1
  131. data/generated/google/apis/serviceusage_v1/classes.rb +27 -2
  132. data/generated/google/apis/serviceusage_v1/representations.rb +2 -0
  133. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  134. data/generated/google/apis/serviceusage_v1beta1/classes.rb +72 -2
  135. data/generated/google/apis/serviceusage_v1beta1/representations.rb +30 -0
  136. data/generated/google/apis/serviceusage_v1beta1/service.rb +37 -0
  137. data/generated/google/apis/slides_v1.rb +1 -1
  138. data/generated/google/apis/slides_v1/classes.rb +4 -0
  139. data/generated/google/apis/vision_v1.rb +1 -1
  140. data/generated/google/apis/vision_v1/classes.rb +18 -0
  141. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  142. data/generated/google/apis/vision_v1p1beta1/classes.rb +18 -0
  143. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  144. data/generated/google/apis/vision_v1p2beta1/classes.rb +18 -0
  145. data/generated/google/apis/youtube_v3.rb +1 -1
  146. data/generated/google/apis/youtube_v3/classes.rb +38 -0
  147. data/generated/google/apis/youtube_v3/representations.rb +27 -0
  148. data/generated/google/apis/youtube_v3/service.rb +32 -0
  149. data/lib/google/apis/version.rb +1 -1
  150. metadata +7 -7
  151. data/generated/google/apis/customsearch_v1.rb +0 -31
  152. data/generated/google/apis/customsearch_v1/classes.rb +0 -1606
  153. data/generated/google/apis/customsearch_v1/representations.rb +0 -372
  154. data/generated/google/apis/customsearch_v1/service.rb +0 -608
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/healthcare
26
26
  module HealthcareV1
27
27
  VERSION = 'V1'
28
- REVISION = '20200525'
28
+ REVISION = '20200605'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1384,6 +1384,8 @@ module Google
1384
1384
  # DeleteInstance deletes an instance associated with the given study, series,
1385
1385
  # and SOP Instance UID. Delete requests are equivalent to the GET requests
1386
1386
  # specified in the Retrieve transaction.
1387
+ # Study and series search results can take a few seconds to be updated after
1388
+ # an instance is deleted using DeleteInstance.
1387
1389
  # @param [String] parent
1388
1390
  # The name of the DICOM store that is being accessed. For example,
1389
1391
  # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/healthcare
26
26
  module HealthcareV1beta1
27
27
  VERSION = 'V1beta1'
28
- REVISION = '20200525'
28
+ REVISION = '20200605'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -22,6 +22,151 @@ module Google
22
22
  module Apis
23
23
  module HealthcareV1beta1
24
24
 
25
+ # An annotation record.
26
+ class Annotation
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # AnnotationSource holds the source information of the annotation.
30
+ # Corresponds to the JSON property `annotationSource`
31
+ # @return [Google::Apis::HealthcareV1beta1::AnnotationSource]
32
+ attr_accessor :annotation_source
33
+
34
+ # Additional information for this annotation record, such as annotator and
35
+ # verifier information or study campaign.
36
+ # Corresponds to the JSON property `customData`
37
+ # @return [Hash<String,String>]
38
+ attr_accessor :custom_data
39
+
40
+ # Image annotation.
41
+ # Corresponds to the JSON property `imageAnnotation`
42
+ # @return [Google::Apis::HealthcareV1beta1::ImageAnnotation]
43
+ attr_accessor :image_annotation
44
+
45
+ # Resource name of the Annotation, of the form
46
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
47
+ # annotationStores/`annotation_store_id`/annotations/`annotation_id``.
48
+ # Corresponds to the JSON property `name`
49
+ # @return [String]
50
+ attr_accessor :name
51
+
52
+ # Resource level annotation.
53
+ # Corresponds to the JSON property `resourceAnnotation`
54
+ # @return [Google::Apis::HealthcareV1beta1::ResourceAnnotation]
55
+ attr_accessor :resource_annotation
56
+
57
+ # A TextAnnotation specifies a text range that includes sensitive information.
58
+ # Corresponds to the JSON property `textAnnotation`
59
+ # @return [Google::Apis::HealthcareV1beta1::SensitiveTextAnnotation]
60
+ attr_accessor :text_annotation
61
+
62
+ def initialize(**args)
63
+ update!(**args)
64
+ end
65
+
66
+ # Update properties of this object
67
+ def update!(**args)
68
+ @annotation_source = args[:annotation_source] if args.key?(:annotation_source)
69
+ @custom_data = args[:custom_data] if args.key?(:custom_data)
70
+ @image_annotation = args[:image_annotation] if args.key?(:image_annotation)
71
+ @name = args[:name] if args.key?(:name)
72
+ @resource_annotation = args[:resource_annotation] if args.key?(:resource_annotation)
73
+ @text_annotation = args[:text_annotation] if args.key?(:text_annotation)
74
+ end
75
+ end
76
+
77
+ # Specifies how to store annotations during de-identification operation.
78
+ class AnnotationConfig
79
+ include Google::Apis::Core::Hashable
80
+
81
+ # The name of the annotation store, in the form
82
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
83
+ # annotationStores/`annotation_store_id``).
84
+ # * The destination annotation store must be in the same project as the
85
+ # source data. De-identifying data across multiple projects is not
86
+ # supported.
87
+ # * The destination annotation store must exist when using
88
+ # DeidentifyDicomStore or
89
+ # DeidentifyFhirStore.
90
+ # DeidentifyDataset
91
+ # automatically creates the destination annotation store.
92
+ # Corresponds to the JSON property `annotationStoreName`
93
+ # @return [String]
94
+ attr_accessor :annotation_store_name
95
+
96
+ # If set to true, the sensitive texts are included in
97
+ # SensitiveTextAnnotation
98
+ # of Annotation.
99
+ # Corresponds to the JSON property `storeQuote`
100
+ # @return [Boolean]
101
+ attr_accessor :store_quote
102
+ alias_method :store_quote?, :store_quote
103
+
104
+ def initialize(**args)
105
+ update!(**args)
106
+ end
107
+
108
+ # Update properties of this object
109
+ def update!(**args)
110
+ @annotation_store_name = args[:annotation_store_name] if args.key?(:annotation_store_name)
111
+ @store_quote = args[:store_quote] if args.key?(:store_quote)
112
+ end
113
+ end
114
+
115
+ # AnnotationSource holds the source information of the annotation.
116
+ class AnnotationSource
117
+ include Google::Apis::Core::Hashable
118
+
119
+ # Cloud Healthcare API resource.
120
+ # Corresponds to the JSON property `cloudHealthcareSource`
121
+ # @return [Google::Apis::HealthcareV1beta1::CloudHealthcareSource]
122
+ attr_accessor :cloud_healthcare_source
123
+
124
+ def initialize(**args)
125
+ update!(**args)
126
+ end
127
+
128
+ # Update properties of this object
129
+ def update!(**args)
130
+ @cloud_healthcare_source = args[:cloud_healthcare_source] if args.key?(:cloud_healthcare_source)
131
+ end
132
+ end
133
+
134
+ # An Annotation store that can store annotation resources such as
135
+ # labels and tags for text, image and audio.
136
+ class AnnotationStore
137
+ include Google::Apis::Core::Hashable
138
+
139
+ # Optional. User-supplied key-value pairs used to organize Annotation stores.
140
+ # Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
141
+ # of maximum 128 bytes, and must conform to the
142
+ # following PCRE regular expression:
143
+ # \p`Ll`\p`Lo``0,62`
144
+ # Label values must be between 1 and 63 characters long, have
145
+ # a UTF-8 encoding of maximum 128 bytes, and must conform to the
146
+ # following PCRE regular expression: [\p`Ll`\p`Lo`\p`N`_-]`0,63`
147
+ # No more than 64 labels can be associated with a given store.
148
+ # Corresponds to the JSON property `labels`
149
+ # @return [Hash<String,String>]
150
+ attr_accessor :labels
151
+
152
+ # Resource name of the Annotation store, of the form
153
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
154
+ # annotationStores/`annotation_store_id``.
155
+ # Corresponds to the JSON property `name`
156
+ # @return [String]
157
+ attr_accessor :name
158
+
159
+ def initialize(**args)
160
+ update!(**args)
161
+ end
162
+
163
+ # Update properties of this object
164
+ def update!(**args)
165
+ @labels = args[:labels] if args.key?(:labels)
166
+ @name = args[:name] if args.key?(:name)
167
+ end
168
+ end
169
+
25
170
  # Specifies the audit configuration for a service.
26
171
  # The configuration determines which permission types are logged, and what
27
172
  # identities, if any, are exempted from logging.
@@ -221,6 +366,31 @@ module Google
221
366
  end
222
367
  end
223
368
 
369
+ # A bounding polygon for the detected image annotation.
370
+ class BoundingPoly
371
+ include Google::Apis::Core::Hashable
372
+
373
+ # A description of this polygon.
374
+ # Corresponds to the JSON property `label`
375
+ # @return [String]
376
+ attr_accessor :label
377
+
378
+ # List of the vertices of this polygon.
379
+ # Corresponds to the JSON property `vertices`
380
+ # @return [Array<Google::Apis::HealthcareV1beta1::Vertex>]
381
+ attr_accessor :vertices
382
+
383
+ def initialize(**args)
384
+ update!(**args)
385
+ end
386
+
387
+ # Update properties of this object
388
+ def update!(**args)
389
+ @label = args[:label] if args.key?(:label)
390
+ @vertices = args[:vertices] if args.key?(:vertices)
391
+ end
392
+ end
393
+
224
394
  # The request message for Operations.CancelOperation.
225
395
  class CancelOperationRequest
226
396
  include Google::Apis::Core::Hashable
@@ -253,6 +423,25 @@ module Google
253
423
  end
254
424
  end
255
425
 
426
+ # Cloud Healthcare API resource.
427
+ class CloudHealthcareSource
428
+ include Google::Apis::Core::Hashable
429
+
430
+ # Full path of a Cloud Healthcare API resource.
431
+ # Corresponds to the JSON property `name`
432
+ # @return [String]
433
+ attr_accessor :name
434
+
435
+ def initialize(**args)
436
+ update!(**args)
437
+ end
438
+
439
+ # Update properties of this object
440
+ def update!(**args)
441
+ @name = args[:name] if args.key?(:name)
442
+ end
443
+ end
444
+
256
445
  # Creates a new message.
257
446
  class CreateMessageRequest
258
447
  include Google::Apis::Core::Hashable
@@ -362,6 +551,11 @@ module Google
362
551
  class DeidentifyConfig
363
552
  include Google::Apis::Core::Hashable
364
553
 
554
+ # Specifies how to store annotations during de-identification operation.
555
+ # Corresponds to the JSON property `annotation`
556
+ # @return [Google::Apis::HealthcareV1beta1::AnnotationConfig]
557
+ attr_accessor :annotation
558
+
365
559
  # Specifies the parameters needed for de-identification of DICOM stores.
366
560
  # Corresponds to the JSON property `dicom`
367
561
  # @return [Google::Apis::HealthcareV1beta1::DicomConfig]
@@ -389,6 +583,7 @@ module Google
389
583
 
390
584
  # Update properties of this object
391
585
  def update!(**args)
586
+ @annotation = args[:annotation] if args.key?(:annotation)
392
587
  @dicom = args[:dicom] if args.key?(:dicom)
393
588
  @fhir = args[:fhir] if args.key?(:fhir)
394
589
  @image = args[:image] if args.key?(:image)
@@ -585,6 +780,25 @@ module Google
585
780
  end
586
781
  end
587
782
 
783
+ # Contains multiple sensitive information findings for each resource slice.
784
+ class Detail
785
+ include Google::Apis::Core::Hashable
786
+
787
+ #
788
+ # Corresponds to the JSON property `findings`
789
+ # @return [Array<Google::Apis::HealthcareV1beta1::Finding>]
790
+ attr_accessor :findings
791
+
792
+ def initialize(**args)
793
+ update!(**args)
794
+ end
795
+
796
+ # Update properties of this object
797
+ def update!(**args)
798
+ @findings = args[:findings] if args.key?(:findings)
799
+ end
800
+ end
801
+
588
802
  # Specifies the parameters needed for de-identification of DICOM stores.
589
803
  class DicomConfig
590
804
  include Google::Apis::Core::Hashable
@@ -750,6 +964,209 @@ module Google
750
964
  end
751
965
  end
752
966
 
967
+ # Request to evaluate an Annotation store against a
968
+ # ground truth [Annotation store].
969
+ class EvaluateAnnotationStoreRequest
970
+ include Google::Apis::Core::Hashable
971
+
972
+ # The BigQuery table for export.
973
+ # Corresponds to the JSON property `bigqueryDestination`
974
+ # @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination]
975
+ attr_accessor :bigquery_destination
976
+
977
+ # Optional. InfoType mapping for `eval_store`. Different resources can map to
978
+ # the same infoType. For example, `PERSON_NAME`, `PERSON`, `NAME`, and
979
+ # `HUMAN` are different. To map all of these into a single
980
+ # infoType (such as `PERSON_NAME`), specify the following mapping:
981
+ # ```
982
+ # info_type_mapping["PERSON"] = "PERSON_NAME"
983
+ # info_type_mapping["NAME"] = "PERSON_NAME"
984
+ # info_type_mapping["HUMAN"] = "PERSON_NAME"
985
+ # ```
986
+ # Unmentioned infoTypes, such as `DATE`, are treated as identity
987
+ # mapping. For example:
988
+ # ```
989
+ # info_type_mapping["DATE"] = "DATE"
990
+ # ```
991
+ # InfoTypes are case-insensitive.
992
+ # Corresponds to the JSON property `evalInfoTypeMapping`
993
+ # @return [Hash<String,String>]
994
+ attr_accessor :eval_info_type_mapping
995
+
996
+ # Optional. Similar to `eval_info_type_mapping`, infoType mapping for
997
+ # `golden_store`.
998
+ # Corresponds to the JSON property `goldenInfoTypeMapping`
999
+ # @return [Hash<String,String>]
1000
+ attr_accessor :golden_info_type_mapping
1001
+
1002
+ # The Annotation store to use as ground truth, in the format of
1003
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1004
+ # annotationStores/`annotation_store_id``.
1005
+ # Corresponds to the JSON property `goldenStore`
1006
+ # @return [String]
1007
+ attr_accessor :golden_store
1008
+
1009
+ # Specifies how to use infoTypes for evaluation. For example, a user might
1010
+ # only want to evaluate `PERSON`, `LOCATION`, and `AGE`.
1011
+ # Corresponds to the JSON property `infoTypeConfig`
1012
+ # @return [Google::Apis::HealthcareV1beta1::InfoTypeConfig]
1013
+ attr_accessor :info_type_config
1014
+
1015
+ def initialize(**args)
1016
+ update!(**args)
1017
+ end
1018
+
1019
+ # Update properties of this object
1020
+ def update!(**args)
1021
+ @bigquery_destination = args[:bigquery_destination] if args.key?(:bigquery_destination)
1022
+ @eval_info_type_mapping = args[:eval_info_type_mapping] if args.key?(:eval_info_type_mapping)
1023
+ @golden_info_type_mapping = args[:golden_info_type_mapping] if args.key?(:golden_info_type_mapping)
1024
+ @golden_store = args[:golden_store] if args.key?(:golden_store)
1025
+ @info_type_config = args[:info_type_config] if args.key?(:info_type_config)
1026
+ end
1027
+ end
1028
+
1029
+ # Response for successful Annotation store evaluation operations. This
1030
+ # structure is included in the
1031
+ # response upon operation completion.
1032
+ class EvaluateAnnotationStoreResponse
1033
+ include Google::Apis::Core::Hashable
1034
+
1035
+ # The evaluated Annotation store, in the format of
1036
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1037
+ # annotationStores/`annotation_store_id``.
1038
+ # Corresponds to the JSON property `evalStore`
1039
+ # @return [String]
1040
+ attr_accessor :eval_store
1041
+
1042
+ # The number of Annotations in the ground
1043
+ # truth Annotation store successfully
1044
+ # processed.
1045
+ # Corresponds to the JSON property `goldenCount`
1046
+ # @return [Fixnum]
1047
+ attr_accessor :golden_count
1048
+
1049
+ # The ground truth Annotation store, in the format of
1050
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1051
+ # annotationStores/`annotation_store_id``.
1052
+ # Corresponds to the JSON property `goldenStore`
1053
+ # @return [String]
1054
+ attr_accessor :golden_store
1055
+
1056
+ # The number of Annotations
1057
+ # in the eval store that match with corresponding annotations
1058
+ # in the ground truth Annotation store. Two matched
1059
+ # annotations both annotate the same resource defined in
1060
+ # AnnotationSource.
1061
+ # Corresponds to the JSON property `matchedCount`
1062
+ # @return [Fixnum]
1063
+ attr_accessor :matched_count
1064
+
1065
+ def initialize(**args)
1066
+ update!(**args)
1067
+ end
1068
+
1069
+ # Update properties of this object
1070
+ def update!(**args)
1071
+ @eval_store = args[:eval_store] if args.key?(:eval_store)
1072
+ @golden_count = args[:golden_count] if args.key?(:golden_count)
1073
+ @golden_store = args[:golden_store] if args.key?(:golden_store)
1074
+ @matched_count = args[:matched_count] if args.key?(:matched_count)
1075
+ end
1076
+ end
1077
+
1078
+ # Response for failed annotation export operations. This structure is
1079
+ # included in error
1080
+ # details upon operation completion.
1081
+ class ExportAnnotationsErrorDetails
1082
+ include Google::Apis::Core::Hashable
1083
+
1084
+ # The annotation_store used for the export operation, in the format of
1085
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1086
+ # annotationStores/`annotation_store_id``.
1087
+ # Corresponds to the JSON property `annotationStore`
1088
+ # @return [String]
1089
+ attr_accessor :annotation_store
1090
+
1091
+ # The number of annotations that had error.
1092
+ # Corresponds to the JSON property `errorCount`
1093
+ # @return [Fixnum]
1094
+ attr_accessor :error_count
1095
+
1096
+ # The number of annotations successfully exported.
1097
+ # Corresponds to the JSON property `successCount`
1098
+ # @return [Fixnum]
1099
+ attr_accessor :success_count
1100
+
1101
+ def initialize(**args)
1102
+ update!(**args)
1103
+ end
1104
+
1105
+ # Update properties of this object
1106
+ def update!(**args)
1107
+ @annotation_store = args[:annotation_store] if args.key?(:annotation_store)
1108
+ @error_count = args[:error_count] if args.key?(:error_count)
1109
+ @success_count = args[:success_count] if args.key?(:success_count)
1110
+ end
1111
+ end
1112
+
1113
+ # Request to export
1114
+ # Annotations. The
1115
+ # export operation is not atomic. If a
1116
+ # failure occurs, any annotations already exported are not removed.
1117
+ class ExportAnnotationsRequest
1118
+ include Google::Apis::Core::Hashable
1119
+
1120
+ # The BigQuery table for export.
1121
+ # Corresponds to the JSON property `bigqueryDestination`
1122
+ # @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination]
1123
+ attr_accessor :bigquery_destination
1124
+
1125
+ # The Cloud Storage location for export.
1126
+ # Corresponds to the JSON property `gcsDestination`
1127
+ # @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsDestination]
1128
+ attr_accessor :gcs_destination
1129
+
1130
+ def initialize(**args)
1131
+ update!(**args)
1132
+ end
1133
+
1134
+ # Update properties of this object
1135
+ def update!(**args)
1136
+ @bigquery_destination = args[:bigquery_destination] if args.key?(:bigquery_destination)
1137
+ @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
1138
+ end
1139
+ end
1140
+
1141
+ # Response for successful annotation export operations. This structure is
1142
+ # included in response upon operation
1143
+ # completion.
1144
+ class ExportAnnotationsResponse
1145
+ include Google::Apis::Core::Hashable
1146
+
1147
+ # The annotation_store used for the export operation, in the format of
1148
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1149
+ # annotationStores/`annotation_store_id``.
1150
+ # Corresponds to the JSON property `annotationStore`
1151
+ # @return [String]
1152
+ attr_accessor :annotation_store
1153
+
1154
+ # The total number of annotations successfully exported.
1155
+ # Corresponds to the JSON property `successCount`
1156
+ # @return [Fixnum]
1157
+ attr_accessor :success_count
1158
+
1159
+ def initialize(**args)
1160
+ update!(**args)
1161
+ end
1162
+
1163
+ # Update properties of this object
1164
+ def update!(**args)
1165
+ @annotation_store = args[:annotation_store] if args.key?(:annotation_store)
1166
+ @success_count = args[:success_count] if args.key?(:success_count)
1167
+ end
1168
+ end
1169
+
753
1170
  # Exports data from the specified DICOM store.
754
1171
  # If a given resource, such as a DICOM object with the same SOPInstance UID,
755
1172
  # already exists in the output, it is overwritten with the version
@@ -1064,22 +1481,185 @@ module Google
1064
1481
  # @return [Fixnum]
1065
1482
  attr_accessor :min_occurs
1066
1483
 
1067
- # The name of the field. For example, "PID-1" or just "1".
1068
- # Corresponds to the JSON property `name`
1484
+ # The name of the field. For example, "PID-1" or just "1".
1485
+ # Corresponds to the JSON property `name`
1486
+ # @return [String]
1487
+ attr_accessor :name
1488
+
1489
+ # The HL7v2 table this field refers to. For example, PID-15 (Patient's
1490
+ # Primary Language) usually refers to table "0296".
1491
+ # Corresponds to the JSON property `table`
1492
+ # @return [String]
1493
+ attr_accessor :table
1494
+
1495
+ # The type of this field. A Type with this name must be defined in an
1496
+ # Hl7TypesConfig.
1497
+ # Corresponds to the JSON property `type`
1498
+ # @return [String]
1499
+ attr_accessor :type
1500
+
1501
+ def initialize(**args)
1502
+ update!(**args)
1503
+ end
1504
+
1505
+ # Update properties of this object
1506
+ def update!(**args)
1507
+ @max_occurs = args[:max_occurs] if args.key?(:max_occurs)
1508
+ @min_occurs = args[:min_occurs] if args.key?(:min_occurs)
1509
+ @name = args[:name] if args.key?(:name)
1510
+ @table = args[:table] if args.key?(:table)
1511
+ @type = args[:type] if args.key?(:type)
1512
+ end
1513
+ end
1514
+
1515
+ # Specifies FHIR paths to match, and how to handle de-identification of
1516
+ # matching fields.
1517
+ class FieldMetadata
1518
+ include Google::Apis::Core::Hashable
1519
+
1520
+ # Deidentify action for one field.
1521
+ # Corresponds to the JSON property `action`
1522
+ # @return [String]
1523
+ attr_accessor :action
1524
+
1525
+ # List of paths to FHIR fields to redact. Each path is a
1526
+ # period-separated list where each component is either a field name or
1527
+ # FHIR type name. All types begin with an upper case letter. For example,
1528
+ # the resource field "Patient.Address.city", which uses a string type,
1529
+ # can be matched by "Patient.Address.String". Path also supports partial
1530
+ # matching. For example, "Patient.Address.city" can be matched by
1531
+ # "Address.city" (Patient omitted). Partial matching and type matching
1532
+ # can be combined. For example, "Patient.Address.city" can be matched by
1533
+ # "Address.String". For "choice" types (those defined in the FHIR spec
1534
+ # with the form: field[x]), use two separate components. For example,
1535
+ # "deceasedAge.unit" is matched by "Deceased.Age.unit". Supported types
1536
+ # are: AdministrativeGenderCode, Code, Date, DateTime, Decimal,
1537
+ # HumanName, Id, LanguageCode, Markdown, Oid, String, Uri, Uuid, Xhtml.
1538
+ # The sub-type for HumanName, such as HumanName.given or
1539
+ # HumanName.family, can be omitted.
1540
+ # Corresponds to the JSON property `paths`
1541
+ # @return [Array<String>]
1542
+ attr_accessor :paths
1543
+
1544
+ def initialize(**args)
1545
+ update!(**args)
1546
+ end
1547
+
1548
+ # Update properties of this object
1549
+ def update!(**args)
1550
+ @action = args[:action] if args.key?(:action)
1551
+ @paths = args[:paths] if args.key?(:paths)
1552
+ end
1553
+ end
1554
+
1555
+ # List of infoTypes to be filtered.
1556
+ class FilterList
1557
+ include Google::Apis::Core::Hashable
1558
+
1559
+ # These infoTypes are based on after the `eval_info_type_mapping` and
1560
+ # `golden_info_type_mapping`.
1561
+ # Corresponds to the JSON property `infoTypes`
1562
+ # @return [Array<String>]
1563
+ attr_accessor :info_types
1564
+
1565
+ def initialize(**args)
1566
+ update!(**args)
1567
+ end
1568
+
1569
+ # Update properties of this object
1570
+ def update!(**args)
1571
+ @info_types = args[:info_types] if args.key?(:info_types)
1572
+ end
1573
+ end
1574
+
1575
+ #
1576
+ class Finding
1577
+ include Google::Apis::Core::Hashable
1578
+
1579
+ # Zero-based ending index of the found text, exclusively.
1580
+ # Corresponds to the JSON property `end`
1581
+ # @return [Fixnum]
1582
+ attr_accessor :end
1583
+
1584
+ # The type of information stored in this text range. For example,
1585
+ # HumanName, BirthDate, or Address.
1586
+ # Corresponds to the JSON property `infoType`
1587
+ # @return [String]
1588
+ attr_accessor :info_type
1589
+
1590
+ # The snippet of the sensitive text. This field is only populated during
1591
+ # deidentification if `store_quote` is set to true in DeidentifyConfig.
1592
+ # Corresponds to the JSON property `quote`
1593
+ # @return [String]
1594
+ attr_accessor :quote
1595
+
1596
+ # Zero-based starting index of the found text, inclusively.
1597
+ # Corresponds to the JSON property `start`
1598
+ # @return [Fixnum]
1599
+ attr_accessor :start
1600
+
1601
+ def initialize(**args)
1602
+ update!(**args)
1603
+ end
1604
+
1605
+ # Update properties of this object
1606
+ def update!(**args)
1607
+ @end = args[:end] if args.key?(:end)
1608
+ @info_type = args[:info_type] if args.key?(:info_type)
1609
+ @quote = args[:quote] if args.key?(:quote)
1610
+ @start = args[:start] if args.key?(:start)
1611
+ end
1612
+ end
1613
+
1614
+ # The BigQuery table for export.
1615
+ class GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination
1616
+ include Google::Apis::Core::Hashable
1617
+
1618
+ # If the destination table already exists and this flag is `TRUE`, the table
1619
+ # is overwritten by the contents of the input store. If the flag is not
1620
+ # set and the destination table already exists, the export call returns an
1621
+ # error.
1622
+ # Corresponds to the JSON property `force`
1623
+ # @return [Boolean]
1624
+ attr_accessor :force
1625
+ alias_method :force?, :force
1626
+
1627
+ # Specifies the schema format to export.
1628
+ # Corresponds to the JSON property `schemaType`
1069
1629
  # @return [String]
1070
- attr_accessor :name
1630
+ attr_accessor :schema_type
1071
1631
 
1072
- # The HL7v2 table this field refers to. For example, PID-15 (Patient's
1073
- # Primary Language) usually refers to table "0296".
1074
- # Corresponds to the JSON property `table`
1632
+ # BigQuery URI to a table, up to 2000 characters long, must be of the form
1633
+ # bq://projectId.bqDatasetId.tableId.
1634
+ # Corresponds to the JSON property `tableUri`
1075
1635
  # @return [String]
1076
- attr_accessor :table
1636
+ attr_accessor :table_uri
1077
1637
 
1078
- # The type of this field. A Type with this name must be defined in an
1079
- # Hl7TypesConfig.
1080
- # Corresponds to the JSON property `type`
1638
+ def initialize(**args)
1639
+ update!(**args)
1640
+ end
1641
+
1642
+ # Update properties of this object
1643
+ def update!(**args)
1644
+ @force = args[:force] if args.key?(:force)
1645
+ @schema_type = args[:schema_type] if args.key?(:schema_type)
1646
+ @table_uri = args[:table_uri] if args.key?(:table_uri)
1647
+ end
1648
+ end
1649
+
1650
+ # The Cloud Storage location for export.
1651
+ class GoogleCloudHealthcareV1beta1AnnotationGcsDestination
1652
+ include Google::Apis::Core::Hashable
1653
+
1654
+ # The Cloud Storage destination to export to.
1655
+ # URI for a Cloud Storage directory where the server writes result files, in
1656
+ # the format `gs://`bucket-id`/`path/to/destination/dir``. If there is no
1657
+ # trailing slash, the service appends one when composing the object path.
1658
+ # The user is responsible for creating the Cloud Storage bucket referenced in
1659
+ # `uri_prefix`.
1660
+ # Corresponds to the JSON property `uriPrefix`
1081
1661
  # @return [String]
1082
- attr_accessor :type
1662
+ attr_accessor :uri_prefix
1083
1663
 
1084
1664
  def initialize(**args)
1085
1665
  update!(**args)
@@ -1087,42 +1667,34 @@ module Google
1087
1667
 
1088
1668
  # Update properties of this object
1089
1669
  def update!(**args)
1090
- @max_occurs = args[:max_occurs] if args.key?(:max_occurs)
1091
- @min_occurs = args[:min_occurs] if args.key?(:min_occurs)
1092
- @name = args[:name] if args.key?(:name)
1093
- @table = args[:table] if args.key?(:table)
1094
- @type = args[:type] if args.key?(:type)
1670
+ @uri_prefix = args[:uri_prefix] if args.key?(:uri_prefix)
1095
1671
  end
1096
1672
  end
1097
1673
 
1098
- # Specifies FHIR paths to match, and how to handle de-identification of
1099
- # matching fields.
1100
- class FieldMetadata
1674
+ # Specifies the configuration for importing data from Cloud Storage.
1675
+ class GoogleCloudHealthcareV1beta1AnnotationGcsSource
1101
1676
  include Google::Apis::Core::Hashable
1102
1677
 
1103
- # Deidentify action for one field.
1104
- # Corresponds to the JSON property `action`
1678
+ # Points to a Cloud Storage URI containing file(s) with
1679
+ # content only. The URI must be in the following format:
1680
+ # `gs://`bucket_id`/`object_id``. The URI can include wildcards in
1681
+ # `object_id` and thus identify multiple files. Supported wildcards:
1682
+ # '*' to match 0 or more non-separator characters
1683
+ # '**' to match 0 or more characters (including separators). Must be used
1684
+ # at
1685
+ # the end of a path and with no other wildcards in the
1686
+ # path. Can also be used with a file extension (such as .dcm), which
1687
+ # imports all files with the extension in the specified directory and
1688
+ # its sub-directories. For example,
1689
+ # `gs://my-bucket/my-directory/**.json` imports all files with .json
1690
+ # extensions in `my-directory/` and its sub-directories.
1691
+ # '?' to match 1 character
1692
+ # All other URI formats are invalid.
1693
+ # Files matching the wildcard are expected to contain content only, no
1694
+ # metadata.
1695
+ # Corresponds to the JSON property `uri`
1105
1696
  # @return [String]
1106
- attr_accessor :action
1107
-
1108
- # List of paths to FHIR fields to redact. Each path is a
1109
- # period-separated list where each component is either a field name or
1110
- # FHIR type name. All types begin with an upper case letter. For example,
1111
- # the resource field "Patient.Address.city", which uses a string type,
1112
- # can be matched by "Patient.Address.String". Path also supports partial
1113
- # matching. For example, "Patient.Address.city" can be matched by
1114
- # "Address.city" (Patient omitted). Partial matching and type matching
1115
- # can be combined. For example, "Patient.Address.city" can be matched by
1116
- # "Address.String". For "choice" types (those defined in the FHIR spec
1117
- # with the form: field[x]), use two separate components. For example,
1118
- # "deceasedAge.unit" is matched by "Deceased.Age.unit". Supported types
1119
- # are: AdministrativeGenderCode, Code, Date, DateTime, Decimal,
1120
- # HumanName, Id, LanguageCode, Markdown, Oid, String, Uri, Uuid, Xhtml.
1121
- # The sub-type for HumanName, such as HumanName.given or
1122
- # HumanName.family, can be omitted.
1123
- # Corresponds to the JSON property `paths`
1124
- # @return [Array<String>]
1125
- attr_accessor :paths
1697
+ attr_accessor :uri
1126
1698
 
1127
1699
  def initialize(**args)
1128
1700
  update!(**args)
@@ -1130,8 +1702,7 @@ module Google
1130
1702
 
1131
1703
  # Update properties of this object
1132
1704
  def update!(**args)
1133
- @action = args[:action] if args.key?(:action)
1134
- @paths = args[:paths] if args.key?(:paths)
1705
+ @uri = args[:uri] if args.key?(:uri)
1135
1706
  end
1136
1707
  end
1137
1708
 
@@ -1824,6 +2395,32 @@ module Google
1824
2395
  end
1825
2396
  end
1826
2397
 
2398
+ # Image annotation.
2399
+ class ImageAnnotation
2400
+ include Google::Apis::Core::Hashable
2401
+
2402
+ # The list of polygons outlining the sensitive regions in the image.
2403
+ # Corresponds to the JSON property `boundingPolys`
2404
+ # @return [Array<Google::Apis::HealthcareV1beta1::BoundingPoly>]
2405
+ attr_accessor :bounding_polys
2406
+
2407
+ # 0-based index of the image frame. For example, an image frame in a DICOM
2408
+ # instance.
2409
+ # Corresponds to the JSON property `frameIndex`
2410
+ # @return [Fixnum]
2411
+ attr_accessor :frame_index
2412
+
2413
+ def initialize(**args)
2414
+ update!(**args)
2415
+ end
2416
+
2417
+ # Update properties of this object
2418
+ def update!(**args)
2419
+ @bounding_polys = args[:bounding_polys] if args.key?(:bounding_polys)
2420
+ @frame_index = args[:frame_index] if args.key?(:frame_index)
2421
+ end
2422
+ end
2423
+
1827
2424
  # Specifies how to handle de-identification of image pixels.
1828
2425
  class ImageConfig
1829
2426
  include Google::Apis::Core::Hashable
@@ -1843,6 +2440,101 @@ module Google
1843
2440
  end
1844
2441
  end
1845
2442
 
2443
+ # Final response of importing
2444
+ # Annotations in
2445
+ # partial or total failure case. This structure is included in the
2446
+ # error
2447
+ # details. It is only included when the operation
2448
+ # finishes.
2449
+ class ImportAnnotationsErrorDetails
2450
+ include Google::Apis::Core::Hashable
2451
+
2452
+ # The annotation_store that the annotations were imported to. The name
2453
+ # is in the format
2454
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
2455
+ # annotationStores/`annotation_store_id``.
2456
+ # Corresponds to the JSON property `annotationStore`
2457
+ # @return [String]
2458
+ attr_accessor :annotation_store
2459
+
2460
+ # The number of annotations that had errors.
2461
+ # Corresponds to the JSON property `errorCount`
2462
+ # @return [Fixnum]
2463
+ attr_accessor :error_count
2464
+
2465
+ # The number of annotations that have been imported.
2466
+ # Corresponds to the JSON property `successCount`
2467
+ # @return [Fixnum]
2468
+ attr_accessor :success_count
2469
+
2470
+ def initialize(**args)
2471
+ update!(**args)
2472
+ end
2473
+
2474
+ # Update properties of this object
2475
+ def update!(**args)
2476
+ @annotation_store = args[:annotation_store] if args.key?(:annotation_store)
2477
+ @error_count = args[:error_count] if args.key?(:error_count)
2478
+ @success_count = args[:success_count] if args.key?(:success_count)
2479
+ end
2480
+ end
2481
+
2482
+ # Request to import
2483
+ # Annotations. The
2484
+ # Annotations to be imported must have client-supplied resource names which
2485
+ # indicate the annotation resource. The import operation is not atomic. If a
2486
+ # failure occurs, any annotations already imported are not removed.
2487
+ class ImportAnnotationsRequest
2488
+ include Google::Apis::Core::Hashable
2489
+
2490
+ # Specifies the configuration for importing data from Cloud Storage.
2491
+ # Corresponds to the JSON property `gcsSource`
2492
+ # @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsSource]
2493
+ attr_accessor :gcs_source
2494
+
2495
+ def initialize(**args)
2496
+ update!(**args)
2497
+ end
2498
+
2499
+ # Update properties of this object
2500
+ def update!(**args)
2501
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
2502
+ end
2503
+ end
2504
+
2505
+ # Final response of importing
2506
+ # Annotations in
2507
+ # successful case. This structure is included in the
2508
+ # response. It is only included
2509
+ # when the operation finishes.
2510
+ class ImportAnnotationsResponse
2511
+ include Google::Apis::Core::Hashable
2512
+
2513
+ # The annotation_store that the annotations were imported to. The name
2514
+ # is in the format
2515
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
2516
+ # annotationStores/`annotation_store_id``.
2517
+ # Corresponds to the JSON property `annotationStore`
2518
+ # @return [String]
2519
+ attr_accessor :annotation_store
2520
+
2521
+ # The number of the input annotations. All input have been imported
2522
+ # successfully.
2523
+ # Corresponds to the JSON property `successCount`
2524
+ # @return [Fixnum]
2525
+ attr_accessor :success_count
2526
+
2527
+ def initialize(**args)
2528
+ update!(**args)
2529
+ end
2530
+
2531
+ # Update properties of this object
2532
+ def update!(**args)
2533
+ @annotation_store = args[:annotation_store] if args.key?(:annotation_store)
2534
+ @success_count = args[:success_count] if args.key?(:success_count)
2535
+ end
2536
+ end
2537
+
1846
2538
  # Returns the errors encountered during DICOM store import.
1847
2539
  class ImportDicomDataErrorDetails
1848
2540
  include Google::Apis::Core::Hashable
@@ -1925,6 +2617,59 @@ module Google
1925
2617
  end
1926
2618
  end
1927
2619
 
2620
+ # Specifies how to use infoTypes for evaluation. For example, a user might
2621
+ # only want to evaluate `PERSON`, `LOCATION`, and `AGE`.
2622
+ class InfoTypeConfig
2623
+ include Google::Apis::Core::Hashable
2624
+
2625
+ # List of infoTypes to be filtered.
2626
+ # Corresponds to the JSON property `evaluateList`
2627
+ # @return [Google::Apis::HealthcareV1beta1::FilterList]
2628
+ attr_accessor :evaluate_list
2629
+
2630
+ # List of infoTypes to be filtered.
2631
+ # Corresponds to the JSON property `ignoreList`
2632
+ # @return [Google::Apis::HealthcareV1beta1::FilterList]
2633
+ attr_accessor :ignore_list
2634
+
2635
+ # If `TRUE`, infoTypes described by `filter` are used for evaluation.
2636
+ # Otherwise, infoTypes are not considered for evaluation.
2637
+ # For example:
2638
+ # * Annotated text:
2639
+ # "Toronto is a location"
2640
+ # * Finding 1:
2641
+ # ``"infoType": "PERSON", "quote": "Toronto", "start": 0, "end": 7``
2642
+ # * Finding 2:
2643
+ # ``"infoType": "CITY", "quote": "Toronto", "start": 0, "end": 7``
2644
+ # * Finding 3:
2645
+ # ````
2646
+ # * Ground truth:
2647
+ # ``"infoType": "LOCATION", "quote": "Toronto", "start": 0, "end": 7``
2648
+ # When `strict_matching` is `TRUE`:
2649
+ # * Finding 1: 1 false positive
2650
+ # * Finding 2: 1 false positive
2651
+ # * Finding 3: 1 false negative
2652
+ # When `strict_matching` is `FALSE`:
2653
+ # * Finding 1: 1 true positive
2654
+ # * Finding 2: 1 true positive
2655
+ # * Finding 3: 1 false negative
2656
+ # Corresponds to the JSON property `strictMatching`
2657
+ # @return [Boolean]
2658
+ attr_accessor :strict_matching
2659
+ alias_method :strict_matching?, :strict_matching
2660
+
2661
+ def initialize(**args)
2662
+ update!(**args)
2663
+ end
2664
+
2665
+ # Update properties of this object
2666
+ def update!(**args)
2667
+ @evaluate_list = args[:evaluate_list] if args.key?(:evaluate_list)
2668
+ @ignore_list = args[:ignore_list] if args.key?(:ignore_list)
2669
+ @strict_matching = args[:strict_matching] if args.key?(:strict_matching)
2670
+ end
2671
+ end
2672
+
1928
2673
  # A transformation to apply to text that is identified as a specific
1929
2674
  # info_type.
1930
2675
  class InfoTypeTransformation
@@ -2039,6 +2784,63 @@ module Google
2039
2784
  end
2040
2785
  end
2041
2786
 
2787
+ # Lists the Annotation stores
2788
+ # in the given dataset.
2789
+ class ListAnnotationStoresResponse
2790
+ include Google::Apis::Core::Hashable
2791
+
2792
+ # The returned Annotation stores. Won't be more Annotation stores than the
2793
+ # value of page_size in the request.
2794
+ # Corresponds to the JSON property `annotationStores`
2795
+ # @return [Array<Google::Apis::HealthcareV1beta1::AnnotationStore>]
2796
+ attr_accessor :annotation_stores
2797
+
2798
+ # Token to retrieve the next page of results or empty if there are no more
2799
+ # results in the list.
2800
+ # Corresponds to the JSON property `nextPageToken`
2801
+ # @return [String]
2802
+ attr_accessor :next_page_token
2803
+
2804
+ def initialize(**args)
2805
+ update!(**args)
2806
+ end
2807
+
2808
+ # Update properties of this object
2809
+ def update!(**args)
2810
+ @annotation_stores = args[:annotation_stores] if args.key?(:annotation_stores)
2811
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2812
+ end
2813
+ end
2814
+
2815
+ # Lists the Annotations in the specified
2816
+ # Annotation store.
2817
+ class ListAnnotationsResponse
2818
+ include Google::Apis::Core::Hashable
2819
+
2820
+ # The returned Annotations. Won't be more values than the value of
2821
+ # page_size in the request. See `AnnotationView` in the request for
2822
+ # populated fields.
2823
+ # Corresponds to the JSON property `annotations`
2824
+ # @return [Array<Google::Apis::HealthcareV1beta1::Annotation>]
2825
+ attr_accessor :annotations
2826
+
2827
+ # Token to retrieve the next page of results or empty if there are no more
2828
+ # results in the list.
2829
+ # Corresponds to the JSON property `nextPageToken`
2830
+ # @return [String]
2831
+ attr_accessor :next_page_token
2832
+
2833
+ def initialize(**args)
2834
+ update!(**args)
2835
+ end
2836
+
2837
+ # Update properties of this object
2838
+ def update!(**args)
2839
+ @annotations = args[:annotations] if args.key?(:annotations)
2840
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2841
+ end
2842
+ end
2843
+
2042
2844
  # Lists the available datasets.
2043
2845
  class ListDatasetsResponse
2044
2846
  include Google::Apis::Core::Hashable
@@ -2784,6 +3586,25 @@ module Google
2784
3586
  end
2785
3587
  end
2786
3588
 
3589
+ # Resource level annotation.
3590
+ class ResourceAnnotation
3591
+ include Google::Apis::Core::Hashable
3592
+
3593
+ # A description of the annotation record.
3594
+ # Corresponds to the JSON property `label`
3595
+ # @return [String]
3596
+ attr_accessor :label
3597
+
3598
+ def initialize(**args)
3599
+ update!(**args)
3600
+ end
3601
+
3602
+ # Update properties of this object
3603
+ def update!(**args)
3604
+ @label = args[:label] if args.key?(:label)
3605
+ end
3606
+ end
3607
+
2787
3608
  # A list of FHIR resources.
2788
3609
  class Resources
2789
3610
  include Google::Apis::Core::Hashable
@@ -3051,6 +3872,27 @@ module Google
3051
3872
  end
3052
3873
  end
3053
3874
 
3875
+ # A TextAnnotation specifies a text range that includes sensitive information.
3876
+ class SensitiveTextAnnotation
3877
+ include Google::Apis::Core::Hashable
3878
+
3879
+ # Maps from a resource slice. For example, FHIR resource field path to a set
3880
+ # of sensitive text findings. For example,
3881
+ # Appointment.Narrative text1 --> `findings_1, findings_2, findings_3`
3882
+ # Corresponds to the JSON property `details`
3883
+ # @return [Hash<String,Google::Apis::HealthcareV1beta1::Detail>]
3884
+ attr_accessor :details
3885
+
3886
+ def initialize(**args)
3887
+ update!(**args)
3888
+ end
3889
+
3890
+ # Update properties of this object
3891
+ def update!(**args)
3892
+ @details = args[:details] if args.key?(:details)
3893
+ end
3894
+ end
3895
+
3054
3896
  # Request message for `SetIamPolicy` method.
3055
3897
  class SetIamPolicyRequest
3056
3898
  include Google::Apis::Core::Hashable
@@ -3349,6 +4191,31 @@ module Google
3349
4191
  @value = args[:value] if args.key?(:value)
3350
4192
  end
3351
4193
  end
4194
+
4195
+ # A 2D coordinate in an image. The origin is the top-left.
4196
+ class Vertex
4197
+ include Google::Apis::Core::Hashable
4198
+
4199
+ # X coordinate.
4200
+ # Corresponds to the JSON property `x`
4201
+ # @return [Float]
4202
+ attr_accessor :x
4203
+
4204
+ # Y coordinate.
4205
+ # Corresponds to the JSON property `y`
4206
+ # @return [Float]
4207
+ attr_accessor :y
4208
+
4209
+ def initialize(**args)
4210
+ update!(**args)
4211
+ end
4212
+
4213
+ # Update properties of this object
4214
+ def update!(**args)
4215
+ @x = args[:x] if args.key?(:x)
4216
+ @y = args[:y] if args.key?(:y)
4217
+ end
4218
+ end
3352
4219
  end
3353
4220
  end
3354
4221
  end