feat: Automated regeneration of healthcare v1beta1 client

This commit is contained in:
Yoshi Automation Bot 2020-10-21 11:41:08 -07:00 committed by GitHub
parent 4fadc19991
commit baef1f920b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 175 additions and 13 deletions

View File

@ -107553,6 +107553,10 @@
"/healthcare:v1beta1/ExportDicomDataRequest/bigqueryDestination": bigquery_destination
"/healthcare:v1beta1/ExportDicomDataRequest/gcsDestination": gcs_destination
"/healthcare:v1beta1/ExportDicomDataResponse": export_dicom_data_response
"/healthcare:v1beta1/ExportMessagesRequest": export_messages_request
"/healthcare:v1beta1/ExportMessagesRequest/endTime": end_time
"/healthcare:v1beta1/ExportMessagesRequest/gcsDestination": gcs_destination
"/healthcare:v1beta1/ExportMessagesRequest/startTime": start_time
"/healthcare:v1beta1/ExportResourcesRequest": export_resources_request
"/healthcare:v1beta1/ExportResourcesRequest/bigqueryDestination": bigquery_destination
"/healthcare:v1beta1/ExportResourcesRequest/gcsDestination": gcs_destination
@ -107597,6 +107601,10 @@
"/healthcare:v1beta1/Finding/infoType": info_type
"/healthcare:v1beta1/Finding/quote": quote
"/healthcare:v1beta1/Finding/start": start
"/healthcare:v1beta1/GcsDestination": gcs_destination
"/healthcare:v1beta1/GcsDestination/contentStructure": content_structure
"/healthcare:v1beta1/GcsDestination/messageView": message_view
"/healthcare:v1beta1/GcsDestination/uriPrefix": uri_prefix
"/healthcare:v1beta1/GcsSource": gcs_source
"/healthcare:v1beta1/GcsSource/uri": uri
"/healthcare:v1beta1/GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination": google_cloud_healthcare_v1beta1_annotation_big_query_destination
@ -108311,6 +108319,8 @@
"/healthcare:v1beta1/healthcare.projects.locations.datasets.hl7V2Stores.create/parent": parent
"/healthcare:v1beta1/healthcare.projects.locations.datasets.hl7V2Stores.delete": delete_project_location_dataset_hl7_v2_store
"/healthcare:v1beta1/healthcare.projects.locations.datasets.hl7V2Stores.delete/name": name
"/healthcare:v1beta1/healthcare.projects.locations.datasets.hl7V2Stores.export": export_hl7_v2_store_messages
"/healthcare:v1beta1/healthcare.projects.locations.datasets.hl7V2Stores.export/name": name
"/healthcare:v1beta1/healthcare.projects.locations.datasets.hl7V2Stores.get": get_project_location_dataset_hl7_v2_store
"/healthcare:v1beta1/healthcare.projects.locations.datasets.hl7V2Stores.get/name": name
"/healthcare:v1beta1/healthcare.projects.locations.datasets.hl7V2Stores.getIamPolicy": get_project_location_dataset_hl7_v2_store_iam_policy

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/healthcare
module HealthcareV1beta1
VERSION = 'V1beta1'
REVISION = '20201006'
REVISION = '20201013'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1507,6 +1507,49 @@ module Google
end
end
# Request to schedule an export.
class ExportMessagesRequest
include Google::Apis::Core::Hashable
# The end of the range in `send_time` (MSH.7, https://www.hl7.org/documentcenter/
# public_temp_2E58C1F9-1C23-BA17-0C6126475344DA9D/wg/conf/HL7MSH.htm) to process.
# If not specified, the time when the export is scheduled is used. This value
# has to come after the `start_time` defined below. Only messages whose `
# send_time` lies in the range `start_time` (inclusive) to `end_time` (exclusive)
# are exported.
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# The Cloud Storage output destination. The Cloud Healthcare Service Agent
# requires the `roles/storage.objectAdmin` Cloud IAM roles on the Cloud Storage
# location.
# Corresponds to the JSON property `gcsDestination`
# @return [Google::Apis::HealthcareV1beta1::GcsDestination]
attr_accessor :gcs_destination
# The start of the range in `send_time` (MSH.7, https://www.hl7.org/
# documentcenter/public_temp_2E58C1F9-1C23-BA17-0C6126475344DA9D/wg/conf/HL7MSH.
# htm) to process. If not specified, the UNIX epoch (1970-01-01T00:00:00Z) is
# used. This value has to come before the `end_time` defined below. Only
# messages whose `send_time` lies in the range `start_time` (inclusive) to `
# end_time` (exclusive) are exported.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@end_time = args[:end_time] if args.key?(:end_time)
@gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
@start_time = args[:start_time] if args.key?(:start_time)
end
end
# Request to export resources.
class ExportResourcesRequest
include Google::Apis::Core::Hashable
@ -1885,6 +1928,42 @@ module Google
end
end
# The Cloud Storage output destination. The Cloud Healthcare Service Agent
# requires the `roles/storage.objectAdmin` Cloud IAM roles on the Cloud Storage
# location.
class GcsDestination
include Google::Apis::Core::Hashable
# The format of the exported HL7v2 message files.
# Corresponds to the JSON property `contentStructure`
# @return [String]
attr_accessor :content_structure
# Specifies the parts of the Message resource to include in the export. If not
# specified, FULL is used.
# Corresponds to the JSON property `messageView`
# @return [String]
attr_accessor :message_view
# URI of an existing Cloud Storage directory where the server writes result
# files, in the format `gs://`bucket-id`/`path/to/destination/dir``. If there is
# no trailing slash, the service appends one when composing the object path.
# Corresponds to the JSON property `uriPrefix`
# @return [String]
attr_accessor :uri_prefix
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@content_structure = args[:content_structure] if args.key?(:content_structure)
@message_view = args[:message_view] if args.key?(:message_view)
@uri_prefix = args[:uri_prefix] if args.key?(:uri_prefix)
end
end
# Specifies the configuration for importing data from Cloud Storage.
class GcsSource
include Google::Apis::Core::Hashable

View File

@ -298,6 +298,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ExportMessagesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ExportResourcesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -352,6 +358,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GcsDestination
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GcsSource
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1348,6 +1360,16 @@ module Google
end
end
class ExportMessagesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_time, as: 'endTime'
property :gcs_destination, as: 'gcsDestination', class: Google::Apis::HealthcareV1beta1::GcsDestination, decorator: Google::Apis::HealthcareV1beta1::GcsDestination::Representation
property :start_time, as: 'startTime'
end
end
class ExportResourcesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1437,6 +1459,15 @@ module Google
end
end
class GcsDestination
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :content_structure, as: 'contentStructure'
property :message_view, as: 'messageView'
property :uri_prefix, as: 'uriPrefix'
end
end
class GcsSource
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -4190,16 +4190,17 @@ module Google
execute_or_queue_command(command, &block)
end
# Translates a code from one value set to another using a concept map.
# Implements the FHIR standard $translate operation ([DSTU2](https://www.hl7.org/
# fhir/DSTU2/operation-conceptmap-translate.html), [STU3](https://www.hl7.org/
# fhir/STU3/operation-conceptmap-translate.html), [R4](https://www.hl7.org/fhir/
# R4/operation-conceptmap-translate.html)). On success, the response body
# contains a JSON-encoded representation of a FHIR Parameters resource, which
# includes the translation result. Errors generated by the FHIR store contain a
# JSON-encoded `OperationOutcome` resource describing the reason for the error.
# If the request cannot be mapped to a valid API method on a FHIR store, a
# generic GCP error might be returned instead.
# Translates a code from one value set to another using a concept map. You can
# provide your own concept maps to translate any code system to another code
# system. Implements the FHIR standard $translate operation ([DSTU2](https://www.
# hl7.org/fhir/DSTU2/operation-conceptmap-translate.html), [STU3](https://www.
# hl7.org/fhir/STU3/operation-conceptmap-translate.html), [R4](https://www.hl7.
# org/fhir/R4/operation-conceptmap-translate.html)). On success, the response
# body contains a JSON-encoded representation of a FHIR Parameters resource,
# which includes the translation result. Errors generated by the FHIR store
# contain a JSON-encoded `OperationOutcome` resource describing the reason for
# the error. If the request cannot be mapped to a valid API method on a FHIR
# store, a generic GCP error might be returned instead.
# @param [String] name
# The URL for the concept map to use for the translation.
# @param [String] code
@ -4805,7 +4806,8 @@ module Google
# entire year: `_at=2019` * An entire month: `_at=2019-01` * A specific day: `
# _at=2019-01-20` * A specific second: `_at=2018-12-31T23:59:58Z`
# @param [Fixnum] _count
# The maximum number of search results on a page. Defaults to 1000.
# The maximum number of search results on a page. Default value is 100. Maximum
# value is 1,000.
# @param [String] _page_token
# Used to retrieve the first, previous, next, or last page of resource versions
# when using pagination. Value should be set to the value of `_page_token` set
@ -5166,6 +5168,46 @@ module Google
execute_or_queue_command(command, &block)
end
# Exports the messages to a destination. To filter messages to be exported,
# define a filter using the start and end time, relative to the message
# generation time (MSH.7). This API returns an Operation that can be used to
# track the status of the job by calling GetOperation. Immediate fatal errors
# appear in the error field. Otherwise, when the operation finishes, a detailed
# response of type ExportMessagesResponse is returned in the response field. The
# metadata field type for this operation is OperationMetadata.
# @param [String] name
# The name of the source HL7v2 store, in the format `projects/`project_id`/
# locations/`location_id`/datasets/`dataset_id`/hl7v2Stores/`hl7v2_store_id``
# @param [Google::Apis::HealthcareV1beta1::ExportMessagesRequest] export_messages_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::HealthcareV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::HealthcareV1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def export_hl7_v2_store_messages(name, export_messages_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+name}:export', options)
command.request_representation = Google::Apis::HealthcareV1beta1::ExportMessagesRequest::Representation
command.request_object = export_messages_request_object
command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation
command.response_class = Google::Apis::HealthcareV1beta1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the specified HL7v2 store.
# @param [String] name
# The resource name of the HL7v2 store to get.

View File

@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/google-api-ruby-client.git",
"sha": "c98c719bbab68d0890524d53f8b629d7858af9c2"
"sha": "cb0c5bf94e2b1c915107eec83041d4409c900155"
}
}
]