Skip to content

Commit

Permalink
feat: Automated regeneration of healthcare v1 client (googleapis#17661)
Browse files Browse the repository at this point in the history
Auto-created at 2024-01-28 10:23:02 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Jan 28, 2024
1 parent 62a1f7b commit f182c69
Show file tree
Hide file tree
Showing 6 changed files with 496 additions and 258 deletions.
18 changes: 18 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -226073,6 +226073,22 @@
"/healthcare:v1/Result/dataId": data_id
"/healthcare:v1/RevokeConsentRequest": revoke_consent_request
"/healthcare:v1/RevokeConsentRequest/consentArtifact": consent_artifact
"/healthcare:v1/RollbackFhirResourceFilteringFields": rollback_fhir_resource_filtering_fields
"/healthcare:v1/RollbackFhirResourceFilteringFields/metadataFilter": metadata_filter
"/healthcare:v1/RollbackFhirResourceFilteringFields/operationIds": operation_ids
"/healthcare:v1/RollbackFhirResourceFilteringFields/operationIds/operation_id": operation_id
"/healthcare:v1/RollbackFhirResourcesRequest": rollback_fhir_resources_request
"/healthcare:v1/RollbackFhirResourcesRequest/changeType": change_type
"/healthcare:v1/RollbackFhirResourcesRequest/excludeRollbacks": exclude_rollbacks
"/healthcare:v1/RollbackFhirResourcesRequest/filteringFields": filtering_fields
"/healthcare:v1/RollbackFhirResourcesRequest/force": force
"/healthcare:v1/RollbackFhirResourcesRequest/inputGcsObject": input_gcs_object
"/healthcare:v1/RollbackFhirResourcesRequest/resultGcsBucket": result_gcs_bucket
"/healthcare:v1/RollbackFhirResourcesRequest/rollbackTime": rollback_time
"/healthcare:v1/RollbackFhirResourcesRequest/type": type
"/healthcare:v1/RollbackFhirResourcesRequest/type/type": type
"/healthcare:v1/RollbackFhirResourcesResponse": rollback_fhir_resources_response
"/healthcare:v1/RollbackFhirResourcesResponse/fhirStore": fhir_store
"/healthcare:v1/SchemaConfig": schema_config
"/healthcare:v1/SchemaConfig/lastUpdatedPartitionConfig": last_updated_partition_config
"/healthcare:v1/SchemaConfig/recursiveStructureDepth": recursive_structure_depth
Expand Down Expand Up @@ -226459,6 +226475,8 @@
"/healthcare:v1/healthcare.projects.locations.datasets.fhirStores.patch": patch_project_location_dataset_fhir_store
"/healthcare:v1/healthcare.projects.locations.datasets.fhirStores.patch/name": name
"/healthcare:v1/healthcare.projects.locations.datasets.fhirStores.patch/updateMask": update_mask
"/healthcare:v1/healthcare.projects.locations.datasets.fhirStores.rollback": rollback_fhir_store_fhir_resources
"/healthcare:v1/healthcare.projects.locations.datasets.fhirStores.rollback/name": name
"/healthcare:v1/healthcare.projects.locations.datasets.fhirStores.setIamPolicy": set_fhir_store_iam_policy
"/healthcare:v1/healthcare.projects.locations.datasets.fhirStores.setIamPolicy/resource": resource
"/healthcare:v1/healthcare.projects.locations.datasets.fhirStores.testIamPermissions": test_fhir_store_iam_permissions
Expand Down
5 changes: 5 additions & 0 deletions generated/google-apis-healthcare_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release history for google-apis-healthcare_v1

### v0.54.0 (2024-01-28)

* Regenerated from discovery document revision 20240112
* Regenerated using generator version 0.13.1

### v0.53.0 (2024-01-23)

* Regenerated from discovery document revision 20240110
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,10 @@ class AttributeDefinition
# @return [String]
attr_accessor :description

# Resource name of the Attribute definition, of the form `projects/`project_id`/
# locations/`location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/
# attributeDefinitions/`attribute_definition_id``. Cannot be changed after
# creation.
# Identifier. Resource name of the Attribute definition, of the form `projects/`
# project_id`/locations/`location_id`/datasets/`dataset_id`/consentStores/`
# consent_store_id`/attributeDefinitions/`attribute_definition_id``. Cannot be
# changed after creation.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
Expand Down Expand Up @@ -632,9 +632,10 @@ class ConsentArtifact
# @return [Hash<String,String>]
attr_accessor :metadata

# Resource name of the Consent artifact, of the form `projects/`project_id`/
# locations/`location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/
# consentArtifacts/`consent_artifact_id``. Cannot be changed after creation.
# Identifier. Resource name of the Consent artifact, of the form `projects/`
# project_id`/locations/`location_id`/datasets/`dataset_id`/consentStores/`
# consent_store_id`/consentArtifacts/`consent_artifact_id``. Cannot be changed
# after creation.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
Expand Down Expand Up @@ -975,10 +976,10 @@ class DeidentifyDatasetRequest
# @return [Google::Apis::HealthcareV1::DeidentifyConfig]
attr_accessor :config

# The name of the dataset resource to create and write the redacted data to. *
# The destination dataset must not exist. * The destination dataset must be in
# the same location as the source dataset. De-identifying data across multiple
# locations is not supported.
# Required. The name of the dataset resource to create and write the redacted
# data to. * The destination dataset must not exist. * The destination dataset
# must be in the same location as the source dataset. De-identifying data across
# multiple locations is not supported.
# Corresponds to the JSON property `destinationDataset`
# @return [String]
attr_accessor :destination_dataset
Expand Down Expand Up @@ -1016,13 +1017,13 @@ class DeidentifyDicomStoreRequest
# @return [Google::Apis::HealthcareV1::DeidentifyConfig]
attr_accessor :config

# The name of the DICOM store to create and write the redacted data to. For
# example, `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
# dicomStores/`dicom_store_id``. * The destination dataset must exist. * The
# source dataset and destination dataset must both reside in the same location.
# De-identifying data across multiple locations is not supported. * The
# destination DICOM store must not exist. * The caller must have the necessary
# permissions to create the destination DICOM store.
# Required. The name of the DICOM store to create and write the redacted data to.
# For example, `projects/`project_id`/locations/`location_id`/datasets/`
# dataset_id`/dicomStores/`dicom_store_id``. * The destination dataset must
# exist. * The source dataset and destination dataset must both reside in the
# same location. De-identifying data across multiple locations is not supported.
# * The destination DICOM store must not exist. * The caller must have the
# necessary permissions to create the destination DICOM store.
# Corresponds to the JSON property `destinationStore`
# @return [String]
attr_accessor :destination_store
Expand Down Expand Up @@ -1066,12 +1067,12 @@ class DeidentifyFhirStoreRequest
# @return [Google::Apis::HealthcareV1::DeidentifyConfig]
attr_accessor :config

# The name of the FHIR store to create and write the redacted data to. For
# example, `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
# fhirStores/`fhir_store_id``. * The destination dataset must exist. * The
# source dataset and destination dataset must both reside in the same location.
# De-identifying data across multiple locations is not supported. * The
# destination FHIR store must exist. * The caller must have the healthcare.
# Required. The name of the FHIR store to create and write the redacted data to.
# For example, `projects/`project_id`/locations/`location_id`/datasets/`
# dataset_id`/fhirStores/`fhir_store_id``. * The destination dataset must exist.
# * The source dataset and destination dataset must both reside in the same
# location. De-identifying data across multiple locations is not supported. *
# The destination FHIR store must exist. * The caller must have the healthcare.
# fhirResources.update permission to write to the destination FHIR store.
# Corresponds to the JSON property `destinationStore`
# @return [String]
Expand Down Expand Up @@ -1211,8 +1212,9 @@ class DicomStore
# @return [Hash<String,String>]
attr_accessor :labels

# Resource name of the DICOM store, of the form `projects/`project_id`/locations/
# `location_id`/datasets/`dataset_id`/dicomStores/`dicom_store_id``.
# Identifier. Resource name of the DICOM store, of the form `projects/`
# project_id`/locations/`location_id`/datasets/`dataset_id`/dicomStores/`
# dicom_store_id``.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
Expand Down Expand Up @@ -2002,8 +2004,8 @@ class FhirStore
# @return [Hash<String,String>]
attr_accessor :labels

# Output only. Resource name of the FHIR store, of the form `projects/`
# project_id`/datasets/`dataset_id`/fhirStores/`fhir_store_id``.
# Output only. Identifier. Resource name of the FHIR store, of the form `
# projects/`project_id`/datasets/`dataset_id`/fhirStores/`fhir_store_id``.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
Expand Down Expand Up @@ -2038,10 +2040,10 @@ class FhirStore
# @return [Google::Apis::HealthcareV1::ValidationConfig]
attr_accessor :validation_config

# Immutable. The FHIR specification version that this FHIR store supports
# natively. This field is immutable after store creation. Requests are rejected
# if they contain FHIR resources of a different version. Version is required for
# every FHIR store.
# Required. Immutable. The FHIR specification version that this FHIR store
# supports natively. This field is immutable after store creation. Requests are
# rejected if they contain FHIR resources of a different version. Version is
# required for every FHIR store.
# Corresponds to the JSON property `version`
# @return [String]
attr_accessor :version
Expand Down Expand Up @@ -4301,6 +4303,120 @@ def update!(**args)
end
end

#
class RollbackFhirResourceFilteringFields
include Google::Apis::Core::Hashable

# Optional. A filter expression that matches data in the `Resource.meta` element.
# Supports all filters in [AIP-160](https://google.aip.dev/160) except the "has"
# (`:`) operator. Supports the following custom functions: * `tag("") = ""` for
# tag filtering. * `extension_value_ts("") = ` for filtering extensions with a
# timestamp, where `` is a Unix timestamp. Supports the `>`, `<`, `<=`, `>=`,
# and `!=` comparison operators.
# Corresponds to the JSON property `metadataFilter`
# @return [String]
attr_accessor :metadata_filter

# Optional. A list of operation IDs to roll back.
# Corresponds to the JSON property `operationIds`
# @return [Array<Fixnum>]
attr_accessor :operation_ids

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@metadata_filter = args[:metadata_filter] if args.key?(:metadata_filter)
@operation_ids = args[:operation_ids] if args.key?(:operation_ids)
end
end

#
class RollbackFhirResourcesRequest
include Google::Apis::Core::Hashable

# Optional. CREATE/UPDATE/DELETE/ALL for reverting all txns of a certain type.
# Corresponds to the JSON property `changeType`
# @return [String]
attr_accessor :change_type

# Optional. Specifies whether to exclude earlier rollbacks.
# Corresponds to the JSON property `excludeRollbacks`
# @return [Boolean]
attr_accessor :exclude_rollbacks
alias_method :exclude_rollbacks?, :exclude_rollbacks

# Optional. Parameters for filtering resources
# Corresponds to the JSON property `filteringFields`
# @return [Google::Apis::HealthcareV1::RollbackFhirResourceFilteringFields]
attr_accessor :filtering_fields

# Optional. When enabled, changes will be reverted without explicit confirmation
# Corresponds to the JSON property `force`
# @return [Boolean]
attr_accessor :force
alias_method :force?, :force

# Optional. GCS object containing list of `resourceType`/`resourceId` lines,
# identifying resources to be reverted
# Corresponds to the JSON property `inputGcsObject`
# @return [String]
attr_accessor :input_gcs_object

# Required. Bucket to deposit result
# Corresponds to the JSON property `resultGcsBucket`
# @return [String]
attr_accessor :result_gcs_bucket

# Required. Time point to rollback to.
# Corresponds to the JSON property `rollbackTime`
# @return [String]
attr_accessor :rollback_time

# Optional. If specified, revert only resources of these types
# Corresponds to the JSON property `type`
# @return [Array<String>]
attr_accessor :type

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@change_type = args[:change_type] if args.key?(:change_type)
@exclude_rollbacks = args[:exclude_rollbacks] if args.key?(:exclude_rollbacks)
@filtering_fields = args[:filtering_fields] if args.key?(:filtering_fields)
@force = args[:force] if args.key?(:force)
@input_gcs_object = args[:input_gcs_object] if args.key?(:input_gcs_object)
@result_gcs_bucket = args[:result_gcs_bucket] if args.key?(:result_gcs_bucket)
@rollback_time = args[:rollback_time] if args.key?(:rollback_time)
@type = args[:type] if args.key?(:type)
end
end

# Final response of rollback FIHR resources request.
class RollbackFhirResourcesResponse
include Google::Apis::Core::Hashable

# The name of the FHIR store to rollback, in the format of "projects/`project_id`
# /locations/`location_id`/datasets/`dataset_id` /fhirStores/`fhir_store_id`".
# Corresponds to the JSON property `fhirStore`
# @return [String]
attr_accessor :fhir_store

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@fhir_store = args[:fhir_store] if args.key?(:fhir_store)
end
end

# Configuration for the FHIR BigQuery schema. Determines how the server
# generates the schema.
class SchemaConfig
Expand Down Expand Up @@ -4498,11 +4614,11 @@ def update!(**args)
class SearchResourcesRequest
include Google::Apis::Core::Hashable

# The FHIR resource type to search, such as Patient or Observation. For a
# complete list, see the FHIR Resource Index ([DSTU2](http://hl7.org/implement/
# standards/fhir/DSTU2/resourcelist.html), [STU3](http://hl7.org/implement/
# standards/fhir/STU3/resourcelist.html), [R4](http://hl7.org/implement/
# standards/fhir/R4/resourcelist.html)).
# Required. The FHIR resource type to search, such as Patient or Observation.
# For a complete list, see the FHIR Resource Index ([DSTU2](http://hl7.org/
# implement/standards/fhir/DSTU2/resourcelist.html), [STU3](http://hl7.org/
# implement/standards/fhir/STU3/resourcelist.html), [R4](http://hl7.org/
# implement/standards/fhir/R4/resourcelist.html)).
# Corresponds to the JSON property `resourceType`
# @return [String]
attr_accessor :resource_type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module HealthcareV1
# Version of the google-apis-healthcare_v1 gem
GEM_VERSION = "0.53.0"
GEM_VERSION = "0.54.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.13.0"
GENERATOR_VERSION = "0.13.1"

# Revision of the discovery document this client was generated from
REVISION = "20240110"
REVISION = "20240112"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class RollbackFhirResourceFilteringFields
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class RollbackFhirResourcesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class RollbackFhirResourcesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class SchemaConfig
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -2014,6 +2032,36 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class RollbackFhirResourceFilteringFields
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :metadata_filter, as: 'metadataFilter'
collection :operation_ids, as: 'operationIds'
end
end

class RollbackFhirResourcesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :change_type, as: 'changeType'
property :exclude_rollbacks, as: 'excludeRollbacks'
property :filtering_fields, as: 'filteringFields', class: Google::Apis::HealthcareV1::RollbackFhirResourceFilteringFields, decorator: Google::Apis::HealthcareV1::RollbackFhirResourceFilteringFields::Representation

property :force, as: 'force'
property :input_gcs_object, as: 'inputGcsObject'
property :result_gcs_bucket, as: 'resultGcsBucket'
property :rollback_time, as: 'rollbackTime'
collection :type, as: 'type'
end
end

class RollbackFhirResourcesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :fhir_store, as: 'fhirStore'
end
end

class SchemaConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down
Loading

0 comments on commit f182c69

Please sign in to comment.