google-apis-healthcare_v1 0.14.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 26a082b9cf2017054d6ba4778e3cf087de052329d33f56d3aac94e3a86735cc3
4
- data.tar.gz: 07b67fb286bada96e51fbd8b14a7750c8ff079e6d8cc8cc5d3a97730e4affc34
3
+ metadata.gz: e726c9e7d3320eaaf40bdd80497daca84991e2fa2b424e9042fbc632de45570a
4
+ data.tar.gz: 140137b27a0583b0e8fd9fea5c33e64e0f2726ad0185a3f73f9c9ce71dc7ed7a
5
5
  SHA512:
6
- metadata.gz: 4b2dd39757a3ac00c0449fc63c7f81c393e94f47282184cbb1be4b83a8da3f3d393305dda8cf099a15a725f6f061bdcc51bee93ac4acaf68e39ebe6a774a14ee
7
- data.tar.gz: 81e07d668bc8b28eb64d50cb274a74775335f1196d9ccf2ea90f8de0e3cdf3f74913e62c014e2a323d7e2ca51d50ee01603152061ba7f6e0f5222884a9f4d3e7
6
+ metadata.gz: ec200da3075df6487d50ddd3f22d67735e16eae85bd4212ce1d7a547411919cd1e698d50370a872b9521b863fb0ea0f5b74a7064aeb522f3f233c5f7674f058e
7
+ data.tar.gz: 8c67a8efa7c027a46300bb7e4f711abea137230e34881c2a645b5f1490272bac50bd7e7491013a50ea41c9a9871d43cf4e19e56ddf68292fae77399fb4b871ab
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-healthcare_v1
2
2
 
3
+ ### v0.18.0 (2021-11-05)
4
+
5
+ * Regenerated from discovery document revision 20211025
6
+
7
+ ### v0.17.0 (2021-10-27)
8
+
9
+ * Regenerated from discovery document revision 20211016
10
+ * Unspecified changes
11
+
12
+ ### v0.16.0 (2021-10-12)
13
+
14
+ * Regenerated from discovery document revision 20211004
15
+
16
+ ### v0.15.0 (2021-10-01)
17
+
18
+ * Regenerated from discovery document revision 20210917
19
+
3
20
  ### v0.14.0 (2021-09-24)
4
21
 
5
22
  * Regenerated from discovery document revision 20210914
data/OVERVIEW.md CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Healthcare service in particular.)
67
67
 
@@ -306,7 +306,7 @@ module Google
306
306
  end
307
307
  end
308
308
 
309
- # Associates `members` with a `role`.
309
+ # Associates `members`, or principals, with a `role`.
310
310
  class Binding
311
311
  include Google::Apis::Core::Hashable
312
312
 
@@ -329,7 +329,7 @@ module Google
329
329
  # @return [Google::Apis::HealthcareV1::Expr]
330
330
  attr_accessor :condition
331
331
 
332
- # Specifies the identities requesting access for a Cloud Platform resource. `
332
+ # Specifies the principals requesting access for a Cloud Platform resource. `
333
333
  # members` can have the following values: * `allUsers`: A special identifier
334
334
  # that represents anyone who is on the internet; with or without a Google
335
335
  # account. * `allAuthenticatedUsers`: A special identifier that represents
@@ -359,8 +359,8 @@ module Google
359
359
  # @return [Array<String>]
360
360
  attr_accessor :members
361
361
 
362
- # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
363
- # , or `roles/owner`.
362
+ # Role that is assigned to the list of `members`, or principals. For example, `
363
+ # roles/viewer`, `roles/editor`, or `roles/owner`.
364
364
  # Corresponds to the JSON property `role`
365
365
  # @return [String]
366
366
  attr_accessor :role
@@ -1374,6 +1374,63 @@ module Google
1374
1374
  end
1375
1375
  end
1376
1376
 
1377
+ # Request to schedule an export.
1378
+ class ExportMessagesRequest
1379
+ include Google::Apis::Core::Hashable
1380
+
1381
+ # The end of the range in `send_time` (MSH.7, https://www.hl7.org/documentcenter/
1382
+ # public_temp_2E58C1F9-1C23-BA17-0C6126475344DA9D/wg/conf/HL7MSH.htm) to process.
1383
+ # If not specified, the time when the export is scheduled is used. This value
1384
+ # has to come after the `start_time` defined below. Only messages whose `
1385
+ # send_time` lies in the range `start_time` (inclusive) to `end_time` (exclusive)
1386
+ # are exported.
1387
+ # Corresponds to the JSON property `endTime`
1388
+ # @return [String]
1389
+ attr_accessor :end_time
1390
+
1391
+ # The Cloud Storage output destination. The Cloud Healthcare Service Agent
1392
+ # requires the `roles/storage.objectAdmin` Cloud IAM roles on the Cloud Storage
1393
+ # location.
1394
+ # Corresponds to the JSON property `gcsDestination`
1395
+ # @return [Google::Apis::HealthcareV1::GcsDestination]
1396
+ attr_accessor :gcs_destination
1397
+
1398
+ # The start of the range in `send_time` (MSH.7, https://www.hl7.org/
1399
+ # documentcenter/public_temp_2E58C1F9-1C23-BA17-0C6126475344DA9D/wg/conf/HL7MSH.
1400
+ # htm) to process. If not specified, the UNIX epoch (1970-01-01T00:00:00Z) is
1401
+ # used. This value has to come before the `end_time` defined below. Only
1402
+ # messages whose `send_time` lies in the range `start_time` (inclusive) to `
1403
+ # end_time` (exclusive) are exported.
1404
+ # Corresponds to the JSON property `startTime`
1405
+ # @return [String]
1406
+ attr_accessor :start_time
1407
+
1408
+ def initialize(**args)
1409
+ update!(**args)
1410
+ end
1411
+
1412
+ # Update properties of this object
1413
+ def update!(**args)
1414
+ @end_time = args[:end_time] if args.key?(:end_time)
1415
+ @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
1416
+ @start_time = args[:start_time] if args.key?(:start_time)
1417
+ end
1418
+ end
1419
+
1420
+ # Final response for the export operation. This structure is included in the
1421
+ # response to describe the detailed outcome.
1422
+ class ExportMessagesResponse
1423
+ include Google::Apis::Core::Hashable
1424
+
1425
+ def initialize(**args)
1426
+ update!(**args)
1427
+ end
1428
+
1429
+ # Update properties of this object
1430
+ def update!(**args)
1431
+ end
1432
+ end
1433
+
1377
1434
  # Request to export resources.
1378
1435
  class ExportResourcesRequest
1379
1436
  include Google::Apis::Core::Hashable
@@ -1500,7 +1557,7 @@ module Google
1500
1557
 
1501
1558
  # Specifies FHIR paths to match and how to transform them. Any field that is not
1502
1559
  # matched by a FieldMetadata is passed through to the output dataset unmodified.
1503
- # All extensions are removed in the output.
1560
+ # All extensions will be processed according to `default_keep_extensions`.
1504
1561
  # Corresponds to the JSON property `fieldMetadataList`
1505
1562
  # @return [Array<Google::Apis::HealthcareV1::FieldMetadata>]
1506
1563
  attr_accessor :field_metadata_list
@@ -1625,6 +1682,11 @@ module Google
1625
1682
  # @return [Array<Google::Apis::HealthcareV1::StreamConfig>]
1626
1683
  attr_accessor :stream_configs
1627
1684
 
1685
+ # Contains the configuration for FHIR profiles and validation.
1686
+ # Corresponds to the JSON property `validationConfig`
1687
+ # @return [Google::Apis::HealthcareV1::ValidationConfig]
1688
+ attr_accessor :validation_config
1689
+
1628
1690
  # Immutable. The FHIR specification version that this FHIR store supports
1629
1691
  # natively. This field is immutable after store creation. Requests are rejected
1630
1692
  # if they contain FHIR resources of a different version. Version is required for
@@ -1647,6 +1709,7 @@ module Google
1647
1709
  @name = args[:name] if args.key?(:name)
1648
1710
  @notification_config = args[:notification_config] if args.key?(:notification_config)
1649
1711
  @stream_configs = args[:stream_configs] if args.key?(:stream_configs)
1712
+ @validation_config = args[:validation_config] if args.key?(:validation_config)
1650
1713
  @version = args[:version] if args.key?(:version)
1651
1714
  end
1652
1715
  end
@@ -1730,6 +1793,71 @@ module Google
1730
1793
  end
1731
1794
  end
1732
1795
 
1796
+ # The Cloud Storage output destination. The Cloud Healthcare Service Agent
1797
+ # requires the `roles/storage.objectAdmin` Cloud IAM roles on the Cloud Storage
1798
+ # location.
1799
+ class GcsDestination
1800
+ include Google::Apis::Core::Hashable
1801
+
1802
+ # The format of the exported HL7v2 message files.
1803
+ # Corresponds to the JSON property `contentStructure`
1804
+ # @return [String]
1805
+ attr_accessor :content_structure
1806
+
1807
+ # Specifies the parts of the Message resource to include in the export. If not
1808
+ # specified, FULL is used.
1809
+ # Corresponds to the JSON property `messageView`
1810
+ # @return [String]
1811
+ attr_accessor :message_view
1812
+
1813
+ # URI of an existing Cloud Storage directory where the server writes result
1814
+ # files, in the format `gs://`bucket-id`/`path/to/destination/dir``. If there is
1815
+ # no trailing slash, the service appends one when composing the object path.
1816
+ # Corresponds to the JSON property `uriPrefix`
1817
+ # @return [String]
1818
+ attr_accessor :uri_prefix
1819
+
1820
+ def initialize(**args)
1821
+ update!(**args)
1822
+ end
1823
+
1824
+ # Update properties of this object
1825
+ def update!(**args)
1826
+ @content_structure = args[:content_structure] if args.key?(:content_structure)
1827
+ @message_view = args[:message_view] if args.key?(:message_view)
1828
+ @uri_prefix = args[:uri_prefix] if args.key?(:uri_prefix)
1829
+ end
1830
+ end
1831
+
1832
+ # Specifies the configuration for importing data from Cloud Storage.
1833
+ class GcsSource
1834
+ include Google::Apis::Core::Hashable
1835
+
1836
+ # Points to a Cloud Storage URI containing file(s) to import. The URI must be in
1837
+ # the following format: `gs://`bucket_id`/`object_id``. The URI can include
1838
+ # wildcards in `object_id` and thus identify multiple files. Supported wildcards:
1839
+ # * `*` to match 0 or more non-separator characters * `**` to match 0 or more
1840
+ # characters (including separators). Must be used at the end of a path and with
1841
+ # no other wildcards in the path. Can also be used with a file extension (such
1842
+ # as .ndjson), which imports all files with the extension in the specified
1843
+ # directory and its sub-directories. For example, `gs://my-bucket/my-directory/**
1844
+ # .ndjson` imports all files with `.ndjson` extensions in `my-directory/` and
1845
+ # its sub-directories. * `?` to match 1 character Files matching the wildcard
1846
+ # are expected to contain content only, no metadata.
1847
+ # Corresponds to the JSON property `uri`
1848
+ # @return [String]
1849
+ attr_accessor :uri
1850
+
1851
+ def initialize(**args)
1852
+ update!(**args)
1853
+ end
1854
+
1855
+ # Update properties of this object
1856
+ def update!(**args)
1857
+ @uri = args[:uri] if args.key?(:uri)
1858
+ end
1859
+ end
1860
+
1733
1861
  # The Cloud Storage location for export.
1734
1862
  class GoogleCloudHealthcareV1ConsentGcsDestination
1735
1863
  include Google::Apis::Core::Hashable
@@ -1825,9 +1953,9 @@ module Google
1825
1953
  class GoogleCloudHealthcareV1DicomBigQueryDestination
1826
1954
  include Google::Apis::Core::Hashable
1827
1955
 
1828
- # If the destination table already exists and this flag is `TRUE`, the table is
1829
- # overwritten by the contents of the DICOM store. If the flag is not set and the
1830
- # destination table already exists, the export call returns an error.
1956
+ # Use `write_disposition` instead. If `write_disposition` is specified, this
1957
+ # parameter is ignored. force=false is equivalent to write_disposition=
1958
+ # WRITE_EMPTY and force=true is equivalent to write_disposition=WRITE_TRUNCATE.
1831
1959
  # Corresponds to the JSON property `force`
1832
1960
  # @return [Boolean]
1833
1961
  attr_accessor :force
@@ -1839,6 +1967,13 @@ module Google
1839
1967
  # @return [String]
1840
1968
  attr_accessor :table_uri
1841
1969
 
1970
+ # Determines whether the existing table in the destination is to be overwritten
1971
+ # or appended to. If a write_disposition is specified, the `force` parameter is
1972
+ # ignored.
1973
+ # Corresponds to the JSON property `writeDisposition`
1974
+ # @return [String]
1975
+ attr_accessor :write_disposition
1976
+
1842
1977
  def initialize(**args)
1843
1978
  update!(**args)
1844
1979
  end
@@ -1847,6 +1982,7 @@ module Google
1847
1982
  def update!(**args)
1848
1983
  @force = args[:force] if args.key?(:force)
1849
1984
  @table_uri = args[:table_uri] if args.key?(:table_uri)
1985
+ @write_disposition = args[:write_disposition] if args.key?(:write_disposition)
1850
1986
  end
1851
1987
  end
1852
1988
 
@@ -2379,6 +2515,40 @@ module Google
2379
2515
  end
2380
2516
  end
2381
2517
 
2518
+ # Request to import messages.
2519
+ class ImportMessagesRequest
2520
+ include Google::Apis::Core::Hashable
2521
+
2522
+ # Specifies the configuration for importing data from Cloud Storage.
2523
+ # Corresponds to the JSON property `gcsSource`
2524
+ # @return [Google::Apis::HealthcareV1::GcsSource]
2525
+ attr_accessor :gcs_source
2526
+
2527
+ def initialize(**args)
2528
+ update!(**args)
2529
+ end
2530
+
2531
+ # Update properties of this object
2532
+ def update!(**args)
2533
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
2534
+ end
2535
+ end
2536
+
2537
+ # Final response of importing messages. This structure is included in the
2538
+ # response to describe the detailed outcome. It is only included when the
2539
+ # operation finishes successfully.
2540
+ class ImportMessagesResponse
2541
+ include Google::Apis::Core::Hashable
2542
+
2543
+ def initialize(**args)
2544
+ update!(**args)
2545
+ end
2546
+
2547
+ # Update properties of this object
2548
+ def update!(**args)
2549
+ end
2550
+ end
2551
+
2382
2552
  # Request to import resources.
2383
2553
  class ImportResourcesRequest
2384
2554
  include Google::Apis::Core::Hashable
@@ -3260,31 +3430,31 @@ module Google
3260
3430
 
3261
3431
  # An Identity and Access Management (IAM) policy, which specifies access
3262
3432
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
3263
- # A `binding` binds one or more `members` to a single `role`. Members can be
3264
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
3265
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
3266
- # role or a user-created custom role. For some types of Google Cloud resources,
3267
- # a `binding` can also specify a `condition`, which is a logical expression that
3268
- # allows access to a resource only if the expression evaluates to `true`. A
3269
- # condition can add constraints based on attributes of the request, the resource,
3270
- # or both. To learn which resources support conditions in their IAM policies,
3271
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
3272
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
3273
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
3274
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
3275
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
3276
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
3277
- # title": "expirable access", "description": "Does not grant access after Sep
3278
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
3279
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
3280
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
3281
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
3282
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
3283
- # roles/resourcemanager.organizationViewer condition: title: expirable access
3284
- # description: Does not grant access after Sep 2020 expression: request.time <
3285
- # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
3286
- # description of IAM and its features, see the [IAM documentation](https://cloud.
3287
- # google.com/iam/docs/).
3433
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
3434
+ # Principals can be user accounts, service accounts, Google groups, and domains (
3435
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
3436
+ # an IAM predefined role or a user-created custom role. For some types of Google
3437
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
3438
+ # logical expression that allows access to a resource only if the expression
3439
+ # evaluates to `true`. A condition can add constraints based on attributes of
3440
+ # the request, the resource, or both. To learn which resources support
3441
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
3442
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
3443
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
3444
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
3445
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
3446
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
3447
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
3448
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
3449
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
3450
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
3451
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
3452
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
3453
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
3454
+ # access description: Does not grant access after Sep 2020 expression: request.
3455
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
3456
+ # a description of IAM and its features, see the [IAM documentation](https://
3457
+ # cloud.google.com/iam/docs/).
3288
3458
  class Policy
3289
3459
  include Google::Apis::Core::Hashable
3290
3460
 
@@ -3293,9 +3463,14 @@ module Google
3293
3463
  # @return [Array<Google::Apis::HealthcareV1::AuditConfig>]
3294
3464
  attr_accessor :audit_configs
3295
3465
 
3296
- # Associates a list of `members` to a `role`. Optionally, may specify a `
3297
- # condition` that determines how and when the `bindings` are applied. Each of
3298
- # the `bindings` must contain at least one member.
3466
+ # Associates a list of `members`, or principals, with a `role`. Optionally, may
3467
+ # specify a `condition` that determines how and when the `bindings` are applied.
3468
+ # Each of the `bindings` must contain at least one principal. The `bindings` in
3469
+ # a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
3470
+ # can be Google groups. Each occurrence of a principal counts towards these
3471
+ # limits. For example, if the `bindings` grant 50 different roles to `user:alice@
3472
+ # example.com`, and not to any other principal, then you can add another 1,450
3473
+ # principals to the `bindings` in the `Policy`.
3299
3474
  # Corresponds to the JSON property `bindings`
3300
3475
  # @return [Array<Google::Apis::HealthcareV1::Binding>]
3301
3476
  attr_accessor :bindings
@@ -3823,31 +3998,31 @@ module Google
3823
3998
 
3824
3999
  # An Identity and Access Management (IAM) policy, which specifies access
3825
4000
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
3826
- # A `binding` binds one or more `members` to a single `role`. Members can be
3827
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
3828
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
3829
- # role or a user-created custom role. For some types of Google Cloud resources,
3830
- # a `binding` can also specify a `condition`, which is a logical expression that
3831
- # allows access to a resource only if the expression evaluates to `true`. A
3832
- # condition can add constraints based on attributes of the request, the resource,
3833
- # or both. To learn which resources support conditions in their IAM policies,
3834
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
3835
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
3836
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
3837
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
3838
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
3839
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
3840
- # title": "expirable access", "description": "Does not grant access after Sep
3841
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
3842
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
3843
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
3844
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
3845
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
3846
- # roles/resourcemanager.organizationViewer condition: title: expirable access
3847
- # description: Does not grant access after Sep 2020 expression: request.time <
3848
- # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
3849
- # description of IAM and its features, see the [IAM documentation](https://cloud.
3850
- # google.com/iam/docs/).
4001
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
4002
+ # Principals can be user accounts, service accounts, Google groups, and domains (
4003
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
4004
+ # an IAM predefined role or a user-created custom role. For some types of Google
4005
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
4006
+ # logical expression that allows access to a resource only if the expression
4007
+ # evaluates to `true`. A condition can add constraints based on attributes of
4008
+ # the request, the resource, or both. To learn which resources support
4009
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
4010
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
4011
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
4012
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
4013
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
4014
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
4015
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
4016
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
4017
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
4018
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
4019
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
4020
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
4021
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
4022
+ # access description: Does not grant access after Sep 2020 expression: request.
4023
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
4024
+ # a description of IAM and its features, see the [IAM documentation](https://
4025
+ # cloud.google.com/iam/docs/).
3851
4026
  # Corresponds to the JSON property `policy`
3852
4027
  # @return [Google::Apis::HealthcareV1::Policy]
3853
4028
  attr_accessor :policy
@@ -4169,6 +4344,52 @@ module Google
4169
4344
  end
4170
4345
  end
4171
4346
 
4347
+ # Contains the configuration for FHIR profiles and validation.
4348
+ class ValidationConfig
4349
+ include Google::Apis::Core::Hashable
4350
+
4351
+ # Whether to disable FHIRPath validation for incoming resources. Set this to
4352
+ # true to disable checking incoming resources for conformance against FHIRPath
4353
+ # requirement defined in the FHIR specification. This property only affects
4354
+ # resource types that do not have profiles configured for them, any rules in
4355
+ # enabled implementation guides will still be enforced.
4356
+ # Corresponds to the JSON property `disableFhirpathValidation`
4357
+ # @return [Boolean]
4358
+ attr_accessor :disable_fhirpath_validation
4359
+ alias_method :disable_fhirpath_validation?, :disable_fhirpath_validation
4360
+
4361
+ # Whether to disable reference type validation for incoming resources. Set this
4362
+ # to true to disable checking incoming resources for conformance against
4363
+ # reference type requirement defined in the FHIR specification. This property
4364
+ # only affects resource types that do not have profiles configured for them, any
4365
+ # rules in enabled implementation guides will still be enforced.
4366
+ # Corresponds to the JSON property `disableReferenceTypeValidation`
4367
+ # @return [Boolean]
4368
+ attr_accessor :disable_reference_type_validation
4369
+ alias_method :disable_reference_type_validation?, :disable_reference_type_validation
4370
+
4371
+ # Whether to disable required fields validation for incoming resources. Set this
4372
+ # to true to disable checking incoming resources for conformance against
4373
+ # required fields requirement defined in the FHIR specification. This property
4374
+ # only affects resource types that do not have profiles configured for them, any
4375
+ # rules in enabled implementation guides will still be enforced.
4376
+ # Corresponds to the JSON property `disableRequiredFieldValidation`
4377
+ # @return [Boolean]
4378
+ attr_accessor :disable_required_field_validation
4379
+ alias_method :disable_required_field_validation?, :disable_required_field_validation
4380
+
4381
+ def initialize(**args)
4382
+ update!(**args)
4383
+ end
4384
+
4385
+ # Update properties of this object
4386
+ def update!(**args)
4387
+ @disable_fhirpath_validation = args[:disable_fhirpath_validation] if args.key?(:disable_fhirpath_validation)
4388
+ @disable_reference_type_validation = args[:disable_reference_type_validation] if args.key?(:disable_reference_type_validation)
4389
+ @disable_required_field_validation = args[:disable_required_field_validation] if args.key?(:disable_required_field_validation)
4390
+ end
4391
+ end
4392
+
4172
4393
  # Describes a selector for extracting and matching an MSH field to a value.
4173
4394
  class VersionSource
4174
4395
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module HealthcareV1
18
18
  # Version of the google-apis-healthcare_v1 gem
19
- GEM_VERSION = "0.14.0"
19
+ GEM_VERSION = "0.18.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210914"
25
+ REVISION = "20211025"
26
26
  end
27
27
  end
28
28
  end
@@ -256,6 +256,18 @@ module Google
256
256
  include Google::Apis::Core::JsonObjectSupport
257
257
  end
258
258
 
259
+ class ExportMessagesRequest
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
265
+ class ExportMessagesResponse
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
259
271
  class ExportResourcesRequest
260
272
  class Representation < Google::Apis::Core::JsonRepresentation; end
261
273
 
@@ -310,6 +322,18 @@ module Google
310
322
  include Google::Apis::Core::JsonObjectSupport
311
323
  end
312
324
 
325
+ class GcsDestination
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
331
+ class GcsSource
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
313
337
  class GoogleCloudHealthcareV1ConsentGcsDestination
314
338
  class Representation < Google::Apis::Core::JsonRepresentation; end
315
339
 
@@ -430,6 +454,18 @@ module Google
430
454
  include Google::Apis::Core::JsonObjectSupport
431
455
  end
432
456
 
457
+ class ImportMessagesRequest
458
+ class Representation < Google::Apis::Core::JsonRepresentation; end
459
+
460
+ include Google::Apis::Core::JsonObjectSupport
461
+ end
462
+
463
+ class ImportMessagesResponse
464
+ class Representation < Google::Apis::Core::JsonRepresentation; end
465
+
466
+ include Google::Apis::Core::JsonObjectSupport
467
+ end
468
+
433
469
  class ImportResourcesRequest
434
470
  class Representation < Google::Apis::Core::JsonRepresentation; end
435
471
 
@@ -760,6 +796,12 @@ module Google
760
796
  include Google::Apis::Core::JsonObjectSupport
761
797
  end
762
798
 
799
+ class ValidationConfig
800
+ class Representation < Google::Apis::Core::JsonRepresentation; end
801
+
802
+ include Google::Apis::Core::JsonObjectSupport
803
+ end
804
+
763
805
  class VersionSource
764
806
  class Representation < Google::Apis::Core::JsonRepresentation; end
765
807
 
@@ -1138,6 +1180,22 @@ module Google
1138
1180
  end
1139
1181
  end
1140
1182
 
1183
+ class ExportMessagesRequest
1184
+ # @private
1185
+ class Representation < Google::Apis::Core::JsonRepresentation
1186
+ property :end_time, as: 'endTime'
1187
+ property :gcs_destination, as: 'gcsDestination', class: Google::Apis::HealthcareV1::GcsDestination, decorator: Google::Apis::HealthcareV1::GcsDestination::Representation
1188
+
1189
+ property :start_time, as: 'startTime'
1190
+ end
1191
+ end
1192
+
1193
+ class ExportMessagesResponse
1194
+ # @private
1195
+ class Representation < Google::Apis::Core::JsonRepresentation
1196
+ end
1197
+ end
1198
+
1141
1199
  class ExportResourcesRequest
1142
1200
  # @private
1143
1201
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1201,6 +1259,8 @@ module Google
1201
1259
 
1202
1260
  collection :stream_configs, as: 'streamConfigs', class: Google::Apis::HealthcareV1::StreamConfig, decorator: Google::Apis::HealthcareV1::StreamConfig::Representation
1203
1261
 
1262
+ property :validation_config, as: 'validationConfig', class: Google::Apis::HealthcareV1::ValidationConfig, decorator: Google::Apis::HealthcareV1::ValidationConfig::Representation
1263
+
1204
1264
  property :version, as: 'version'
1205
1265
  end
1206
1266
  end
@@ -1224,6 +1284,22 @@ module Google
1224
1284
  end
1225
1285
  end
1226
1286
 
1287
+ class GcsDestination
1288
+ # @private
1289
+ class Representation < Google::Apis::Core::JsonRepresentation
1290
+ property :content_structure, as: 'contentStructure'
1291
+ property :message_view, as: 'messageView'
1292
+ property :uri_prefix, as: 'uriPrefix'
1293
+ end
1294
+ end
1295
+
1296
+ class GcsSource
1297
+ # @private
1298
+ class Representation < Google::Apis::Core::JsonRepresentation
1299
+ property :uri, as: 'uri'
1300
+ end
1301
+ end
1302
+
1227
1303
  class GoogleCloudHealthcareV1ConsentGcsDestination
1228
1304
  # @private
1229
1305
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1258,6 +1334,7 @@ module Google
1258
1334
  class Representation < Google::Apis::Core::JsonRepresentation
1259
1335
  property :force, as: 'force'
1260
1336
  property :table_uri, as: 'tableUri'
1337
+ property :write_disposition, as: 'writeDisposition'
1261
1338
  end
1262
1339
  end
1263
1340
 
@@ -1390,6 +1467,20 @@ module Google
1390
1467
  end
1391
1468
  end
1392
1469
 
1470
+ class ImportMessagesRequest
1471
+ # @private
1472
+ class Representation < Google::Apis::Core::JsonRepresentation
1473
+ property :gcs_source, as: 'gcsSource', class: Google::Apis::HealthcareV1::GcsSource, decorator: Google::Apis::HealthcareV1::GcsSource::Representation
1474
+
1475
+ end
1476
+ end
1477
+
1478
+ class ImportMessagesResponse
1479
+ # @private
1480
+ class Representation < Google::Apis::Core::JsonRepresentation
1481
+ end
1482
+ end
1483
+
1393
1484
  class ImportResourcesRequest
1394
1485
  # @private
1395
1486
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1897,6 +1988,15 @@ module Google
1897
1988
  end
1898
1989
  end
1899
1990
 
1991
+ class ValidationConfig
1992
+ # @private
1993
+ class Representation < Google::Apis::Core::JsonRepresentation
1994
+ property :disable_fhirpath_validation, as: 'disableFhirpathValidation'
1995
+ property :disable_reference_type_validation, as: 'disableReferenceTypeValidation'
1996
+ property :disable_required_field_validation, as: 'disableRequiredFieldValidation'
1997
+ end
1998
+ end
1999
+
1900
2000
  class VersionSource
1901
2001
  # @private
1902
2002
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4455,6 +4455,46 @@ module Google
4455
4455
  execute_or_queue_command(command, &block)
4456
4456
  end
4457
4457
 
4458
+ # Exports the messages to a destination. To filter messages to be exported,
4459
+ # define a filter using the start and end time, relative to the message
4460
+ # generation time (MSH.7). This API returns an Operation that can be used to
4461
+ # track the status of the job by calling GetOperation. Immediate fatal errors
4462
+ # appear in the error field. Otherwise, when the operation finishes, a detailed
4463
+ # response of type ExportMessagesResponse is returned in the response field. The
4464
+ # metadata field type for this operation is OperationMetadata.
4465
+ # @param [String] name
4466
+ # The name of the source HL7v2 store, in the format `projects/`project_id`/
4467
+ # locations/`location_id`/datasets/`dataset_id`/hl7v2Stores/`hl7v2_store_id``
4468
+ # @param [Google::Apis::HealthcareV1::ExportMessagesRequest] export_messages_request_object
4469
+ # @param [String] fields
4470
+ # Selector specifying which fields to include in a partial response.
4471
+ # @param [String] quota_user
4472
+ # Available to use for quota purposes for server-side applications. Can be any
4473
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4474
+ # @param [Google::Apis::RequestOptions] options
4475
+ # Request-specific options
4476
+ #
4477
+ # @yield [result, err] Result & error if block supplied
4478
+ # @yieldparam result [Google::Apis::HealthcareV1::Operation] parsed result object
4479
+ # @yieldparam err [StandardError] error object if request failed
4480
+ #
4481
+ # @return [Google::Apis::HealthcareV1::Operation]
4482
+ #
4483
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4484
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4485
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4486
+ def export_hl7_v2_store_messages(name, export_messages_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4487
+ command = make_simple_command(:post, 'v1/{+name}:export', options)
4488
+ command.request_representation = Google::Apis::HealthcareV1::ExportMessagesRequest::Representation
4489
+ command.request_object = export_messages_request_object
4490
+ command.response_representation = Google::Apis::HealthcareV1::Operation::Representation
4491
+ command.response_class = Google::Apis::HealthcareV1::Operation
4492
+ command.params['name'] = name unless name.nil?
4493
+ command.query['fields'] = fields unless fields.nil?
4494
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4495
+ execute_or_queue_command(command, &block)
4496
+ end
4497
+
4458
4498
  # Gets the specified HL7v2 store.
4459
4499
  # @param [String] name
4460
4500
  # The resource name of the HL7v2 store to get.
@@ -4526,6 +4566,63 @@ module Google
4526
4566
  execute_or_queue_command(command, &block)
4527
4567
  end
4528
4568
 
4569
+ # Import messages to the HL7v2 store by loading data from the specified sources.
4570
+ # This method is optimized to load large quantities of data using import
4571
+ # semantics that ignore some HL7v2 store configuration options and are not
4572
+ # suitable for all use cases. It is primarily intended to load data into an
4573
+ # empty HL7v2 store that is not being used by other clients. An existing message
4574
+ # will be overwritten if a duplicate message is imported. A duplicate message is
4575
+ # a message with the same raw bytes as a message that already exists in this
4576
+ # HL7v2 store. When a message is overwritten, its labels will also be
4577
+ # overwritten. The import operation is idempotent unless the input data contains
4578
+ # multiple valid messages with the same raw bytes but different labels. In that
4579
+ # case, after the import completes, the store contains exactly one message with
4580
+ # those raw bytes but there is no ordering guarantee on which version of the
4581
+ # labels it has. The operation result counters do not count duplicated raw bytes
4582
+ # as an error and count one success for each message in the input, which might
4583
+ # result in a success count larger than the number of messages in the HL7v2
4584
+ # store. If some messages fail to import, for example due to parsing errors,
4585
+ # successfully imported messages are not rolled back. This method returns an
4586
+ # Operation that can be used to track the status of the import by calling
4587
+ # GetOperation. Immediate fatal errors appear in the error field, errors are
4588
+ # also logged to Cloud Logging (see [Viewing error logs in Cloud Logging](https:/
4589
+ # /cloud.google.com/healthcare/docs/how-tos/logging)). Otherwise, when the
4590
+ # operation finishes, a response of type ImportMessagesResponse is returned in
4591
+ # the response field. The metadata field type for this operation is
4592
+ # OperationMetadata.
4593
+ # @param [String] name
4594
+ # The name of the target HL7v2 store, in the format `projects/`project_id`/
4595
+ # locations/`location_id`/datasets/`dataset_id`/hl7v2Stores/`hl7v2_store_id``
4596
+ # @param [Google::Apis::HealthcareV1::ImportMessagesRequest] import_messages_request_object
4597
+ # @param [String] fields
4598
+ # Selector specifying which fields to include in a partial response.
4599
+ # @param [String] quota_user
4600
+ # Available to use for quota purposes for server-side applications. Can be any
4601
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4602
+ # @param [Google::Apis::RequestOptions] options
4603
+ # Request-specific options
4604
+ #
4605
+ # @yield [result, err] Result & error if block supplied
4606
+ # @yieldparam result [Google::Apis::HealthcareV1::Operation] parsed result object
4607
+ # @yieldparam err [StandardError] error object if request failed
4608
+ #
4609
+ # @return [Google::Apis::HealthcareV1::Operation]
4610
+ #
4611
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4612
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4613
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4614
+ def import_hl7_v2_store_messages(name, import_messages_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4615
+ command = make_simple_command(:post, 'v1/{+name}:import', options)
4616
+ command.request_representation = Google::Apis::HealthcareV1::ImportMessagesRequest::Representation
4617
+ command.request_object = import_messages_request_object
4618
+ command.response_representation = Google::Apis::HealthcareV1::Operation::Representation
4619
+ command.response_class = Google::Apis::HealthcareV1::Operation
4620
+ command.params['name'] = name unless name.nil?
4621
+ command.query['fields'] = fields unless fields.nil?
4622
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4623
+ execute_or_queue_command(command, &block)
4624
+ end
4625
+
4529
4626
  # Lists the HL7v2 stores in the given dataset.
4530
4627
  # @param [String] parent
4531
4628
  # Name of the dataset.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-healthcare_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-27 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-healthcare_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-healthcare_v1/v0.14.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-healthcare_v1
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-healthcare_v1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-healthcare_v1/v0.18.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-healthcare_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths: