google-api-client 0.45.0 → 0.45.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +56 -0
  3. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +1 -1
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +7 -9
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
  6. data/generated/google/apis/analyticsadmin_v1alpha.rb +43 -0
  7. data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +1361 -0
  8. data/generated/google/apis/analyticsadmin_v1alpha/representations.rb +610 -0
  9. data/generated/google/apis/analyticsadmin_v1alpha/service.rb +2135 -0
  10. data/generated/google/apis/apigateway_v1alpha2.rb +34 -0
  11. data/generated/google/apis/apigateway_v1alpha2/classes.rb +633 -0
  12. data/generated/google/apis/apigateway_v1alpha2/representations.rb +250 -0
  13. data/generated/google/apis/apigateway_v1alpha2/service.rb +623 -0
  14. data/generated/google/apis/apigee_v1.rb +1 -1
  15. data/generated/google/apis/apigee_v1/classes.rb +0 -6
  16. data/generated/google/apis/apigee_v1/representations.rb +0 -1
  17. data/generated/google/apis/apigee_v1/service.rb +1 -5
  18. data/generated/google/apis/appsmarket_v2.rb +1 -1
  19. data/generated/google/apis/bigquery_v2.rb +1 -1
  20. data/generated/google/apis/bigquery_v2/classes.rb +22 -0
  21. data/generated/google/apis/bigquery_v2/representations.rb +1 -0
  22. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  23. data/generated/google/apis/binaryauthorization_v1/classes.rb +187 -0
  24. data/generated/google/apis/binaryauthorization_v1/representations.rb +74 -0
  25. data/generated/google/apis/binaryauthorization_v1/service.rb +35 -0
  26. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  27. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +187 -0
  28. data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +74 -0
  29. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +35 -0
  30. data/generated/google/apis/calendar_v3.rb +1 -1
  31. data/generated/google/apis/calendar_v3/classes.rb +2 -1
  32. data/generated/google/apis/chat_v1.rb +1 -1
  33. data/generated/google/apis/chat_v1/classes.rb +76 -2
  34. data/generated/google/apis/chat_v1/representations.rb +35 -0
  35. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  36. data/generated/google/apis/cloudbuild_v1/classes.rb +0 -34
  37. data/generated/google/apis/cloudbuild_v1/representations.rb +0 -15
  38. data/generated/google/apis/cloudbuild_v1/service.rb +7 -4
  39. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  40. data/generated/google/apis/cloudfunctions_v1/classes.rb +12 -1
  41. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
  42. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  43. data/generated/google/apis/cloudidentity_v1/classes.rb +0 -34
  44. data/generated/google/apis/cloudidentity_v1/representations.rb +0 -17
  45. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  46. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +185 -0
  47. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +94 -0
  48. data/generated/google/apis/cloudidentity_v1beta1/service.rb +164 -0
  49. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  50. data/generated/google/apis/cloudresourcemanager_v1/service.rb +2 -2
  51. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +2 -2
  53. data/generated/google/apis/content_v2_1.rb +1 -1
  54. data/generated/google/apis/content_v2_1/service.rb +1 -1
  55. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  56. data/generated/google/apis/datacatalog_v1beta1/classes.rb +1 -1
  57. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  58. data/generated/google/apis/dataflow_v1b3/classes.rb +20 -8
  59. data/generated/google/apis/dfareporting_v3_3.rb +1 -1
  60. data/generated/google/apis/dfareporting_v3_3/classes.rb +0 -164
  61. data/generated/google/apis/dfareporting_v3_3/representations.rb +0 -42
  62. data/generated/google/apis/dfareporting_v3_4.rb +1 -1
  63. data/generated/google/apis/dfareporting_v3_4/classes.rb +0 -164
  64. data/generated/google/apis/dfareporting_v3_4/representations.rb +0 -42
  65. data/generated/google/apis/dialogflow_v2.rb +1 -1
  66. data/generated/google/apis/dialogflow_v2/classes.rb +73 -0
  67. data/generated/google/apis/dialogflow_v2/representations.rb +51 -0
  68. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  69. data/generated/google/apis/dialogflow_v2beta1/classes.rb +73 -0
  70. data/generated/google/apis/dialogflow_v2beta1/representations.rb +51 -0
  71. data/generated/google/apis/dialogflow_v2beta1/service.rb +6 -6
  72. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  73. data/generated/google/apis/dialogflow_v3beta1/classes.rb +142 -0
  74. data/generated/google/apis/dialogflow_v3beta1/representations.rb +83 -0
  75. data/generated/google/apis/displayvideo_v1.rb +1 -1
  76. data/generated/google/apis/displayvideo_v1/classes.rb +8 -0
  77. data/generated/google/apis/displayvideo_v1/representations.rb +1 -0
  78. data/generated/google/apis/dlp_v2.rb +1 -1
  79. data/generated/google/apis/dlp_v2/classes.rb +26 -0
  80. data/generated/google/apis/dlp_v2/representations.rb +16 -0
  81. data/generated/google/apis/dlp_v2/service.rb +328 -328
  82. data/generated/google/apis/firestore_v1.rb +1 -1
  83. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  84. data/generated/google/apis/gmail_v1.rb +1 -1
  85. data/generated/google/apis/gmail_v1/service.rb +1 -1
  86. data/generated/google/apis/healthcare_v1.rb +1 -1
  87. data/generated/google/apis/healthcare_v1/classes.rb +3 -1
  88. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  89. data/generated/google/apis/healthcare_v1beta1/classes.rb +1014 -16
  90. data/generated/google/apis/healthcare_v1beta1/representations.rb +453 -0
  91. data/generated/google/apis/healthcare_v1beta1/service.rb +1226 -0
  92. data/generated/google/apis/logging_v2.rb +1 -1
  93. data/generated/google/apis/logging_v2/classes.rb +98 -55
  94. data/generated/google/apis/logging_v2/representations.rb +32 -0
  95. data/generated/google/apis/logging_v2/service.rb +1214 -264
  96. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  97. data/generated/google/apis/oslogin_v1alpha/classes.rb +2 -2
  98. data/generated/google/apis/oslogin_v1alpha/service.rb +13 -13
  99. data/generated/google/apis/people_v1.rb +1 -1
  100. data/generated/google/apis/people_v1/service.rb +8 -6
  101. data/generated/google/apis/realtimebidding_v1.rb +1 -1
  102. data/generated/google/apis/realtimebidding_v1/classes.rb +4 -4
  103. data/generated/google/apis/realtimebidding_v1/service.rb +4 -1
  104. data/generated/google/apis/run_v1.rb +1 -1
  105. data/generated/google/apis/run_v1/classes.rb +0 -124
  106. data/generated/google/apis/run_v1/representations.rb +0 -61
  107. data/generated/google/apis/run_v1/service.rb +0 -342
  108. data/generated/google/apis/searchconsole_v1.rb +7 -1
  109. data/generated/google/apis/searchconsole_v1/classes.rb +388 -0
  110. data/generated/google/apis/searchconsole_v1/representations.rb +162 -0
  111. data/generated/google/apis/searchconsole_v1/service.rb +287 -0
  112. data/generated/google/apis/securitycenter_v1.rb +1 -1
  113. data/generated/google/apis/securitycenter_v1/classes.rb +5 -199
  114. data/generated/google/apis/securitycenter_v1/representations.rb +0 -72
  115. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  116. data/generated/google/apis/securitycenter_v1beta1/classes.rb +2 -196
  117. data/generated/google/apis/securitycenter_v1beta1/representations.rb +0 -72
  118. data/generated/google/apis/securitycenter_v1beta2.rb +1 -1
  119. data/generated/google/apis/securitycenter_v1beta2/classes.rb +2 -196
  120. data/generated/google/apis/securitycenter_v1beta2/representations.rb +0 -72
  121. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  122. data/generated/google/apis/servicecontrol_v1/classes.rb +1 -2
  123. data/generated/google/apis/servicecontrol_v2.rb +1 -1
  124. data/generated/google/apis/servicecontrol_v2/classes.rb +1 -2
  125. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  126. data/generated/google/apis/servicemanagement_v1/classes.rb +0 -22
  127. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -13
  128. data/generated/google/apis/servicemanagement_v1/service.rb +0 -36
  129. data/generated/google/apis/smartdevicemanagement_v1.rb +35 -0
  130. data/generated/google/apis/smartdevicemanagement_v1/classes.rb +313 -0
  131. data/generated/google/apis/smartdevicemanagement_v1/representations.rb +174 -0
  132. data/generated/google/apis/smartdevicemanagement_v1/service.rb +312 -0
  133. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  134. data/generated/google/apis/sourcerepo_v1/classes.rb +250 -400
  135. data/generated/google/apis/sourcerepo_v1/service.rb +40 -49
  136. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  137. data/generated/google/apis/sqladmin_v1beta4/classes.rb +83 -52
  138. data/generated/google/apis/sqladmin_v1beta4/representations.rb +33 -17
  139. data/generated/google/apis/storage_v1.rb +1 -1
  140. data/generated/google/apis/sts_v1beta.rb +1 -1
  141. data/generated/google/apis/sts_v1beta/classes.rb +4 -1
  142. data/generated/google/apis/websecurityscanner_v1.rb +1 -1
  143. data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
  144. data/generated/google/apis/workflowexecutions_v1beta.rb +2 -2
  145. data/generated/google/apis/workflowexecutions_v1beta/service.rb +1 -1
  146. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  147. data/generated/google/apis/youtube_v3.rb +1 -1
  148. data/generated/google/apis/youtube_v3/classes.rb +0 -134
  149. data/generated/google/apis/youtube_v3/representations.rb +0 -55
  150. data/generated/google/apis/youtube_v3/service.rb +2 -2
  151. data/lib/google/apis/version.rb +1 -1
  152. metadata +15 -3
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/firestore
27
27
  module FirestoreV1
28
28
  VERSION = 'V1'
29
- REVISION = '20200821'
29
+ REVISION = '20200912'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/firestore
27
27
  module FirestoreV1beta1
28
28
  VERSION = 'V1beta1'
29
- REVISION = '20200822'
29
+ REVISION = '20200912'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/gmail/api/
27
27
  module GmailV1
28
28
  VERSION = 'V1'
29
- REVISION = '20200824'
29
+ REVISION = '20200919'
30
30
 
31
31
  # Read, compose, send, and permanently delete all your email from Gmail
32
32
  AUTH_SCOPE = 'https://mail.google.com/'
@@ -1624,7 +1624,7 @@ module Google
1624
1624
  execute_or_queue_command(command, &block)
1625
1625
  end
1626
1626
 
1627
- # Creates a filter.
1627
+ # Creates a filter. Note: you can only create a maximum of 1,000 filters.
1628
1628
  # @param [String] user_id
1629
1629
  # User's email address. The special value "me" can be used to indicate the
1630
1630
  # authenticated user.
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/healthcare
26
26
  module HealthcareV1
27
27
  VERSION = 'V1'
28
- REVISION = '20200909'
28
+ REVISION = '20200917'
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'
@@ -1798,7 +1798,9 @@ module Google
1798
1798
  # that send notifications to fail. If a notification can't be published to Cloud
1799
1799
  # Pub/Sub, errors are logged to Cloud Logging (see [Viewing logs](/healthcare/
1800
1800
  # docs/how-tos/logging)). If the number of errors exceeds a certain rate, some
1801
- # aren't submitted.
1801
+ # aren't submitted. Note that not all operations trigger notifications, see [
1802
+ # Configuring Pub/Sub notifications](https://cloud.google.com/healthcare/docs/
1803
+ # how-tos/pubsub) for specific details.
1802
1804
  # Corresponds to the JSON property `pubsubTopic`
1803
1805
  # @return [String]
1804
1806
  attr_accessor :pubsub_topic
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/healthcare
26
26
  module HealthcareV1beta1
27
27
  VERSION = 'V1beta1'
28
- REVISION = '20200909'
28
+ REVISION = '20200917'
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,43 @@ module Google
22
22
  module Apis
23
23
  module HealthcareV1beta1
24
24
 
25
+ # Activates the latest revision of the specified Consent by committing a new
26
+ # revision with `state` updated to `ACTIVE`. If the latest revision of the given
27
+ # consent is in the `ACTIVE` state, no new revision is committed.
28
+ class ActivateConsentRequest
29
+ include Google::Apis::Core::Hashable
30
+
31
+ # Required. The resource name of the consent artifact that contains proof of the
32
+ # end user's consent, of the form `projects/`project_id`/locations/`location_id`/
33
+ # datasets/`dataset_id`/consentStores/`consent_store_id`/consentArtifacts/`
34
+ # consent_artifact_id``. If the draft consent had a consent artifact, this
35
+ # consent artifact overwrites it.
36
+ # Corresponds to the JSON property `consentArtifact`
37
+ # @return [String]
38
+ attr_accessor :consent_artifact
39
+
40
+ # Timestamp in UTC of when this consent is considered expired.
41
+ # Corresponds to the JSON property `expireTime`
42
+ # @return [String]
43
+ attr_accessor :expire_time
44
+
45
+ # The time to live for this consent from when it is marked as active.
46
+ # Corresponds to the JSON property `ttl`
47
+ # @return [String]
48
+ attr_accessor :ttl
49
+
50
+ def initialize(**args)
51
+ update!(**args)
52
+ end
53
+
54
+ # Update properties of this object
55
+ def update!(**args)
56
+ @consent_artifact = args[:consent_artifact] if args.key?(:consent_artifact)
57
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
58
+ @ttl = args[:ttl] if args.key?(:ttl)
59
+ end
60
+ end
61
+
25
62
  # An annotation record.
26
63
  class Annotation
27
64
  include Google::Apis::Core::Hashable
@@ -160,6 +197,118 @@ module Google
160
197
  end
161
198
  end
162
199
 
200
+ # Archives the specified User data mapping.
201
+ class ArchiveUserDataMappingRequest
202
+ include Google::Apis::Core::Hashable
203
+
204
+ def initialize(**args)
205
+ update!(**args)
206
+ end
207
+
208
+ # Update properties of this object
209
+ def update!(**args)
210
+ end
211
+ end
212
+
213
+ # Archives the specified User data mapping.
214
+ class ArchiveUserDataMappingResponse
215
+ include Google::Apis::Core::Hashable
216
+
217
+ def initialize(**args)
218
+ update!(**args)
219
+ end
220
+
221
+ # Update properties of this object
222
+ def update!(**args)
223
+ end
224
+ end
225
+
226
+ # An attribute value for a consent or data mapping. Each Attribute must have a
227
+ # corresponding AttributeDefinition in the consent store that defines the
228
+ # default and allowed values.
229
+ class Attribute
230
+ include Google::Apis::Core::Hashable
231
+
232
+ # Indicates the name of an attribute defined at the consent store.
233
+ # Corresponds to the JSON property `attributeDefinitionId`
234
+ # @return [String]
235
+ attr_accessor :attribute_definition_id
236
+
237
+ # The value of the attribute. Must be an acceptable value as defined in the
238
+ # consent store. For example, if the consent store defines "data type" with
239
+ # acceptable values "questionnaire" and "step-count", when the attribute name is
240
+ # data type, this field must contain one of those values.
241
+ # Corresponds to the JSON property `values`
242
+ # @return [Array<String>]
243
+ attr_accessor :values
244
+
245
+ def initialize(**args)
246
+ update!(**args)
247
+ end
248
+
249
+ # Update properties of this object
250
+ def update!(**args)
251
+ @attribute_definition_id = args[:attribute_definition_id] if args.key?(:attribute_definition_id)
252
+ @values = args[:values] if args.key?(:values)
253
+ end
254
+ end
255
+
256
+ # A client-defined consent attribute.
257
+ class AttributeDefinition
258
+ include Google::Apis::Core::Hashable
259
+
260
+ # Required. Possible values for the attribute. An empty list is invalid. The
261
+ # list can only be expanded after creation.
262
+ # Corresponds to the JSON property `allowedValues`
263
+ # @return [Array<String>]
264
+ attr_accessor :allowed_values
265
+
266
+ # Required. The category of the attribute. The value of this field cannot be
267
+ # changed after creation.
268
+ # Corresponds to the JSON property `category`
269
+ # @return [String]
270
+ attr_accessor :category
271
+
272
+ # Default values of the attribute in consents. If no default values are
273
+ # specified, it defaults to an empty value.
274
+ # Corresponds to the JSON property `consentDefaultValues`
275
+ # @return [Array<String>]
276
+ attr_accessor :consent_default_values
277
+
278
+ # Default value of the attribute in user data mappings. If no default value is
279
+ # specified, it defaults to an empty value. This field is only applicable to
280
+ # attributes of the category `RESOURCE`.
281
+ # Corresponds to the JSON property `dataMappingDefaultValue`
282
+ # @return [String]
283
+ attr_accessor :data_mapping_default_value
284
+
285
+ # A description of the attribute.
286
+ # Corresponds to the JSON property `description`
287
+ # @return [String]
288
+ attr_accessor :description
289
+
290
+ # Resource name of the attribute definition, of the form `projects/`project_id`/
291
+ # locations/`location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/
292
+ # attributeDefinitions/`attribute_definition_id``.
293
+ # Corresponds to the JSON property `name`
294
+ # @return [String]
295
+ attr_accessor :name
296
+
297
+ def initialize(**args)
298
+ update!(**args)
299
+ end
300
+
301
+ # Update properties of this object
302
+ def update!(**args)
303
+ @allowed_values = args[:allowed_values] if args.key?(:allowed_values)
304
+ @category = args[:category] if args.key?(:category)
305
+ @consent_default_values = args[:consent_default_values] if args.key?(:consent_default_values)
306
+ @data_mapping_default_value = args[:data_mapping_default_value] if args.key?(:data_mapping_default_value)
307
+ @description = args[:description] if args.key?(:description)
308
+ @name = args[:name] if args.key?(:name)
309
+ end
310
+ end
311
+
163
312
  # Specifies the audit configuration for a service. The configuration determines
164
313
  # which permission types are logged, and what identities, if any, are exempted
165
314
  # from logging. An AuditConfig must have one or more AuditLogConfigs. If there
@@ -359,6 +508,72 @@ module Google
359
508
  end
360
509
  end
361
510
 
511
+ # Checks if a particular data_id of a User data mapping in the given Consent
512
+ # store is consented for a given use.
513
+ class CheckDataAccessRequest
514
+ include Google::Apis::Core::Hashable
515
+
516
+ # List of resource names of Consent resources.
517
+ # Corresponds to the JSON property `consentList`
518
+ # @return [Google::Apis::HealthcareV1beta1::ConsentList]
519
+ attr_accessor :consent_list
520
+
521
+ # The unique identifier of the data to check access for. It must exist in the
522
+ # given `consent_store`.
523
+ # Corresponds to the JSON property `dataId`
524
+ # @return [String]
525
+ attr_accessor :data_id
526
+
527
+ # The values of request attributes associated with this access request.
528
+ # Corresponds to the JSON property `requestAttributes`
529
+ # @return [Hash<String,String>]
530
+ attr_accessor :request_attributes
531
+
532
+ # The view for CheckDataAccessResponse.
533
+ # Corresponds to the JSON property `responseView`
534
+ # @return [String]
535
+ attr_accessor :response_view
536
+
537
+ def initialize(**args)
538
+ update!(**args)
539
+ end
540
+
541
+ # Update properties of this object
542
+ def update!(**args)
543
+ @consent_list = args[:consent_list] if args.key?(:consent_list)
544
+ @data_id = args[:data_id] if args.key?(:data_id)
545
+ @request_attributes = args[:request_attributes] if args.key?(:request_attributes)
546
+ @response_view = args[:response_view] if args.key?(:response_view)
547
+ end
548
+ end
549
+
550
+ # Checks if a particular data_id of a User data mapping in the given Consent
551
+ # store is consented for a given use.
552
+ class CheckDataAccessResponse
553
+ include Google::Apis::Core::Hashable
554
+
555
+ # The resource names of all evaluated Consents mapped to their evaluation.
556
+ # Corresponds to the JSON property `consentDetails`
557
+ # @return [Hash<String,Google::Apis::HealthcareV1beta1::ConsentEvaluation>]
558
+ attr_accessor :consent_details
559
+
560
+ # Whether the requested data is consented for the given use.
561
+ # Corresponds to the JSON property `consented`
562
+ # @return [Boolean]
563
+ attr_accessor :consented
564
+ alias_method :consented?, :consented
565
+
566
+ def initialize(**args)
567
+ update!(**args)
568
+ end
569
+
570
+ # Update properties of this object
571
+ def update!(**args)
572
+ @consent_details = args[:consent_details] if args.key?(:consent_details)
573
+ @consented = args[:consented] if args.key?(:consented)
574
+ end
575
+ end
576
+
362
577
  # Cloud Healthcare API resource.
363
578
  class CloudHealthcareSource
364
579
  include Google::Apis::Core::Hashable
@@ -378,6 +593,232 @@ module Google
378
593
  end
379
594
  end
380
595
 
596
+ # Represents an end user's consent.
597
+ class Consent
598
+ include Google::Apis::Core::Hashable
599
+
600
+ # Required. The resource name of the consent artifact that contains proof of the
601
+ # end user's consent, of the form `projects/`project_id`/locations/`location_id`/
602
+ # datasets/`dataset_id`/consentStores/`consent_store_id`/consentArtifacts/`
603
+ # consent_artifact_id``.
604
+ # Corresponds to the JSON property `consentArtifact`
605
+ # @return [String]
606
+ attr_accessor :consent_artifact
607
+
608
+ # Timestamp in UTC of when this consent is considered expired.
609
+ # Corresponds to the JSON property `expireTime`
610
+ # @return [String]
611
+ attr_accessor :expire_time
612
+
613
+ # Resource name of the Consent, of the form `projects/`project_id`/locations/`
614
+ # location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/consents/`
615
+ # consent_id``.
616
+ # Corresponds to the JSON property `name`
617
+ # @return [String]
618
+ attr_accessor :name
619
+
620
+ # Represents an end user's consent in terms of the resources that can be
621
+ # accessed and under what conditions.
622
+ # Corresponds to the JSON property `policies`
623
+ # @return [Array<Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1ConsentPolicy>]
624
+ attr_accessor :policies
625
+
626
+ # Output only. The timestamp that the revision was created.
627
+ # Corresponds to the JSON property `revisionCreateTime`
628
+ # @return [String]
629
+ attr_accessor :revision_create_time
630
+
631
+ # Output only. The revision ID of the consent. The format is an 8-character
632
+ # hexadecimal string. Refer to a specific revision of a Consent by appending `@`
633
+ # revision_id`` to the Consent's resource name.
634
+ # Corresponds to the JSON property `revisionId`
635
+ # @return [String]
636
+ attr_accessor :revision_id
637
+
638
+ # Indicates the current state of this consent.
639
+ # Corresponds to the JSON property `state`
640
+ # @return [String]
641
+ attr_accessor :state
642
+
643
+ # Input only. The time to live for this consent from when it is created.
644
+ # Corresponds to the JSON property `ttl`
645
+ # @return [String]
646
+ attr_accessor :ttl
647
+
648
+ # Required. User's UUID provided by the client.
649
+ # Corresponds to the JSON property `userId`
650
+ # @return [String]
651
+ attr_accessor :user_id
652
+
653
+ def initialize(**args)
654
+ update!(**args)
655
+ end
656
+
657
+ # Update properties of this object
658
+ def update!(**args)
659
+ @consent_artifact = args[:consent_artifact] if args.key?(:consent_artifact)
660
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
661
+ @name = args[:name] if args.key?(:name)
662
+ @policies = args[:policies] if args.key?(:policies)
663
+ @revision_create_time = args[:revision_create_time] if args.key?(:revision_create_time)
664
+ @revision_id = args[:revision_id] if args.key?(:revision_id)
665
+ @state = args[:state] if args.key?(:state)
666
+ @ttl = args[:ttl] if args.key?(:ttl)
667
+ @user_id = args[:user_id] if args.key?(:user_id)
668
+ end
669
+ end
670
+
671
+ # Proof of an end user's consent.
672
+ class ConsentArtifact
673
+ include Google::Apis::Core::Hashable
674
+
675
+ # Screenshots of the consent content.
676
+ # Corresponds to the JSON property `consentContentScreenshots`
677
+ # @return [Array<Google::Apis::HealthcareV1beta1::Image>]
678
+ attr_accessor :consent_content_screenshots
679
+
680
+ # An string indicating the version of the consent content.
681
+ # Corresponds to the JSON property `consentContentVersion`
682
+ # @return [String]
683
+ attr_accessor :consent_content_version
684
+
685
+ # User signature.
686
+ # Corresponds to the JSON property `guardianSignature`
687
+ # @return [Google::Apis::HealthcareV1beta1::Signature]
688
+ attr_accessor :guardian_signature
689
+
690
+ # Metadata associated with the consent artifact. For example, the consent locale
691
+ # or user agent version.
692
+ # Corresponds to the JSON property `metadata`
693
+ # @return [Hash<String,String>]
694
+ attr_accessor :metadata
695
+
696
+ # Resource name of the Consent artifact, of the form `projects/`project_id`/
697
+ # locations/`location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/
698
+ # consentArtifacts/`consent_artifact_id``.
699
+ # Corresponds to the JSON property `name`
700
+ # @return [String]
701
+ attr_accessor :name
702
+
703
+ # Required. User's UUID provided by the client.
704
+ # Corresponds to the JSON property `userId`
705
+ # @return [String]
706
+ attr_accessor :user_id
707
+
708
+ # User signature.
709
+ # Corresponds to the JSON property `userSignature`
710
+ # @return [Google::Apis::HealthcareV1beta1::Signature]
711
+ attr_accessor :user_signature
712
+
713
+ # User signature.
714
+ # Corresponds to the JSON property `witnessSignature`
715
+ # @return [Google::Apis::HealthcareV1beta1::Signature]
716
+ attr_accessor :witness_signature
717
+
718
+ def initialize(**args)
719
+ update!(**args)
720
+ end
721
+
722
+ # Update properties of this object
723
+ def update!(**args)
724
+ @consent_content_screenshots = args[:consent_content_screenshots] if args.key?(:consent_content_screenshots)
725
+ @consent_content_version = args[:consent_content_version] if args.key?(:consent_content_version)
726
+ @guardian_signature = args[:guardian_signature] if args.key?(:guardian_signature)
727
+ @metadata = args[:metadata] if args.key?(:metadata)
728
+ @name = args[:name] if args.key?(:name)
729
+ @user_id = args[:user_id] if args.key?(:user_id)
730
+ @user_signature = args[:user_signature] if args.key?(:user_signature)
731
+ @witness_signature = args[:witness_signature] if args.key?(:witness_signature)
732
+ end
733
+ end
734
+
735
+ # The detailed evaluation of a particular Consent.
736
+ class ConsentEvaluation
737
+ include Google::Apis::Core::Hashable
738
+
739
+ # The evaluation result.
740
+ # Corresponds to the JSON property `evaluationResult`
741
+ # @return [String]
742
+ attr_accessor :evaluation_result
743
+
744
+ def initialize(**args)
745
+ update!(**args)
746
+ end
747
+
748
+ # Update properties of this object
749
+ def update!(**args)
750
+ @evaluation_result = args[:evaluation_result] if args.key?(:evaluation_result)
751
+ end
752
+ end
753
+
754
+ # List of resource names of Consent resources.
755
+ class ConsentList
756
+ include Google::Apis::Core::Hashable
757
+
758
+ # The resource names of the Consents to evaluate against, of the form `projects/`
759
+ # project_id`/locations/`location_id`/datasets/`dataset_id`/consentStores/`
760
+ # consent_store_id`/consents/`consent_id``.
761
+ # Corresponds to the JSON property `consents`
762
+ # @return [Array<String>]
763
+ attr_accessor :consents
764
+
765
+ def initialize(**args)
766
+ update!(**args)
767
+ end
768
+
769
+ # Update properties of this object
770
+ def update!(**args)
771
+ @consents = args[:consents] if args.key?(:consents)
772
+ end
773
+ end
774
+
775
+ # Represents a Consent store.
776
+ class ConsentStore
777
+ include Google::Apis::Core::Hashable
778
+
779
+ # Default time to live for consents in this store. Must be at least 24 hours.
780
+ # Updating this field will not affect the expiration time of existing consents.
781
+ # Corresponds to the JSON property `defaultConsentTtl`
782
+ # @return [String]
783
+ attr_accessor :default_consent_ttl
784
+
785
+ # If true, UpdateConsent creates the consent if it does not already exist.
786
+ # Corresponds to the JSON property `enableConsentCreateOnUpdate`
787
+ # @return [Boolean]
788
+ attr_accessor :enable_consent_create_on_update
789
+ alias_method :enable_consent_create_on_update?, :enable_consent_create_on_update
790
+
791
+ # User-supplied key-value pairs used to organize Consent stores. Label keys must
792
+ # be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128
793
+ # bytes, and must conform to the following PCRE regular expression: \p`Ll`\p`Lo``
794
+ # 0,62` Label values must be between 1 and 63 characters long, have a UTF-8
795
+ # encoding of maximum 128 bytes, and must conform to the following PCRE regular
796
+ # expression: [\p`Ll`\p`Lo`\p`N`_-]`0,63` No more than 64 labels can be
797
+ # associated with a given store.
798
+ # Corresponds to the JSON property `labels`
799
+ # @return [Hash<String,String>]
800
+ attr_accessor :labels
801
+
802
+ # Resource name of the Consent store, of the form `projects/`project_id`/
803
+ # locations/`location_id`/datasets/`dataset_id`/consentStores/`consent_store_id``
804
+ # .
805
+ # Corresponds to the JSON property `name`
806
+ # @return [String]
807
+ attr_accessor :name
808
+
809
+ def initialize(**args)
810
+ update!(**args)
811
+ end
812
+
813
+ # Update properties of this object
814
+ def update!(**args)
815
+ @default_consent_ttl = args[:default_consent_ttl] if args.key?(:default_consent_ttl)
816
+ @enable_consent_create_on_update = args[:enable_consent_create_on_update] if args.key?(:enable_consent_create_on_update)
817
+ @labels = args[:labels] if args.key?(:labels)
818
+ @name = args[:name] if args.key?(:name)
819
+ end
820
+ end
821
+
381
822
  # Creates a new message.
382
823
  class CreateMessageRequest
383
824
  include Google::Apis::Core::Hashable
@@ -995,6 +1436,89 @@ module Google
995
1436
  end
996
1437
  end
997
1438
 
1439
+ # Evaluate an end user's Consents for all matching User data mappings.
1440
+ class EvaluateUserConsentsRequest
1441
+ include Google::Apis::Core::Hashable
1442
+
1443
+ # List of resource names of Consent resources.
1444
+ # Corresponds to the JSON property `consentList`
1445
+ # @return [Google::Apis::HealthcareV1beta1::ConsentList]
1446
+ attr_accessor :consent_list
1447
+
1448
+ # Limit on the number of user data mappings to return in a single response. If
1449
+ # zero the default page size of 100 is used.
1450
+ # Corresponds to the JSON property `pageSize`
1451
+ # @return [Fixnum]
1452
+ attr_accessor :page_size
1453
+
1454
+ # Token to retrieve the next page of results to get the first page.
1455
+ # Corresponds to the JSON property `pageToken`
1456
+ # @return [String]
1457
+ attr_accessor :page_token
1458
+
1459
+ # The values of request attributes associated with this access request.
1460
+ # Corresponds to the JSON property `requestAttributes`
1461
+ # @return [Hash<String,String>]
1462
+ attr_accessor :request_attributes
1463
+
1464
+ # The values of resources attributes associated with the type of data being
1465
+ # requested. If no values are specified, then all data types are queried.
1466
+ # Corresponds to the JSON property `resourceAttributes`
1467
+ # @return [Hash<String,String>]
1468
+ attr_accessor :resource_attributes
1469
+
1470
+ # The view for EvaluateUserConsentsResponse.
1471
+ # Corresponds to the JSON property `responseView`
1472
+ # @return [String]
1473
+ attr_accessor :response_view
1474
+
1475
+ # Required. User ID to evaluate consents for.
1476
+ # Corresponds to the JSON property `userId`
1477
+ # @return [String]
1478
+ attr_accessor :user_id
1479
+
1480
+ def initialize(**args)
1481
+ update!(**args)
1482
+ end
1483
+
1484
+ # Update properties of this object
1485
+ def update!(**args)
1486
+ @consent_list = args[:consent_list] if args.key?(:consent_list)
1487
+ @page_size = args[:page_size] if args.key?(:page_size)
1488
+ @page_token = args[:page_token] if args.key?(:page_token)
1489
+ @request_attributes = args[:request_attributes] if args.key?(:request_attributes)
1490
+ @resource_attributes = args[:resource_attributes] if args.key?(:resource_attributes)
1491
+ @response_view = args[:response_view] if args.key?(:response_view)
1492
+ @user_id = args[:user_id] if args.key?(:user_id)
1493
+ end
1494
+ end
1495
+
1496
+ # Evaluate an end user's Consents for all matching User data mappings.
1497
+ class EvaluateUserConsentsResponse
1498
+ include Google::Apis::Core::Hashable
1499
+
1500
+ # Token to retrieve the next page of results or empty if there are no more
1501
+ # results in the list. This token is valid for 72 hours after it is created.
1502
+ # Corresponds to the JSON property `nextPageToken`
1503
+ # @return [String]
1504
+ attr_accessor :next_page_token
1505
+
1506
+ # The consent evaluation result for each `data_id`.
1507
+ # Corresponds to the JSON property `results`
1508
+ # @return [Array<Google::Apis::HealthcareV1beta1::Result>]
1509
+ attr_accessor :results
1510
+
1511
+ def initialize(**args)
1512
+ update!(**args)
1513
+ end
1514
+
1515
+ # Update properties of this object
1516
+ def update!(**args)
1517
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1518
+ @results = args[:results] if args.key?(:results)
1519
+ end
1520
+ end
1521
+
998
1522
  # Deprecated. Response for failed annotation export operations. This structure
999
1523
  # is included in error details upon operation completion.
1000
1524
  class ExportAnnotationsErrorDetails
@@ -1602,20 +2126,83 @@ module Google
1602
2126
  class GoogleCloudHealthcareV1beta1AnnotationGcsSource
1603
2127
  include Google::Apis::Core::Hashable
1604
2128
 
1605
- # Points to a Cloud Storage URI containing file(s) with content only. The URI
1606
- # must be in the following format: `gs://`bucket_id`/`object_id``. The URI can
1607
- # include wildcards in `object_id` and thus identify multiple files. Supported
1608
- # wildcards: '*' to match 0 or more non-separator characters '**' to match 0 or
1609
- # more characters (including separators). Must be used at the end of a path and
1610
- # with no other wildcards in the path. Can also be used with a file extension (
1611
- # such as .dcm), which imports all files with the extension in the specified
1612
- # directory and its sub-directories. For example, `gs://my-bucket/my-directory/**
1613
- # .json` imports all files with .json extensions in `my-directory/` and its sub-
1614
- # directories. '?' to match 1 character All other URI formats are invalid. Files
1615
- # matching the wildcard are expected to contain content only, no metadata.
1616
- # Corresponds to the JSON property `uri`
1617
- # @return [String]
1618
- attr_accessor :uri
2129
+ # Points to a Cloud Storage URI containing file(s) with content only. The URI
2130
+ # must be in the following format: `gs://`bucket_id`/`object_id``. The URI can
2131
+ # include wildcards in `object_id` and thus identify multiple files. Supported
2132
+ # wildcards: '*' to match 0 or more non-separator characters '**' to match 0 or
2133
+ # more characters (including separators). Must be used at the end of a path and
2134
+ # with no other wildcards in the path. Can also be used with a file extension (
2135
+ # such as .dcm), which imports all files with the extension in the specified
2136
+ # directory and its sub-directories. For example, `gs://my-bucket/my-directory/**
2137
+ # .json` imports all files with .json extensions in `my-directory/` and its sub-
2138
+ # directories. '?' to match 1 character All other URI formats are invalid. Files
2139
+ # matching the wildcard are expected to contain content only, no metadata.
2140
+ # Corresponds to the JSON property `uri`
2141
+ # @return [String]
2142
+ attr_accessor :uri
2143
+
2144
+ def initialize(**args)
2145
+ update!(**args)
2146
+ end
2147
+
2148
+ # Update properties of this object
2149
+ def update!(**args)
2150
+ @uri = args[:uri] if args.key?(:uri)
2151
+ end
2152
+ end
2153
+
2154
+ # The Cloud Storage location for export.
2155
+ class GoogleCloudHealthcareV1beta1ConsentGcsDestination
2156
+ include Google::Apis::Core::Hashable
2157
+
2158
+ # URI for a Cloud Storage directory where the server writes result files, in the
2159
+ # format `gs://`bucket-id`/`path/to/destination/dir``. If there is no trailing
2160
+ # slash, the service appends one when composing the object path. The user is
2161
+ # responsible for creating the Cloud Storage bucket and directory referenced in `
2162
+ # uri_prefix`.
2163
+ # Corresponds to the JSON property `uriPrefix`
2164
+ # @return [String]
2165
+ attr_accessor :uri_prefix
2166
+
2167
+ def initialize(**args)
2168
+ update!(**args)
2169
+ end
2170
+
2171
+ # Update properties of this object
2172
+ def update!(**args)
2173
+ @uri_prefix = args[:uri_prefix] if args.key?(:uri_prefix)
2174
+ end
2175
+ end
2176
+
2177
+ # Represents an end user's consent in terms of the resources that can be
2178
+ # accessed and under what conditions.
2179
+ class GoogleCloudHealthcareV1beta1ConsentPolicy
2180
+ include Google::Apis::Core::Hashable
2181
+
2182
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
2183
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
2184
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
2185
+ # "Summary size limit" description: "Determines if a summary is less than 100
2186
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
2187
+ # Requestor is owner" description: "Determines if requestor is the document
2188
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
2189
+ # Logic): title: "Public documents" description: "Determine whether the document
2190
+ # should be publicly visible" expression: "document.type != 'private' &&
2191
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
2192
+ # string" description: "Create a notification string with a timestamp."
2193
+ # expression: "'New message received at ' + string(document.create_time)" The
2194
+ # exact variables and functions that may be referenced within an expression are
2195
+ # determined by the service that evaluates it. See the service documentation for
2196
+ # additional information.
2197
+ # Corresponds to the JSON property `authorizationRule`
2198
+ # @return [Google::Apis::HealthcareV1beta1::Expr]
2199
+ attr_accessor :authorization_rule
2200
+
2201
+ # The data resources that this policy applies to. A data resource is a match if
2202
+ # it matches all the attributes listed here.
2203
+ # Corresponds to the JSON property `resourceAttributes`
2204
+ # @return [Array<Google::Apis::HealthcareV1beta1::Attribute>]
2205
+ attr_accessor :resource_attributes
1619
2206
 
1620
2207
  def initialize(**args)
1621
2208
  update!(**args)
@@ -1623,7 +2210,8 @@ module Google
1623
2210
 
1624
2211
  # Update properties of this object
1625
2212
  def update!(**args)
1626
- @uri = args[:uri] if args.key?(:uri)
2213
+ @authorization_rule = args[:authorization_rule] if args.key?(:authorization_rule)
2214
+ @resource_attributes = args[:resource_attributes] if args.key?(:resource_attributes)
1627
2215
  end
1628
2216
  end
1629
2217
 
@@ -2275,6 +2863,39 @@ module Google
2275
2863
  end
2276
2864
  end
2277
2865
 
2866
+ # An image.
2867
+ class Image
2868
+ include Google::Apis::Core::Hashable
2869
+
2870
+ # Input only. Points to a Cloud Storage URI containing the image. The URI must
2871
+ # be in the following format: `gs://`bucket_id`/`object_id``. The Cloud
2872
+ # Healthcare API service account must have the `roles/storage.objectViewer`
2873
+ # Cloud IAM role for this Cloud Storage location. The image at this URI is
2874
+ # copied to a Cloud Storage location managed by the Cloud Healthcare API.
2875
+ # Responses to image fetching requests return the image in raw_bytes.
2876
+ # Corresponds to the JSON property `gcsUri`
2877
+ # @return [String]
2878
+ attr_accessor :gcs_uri
2879
+
2880
+ # Image content represented as a stream of bytes. This field is populated when
2881
+ # returned in GetConsentArtifact response, but not included in
2882
+ # CreateConsentArtifact and ListConsentArtifact response.
2883
+ # Corresponds to the JSON property `rawBytes`
2884
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
2885
+ # @return [String]
2886
+ attr_accessor :raw_bytes
2887
+
2888
+ def initialize(**args)
2889
+ update!(**args)
2890
+ end
2891
+
2892
+ # Update properties of this object
2893
+ def update!(**args)
2894
+ @gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
2895
+ @raw_bytes = args[:raw_bytes] if args.key?(:raw_bytes)
2896
+ end
2897
+ end
2898
+
2278
2899
  # Image annotation.
2279
2900
  class ImageAnnotation
2280
2901
  include Google::Apis::Core::Hashable
@@ -2728,6 +3349,141 @@ module Google
2728
3349
  end
2729
3350
  end
2730
3351
 
3352
+ # Lists the Attribute definitions in the given Consent store.
3353
+ class ListAttributeDefinitionsResponse
3354
+ include Google::Apis::Core::Hashable
3355
+
3356
+ # The returned attribute definitions. The maximum number of attributes returned
3357
+ # is determined by the value of page_size in the ListAttributeDefinitionsRequest.
3358
+ # Corresponds to the JSON property `attributeDefinitions`
3359
+ # @return [Array<Google::Apis::HealthcareV1beta1::AttributeDefinition>]
3360
+ attr_accessor :attribute_definitions
3361
+
3362
+ # Token to retrieve the next page of results or empty if there are no more
3363
+ # results in the list.
3364
+ # Corresponds to the JSON property `nextPageToken`
3365
+ # @return [String]
3366
+ attr_accessor :next_page_token
3367
+
3368
+ def initialize(**args)
3369
+ update!(**args)
3370
+ end
3371
+
3372
+ # Update properties of this object
3373
+ def update!(**args)
3374
+ @attribute_definitions = args[:attribute_definitions] if args.key?(:attribute_definitions)
3375
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3376
+ end
3377
+ end
3378
+
3379
+ # Lists the Consent artifacts in the given Consent store.
3380
+ class ListConsentArtifactsResponse
3381
+ include Google::Apis::Core::Hashable
3382
+
3383
+ # The returned consent artifacts. The maximum number of artifacts returned is
3384
+ # determined by the value of page_size in the ListConsentArtifactsRequest.
3385
+ # Corresponds to the JSON property `consentArtifacts`
3386
+ # @return [Array<Google::Apis::HealthcareV1beta1::ConsentArtifact>]
3387
+ attr_accessor :consent_artifacts
3388
+
3389
+ # Token to retrieve the next page of results or empty if there are no more
3390
+ # results in the list.
3391
+ # Corresponds to the JSON property `nextPageToken`
3392
+ # @return [String]
3393
+ attr_accessor :next_page_token
3394
+
3395
+ def initialize(**args)
3396
+ update!(**args)
3397
+ end
3398
+
3399
+ # Update properties of this object
3400
+ def update!(**args)
3401
+ @consent_artifacts = args[:consent_artifacts] if args.key?(:consent_artifacts)
3402
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3403
+ end
3404
+ end
3405
+
3406
+ # Lists the revisions of the given Consent in reverse chronological order.
3407
+ class ListConsentRevisionsResponse
3408
+ include Google::Apis::Core::Hashable
3409
+
3410
+ # The returned consent revisions. The maximum number of revisions returned is
3411
+ # determined by the value of `page_size` in the ListConsentRevisionsRequest.
3412
+ # Corresponds to the JSON property `consents`
3413
+ # @return [Array<Google::Apis::HealthcareV1beta1::Consent>]
3414
+ attr_accessor :consents
3415
+
3416
+ # Token to retrieve the next page of results or empty if there are no more
3417
+ # results in the list.
3418
+ # Corresponds to the JSON property `nextPageToken`
3419
+ # @return [String]
3420
+ attr_accessor :next_page_token
3421
+
3422
+ def initialize(**args)
3423
+ update!(**args)
3424
+ end
3425
+
3426
+ # Update properties of this object
3427
+ def update!(**args)
3428
+ @consents = args[:consents] if args.key?(:consents)
3429
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3430
+ end
3431
+ end
3432
+
3433
+ # Lists the Consent stores in the given dataset.
3434
+ class ListConsentStoresResponse
3435
+ include Google::Apis::Core::Hashable
3436
+
3437
+ # The returned Consent stores. The maximum number of stores returned is
3438
+ # determined by the value of page_size in the ListConsentStoresRequest.
3439
+ # Corresponds to the JSON property `consentStores`
3440
+ # @return [Array<Google::Apis::HealthcareV1beta1::ConsentStore>]
3441
+ attr_accessor :consent_stores
3442
+
3443
+ # Token to retrieve the next page of results or empty if there are no more
3444
+ # results in the list.
3445
+ # Corresponds to the JSON property `nextPageToken`
3446
+ # @return [String]
3447
+ attr_accessor :next_page_token
3448
+
3449
+ def initialize(**args)
3450
+ update!(**args)
3451
+ end
3452
+
3453
+ # Update properties of this object
3454
+ def update!(**args)
3455
+ @consent_stores = args[:consent_stores] if args.key?(:consent_stores)
3456
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3457
+ end
3458
+ end
3459
+
3460
+ # Lists the Consents in the given Consent store.
3461
+ class ListConsentsResponse
3462
+ include Google::Apis::Core::Hashable
3463
+
3464
+ # The returned consents. The maximum number of consents returned is determined
3465
+ # by the value of page_size in the ListConsentsRequest.
3466
+ # Corresponds to the JSON property `consents`
3467
+ # @return [Array<Google::Apis::HealthcareV1beta1::Consent>]
3468
+ attr_accessor :consents
3469
+
3470
+ # Token to retrieve the next page of results or empty if there are no more
3471
+ # results in the list.
3472
+ # Corresponds to the JSON property `nextPageToken`
3473
+ # @return [String]
3474
+ attr_accessor :next_page_token
3475
+
3476
+ def initialize(**args)
3477
+ update!(**args)
3478
+ end
3479
+
3480
+ # Update properties of this object
3481
+ def update!(**args)
3482
+ @consents = args[:consents] if args.key?(:consents)
3483
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3484
+ end
3485
+ end
3486
+
2731
3487
  # Lists the available datasets.
2732
3488
  class ListDatasetsResponse
2733
3489
  include Google::Apis::Core::Hashable
@@ -2912,6 +3668,34 @@ module Google
2912
3668
  end
2913
3669
  end
2914
3670
 
3671
+ # Lists the User data mappings in the given Consent store.
3672
+ class ListUserDataMappingsResponse
3673
+ include Google::Apis::Core::Hashable
3674
+
3675
+ # Token to retrieve the next page of results or empty if there are no more
3676
+ # results in the list.
3677
+ # Corresponds to the JSON property `nextPageToken`
3678
+ # @return [String]
3679
+ attr_accessor :next_page_token
3680
+
3681
+ # The returned user data mappings. The maximum number of user data mappings
3682
+ # returned is determined by the value of page_size in the
3683
+ # ListUserDataMappingsRequest.
3684
+ # Corresponds to the JSON property `userDataMappings`
3685
+ # @return [Array<Google::Apis::HealthcareV1beta1::UserDataMapping>]
3686
+ attr_accessor :user_data_mappings
3687
+
3688
+ def initialize(**args)
3689
+ update!(**args)
3690
+ end
3691
+
3692
+ # Update properties of this object
3693
+ def update!(**args)
3694
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3695
+ @user_data_mappings = args[:user_data_mappings] if args.key?(:user_data_mappings)
3696
+ end
3697
+ end
3698
+
2915
3699
  # A resource that represents Google Cloud Platform location.
2916
3700
  class Location
2917
3701
  include Google::Apis::Core::Hashable
@@ -3059,7 +3843,9 @@ module Google
3059
3843
  # that send notifications to fail. If a notification can't be published to Cloud
3060
3844
  # Pub/Sub, errors are logged to Cloud Logging (see [Viewing logs](/healthcare/
3061
3845
  # docs/how-tos/logging)). If the number of errors exceeds a certain rate, some
3062
- # aren't submitted.
3846
+ # aren't submitted. Note that not all operations trigger notifications, see [
3847
+ # Configuring Pub/Sub notifications](https://cloud.google.com/healthcare/docs/
3848
+ # how-tos/pubsub) for specific details.
3063
3849
  # Corresponds to the JSON property `pubsubTopic`
3064
3850
  # @return [String]
3065
3851
  attr_accessor :pubsub_topic
@@ -3396,6 +4182,43 @@ module Google
3396
4182
  end
3397
4183
  end
3398
4184
 
4185
+ # Queries all data_ids that are consented for a given use in the given Consent
4186
+ # store and writes them to a specified destination. The returned Operation
4187
+ # includes a progress counter for the number of User data mappings processed.
4188
+ # Errors are logged to Cloud Logging (see [Viewing logs] (/healthcare/docs/how-
4189
+ # tos/logging) and [QueryAccessibleData] for a sample log entry).
4190
+ class QueryAccessibleDataRequest
4191
+ include Google::Apis::Core::Hashable
4192
+
4193
+ # The Cloud Storage location for export.
4194
+ # Corresponds to the JSON property `gcsDestination`
4195
+ # @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1ConsentGcsDestination]
4196
+ attr_accessor :gcs_destination
4197
+
4198
+ # The values of request attributes associated with this access request.
4199
+ # Corresponds to the JSON property `requestAttributes`
4200
+ # @return [Hash<String,String>]
4201
+ attr_accessor :request_attributes
4202
+
4203
+ # The values of resources attributes associated with the type of data being
4204
+ # requested. If no values are specified, then all data types are included in the
4205
+ # output.
4206
+ # Corresponds to the JSON property `resourceAttributes`
4207
+ # @return [Hash<String,String>]
4208
+ attr_accessor :resource_attributes
4209
+
4210
+ def initialize(**args)
4211
+ update!(**args)
4212
+ end
4213
+
4214
+ # Update properties of this object
4215
+ def update!(**args)
4216
+ @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
4217
+ @request_attributes = args[:request_attributes] if args.key?(:request_attributes)
4218
+ @resource_attributes = args[:resource_attributes] if args.key?(:resource_attributes)
4219
+ end
4220
+ end
4221
+
3399
4222
  # Define how to redact sensitive values. Default behaviour is erase. For example,
3400
4223
  # "My name is Jane." becomes "My name is ."
3401
4224
  class RedactConfig
@@ -3410,6 +4233,31 @@ module Google
3410
4233
  end
3411
4234
  end
3412
4235
 
4236
+ # Rejects the latest revision of the specified Consent by committing a new
4237
+ # revision with `state` updated to `REJECTED`. If the latest revision of the
4238
+ # given consent is in the `REJECTED` state, no new revision is committed.
4239
+ class RejectConsentRequest
4240
+ include Google::Apis::Core::Hashable
4241
+
4242
+ # The resource name of the consent artifact that contains proof of the end user'
4243
+ # s rejection of the draft consent, of the form `projects/`project_id`/locations/
4244
+ # `location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/
4245
+ # consentArtifacts/`consent_artifact_id``. If the draft consent had a consent
4246
+ # artifact, this consent artifact overwrites it.
4247
+ # Corresponds to the JSON property `consentArtifact`
4248
+ # @return [String]
4249
+ attr_accessor :consent_artifact
4250
+
4251
+ def initialize(**args)
4252
+ update!(**args)
4253
+ end
4254
+
4255
+ # Update properties of this object
4256
+ def update!(**args)
4257
+ @consent_artifact = args[:consent_artifact] if args.key?(:consent_artifact)
4258
+ end
4259
+ end
4260
+
3413
4261
  # When using the INSPECT_AND_TRANSFORM action, each match is replaced with the
3414
4262
  # name of the info_type. For example, "My name is Jane" becomes "My name is [
3415
4263
  # PERSON_NAME]." The TRANSFORM action is equivalent to redacting.
@@ -3463,6 +4311,62 @@ module Google
3463
4311
  end
3464
4312
  end
3465
4313
 
4314
+ # The consent evaluation result for a single `data_id`.
4315
+ class Result
4316
+ include Google::Apis::Core::Hashable
4317
+
4318
+ # The resource names of all evaluated Consents mapped to their evaluation.
4319
+ # Corresponds to the JSON property `consentDetails`
4320
+ # @return [Hash<String,Google::Apis::HealthcareV1beta1::ConsentEvaluation>]
4321
+ attr_accessor :consent_details
4322
+
4323
+ # Whether the requested data is consented for the given use.
4324
+ # Corresponds to the JSON property `consented`
4325
+ # @return [Boolean]
4326
+ attr_accessor :consented
4327
+ alias_method :consented?, :consented
4328
+
4329
+ # The unique identifier of the data the consents were checked for.
4330
+ # Corresponds to the JSON property `dataId`
4331
+ # @return [String]
4332
+ attr_accessor :data_id
4333
+
4334
+ def initialize(**args)
4335
+ update!(**args)
4336
+ end
4337
+
4338
+ # Update properties of this object
4339
+ def update!(**args)
4340
+ @consent_details = args[:consent_details] if args.key?(:consent_details)
4341
+ @consented = args[:consented] if args.key?(:consented)
4342
+ @data_id = args[:data_id] if args.key?(:data_id)
4343
+ end
4344
+ end
4345
+
4346
+ # Revokes the latest revision of the specified Consent by committing a new
4347
+ # revision with `state` updated to `REVOKED`. If the latest revision of the
4348
+ # given consent is in the `REVOKED` state, no new revision is committed.
4349
+ class RevokeConsentRequest
4350
+ include Google::Apis::Core::Hashable
4351
+
4352
+ # The resource name of the consent artifact that contains proof of the end user'
4353
+ # s revocation of the consent, of the form `projects/`project_id`/locations/`
4354
+ # location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/
4355
+ # consentArtifacts/`consent_artifact_id``.
4356
+ # Corresponds to the JSON property `consentArtifact`
4357
+ # @return [String]
4358
+ attr_accessor :consent_artifact
4359
+
4360
+ def initialize(**args)
4361
+ update!(**args)
4362
+ end
4363
+
4364
+ # Update properties of this object
4365
+ def update!(**args)
4366
+ @consent_artifact = args[:consent_artifact] if args.key?(:consent_artifact)
4367
+ end
4368
+ end
4369
+
3466
4370
  # Configuration for the FHIR BigQuery schema. Determines how the server
3467
4371
  # generates the schema.
3468
4372
  class SchemaConfig
@@ -3787,6 +4691,44 @@ module Google
3787
4691
  end
3788
4692
  end
3789
4693
 
4694
+ # User signature.
4695
+ class Signature
4696
+ include Google::Apis::Core::Hashable
4697
+
4698
+ # An image.
4699
+ # Corresponds to the JSON property `image`
4700
+ # @return [Google::Apis::HealthcareV1beta1::Image]
4701
+ attr_accessor :image
4702
+
4703
+ # Metadata associated with the user's signature. For example, the user's name or
4704
+ # the user's title.
4705
+ # Corresponds to the JSON property `metadata`
4706
+ # @return [Hash<String,String>]
4707
+ attr_accessor :metadata
4708
+
4709
+ # Timestamp of the signature.
4710
+ # Corresponds to the JSON property `signatureTime`
4711
+ # @return [String]
4712
+ attr_accessor :signature_time
4713
+
4714
+ # User's UUID provided by the client.
4715
+ # Corresponds to the JSON property `userId`
4716
+ # @return [String]
4717
+ attr_accessor :user_id
4718
+
4719
+ def initialize(**args)
4720
+ update!(**args)
4721
+ end
4722
+
4723
+ # Update properties of this object
4724
+ def update!(**args)
4725
+ @image = args[:image] if args.key?(:image)
4726
+ @metadata = args[:metadata] if args.key?(:metadata)
4727
+ @signature_time = args[:signature_time] if args.key?(:signature_time)
4728
+ @user_id = args[:user_id] if args.key?(:user_id)
4729
+ end
4730
+ end
4731
+
3790
4732
  # The `Status` type defines a logical error model that is suitable for different
3791
4733
  # programming environments, including REST APIs and RPC APIs. It is used by [
3792
4734
  # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
@@ -3968,6 +4910,62 @@ module Google
3968
4910
  end
3969
4911
  end
3970
4912
 
4913
+ # Maps a user data entry to its end user and Attributes.
4914
+ class UserDataMapping
4915
+ include Google::Apis::Core::Hashable
4916
+
4917
+ # Output only. Indicates the time when this data mapping was archived.
4918
+ # Corresponds to the JSON property `archiveTime`
4919
+ # @return [String]
4920
+ attr_accessor :archive_time
4921
+
4922
+ # Output only. Indicates whether this data mapping is archived.
4923
+ # Corresponds to the JSON property `archived`
4924
+ # @return [Boolean]
4925
+ attr_accessor :archived
4926
+ alias_method :archived?, :archived
4927
+
4928
+ # Required. A unique identifier for the mapped data.
4929
+ # Corresponds to the JSON property `dataId`
4930
+ # @return [String]
4931
+ attr_accessor :data_id
4932
+
4933
+ # Resource name of the User data mapping, of the form `projects/`project_id`/
4934
+ # locations/`location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/
4935
+ # userDataMappings/`user_data_mapping_id``.
4936
+ # Corresponds to the JSON property `name`
4937
+ # @return [String]
4938
+ attr_accessor :name
4939
+
4940
+ # Attributes of end user data. Each attribute can have exactly one value
4941
+ # specified. Only explicitly set attributes are displayed here. Attribute
4942
+ # definitions with defaults set implicitly apply to these User data mappings.
4943
+ # Attributes listed here must be single valued, that is, exactly one value is
4944
+ # specified for the field "values" in each Attribute.
4945
+ # Corresponds to the JSON property `resourceAttributes`
4946
+ # @return [Array<Google::Apis::HealthcareV1beta1::Attribute>]
4947
+ attr_accessor :resource_attributes
4948
+
4949
+ # Required. User's UUID provided by the client.
4950
+ # Corresponds to the JSON property `userId`
4951
+ # @return [String]
4952
+ attr_accessor :user_id
4953
+
4954
+ def initialize(**args)
4955
+ update!(**args)
4956
+ end
4957
+
4958
+ # Update properties of this object
4959
+ def update!(**args)
4960
+ @archive_time = args[:archive_time] if args.key?(:archive_time)
4961
+ @archived = args[:archived] if args.key?(:archived)
4962
+ @data_id = args[:data_id] if args.key?(:data_id)
4963
+ @name = args[:name] if args.key?(:name)
4964
+ @resource_attributes = args[:resource_attributes] if args.key?(:resource_attributes)
4965
+ @user_id = args[:user_id] if args.key?(:user_id)
4966
+ end
4967
+ end
4968
+
3971
4969
  # Describes a selector for extracting and matching an MSH field to a value.
3972
4970
  class VersionSource
3973
4971
  include Google::Apis::Core::Hashable