Skip to content

Commit cae71b6

Browse files
feat: Automated regeneration of healthcare v1 client (googleapis#23774)
Auto-created at 2025-07-27 09:54:30 +0000 using the toys pull request generator.
1 parent a9d63a5 commit cae71b6

File tree

6 files changed

+135
-6
lines changed

6 files changed

+135
-6
lines changed

api_names_out.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256756,11 +256756,15 @@
256756256756
"/healthcare:v1/DicomConfig/skipIdRedaction": skip_id_redaction
256757256757
"/healthcare:v1/DicomFilterConfig": dicom_filter_config
256758256758
"/healthcare:v1/DicomFilterConfig/resourcePathsGcsUri": resource_paths_gcs_uri
256759+
"/healthcare:v1/DicomNotificationConfig": dicom_notification_config
256760+
"/healthcare:v1/DicomNotificationConfig/pubsubTopic": pubsub_topic
256759256761
"/healthcare:v1/DicomStore": dicom_store
256760256762
"/healthcare:v1/DicomStore/labels": labels
256761256763
"/healthcare:v1/DicomStore/labels/label": label
256762256764
"/healthcare:v1/DicomStore/name": name
256763256765
"/healthcare:v1/DicomStore/notificationConfig": notification_config
256766+
"/healthcare:v1/DicomStore/notificationConfigs": notification_configs
256767+
"/healthcare:v1/DicomStore/notificationConfigs/notification_config": notification_config
256764256768
"/healthcare:v1/DicomStore/streamConfigs": stream_configs
256765256769
"/healthcare:v1/DicomStore/streamConfigs/stream_config": stream_config
256766256770
"/healthcare:v1/DicomStoreMetrics": dicom_store_metrics
@@ -257478,6 +257482,10 @@
257478257482
"/healthcare:v1/healthcare.projects.locations.datasets.dicomStores.studies.series.delete": delete_project_location_dataset_dicom_store_study_series
257479257483
"/healthcare:v1/healthcare.projects.locations.datasets.dicomStores.studies.series.delete/dicomWebPath": dicom_web_path
257480257484
"/healthcare:v1/healthcare.projects.locations.datasets.dicomStores.studies.series.delete/parent": parent
257485+
"/healthcare:v1/healthcare.projects.locations.datasets.dicomStores.studies.series.instances.bulkdata.retrieveBulkdata": retrieve_project_location_dataset_dicom_store_study_series_instance_bulkdatum_bulkdata
257486+
? "/healthcare:v1/healthcare.projects.locations.datasets.dicomStores.studies.series.instances.bulkdata.retrieveBulkdata/dicomWebPath"
257487+
: dicom_web_path
257488+
"/healthcare:v1/healthcare.projects.locations.datasets.dicomStores.studies.series.instances.bulkdata.retrieveBulkdata/parent": parent
257481257489
"/healthcare:v1/healthcare.projects.locations.datasets.dicomStores.studies.series.instances.delete": delete_project_location_dataset_dicom_store_study_series_instance
257482257490
"/healthcare:v1/healthcare.projects.locations.datasets.dicomStores.studies.series.instances.delete/dicomWebPath": dicom_web_path
257483257491
"/healthcare:v1/healthcare.projects.locations.datasets.dicomStores.studies.series.instances.delete/parent": parent

generated/google-apis-healthcare_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-healthcare_v1
22

3+
### v0.77.0 (2025-07-27)
4+
5+
* Regenerated from discovery document revision 20250625
6+
37
### v0.76.0 (2025-06-08)
48

59
* Regenerated from discovery document revision 20250526

generated/google-apis-healthcare_v1/lib/google/apis/healthcare_v1/classes.rb

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1683,6 +1683,56 @@ def update!(**args)
16831683
end
16841684
end
16851685

1686+
# Contains the configuration for DICOM notifications.
1687+
class DicomNotificationConfig
1688+
include Google::Apis::Core::Hashable
1689+
1690+
# Required. The [Pub/Sub](https://cloud.google.com/pubsub/docs/) topic that
1691+
# notifications of changes are published on. Supplied by the client. The
1692+
# notification is a `PubsubMessage` with the following fields: * `PubsubMessage.
1693+
# Data` contains the resource name. * `PubsubMessage.MessageId` is the ID of
1694+
# this notification. It is guaranteed to be unique within the topic. * `
1695+
# PubsubMessage.PublishTime` is the time when the message was published. * `
1696+
# PubsubMessage.Attributes` contains the following attributes: * `action`: The
1697+
# name of the endpoint that generated the notification. Possible values are `
1698+
# StoreInstances`, `SetBlobSettings`, `ImportDicomData`, etc. * `lastUpdatedTime`
1699+
# : The latest timestamp when the DICOM instance was updated. * `storeName`: The
1700+
# resource name of the DICOM store, of the form `projects/`project_id`/locations/
1701+
# `location_id`/datasets/`dataset_id`/dicomStores/`dicom_store_id``. * `
1702+
# studyInstanceUID`: The study UID of the DICOM instance that was changed. * `
1703+
# seriesInstanceUID`: The series UID of the DICOM instance that was changed. * `
1704+
# sopInstanceUID`: The instance UID of the DICOM instance that was changed. * `
1705+
# versionId`: The version ID of the DICOM instance that was changed. * `modality`
1706+
# : The modality tag of the DICOM instance that was changed. * `
1707+
# previousStorageClass`: The storage class where the DICOM instance was
1708+
# previously stored if the storage class was changed. * `storageClass`: The
1709+
# storage class where the DICOM instance is currently stored. Note that
1710+
# notifications are only sent if the topic is non-empty. [Topic names](https://
1711+
# cloud.google.com/pubsub/docs/overview#names) must be scoped to a project. The
1712+
# Cloud Healthcare API service account, [email protected].
1713+
# gserviceaccount.com, must have the `pubsub.topics.publish` permission (which
1714+
# is typically included in `roles/pubsub.publisher` role) on the given Pub/Sub
1715+
# topic. Not having adequate permissions causes the calls that send
1716+
# notifications to fail (https://cloud.google.com/healthcare-api/docs/
1717+
# permissions-healthcare-api-gcp-products#
1718+
# dicom_fhir_and_hl7v2_store_cloud_pubsub_permissions). If a notification can't
1719+
# be published to Pub/Sub, errors are logged to Cloud Logging. For more
1720+
# information, see [Viewing error logs in Cloud Logging](https://cloud.google.
1721+
# com/healthcare-api/docs/how-tos/logging).
1722+
# Corresponds to the JSON property `pubsubTopic`
1723+
# @return [String]
1724+
attr_accessor :pubsub_topic
1725+
1726+
def initialize(**args)
1727+
update!(**args)
1728+
end
1729+
1730+
# Update properties of this object
1731+
def update!(**args)
1732+
@pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic)
1733+
end
1734+
end
1735+
16861736
# Represents a DICOM store.
16871737
class DicomStore
16881738
include Google::Apis::Core::Hashable
@@ -1710,6 +1760,12 @@ class DicomStore
17101760
# @return [Google::Apis::HealthcareV1::NotificationConfig]
17111761
attr_accessor :notification_config
17121762

1763+
# Optional. Specifies where and whether to send notifications upon changes to a
1764+
# DICOM store.
1765+
# Corresponds to the JSON property `notificationConfigs`
1766+
# @return [Array<Google::Apis::HealthcareV1::DicomNotificationConfig>]
1767+
attr_accessor :notification_configs
1768+
17131769
# Optional. A list of streaming configs used to configure the destination of
17141770
# streaming exports for every DICOM instance insertion in this DICOM store.
17151771
# After a new config is added to `stream_configs`, DICOM instance insertions are
@@ -1729,6 +1785,7 @@ def update!(**args)
17291785
@labels = args[:labels] if args.key?(:labels)
17301786
@name = args[:name] if args.key?(:name)
17311787
@notification_config = args[:notification_config] if args.key?(:notification_config)
1788+
@notification_configs = args[:notification_configs] if args.key?(:notification_configs)
17321789
@stream_configs = args[:stream_configs] if args.key?(:stream_configs)
17331790
end
17341791
end

generated/google-apis-healthcare_v1/lib/google/apis/healthcare_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module HealthcareV1
1818
# Version of the google-apis-healthcare_v1 gem
19-
GEM_VERSION = "0.76.0"
19+
GEM_VERSION = "0.77.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250526"
25+
REVISION = "20250625"
2626
end
2727
end
2828
end

generated/google-apis-healthcare_v1/lib/google/apis/healthcare_v1/representations.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
292292
include Google::Apis::Core::JsonObjectSupport
293293
end
294294

295+
class DicomNotificationConfig
296+
class Representation < Google::Apis::Core::JsonRepresentation; end
297+
298+
include Google::Apis::Core::JsonObjectSupport
299+
end
300+
295301
class DicomStore
296302
class Representation < Google::Apis::Core::JsonRepresentation; end
297303

@@ -1493,13 +1499,22 @@ class Representation < Google::Apis::Core::JsonRepresentation
14931499
end
14941500
end
14951501

1502+
class DicomNotificationConfig
1503+
# @private
1504+
class Representation < Google::Apis::Core::JsonRepresentation
1505+
property :pubsub_topic, as: 'pubsubTopic'
1506+
end
1507+
end
1508+
14961509
class DicomStore
14971510
# @private
14981511
class Representation < Google::Apis::Core::JsonRepresentation
14991512
hash :labels, as: 'labels'
15001513
property :name, as: 'name'
15011514
property :notification_config, as: 'notificationConfig', class: Google::Apis::HealthcareV1::NotificationConfig, decorator: Google::Apis::HealthcareV1::NotificationConfig::Representation
15021515

1516+
collection :notification_configs, as: 'notificationConfigs', class: Google::Apis::HealthcareV1::DicomNotificationConfig, decorator: Google::Apis::HealthcareV1::DicomNotificationConfig::Representation
1517+
15031518
collection :stream_configs, as: 'streamConfigs', class: Google::Apis::HealthcareV1::GoogleCloudHealthcareV1DicomStreamConfig, decorator: Google::Apis::HealthcareV1::GoogleCloudHealthcareV1DicomStreamConfig::Representation
15041519

15051520
end

generated/google-apis-healthcare_v1/lib/google/apis/healthcare_v1/service.rb

Lines changed: 49 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3468,6 +3468,50 @@ def retrieve_project_location_dataset_dicom_store_study_series_instance_rendered
34683468
execute_or_queue_command(command, &block)
34693469
end
34703470

3471+
# Returns uncompressed, unencoded bytes representing the referenced bulkdata tag
3472+
# from an instance. See [Retrieve Transaction] (http://dicom.nema.org/medical/
3473+
# dicom/current/output/html/part18.html#sect_10.4)`: .external`. For details on
3474+
# the implementation of RetrieveBulkdata, see [Bulkdata resources](https://cloud.
3475+
# google.com/healthcare/docs/dicom#bulkdata-resources) in the Cloud Healthcare
3476+
# API conformance statement. For samples that show how to call RetrieveBulkdata,
3477+
# see [Retrieve bulkdata](https://cloud.google.com/healthcare/docs/how-tos/
3478+
# dicomweb#retrieve-bulkdata).
3479+
# @param [String] parent
3480+
# Required. The name of the DICOM store that is being accessed. For example, `
3481+
# projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
3482+
# dicomStores/`dicom_store_id``.
3483+
# @param [String] dicom_web_path
3484+
# Required. The path for the `RetrieveBulkdata` DICOMweb request. For example, `
3485+
# studies/`study_uid`/series/`series_uid`/instances/`instance_uid`/bukdata/`
3486+
# bulkdata_uri``.
3487+
# @param [String] fields
3488+
# Selector specifying which fields to include in a partial response.
3489+
# @param [String] quota_user
3490+
# Available to use for quota purposes for server-side applications. Can be any
3491+
# arbitrary string assigned to a user, but should not exceed 40 characters.
3492+
# @param [Google::Apis::RequestOptions] options
3493+
# Request-specific options
3494+
#
3495+
# @yield [result, err] Result & error if block supplied
3496+
# @yieldparam result [Google::Apis::HealthcareV1::HttpBody] parsed result object
3497+
# @yieldparam err [StandardError] error object if request failed
3498+
#
3499+
# @return [Google::Apis::HealthcareV1::HttpBody]
3500+
#
3501+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3502+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3503+
# @raise [Google::Apis::AuthorizationError] Authorization is required
3504+
def retrieve_project_location_dataset_dicom_store_study_series_instance_bulkdatum_bulkdata(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
3505+
command = make_simple_command(:get, 'v1/{+parent}/dicomWeb/{+dicomWebPath}', options)
3506+
command.response_representation = Google::Apis::HealthcareV1::HttpBody::Representation
3507+
command.response_class = Google::Apis::HealthcareV1::HttpBody
3508+
command.params['parent'] = parent unless parent.nil?
3509+
command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
3510+
command.query['fields'] = fields unless fields.nil?
3511+
command.query['quotaUser'] = quota_user unless quota_user.nil?
3512+
execute_or_queue_command(command, &block)
3513+
end
3514+
34713515
# RetrieveFrames returns instances associated with the given study, series, SOP
34723516
# Instance UID and frame numbers. See [RetrieveTransaction] (http://dicom.nema.
34733517
# org/medical/dicom/current/output/html/part18.html#sect_10.4`. For details on
@@ -5627,10 +5671,11 @@ def search_project_location_dataset_fhir_store_fhir_type(parent, resource_type,
56275671
# by the FHIR store contain a JSON-encoded `OperationOutcome` resource
56285672
# describing the reason for the error. If the request cannot be mapped to a
56295673
# valid API method on a FHIR store, a generic GCP error might be returned
5630-
# instead. In R5, the conditional update interaction If-None-Match is supported,
5631-
# including the wildcard behaviour. For samples that show how to call `update`,
5632-
# see [Updating a FHIR resource](https://cloud.google.com/healthcare/docs/how-
5633-
# tos/fhir-resources#updating_a_fhir_resource).
5674+
# instead. The conditional update interaction If-None-Match is supported,
5675+
# including the wildcard behaviour, as defined by the R5 spec. This
5676+
# functionality is supported in R4 and R5. For samples that show how to call `
5677+
# update`, see [Updating a FHIR resource](https://cloud.google.com/healthcare/
5678+
# docs/how-tos/fhir-resources#updating_a_fhir_resource).
56345679
# @param [String] name
56355680
# Required. The name of the resource to update.
56365681
# @param [Google::Apis::HealthcareV1::HttpBody] http_body_object

0 commit comments

Comments
 (0)