google-apis-healthcare_v1 0.14.0 → 0.15.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 26a082b9cf2017054d6ba4778e3cf087de052329d33f56d3aac94e3a86735cc3
4
- data.tar.gz: 07b67fb286bada96e51fbd8b14a7750c8ff079e6d8cc8cc5d3a97730e4affc34
3
+ metadata.gz: 98652121566257e018eca80e376a00cd67ba0a6463e6659f2c0e300803ebb75f
4
+ data.tar.gz: 3ce1650516a7f412c7c7708476502cc816a52259bb2612439dd20fd78a81d4b3
5
5
  SHA512:
6
- metadata.gz: 4b2dd39757a3ac00c0449fc63c7f81c393e94f47282184cbb1be4b83a8da3f3d393305dda8cf099a15a725f6f061bdcc51bee93ac4acaf68e39ebe6a774a14ee
7
- data.tar.gz: 81e07d668bc8b28eb64d50cb274a74775335f1196d9ccf2ea90f8de0e3cdf3f74913e62c014e2a323d7e2ca51d50ee01603152061ba7f6e0f5222884a9f4d3e7
6
+ metadata.gz: 737f751a46d1e201e53ac36ae7782a3078263a085b424ea6d5ba18c2c05bfca7346e3d018722935c704436a32c441ff062313a1d9f976e5a4bc4fa3a245107d4
7
+ data.tar.gz: a197a0a28a142a416f2c3fdb9e5a4834f039efdc12559a389e4021a25a3f8ff6eb02033fa6774165068f9cc193644fd222540f75895a71ca3f03fa0eaf009fb7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-healthcare_v1
2
2
 
3
+ ### v0.15.0 (2021-10-01)
4
+
5
+ * Regenerated from discovery document revision 20210917
6
+
3
7
  ### v0.14.0 (2021-09-24)
4
8
 
5
9
  * Regenerated from discovery document revision 20210914
@@ -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
@@ -1730,6 +1787,71 @@ module Google
1730
1787
  end
1731
1788
  end
1732
1789
 
1790
+ # The Cloud Storage output destination. The Cloud Healthcare Service Agent
1791
+ # requires the `roles/storage.objectAdmin` Cloud IAM roles on the Cloud Storage
1792
+ # location.
1793
+ class GcsDestination
1794
+ include Google::Apis::Core::Hashable
1795
+
1796
+ # The format of the exported HL7v2 message files.
1797
+ # Corresponds to the JSON property `contentStructure`
1798
+ # @return [String]
1799
+ attr_accessor :content_structure
1800
+
1801
+ # Specifies the parts of the Message resource to include in the export. If not
1802
+ # specified, FULL is used.
1803
+ # Corresponds to the JSON property `messageView`
1804
+ # @return [String]
1805
+ attr_accessor :message_view
1806
+
1807
+ # URI of an existing Cloud Storage directory where the server writes result
1808
+ # files, in the format `gs://`bucket-id`/`path/to/destination/dir``. If there is
1809
+ # no trailing slash, the service appends one when composing the object path.
1810
+ # Corresponds to the JSON property `uriPrefix`
1811
+ # @return [String]
1812
+ attr_accessor :uri_prefix
1813
+
1814
+ def initialize(**args)
1815
+ update!(**args)
1816
+ end
1817
+
1818
+ # Update properties of this object
1819
+ def update!(**args)
1820
+ @content_structure = args[:content_structure] if args.key?(:content_structure)
1821
+ @message_view = args[:message_view] if args.key?(:message_view)
1822
+ @uri_prefix = args[:uri_prefix] if args.key?(:uri_prefix)
1823
+ end
1824
+ end
1825
+
1826
+ # Specifies the configuration for importing data from Cloud Storage.
1827
+ class GcsSource
1828
+ include Google::Apis::Core::Hashable
1829
+
1830
+ # Points to a Cloud Storage URI containing file(s) to import. The URI must be in
1831
+ # the following format: `gs://`bucket_id`/`object_id``. The URI can include
1832
+ # wildcards in `object_id` and thus identify multiple files. Supported wildcards:
1833
+ # * `*` to match 0 or more non-separator characters * `**` to match 0 or more
1834
+ # characters (including separators). Must be used at the end of a path and with
1835
+ # no other wildcards in the path. Can also be used with a file extension (such
1836
+ # as .ndjson), which imports all files with the extension in the specified
1837
+ # directory and its sub-directories. For example, `gs://my-bucket/my-directory/**
1838
+ # .ndjson` imports all files with `.ndjson` extensions in `my-directory/` and
1839
+ # its sub-directories. * `?` to match 1 character Files matching the wildcard
1840
+ # are expected to contain content only, no metadata.
1841
+ # Corresponds to the JSON property `uri`
1842
+ # @return [String]
1843
+ attr_accessor :uri
1844
+
1845
+ def initialize(**args)
1846
+ update!(**args)
1847
+ end
1848
+
1849
+ # Update properties of this object
1850
+ def update!(**args)
1851
+ @uri = args[:uri] if args.key?(:uri)
1852
+ end
1853
+ end
1854
+
1733
1855
  # The Cloud Storage location for export.
1734
1856
  class GoogleCloudHealthcareV1ConsentGcsDestination
1735
1857
  include Google::Apis::Core::Hashable
@@ -2379,6 +2501,40 @@ module Google
2379
2501
  end
2380
2502
  end
2381
2503
 
2504
+ # Request to import messages.
2505
+ class ImportMessagesRequest
2506
+ include Google::Apis::Core::Hashable
2507
+
2508
+ # Specifies the configuration for importing data from Cloud Storage.
2509
+ # Corresponds to the JSON property `gcsSource`
2510
+ # @return [Google::Apis::HealthcareV1::GcsSource]
2511
+ attr_accessor :gcs_source
2512
+
2513
+ def initialize(**args)
2514
+ update!(**args)
2515
+ end
2516
+
2517
+ # Update properties of this object
2518
+ def update!(**args)
2519
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
2520
+ end
2521
+ end
2522
+
2523
+ # Final response of importing messages. This structure is included in the
2524
+ # response to describe the detailed outcome. It is only included when the
2525
+ # operation finishes successfully.
2526
+ class ImportMessagesResponse
2527
+ include Google::Apis::Core::Hashable
2528
+
2529
+ def initialize(**args)
2530
+ update!(**args)
2531
+ end
2532
+
2533
+ # Update properties of this object
2534
+ def update!(**args)
2535
+ end
2536
+ end
2537
+
2382
2538
  # Request to import resources.
2383
2539
  class ImportResourcesRequest
2384
2540
  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.15.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 = "20210917"
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
 
@@ -1138,6 +1174,22 @@ module Google
1138
1174
  end
1139
1175
  end
1140
1176
 
1177
+ class ExportMessagesRequest
1178
+ # @private
1179
+ class Representation < Google::Apis::Core::JsonRepresentation
1180
+ property :end_time, as: 'endTime'
1181
+ property :gcs_destination, as: 'gcsDestination', class: Google::Apis::HealthcareV1::GcsDestination, decorator: Google::Apis::HealthcareV1::GcsDestination::Representation
1182
+
1183
+ property :start_time, as: 'startTime'
1184
+ end
1185
+ end
1186
+
1187
+ class ExportMessagesResponse
1188
+ # @private
1189
+ class Representation < Google::Apis::Core::JsonRepresentation
1190
+ end
1191
+ end
1192
+
1141
1193
  class ExportResourcesRequest
1142
1194
  # @private
1143
1195
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1224,6 +1276,22 @@ module Google
1224
1276
  end
1225
1277
  end
1226
1278
 
1279
+ class GcsDestination
1280
+ # @private
1281
+ class Representation < Google::Apis::Core::JsonRepresentation
1282
+ property :content_structure, as: 'contentStructure'
1283
+ property :message_view, as: 'messageView'
1284
+ property :uri_prefix, as: 'uriPrefix'
1285
+ end
1286
+ end
1287
+
1288
+ class GcsSource
1289
+ # @private
1290
+ class Representation < Google::Apis::Core::JsonRepresentation
1291
+ property :uri, as: 'uri'
1292
+ end
1293
+ end
1294
+
1227
1295
  class GoogleCloudHealthcareV1ConsentGcsDestination
1228
1296
  # @private
1229
1297
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1390,6 +1458,20 @@ module Google
1390
1458
  end
1391
1459
  end
1392
1460
 
1461
+ class ImportMessagesRequest
1462
+ # @private
1463
+ class Representation < Google::Apis::Core::JsonRepresentation
1464
+ property :gcs_source, as: 'gcsSource', class: Google::Apis::HealthcareV1::GcsSource, decorator: Google::Apis::HealthcareV1::GcsSource::Representation
1465
+
1466
+ end
1467
+ end
1468
+
1469
+ class ImportMessagesResponse
1470
+ # @private
1471
+ class Representation < Google::Apis::Core::JsonRepresentation
1472
+ end
1473
+ end
1474
+
1393
1475
  class ImportResourcesRequest
1394
1476
  # @private
1395
1477
  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.15.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-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
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
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-healthcare_v1/v0.15.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-healthcare_v1
63
63
  post_install_message:
64
64
  rdoc_options: []