google-api-client 0.30.10 → 0.31.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.
Files changed (112) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +42 -0
  3. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  4. data/generated/google/apis/alertcenter_v1beta1/classes.rb +52 -0
  5. data/generated/google/apis/alertcenter_v1beta1/representations.rb +29 -0
  6. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  7. data/generated/google/apis/androidenterprise_v1/classes.rb +0 -6
  8. data/generated/google/apis/androidenterprise_v1/representations.rb +0 -2
  9. data/generated/google/apis/androidenterprise_v1/service.rb +1 -2
  10. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  11. data/generated/google/apis/androidpublisher_v2/classes.rb +0 -6
  12. data/generated/google/apis/androidpublisher_v2/representations.rb +0 -1
  13. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  14. data/generated/google/apis/androidpublisher_v3/classes.rb +0 -6
  15. data/generated/google/apis/androidpublisher_v3/representations.rb +0 -1
  16. data/generated/google/apis/bigquery_v2.rb +1 -1
  17. data/generated/google/apis/bigquery_v2/classes.rb +15 -9
  18. data/generated/google/apis/bigquery_v2/representations.rb +1 -0
  19. data/generated/google/apis/bigquery_v2/service.rb +24 -24
  20. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  21. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +11 -4
  22. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  23. data/generated/google/apis/bigtableadmin_v2/classes.rb +11 -4
  24. data/generated/google/apis/bigtableadmin_v2/service.rb +104 -0
  25. data/generated/google/apis/calendar_v3.rb +1 -1
  26. data/generated/google/apis/calendar_v3/classes.rb +2 -2
  27. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  28. data/generated/google/apis/cloudtasks_v2/classes.rb +11 -4
  29. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  30. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +11 -4
  31. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  32. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +11 -4
  33. data/generated/google/apis/compute_alpha.rb +1 -1
  34. data/generated/google/apis/compute_alpha/classes.rb +20 -6
  35. data/generated/google/apis/compute_alpha/representations.rb +1 -0
  36. data/generated/google/apis/compute_beta.rb +1 -1
  37. data/generated/google/apis/compute_beta/classes.rb +112 -6
  38. data/generated/google/apis/compute_beta/representations.rb +58 -0
  39. data/generated/google/apis/compute_beta/service.rb +118 -0
  40. data/generated/google/apis/compute_v1.rb +1 -1
  41. data/generated/google/apis/compute_v1/classes.rb +1095 -7
  42. data/generated/google/apis/compute_v1/representations.rb +483 -0
  43. data/generated/google/apis/compute_v1/service.rb +2307 -468
  44. data/generated/google/apis/container_v1.rb +1 -1
  45. data/generated/google/apis/container_v1/classes.rb +3 -3
  46. data/generated/google/apis/container_v1beta1.rb +1 -1
  47. data/generated/google/apis/container_v1beta1/classes.rb +108 -3
  48. data/generated/google/apis/container_v1beta1/representations.rb +35 -0
  49. data/generated/google/apis/dialogflow_v2.rb +1 -1
  50. data/generated/google/apis/dialogflow_v2/classes.rb +41 -0
  51. data/generated/google/apis/dialogflow_v2/representations.rb +17 -0
  52. data/generated/google/apis/dialogflow_v2/service.rb +78 -0
  53. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  54. data/generated/google/apis/dialogflow_v2beta1/classes.rb +41 -90
  55. data/generated/google/apis/dialogflow_v2beta1/representations.rb +17 -55
  56. data/generated/google/apis/dialogflow_v2beta1/service.rb +78 -75
  57. data/generated/google/apis/dns_v1.rb +1 -1
  58. data/generated/google/apis/dns_v1/classes.rb +330 -4
  59. data/generated/google/apis/dns_v1/representations.rb +149 -0
  60. data/generated/google/apis/dns_v1/service.rb +246 -0
  61. data/generated/google/apis/dns_v1beta2.rb +1 -1
  62. data/generated/google/apis/dns_v1beta2/classes.rb +8 -8
  63. data/generated/google/apis/dns_v2beta1.rb +1 -1
  64. data/generated/google/apis/dns_v2beta1/classes.rb +330 -4
  65. data/generated/google/apis/dns_v2beta1/representations.rb +149 -0
  66. data/generated/google/apis/dns_v2beta1/service.rb +246 -0
  67. data/generated/google/apis/iam_v1.rb +1 -1
  68. data/generated/google/apis/iam_v1/classes.rb +9 -1
  69. data/generated/google/apis/iam_v1/service.rb +5 -3
  70. data/generated/google/apis/iap_v1.rb +1 -1
  71. data/generated/google/apis/iap_v1/classes.rb +11 -4
  72. data/generated/google/apis/iap_v1beta1.rb +1 -1
  73. data/generated/google/apis/iap_v1beta1/classes.rb +11 -4
  74. data/generated/google/apis/jobs_v3.rb +1 -1
  75. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  76. data/generated/google/apis/logging_v2.rb +1 -1
  77. data/generated/google/apis/logging_v2/classes.rb +30 -0
  78. data/generated/google/apis/logging_v2/representations.rb +15 -0
  79. data/generated/google/apis/logging_v2/service.rb +30 -35
  80. data/generated/google/apis/monitoring_v3.rb +1 -1
  81. data/generated/google/apis/monitoring_v3/classes.rb +60 -59
  82. data/generated/google/apis/monitoring_v3/service.rb +18 -18
  83. data/generated/google/apis/people_v1.rb +1 -1
  84. data/generated/google/apis/people_v1/classes.rb +40 -40
  85. data/generated/google/apis/serviceusage_v1.rb +1 -1
  86. data/generated/google/apis/serviceusage_v1/classes.rb +26 -0
  87. data/generated/google/apis/serviceusage_v1/representations.rb +15 -0
  88. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  89. data/generated/google/apis/serviceusage_v1beta1/classes.rb +26 -0
  90. data/generated/google/apis/serviceusage_v1beta1/representations.rb +15 -0
  91. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  92. data/generated/google/apis/videointelligence_v1.rb +1 -1
  93. data/generated/google/apis/videointelligence_v1/classes.rb +70 -0
  94. data/generated/google/apis/videointelligence_v1/representations.rb +20 -0
  95. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  96. data/generated/google/apis/videointelligence_v1beta2/classes.rb +70 -0
  97. data/generated/google/apis/videointelligence_v1beta2/representations.rb +20 -0
  98. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  99. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +70 -0
  100. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +20 -0
  101. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  102. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +70 -0
  103. data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +20 -0
  104. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  105. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +70 -0
  106. data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +20 -0
  107. data/lib/google/apis/version.rb +1 -1
  108. metadata +2 -6
  109. data/generated/google/apis/healthcare_v1alpha2.rb +0 -34
  110. data/generated/google/apis/healthcare_v1alpha2/classes.rb +0 -2972
  111. data/generated/google/apis/healthcare_v1alpha2/representations.rb +0 -1353
  112. data/generated/google/apis/healthcare_v1alpha2/service.rb +0 -4053
@@ -1,4053 +0,0 @@
1
- # Copyright 2015 Google Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'google/apis/core/base_service'
16
- require 'google/apis/core/json_representation'
17
- require 'google/apis/core/hashable'
18
- require 'google/apis/errors'
19
-
20
- module Google
21
- module Apis
22
- module HealthcareV1alpha2
23
- # Cloud Healthcare API
24
- #
25
- # Manage, store, and access healthcare data in Google Cloud Platform.
26
- #
27
- # @example
28
- # require 'google/apis/healthcare_v1alpha2'
29
- #
30
- # Healthcare = Google::Apis::HealthcareV1alpha2 # Alias the module
31
- # service = Healthcare::CloudHealthcareService.new
32
- #
33
- # @see https://cloud.google.com/healthcare
34
- class CloudHealthcareService < Google::Apis::Core::BaseService
35
- # @return [String]
36
- # API key. Your API key identifies your project and provides you with API access,
37
- # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
- attr_accessor :key
39
-
40
- # @return [String]
41
- # Available to use for quota purposes for server-side applications. Can be any
42
- # arbitrary string assigned to a user, but should not exceed 40 characters.
43
- attr_accessor :quota_user
44
-
45
- def initialize
46
- super('https://healthcare.googleapis.com/', '')
47
- @batch_path = 'batch'
48
- end
49
-
50
- # Gets information about a location.
51
- # @param [String] name
52
- # Resource name for the location.
53
- # @param [String] fields
54
- # Selector specifying which fields to include in a partial response.
55
- # @param [String] quota_user
56
- # Available to use for quota purposes for server-side applications. Can be any
57
- # arbitrary string assigned to a user, but should not exceed 40 characters.
58
- # @param [Google::Apis::RequestOptions] options
59
- # Request-specific options
60
- #
61
- # @yield [result, err] Result & error if block supplied
62
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Location] parsed result object
63
- # @yieldparam err [StandardError] error object if request failed
64
- #
65
- # @return [Google::Apis::HealthcareV1alpha2::Location]
66
- #
67
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
68
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
69
- # @raise [Google::Apis::AuthorizationError] Authorization is required
70
- def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
71
- command = make_simple_command(:get, 'v1alpha2/{+name}', options)
72
- command.response_representation = Google::Apis::HealthcareV1alpha2::Location::Representation
73
- command.response_class = Google::Apis::HealthcareV1alpha2::Location
74
- command.params['name'] = name unless name.nil?
75
- command.query['fields'] = fields unless fields.nil?
76
- command.query['quotaUser'] = quota_user unless quota_user.nil?
77
- execute_or_queue_command(command, &block)
78
- end
79
-
80
- # Lists information about the supported locations for this service.
81
- # @param [String] name
82
- # The resource that owns the locations collection, if applicable.
83
- # @param [String] filter
84
- # The standard list filter.
85
- # @param [Fixnum] page_size
86
- # The standard list page size.
87
- # @param [String] page_token
88
- # The standard list page token.
89
- # @param [String] fields
90
- # Selector specifying which fields to include in a partial response.
91
- # @param [String] quota_user
92
- # Available to use for quota purposes for server-side applications. Can be any
93
- # arbitrary string assigned to a user, but should not exceed 40 characters.
94
- # @param [Google::Apis::RequestOptions] options
95
- # Request-specific options
96
- #
97
- # @yield [result, err] Result & error if block supplied
98
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::ListLocationsResponse] parsed result object
99
- # @yieldparam err [StandardError] error object if request failed
100
- #
101
- # @return [Google::Apis::HealthcareV1alpha2::ListLocationsResponse]
102
- #
103
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
104
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
105
- # @raise [Google::Apis::AuthorizationError] Authorization is required
106
- def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
107
- command = make_simple_command(:get, 'v1alpha2/{+name}/locations', options)
108
- command.response_representation = Google::Apis::HealthcareV1alpha2::ListLocationsResponse::Representation
109
- command.response_class = Google::Apis::HealthcareV1alpha2::ListLocationsResponse
110
- command.params['name'] = name unless name.nil?
111
- command.query['filter'] = filter unless filter.nil?
112
- command.query['pageSize'] = page_size unless page_size.nil?
113
- command.query['pageToken'] = page_token unless page_token.nil?
114
- command.query['fields'] = fields unless fields.nil?
115
- command.query['quotaUser'] = quota_user unless quota_user.nil?
116
- execute_or_queue_command(command, &block)
117
- end
118
-
119
- # Creates a new health dataset. Results are returned through the
120
- # Operation interface which returns either an
121
- # `Operation.response` which contains a Dataset or
122
- # `Operation.error`. The metadata
123
- # field type is OperationMetadata.
124
- # A Google Cloud Platform project can contain up to 500 datasets across all
125
- # regions.
126
- # @param [String] parent
127
- # The name of the project in which the dataset should be created (e.g.,
128
- # `projects/`project_id`/locations/`location_id``).
129
- # @param [Google::Apis::HealthcareV1alpha2::Dataset] dataset_object
130
- # @param [String] dataset_id
131
- # The ID of the dataset that is being created.
132
- # The string must match the following regex: `[\p`L`\p`N`_\-\.]`1,256``.
133
- # @param [String] fields
134
- # Selector specifying which fields to include in a partial response.
135
- # @param [String] quota_user
136
- # Available to use for quota purposes for server-side applications. Can be any
137
- # arbitrary string assigned to a user, but should not exceed 40 characters.
138
- # @param [Google::Apis::RequestOptions] options
139
- # Request-specific options
140
- #
141
- # @yield [result, err] Result & error if block supplied
142
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Operation] parsed result object
143
- # @yieldparam err [StandardError] error object if request failed
144
- #
145
- # @return [Google::Apis::HealthcareV1alpha2::Operation]
146
- #
147
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
148
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
149
- # @raise [Google::Apis::AuthorizationError] Authorization is required
150
- def create_project_location_dataset(parent, dataset_object = nil, dataset_id: nil, fields: nil, quota_user: nil, options: nil, &block)
151
- command = make_simple_command(:post, 'v1alpha2/{+parent}/datasets', options)
152
- command.request_representation = Google::Apis::HealthcareV1alpha2::Dataset::Representation
153
- command.request_object = dataset_object
154
- command.response_representation = Google::Apis::HealthcareV1alpha2::Operation::Representation
155
- command.response_class = Google::Apis::HealthcareV1alpha2::Operation
156
- command.params['parent'] = parent unless parent.nil?
157
- command.query['datasetId'] = dataset_id unless dataset_id.nil?
158
- command.query['fields'] = fields unless fields.nil?
159
- command.query['quotaUser'] = quota_user unless quota_user.nil?
160
- execute_or_queue_command(command, &block)
161
- end
162
-
163
- # Creates a new dataset containing de-identified data from the source
164
- # dataset. The metadata field type
165
- # is OperationMetadata.
166
- # If the request is successful, the
167
- # response field type is
168
- # DeidentifySummary.
169
- # If errors occur,
170
- # details field type is
171
- # DeidentifyErrorDetails.
172
- # Errors are also logged to Stackdriver
173
- # (see [Viewing logs](/healthcare/docs/how-tos/stackdriver-logging)).
174
- # @param [String] source_dataset
175
- # Source dataset resource name. (e.g.,
176
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id``).
177
- # @param [Google::Apis::HealthcareV1alpha2::DeidentifyDatasetRequest] deidentify_dataset_request_object
178
- # @param [String] fields
179
- # Selector specifying which fields to include in a partial response.
180
- # @param [String] quota_user
181
- # Available to use for quota purposes for server-side applications. Can be any
182
- # arbitrary string assigned to a user, but should not exceed 40 characters.
183
- # @param [Google::Apis::RequestOptions] options
184
- # Request-specific options
185
- #
186
- # @yield [result, err] Result & error if block supplied
187
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Operation] parsed result object
188
- # @yieldparam err [StandardError] error object if request failed
189
- #
190
- # @return [Google::Apis::HealthcareV1alpha2::Operation]
191
- #
192
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
193
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
194
- # @raise [Google::Apis::AuthorizationError] Authorization is required
195
- def deidentify_dataset(source_dataset, deidentify_dataset_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
196
- command = make_simple_command(:post, 'v1alpha2/{+sourceDataset}:deidentify', options)
197
- command.request_representation = Google::Apis::HealthcareV1alpha2::DeidentifyDatasetRequest::Representation
198
- command.request_object = deidentify_dataset_request_object
199
- command.response_representation = Google::Apis::HealthcareV1alpha2::Operation::Representation
200
- command.response_class = Google::Apis::HealthcareV1alpha2::Operation
201
- command.params['sourceDataset'] = source_dataset unless source_dataset.nil?
202
- command.query['fields'] = fields unless fields.nil?
203
- command.query['quotaUser'] = quota_user unless quota_user.nil?
204
- execute_or_queue_command(command, &block)
205
- end
206
-
207
- # Deletes the specified health dataset and all data contained in the dataset.
208
- # Deleting a dataset does not affect the sources from which the dataset was
209
- # imported (if any).
210
- # @param [String] name
211
- # The name of the dataset to delete (e.g.,
212
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id``).
213
- # @param [String] fields
214
- # Selector specifying which fields to include in a partial response.
215
- # @param [String] quota_user
216
- # Available to use for quota purposes for server-side applications. Can be any
217
- # arbitrary string assigned to a user, but should not exceed 40 characters.
218
- # @param [Google::Apis::RequestOptions] options
219
- # Request-specific options
220
- #
221
- # @yield [result, err] Result & error if block supplied
222
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Empty] parsed result object
223
- # @yieldparam err [StandardError] error object if request failed
224
- #
225
- # @return [Google::Apis::HealthcareV1alpha2::Empty]
226
- #
227
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
228
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
229
- # @raise [Google::Apis::AuthorizationError] Authorization is required
230
- def delete_project_location_dataset(name, fields: nil, quota_user: nil, options: nil, &block)
231
- command = make_simple_command(:delete, 'v1alpha2/{+name}', options)
232
- command.response_representation = Google::Apis::HealthcareV1alpha2::Empty::Representation
233
- command.response_class = Google::Apis::HealthcareV1alpha2::Empty
234
- command.params['name'] = name unless name.nil?
235
- command.query['fields'] = fields unless fields.nil?
236
- command.query['quotaUser'] = quota_user unless quota_user.nil?
237
- execute_or_queue_command(command, &block)
238
- end
239
-
240
- # Gets any metadata associated with a dataset.
241
- # @param [String] name
242
- # The name of the dataset to read (e.g.,
243
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id``).
244
- # @param [String] fields
245
- # Selector specifying which fields to include in a partial response.
246
- # @param [String] quota_user
247
- # Available to use for quota purposes for server-side applications. Can be any
248
- # arbitrary string assigned to a user, but should not exceed 40 characters.
249
- # @param [Google::Apis::RequestOptions] options
250
- # Request-specific options
251
- #
252
- # @yield [result, err] Result & error if block supplied
253
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Dataset] parsed result object
254
- # @yieldparam err [StandardError] error object if request failed
255
- #
256
- # @return [Google::Apis::HealthcareV1alpha2::Dataset]
257
- #
258
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
259
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
260
- # @raise [Google::Apis::AuthorizationError] Authorization is required
261
- def get_project_location_dataset(name, fields: nil, quota_user: nil, options: nil, &block)
262
- command = make_simple_command(:get, 'v1alpha2/{+name}', options)
263
- command.response_representation = Google::Apis::HealthcareV1alpha2::Dataset::Representation
264
- command.response_class = Google::Apis::HealthcareV1alpha2::Dataset
265
- command.params['name'] = name unless name.nil?
266
- command.query['fields'] = fields unless fields.nil?
267
- command.query['quotaUser'] = quota_user unless quota_user.nil?
268
- execute_or_queue_command(command, &block)
269
- end
270
-
271
- # Gets the access control policy for a resource.
272
- # Returns an empty policy if the resource exists and does not have a policy
273
- # set.
274
- # @param [String] resource
275
- # REQUIRED: The resource for which the policy is being requested.
276
- # See the operation documentation for the appropriate value for this field.
277
- # @param [Fixnum] options_requested_policy_version
278
- # Optional. The policy format version to be returned.
279
- # Acceptable values are 0, 1, and 3.
280
- # If the value is 0, or the field is omitted, policy format version 1 will be
281
- # returned.
282
- # @param [String] fields
283
- # Selector specifying which fields to include in a partial response.
284
- # @param [String] quota_user
285
- # Available to use for quota purposes for server-side applications. Can be any
286
- # arbitrary string assigned to a user, but should not exceed 40 characters.
287
- # @param [Google::Apis::RequestOptions] options
288
- # Request-specific options
289
- #
290
- # @yield [result, err] Result & error if block supplied
291
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Policy] parsed result object
292
- # @yieldparam err [StandardError] error object if request failed
293
- #
294
- # @return [Google::Apis::HealthcareV1alpha2::Policy]
295
- #
296
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
297
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
298
- # @raise [Google::Apis::AuthorizationError] Authorization is required
299
- def get_project_location_dataset_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
300
- command = make_simple_command(:get, 'v1alpha2/{+resource}:getIamPolicy', options)
301
- command.response_representation = Google::Apis::HealthcareV1alpha2::Policy::Representation
302
- command.response_class = Google::Apis::HealthcareV1alpha2::Policy
303
- command.params['resource'] = resource unless resource.nil?
304
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
305
- command.query['fields'] = fields unless fields.nil?
306
- command.query['quotaUser'] = quota_user unless quota_user.nil?
307
- execute_or_queue_command(command, &block)
308
- end
309
-
310
- # Lists the health datasets in the current project.
311
- # @param [String] parent
312
- # The name of the project whose datasets should be listed (e.g.,
313
- # `projects/`project_id`/locations/`location_id``).
314
- # @param [Fixnum] page_size
315
- # The maximum number of items to return. Capped to 100 if not specified.
316
- # May not be larger than 1000.
317
- # @param [String] page_token
318
- # The next_page_token value returned from a previous List request, if any.
319
- # @param [String] fields
320
- # Selector specifying which fields to include in a partial response.
321
- # @param [String] quota_user
322
- # Available to use for quota purposes for server-side applications. Can be any
323
- # arbitrary string assigned to a user, but should not exceed 40 characters.
324
- # @param [Google::Apis::RequestOptions] options
325
- # Request-specific options
326
- #
327
- # @yield [result, err] Result & error if block supplied
328
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::ListDatasetsResponse] parsed result object
329
- # @yieldparam err [StandardError] error object if request failed
330
- #
331
- # @return [Google::Apis::HealthcareV1alpha2::ListDatasetsResponse]
332
- #
333
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
334
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
335
- # @raise [Google::Apis::AuthorizationError] Authorization is required
336
- def list_project_location_datasets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
337
- command = make_simple_command(:get, 'v1alpha2/{+parent}/datasets', options)
338
- command.response_representation = Google::Apis::HealthcareV1alpha2::ListDatasetsResponse::Representation
339
- command.response_class = Google::Apis::HealthcareV1alpha2::ListDatasetsResponse
340
- command.params['parent'] = parent unless parent.nil?
341
- command.query['pageSize'] = page_size unless page_size.nil?
342
- command.query['pageToken'] = page_token unless page_token.nil?
343
- command.query['fields'] = fields unless fields.nil?
344
- command.query['quotaUser'] = quota_user unless quota_user.nil?
345
- execute_or_queue_command(command, &block)
346
- end
347
-
348
- # Updates dataset metadata.
349
- # @param [String] name
350
- # Output only. Resource name of the dataset, of the form
351
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id``.
352
- # @param [Google::Apis::HealthcareV1alpha2::Dataset] dataset_object
353
- # @param [String] update_mask
354
- # The update mask applies to the resource. For the `FieldMask` definition,
355
- # see
356
- # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
357
- # fieldmask
358
- # @param [String] fields
359
- # Selector specifying which fields to include in a partial response.
360
- # @param [String] quota_user
361
- # Available to use for quota purposes for server-side applications. Can be any
362
- # arbitrary string assigned to a user, but should not exceed 40 characters.
363
- # @param [Google::Apis::RequestOptions] options
364
- # Request-specific options
365
- #
366
- # @yield [result, err] Result & error if block supplied
367
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Dataset] parsed result object
368
- # @yieldparam err [StandardError] error object if request failed
369
- #
370
- # @return [Google::Apis::HealthcareV1alpha2::Dataset]
371
- #
372
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
373
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
374
- # @raise [Google::Apis::AuthorizationError] Authorization is required
375
- def patch_project_location_dataset(name, dataset_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
376
- command = make_simple_command(:patch, 'v1alpha2/{+name}', options)
377
- command.request_representation = Google::Apis::HealthcareV1alpha2::Dataset::Representation
378
- command.request_object = dataset_object
379
- command.response_representation = Google::Apis::HealthcareV1alpha2::Dataset::Representation
380
- command.response_class = Google::Apis::HealthcareV1alpha2::Dataset
381
- command.params['name'] = name unless name.nil?
382
- command.query['updateMask'] = update_mask unless update_mask.nil?
383
- command.query['fields'] = fields unless fields.nil?
384
- command.query['quotaUser'] = quota_user unless quota_user.nil?
385
- execute_or_queue_command(command, &block)
386
- end
387
-
388
- # Sets the access control policy on the specified resource. Replaces any
389
- # existing policy.
390
- # @param [String] resource
391
- # REQUIRED: The resource for which the policy is being specified.
392
- # See the operation documentation for the appropriate value for this field.
393
- # @param [Google::Apis::HealthcareV1alpha2::SetIamPolicyRequest] set_iam_policy_request_object
394
- # @param [String] fields
395
- # Selector specifying which fields to include in a partial response.
396
- # @param [String] quota_user
397
- # Available to use for quota purposes for server-side applications. Can be any
398
- # arbitrary string assigned to a user, but should not exceed 40 characters.
399
- # @param [Google::Apis::RequestOptions] options
400
- # Request-specific options
401
- #
402
- # @yield [result, err] Result & error if block supplied
403
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Policy] parsed result object
404
- # @yieldparam err [StandardError] error object if request failed
405
- #
406
- # @return [Google::Apis::HealthcareV1alpha2::Policy]
407
- #
408
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
409
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
410
- # @raise [Google::Apis::AuthorizationError] Authorization is required
411
- def set_dataset_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
412
- command = make_simple_command(:post, 'v1alpha2/{+resource}:setIamPolicy', options)
413
- command.request_representation = Google::Apis::HealthcareV1alpha2::SetIamPolicyRequest::Representation
414
- command.request_object = set_iam_policy_request_object
415
- command.response_representation = Google::Apis::HealthcareV1alpha2::Policy::Representation
416
- command.response_class = Google::Apis::HealthcareV1alpha2::Policy
417
- command.params['resource'] = resource unless resource.nil?
418
- command.query['fields'] = fields unless fields.nil?
419
- command.query['quotaUser'] = quota_user unless quota_user.nil?
420
- execute_or_queue_command(command, &block)
421
- end
422
-
423
- # Returns permissions that a caller has on the specified resource.
424
- # If the resource does not exist, this will return an empty set of
425
- # permissions, not a NOT_FOUND error.
426
- # Note: This operation is designed to be used for building permission-aware
427
- # UIs and command-line tools, not for authorization checking. This operation
428
- # may "fail open" without warning.
429
- # @param [String] resource
430
- # REQUIRED: The resource for which the policy detail is being requested.
431
- # See the operation documentation for the appropriate value for this field.
432
- # @param [Google::Apis::HealthcareV1alpha2::TestIamPermissionsRequest] test_iam_permissions_request_object
433
- # @param [String] fields
434
- # Selector specifying which fields to include in a partial response.
435
- # @param [String] quota_user
436
- # Available to use for quota purposes for server-side applications. Can be any
437
- # arbitrary string assigned to a user, but should not exceed 40 characters.
438
- # @param [Google::Apis::RequestOptions] options
439
- # Request-specific options
440
- #
441
- # @yield [result, err] Result & error if block supplied
442
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::TestIamPermissionsResponse] parsed result object
443
- # @yieldparam err [StandardError] error object if request failed
444
- #
445
- # @return [Google::Apis::HealthcareV1alpha2::TestIamPermissionsResponse]
446
- #
447
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
448
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
449
- # @raise [Google::Apis::AuthorizationError] Authorization is required
450
- def test_dataset_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
451
- command = make_simple_command(:post, 'v1alpha2/{+resource}:testIamPermissions', options)
452
- command.request_representation = Google::Apis::HealthcareV1alpha2::TestIamPermissionsRequest::Representation
453
- command.request_object = test_iam_permissions_request_object
454
- command.response_representation = Google::Apis::HealthcareV1alpha2::TestIamPermissionsResponse::Representation
455
- command.response_class = Google::Apis::HealthcareV1alpha2::TestIamPermissionsResponse
456
- command.params['resource'] = resource unless resource.nil?
457
- command.query['fields'] = fields unless fields.nil?
458
- command.query['quotaUser'] = quota_user unless quota_user.nil?
459
- execute_or_queue_command(command, &block)
460
- end
461
-
462
- # Creates a new Annotation store within the parent dataset.
463
- # @param [String] parent
464
- # The name of the dataset this Annotation store belongs to.
465
- # @param [Google::Apis::HealthcareV1alpha2::AnnotationStore] annotation_store_object
466
- # @param [String] annotation_store_id
467
- # The ID of the Annotation store that is being created.
468
- # The string must match the following regex: `[\p`L`\p`N`_\-\.]`1,256``.
469
- # @param [String] fields
470
- # Selector specifying which fields to include in a partial response.
471
- # @param [String] quota_user
472
- # Available to use for quota purposes for server-side applications. Can be any
473
- # arbitrary string assigned to a user, but should not exceed 40 characters.
474
- # @param [Google::Apis::RequestOptions] options
475
- # Request-specific options
476
- #
477
- # @yield [result, err] Result & error if block supplied
478
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::AnnotationStore] parsed result object
479
- # @yieldparam err [StandardError] error object if request failed
480
- #
481
- # @return [Google::Apis::HealthcareV1alpha2::AnnotationStore]
482
- #
483
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
484
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
485
- # @raise [Google::Apis::AuthorizationError] Authorization is required
486
- def create_project_location_dataset_annotation_store(parent, annotation_store_object = nil, annotation_store_id: nil, fields: nil, quota_user: nil, options: nil, &block)
487
- command = make_simple_command(:post, 'v1alpha2/{+parent}/annotationStores', options)
488
- command.request_representation = Google::Apis::HealthcareV1alpha2::AnnotationStore::Representation
489
- command.request_object = annotation_store_object
490
- command.response_representation = Google::Apis::HealthcareV1alpha2::AnnotationStore::Representation
491
- command.response_class = Google::Apis::HealthcareV1alpha2::AnnotationStore
492
- command.params['parent'] = parent unless parent.nil?
493
- command.query['annotationStoreId'] = annotation_store_id unless annotation_store_id.nil?
494
- command.query['fields'] = fields unless fields.nil?
495
- command.query['quotaUser'] = quota_user unless quota_user.nil?
496
- execute_or_queue_command(command, &block)
497
- end
498
-
499
- # Deletes the specified Annotation store and removes all annotations that are
500
- # contained within it.
501
- # @param [String] name
502
- # The resource name of the Annotation store to delete.
503
- # @param [String] fields
504
- # Selector specifying which fields to include in a partial response.
505
- # @param [String] quota_user
506
- # Available to use for quota purposes for server-side applications. Can be any
507
- # arbitrary string assigned to a user, but should not exceed 40 characters.
508
- # @param [Google::Apis::RequestOptions] options
509
- # Request-specific options
510
- #
511
- # @yield [result, err] Result & error if block supplied
512
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Empty] parsed result object
513
- # @yieldparam err [StandardError] error object if request failed
514
- #
515
- # @return [Google::Apis::HealthcareV1alpha2::Empty]
516
- #
517
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
518
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
519
- # @raise [Google::Apis::AuthorizationError] Authorization is required
520
- def delete_project_location_dataset_annotation_store(name, fields: nil, quota_user: nil, options: nil, &block)
521
- command = make_simple_command(:delete, 'v1alpha2/{+name}', options)
522
- command.response_representation = Google::Apis::HealthcareV1alpha2::Empty::Representation
523
- command.response_class = Google::Apis::HealthcareV1alpha2::Empty
524
- command.params['name'] = name unless name.nil?
525
- command.query['fields'] = fields unless fields.nil?
526
- command.query['quotaUser'] = quota_user unless quota_user.nil?
527
- execute_or_queue_command(command, &block)
528
- end
529
-
530
- # Gets the specified Annotation store or returns NOT_FOUND if it does not
531
- # exist.
532
- # @param [String] name
533
- # The resource name of the Annotation store to get.
534
- # @param [String] fields
535
- # Selector specifying which fields to include in a partial response.
536
- # @param [String] quota_user
537
- # Available to use for quota purposes for server-side applications. Can be any
538
- # arbitrary string assigned to a user, but should not exceed 40 characters.
539
- # @param [Google::Apis::RequestOptions] options
540
- # Request-specific options
541
- #
542
- # @yield [result, err] Result & error if block supplied
543
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::AnnotationStore] parsed result object
544
- # @yieldparam err [StandardError] error object if request failed
545
- #
546
- # @return [Google::Apis::HealthcareV1alpha2::AnnotationStore]
547
- #
548
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
549
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
550
- # @raise [Google::Apis::AuthorizationError] Authorization is required
551
- def get_project_location_dataset_annotation_store(name, fields: nil, quota_user: nil, options: nil, &block)
552
- command = make_simple_command(:get, 'v1alpha2/{+name}', options)
553
- command.response_representation = Google::Apis::HealthcareV1alpha2::AnnotationStore::Representation
554
- command.response_class = Google::Apis::HealthcareV1alpha2::AnnotationStore
555
- command.params['name'] = name unless name.nil?
556
- command.query['fields'] = fields unless fields.nil?
557
- command.query['quotaUser'] = quota_user unless quota_user.nil?
558
- execute_or_queue_command(command, &block)
559
- end
560
-
561
- # Gets the access control policy for a resource. Returns NOT_FOUND error if
562
- # the resource does not exist. Returns an empty policy if the resource exists
563
- # but does not have a policy set.
564
- # Authorization requires the Google IAM permission
565
- # `healthcare.AnnotationStores.getIamPolicy` on the specified
566
- # resource
567
- # @param [String] resource
568
- # REQUIRED: The resource for which the policy is being requested.
569
- # See the operation documentation for the appropriate value for this field.
570
- # @param [Google::Apis::HealthcareV1alpha2::GetIamPolicyRequest] get_iam_policy_request_object
571
- # @param [String] fields
572
- # Selector specifying which fields to include in a partial response.
573
- # @param [String] quota_user
574
- # Available to use for quota purposes for server-side applications. Can be any
575
- # arbitrary string assigned to a user, but should not exceed 40 characters.
576
- # @param [Google::Apis::RequestOptions] options
577
- # Request-specific options
578
- #
579
- # @yield [result, err] Result & error if block supplied
580
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Policy] parsed result object
581
- # @yieldparam err [StandardError] error object if request failed
582
- #
583
- # @return [Google::Apis::HealthcareV1alpha2::Policy]
584
- #
585
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
586
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
587
- # @raise [Google::Apis::AuthorizationError] Authorization is required
588
- def get_annotation_store_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
589
- command = make_simple_command(:post, 'v1alpha2/{+resource}:getIamPolicy', options)
590
- command.request_representation = Google::Apis::HealthcareV1alpha2::GetIamPolicyRequest::Representation
591
- command.request_object = get_iam_policy_request_object
592
- command.response_representation = Google::Apis::HealthcareV1alpha2::Policy::Representation
593
- command.response_class = Google::Apis::HealthcareV1alpha2::Policy
594
- command.params['resource'] = resource unless resource.nil?
595
- command.query['fields'] = fields unless fields.nil?
596
- command.query['quotaUser'] = quota_user unless quota_user.nil?
597
- execute_or_queue_command(command, &block)
598
- end
599
-
600
- # Lists the Annotation stores in the given dataset for a source store.
601
- # @param [String] parent
602
- # Name of the dataset.
603
- # @param [String] filter
604
- # Restricts stores returned to those matching a filter. Syntax:
605
- # https://cloud.google.com/appengine/docs/standard/python/search/query_strings
606
- # Only filtering on labels is supported, for example `labels.key=value`.
607
- # @param [Fixnum] page_size
608
- # Limit on the number of Annotation stores to return in a single response.
609
- # If zero the default page size of 100 is used.
610
- # @param [String] page_token
611
- # The next_page_token value returned from the previous List request, if any.
612
- # @param [String] fields
613
- # Selector specifying which fields to include in a partial response.
614
- # @param [String] quota_user
615
- # Available to use for quota purposes for server-side applications. Can be any
616
- # arbitrary string assigned to a user, but should not exceed 40 characters.
617
- # @param [Google::Apis::RequestOptions] options
618
- # Request-specific options
619
- #
620
- # @yield [result, err] Result & error if block supplied
621
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::ListAnnotationStoresResponse] parsed result object
622
- # @yieldparam err [StandardError] error object if request failed
623
- #
624
- # @return [Google::Apis::HealthcareV1alpha2::ListAnnotationStoresResponse]
625
- #
626
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
627
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
628
- # @raise [Google::Apis::AuthorizationError] Authorization is required
629
- def list_project_location_dataset_annotation_stores(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
630
- command = make_simple_command(:get, 'v1alpha2/{+parent}/annotationStores', options)
631
- command.response_representation = Google::Apis::HealthcareV1alpha2::ListAnnotationStoresResponse::Representation
632
- command.response_class = Google::Apis::HealthcareV1alpha2::ListAnnotationStoresResponse
633
- command.params['parent'] = parent unless parent.nil?
634
- command.query['filter'] = filter unless filter.nil?
635
- command.query['pageSize'] = page_size unless page_size.nil?
636
- command.query['pageToken'] = page_token unless page_token.nil?
637
- command.query['fields'] = fields unless fields.nil?
638
- command.query['quotaUser'] = quota_user unless quota_user.nil?
639
- execute_or_queue_command(command, &block)
640
- end
641
-
642
- # Updates the specified Annotation store.
643
- # @param [String] name
644
- # Output only. Resource name of the Annotation store, of the form
645
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
646
- # annotationStores/`annotation_store_id``.
647
- # @param [Google::Apis::HealthcareV1alpha2::AnnotationStore] annotation_store_object
648
- # @param [String] update_mask
649
- # The update mask applies to the resource. For the `FieldMask` definition,
650
- # see
651
- # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
652
- # fieldmask
653
- # @param [String] fields
654
- # Selector specifying which fields to include in a partial response.
655
- # @param [String] quota_user
656
- # Available to use for quota purposes for server-side applications. Can be any
657
- # arbitrary string assigned to a user, but should not exceed 40 characters.
658
- # @param [Google::Apis::RequestOptions] options
659
- # Request-specific options
660
- #
661
- # @yield [result, err] Result & error if block supplied
662
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::AnnotationStore] parsed result object
663
- # @yieldparam err [StandardError] error object if request failed
664
- #
665
- # @return [Google::Apis::HealthcareV1alpha2::AnnotationStore]
666
- #
667
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
668
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
669
- # @raise [Google::Apis::AuthorizationError] Authorization is required
670
- def patch_project_location_dataset_annotation_store(name, annotation_store_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
671
- command = make_simple_command(:patch, 'v1alpha2/{+name}', options)
672
- command.request_representation = Google::Apis::HealthcareV1alpha2::AnnotationStore::Representation
673
- command.request_object = annotation_store_object
674
- command.response_representation = Google::Apis::HealthcareV1alpha2::AnnotationStore::Representation
675
- command.response_class = Google::Apis::HealthcareV1alpha2::AnnotationStore
676
- command.params['name'] = name unless name.nil?
677
- command.query['updateMask'] = update_mask unless update_mask.nil?
678
- command.query['fields'] = fields unless fields.nil?
679
- command.query['quotaUser'] = quota_user unless quota_user.nil?
680
- execute_or_queue_command(command, &block)
681
- end
682
-
683
- # POLICIES
684
- # Sets the access control policy for a resource. Replaces any existing
685
- # policy.
686
- # Authorization requires the Google IAM permission
687
- # `healthcare.annotationStores.setIamPolicy` on the specified
688
- # resource
689
- # @param [String] resource
690
- # REQUIRED: The resource for which the policy is being specified.
691
- # See the operation documentation for the appropriate value for this field.
692
- # @param [Google::Apis::HealthcareV1alpha2::SetIamPolicyRequest] set_iam_policy_request_object
693
- # @param [String] fields
694
- # Selector specifying which fields to include in a partial response.
695
- # @param [String] quota_user
696
- # Available to use for quota purposes for server-side applications. Can be any
697
- # arbitrary string assigned to a user, but should not exceed 40 characters.
698
- # @param [Google::Apis::RequestOptions] options
699
- # Request-specific options
700
- #
701
- # @yield [result, err] Result & error if block supplied
702
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Policy] parsed result object
703
- # @yieldparam err [StandardError] error object if request failed
704
- #
705
- # @return [Google::Apis::HealthcareV1alpha2::Policy]
706
- #
707
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
708
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
709
- # @raise [Google::Apis::AuthorizationError] Authorization is required
710
- def set_annotation_store_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
711
- command = make_simple_command(:post, 'v1alpha2/{+resource}:setIamPolicy', options)
712
- command.request_representation = Google::Apis::HealthcareV1alpha2::SetIamPolicyRequest::Representation
713
- command.request_object = set_iam_policy_request_object
714
- command.response_representation = Google::Apis::HealthcareV1alpha2::Policy::Representation
715
- command.response_class = Google::Apis::HealthcareV1alpha2::Policy
716
- command.params['resource'] = resource unless resource.nil?
717
- command.query['fields'] = fields unless fields.nil?
718
- command.query['quotaUser'] = quota_user unless quota_user.nil?
719
- execute_or_queue_command(command, &block)
720
- end
721
-
722
- # Returns permissions that a caller has on the specified resource.
723
- # If the resource does not exist, this will return an empty set of
724
- # permissions, not a NOT_FOUND error.
725
- # There is no permission required to make this API call.
726
- # @param [String] resource
727
- # REQUIRED: The resource for which the policy detail is being requested.
728
- # See the operation documentation for the appropriate value for this field.
729
- # @param [Google::Apis::HealthcareV1alpha2::TestIamPermissionsRequest] test_iam_permissions_request_object
730
- # @param [String] fields
731
- # Selector specifying which fields to include in a partial response.
732
- # @param [String] quota_user
733
- # Available to use for quota purposes for server-side applications. Can be any
734
- # arbitrary string assigned to a user, but should not exceed 40 characters.
735
- # @param [Google::Apis::RequestOptions] options
736
- # Request-specific options
737
- #
738
- # @yield [result, err] Result & error if block supplied
739
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::TestIamPermissionsResponse] parsed result object
740
- # @yieldparam err [StandardError] error object if request failed
741
- #
742
- # @return [Google::Apis::HealthcareV1alpha2::TestIamPermissionsResponse]
743
- #
744
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
745
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
746
- # @raise [Google::Apis::AuthorizationError] Authorization is required
747
- def test_annotation_store_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
748
- command = make_simple_command(:post, 'v1alpha2/{+resource}:testIamPermissions', options)
749
- command.request_representation = Google::Apis::HealthcareV1alpha2::TestIamPermissionsRequest::Representation
750
- command.request_object = test_iam_permissions_request_object
751
- command.response_representation = Google::Apis::HealthcareV1alpha2::TestIamPermissionsResponse::Representation
752
- command.response_class = Google::Apis::HealthcareV1alpha2::TestIamPermissionsResponse
753
- command.params['resource'] = resource unless resource.nil?
754
- command.query['fields'] = fields unless fields.nil?
755
- command.query['quotaUser'] = quota_user unless quota_user.nil?
756
- execute_or_queue_command(command, &block)
757
- end
758
-
759
- # Creates a new Annotation record. It is
760
- # valid to create Annotation objects for the same source more than once since
761
- # a unique ID is assigned to each record by this service.
762
- # @param [String] parent
763
- # The name of the Annotation store this annotation belongs to. For example,
764
- # `projects/my-project/locations/us-central1/datasets/mydataset/annotationStores/
765
- # myannotationstore`.
766
- # @param [Google::Apis::HealthcareV1alpha2::Annotation] annotation_object
767
- # @param [String] fields
768
- # Selector specifying which fields to include in a partial response.
769
- # @param [String] quota_user
770
- # Available to use for quota purposes for server-side applications. Can be any
771
- # arbitrary string assigned to a user, but should not exceed 40 characters.
772
- # @param [Google::Apis::RequestOptions] options
773
- # Request-specific options
774
- #
775
- # @yield [result, err] Result & error if block supplied
776
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Annotation] parsed result object
777
- # @yieldparam err [StandardError] error object if request failed
778
- #
779
- # @return [Google::Apis::HealthcareV1alpha2::Annotation]
780
- #
781
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
782
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
783
- # @raise [Google::Apis::AuthorizationError] Authorization is required
784
- def create_project_location_dataset_annotation_store_annotation(parent, annotation_object = nil, fields: nil, quota_user: nil, options: nil, &block)
785
- command = make_simple_command(:post, 'v1alpha2/{+parent}/annotations', options)
786
- command.request_representation = Google::Apis::HealthcareV1alpha2::Annotation::Representation
787
- command.request_object = annotation_object
788
- command.response_representation = Google::Apis::HealthcareV1alpha2::Annotation::Representation
789
- command.response_class = Google::Apis::HealthcareV1alpha2::Annotation
790
- command.params['parent'] = parent unless parent.nil?
791
- command.query['fields'] = fields unless fields.nil?
792
- command.query['quotaUser'] = quota_user unless quota_user.nil?
793
- execute_or_queue_command(command, &block)
794
- end
795
-
796
- # Deletes an Annotation or returns
797
- # NOT_FOUND if it does not exist.
798
- # @param [String] name
799
- # The resource name of the Annotation to delete.
800
- # @param [String] fields
801
- # Selector specifying which fields to include in a partial response.
802
- # @param [String] quota_user
803
- # Available to use for quota purposes for server-side applications. Can be any
804
- # arbitrary string assigned to a user, but should not exceed 40 characters.
805
- # @param [Google::Apis::RequestOptions] options
806
- # Request-specific options
807
- #
808
- # @yield [result, err] Result & error if block supplied
809
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Empty] parsed result object
810
- # @yieldparam err [StandardError] error object if request failed
811
- #
812
- # @return [Google::Apis::HealthcareV1alpha2::Empty]
813
- #
814
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
815
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
816
- # @raise [Google::Apis::AuthorizationError] Authorization is required
817
- def delete_project_location_dataset_annotation_store_annotation(name, fields: nil, quota_user: nil, options: nil, &block)
818
- command = make_simple_command(:delete, 'v1alpha2/{+name}', options)
819
- command.response_representation = Google::Apis::HealthcareV1alpha2::Empty::Representation
820
- command.response_class = Google::Apis::HealthcareV1alpha2::Empty
821
- command.params['name'] = name unless name.nil?
822
- command.query['fields'] = fields unless fields.nil?
823
- command.query['quotaUser'] = quota_user unless quota_user.nil?
824
- execute_or_queue_command(command, &block)
825
- end
826
-
827
- # Gets an Annotation.
828
- # @param [String] name
829
- # The resource name of the Annotation to retrieve.
830
- # @param [String] fields
831
- # Selector specifying which fields to include in a partial response.
832
- # @param [String] quota_user
833
- # Available to use for quota purposes for server-side applications. Can be any
834
- # arbitrary string assigned to a user, but should not exceed 40 characters.
835
- # @param [Google::Apis::RequestOptions] options
836
- # Request-specific options
837
- #
838
- # @yield [result, err] Result & error if block supplied
839
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Annotation] parsed result object
840
- # @yieldparam err [StandardError] error object if request failed
841
- #
842
- # @return [Google::Apis::HealthcareV1alpha2::Annotation]
843
- #
844
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
845
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
846
- # @raise [Google::Apis::AuthorizationError] Authorization is required
847
- def get_project_location_dataset_annotation_store_annotation(name, fields: nil, quota_user: nil, options: nil, &block)
848
- command = make_simple_command(:get, 'v1alpha2/{+name}', options)
849
- command.response_representation = Google::Apis::HealthcareV1alpha2::Annotation::Representation
850
- command.response_class = Google::Apis::HealthcareV1alpha2::Annotation
851
- command.params['name'] = name unless name.nil?
852
- command.query['fields'] = fields unless fields.nil?
853
- command.query['quotaUser'] = quota_user unless quota_user.nil?
854
- execute_or_queue_command(command, &block)
855
- end
856
-
857
- # Lists the Annotations in the given
858
- # Annotation store for a source
859
- # resource.
860
- # @param [String] parent
861
- # Name of the Annotation store to retrieve Annotations from.
862
- # @param [String] filter
863
- # Restricts Annotations returned to those matching a filter. Syntax:
864
- # https://cloud.google.com/appengine/docs/standard/python/search/query_strings
865
- # Fields/functions available for filtering are:
866
- # - source_version
867
- # @param [Fixnum] page_size
868
- # Limit on the number of Annotations to return in a single response.
869
- # If zero the default page size of 100 is used.
870
- # @param [String] page_token
871
- # The next_page_token value returned from the previous List request, if any.
872
- # @param [String] fields
873
- # Selector specifying which fields to include in a partial response.
874
- # @param [String] quota_user
875
- # Available to use for quota purposes for server-side applications. Can be any
876
- # arbitrary string assigned to a user, but should not exceed 40 characters.
877
- # @param [Google::Apis::RequestOptions] options
878
- # Request-specific options
879
- #
880
- # @yield [result, err] Result & error if block supplied
881
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::ListAnnotationsResponse] parsed result object
882
- # @yieldparam err [StandardError] error object if request failed
883
- #
884
- # @return [Google::Apis::HealthcareV1alpha2::ListAnnotationsResponse]
885
- #
886
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
887
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
888
- # @raise [Google::Apis::AuthorizationError] Authorization is required
889
- def list_project_location_dataset_annotation_store_annotations(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
890
- command = make_simple_command(:get, 'v1alpha2/{+parent}/annotations', options)
891
- command.response_representation = Google::Apis::HealthcareV1alpha2::ListAnnotationsResponse::Representation
892
- command.response_class = Google::Apis::HealthcareV1alpha2::ListAnnotationsResponse
893
- command.params['parent'] = parent unless parent.nil?
894
- command.query['filter'] = filter unless filter.nil?
895
- command.query['pageSize'] = page_size unless page_size.nil?
896
- command.query['pageToken'] = page_token unless page_token.nil?
897
- command.query['fields'] = fields unless fields.nil?
898
- command.query['quotaUser'] = quota_user unless quota_user.nil?
899
- execute_or_queue_command(command, &block)
900
- end
901
-
902
- # Updates the Annotation.
903
- # @param [String] name
904
- # Output only. Resource name of the Annotation, of the form
905
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
906
- # annotationStores/`annotation_store_id`/annotations/`annotation_id``.
907
- # @param [Google::Apis::HealthcareV1alpha2::Annotation] annotation_object
908
- # @param [String] update_mask
909
- # The update mask applies to the resource. For the `FieldMask` definition,
910
- # see
911
- # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
912
- # fieldmask
913
- # @param [String] fields
914
- # Selector specifying which fields to include in a partial response.
915
- # @param [String] quota_user
916
- # Available to use for quota purposes for server-side applications. Can be any
917
- # arbitrary string assigned to a user, but should not exceed 40 characters.
918
- # @param [Google::Apis::RequestOptions] options
919
- # Request-specific options
920
- #
921
- # @yield [result, err] Result & error if block supplied
922
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Annotation] parsed result object
923
- # @yieldparam err [StandardError] error object if request failed
924
- #
925
- # @return [Google::Apis::HealthcareV1alpha2::Annotation]
926
- #
927
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
928
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
929
- # @raise [Google::Apis::AuthorizationError] Authorization is required
930
- def patch_project_location_dataset_annotation_store_annotation(name, annotation_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
931
- command = make_simple_command(:patch, 'v1alpha2/{+name}', options)
932
- command.request_representation = Google::Apis::HealthcareV1alpha2::Annotation::Representation
933
- command.request_object = annotation_object
934
- command.response_representation = Google::Apis::HealthcareV1alpha2::Annotation::Representation
935
- command.response_class = Google::Apis::HealthcareV1alpha2::Annotation
936
- command.params['name'] = name unless name.nil?
937
- command.query['updateMask'] = update_mask unless update_mask.nil?
938
- command.query['fields'] = fields unless fields.nil?
939
- command.query['quotaUser'] = quota_user unless quota_user.nil?
940
- execute_or_queue_command(command, &block)
941
- end
942
-
943
- # Creates a new DICOM store within the parent dataset.
944
- # @param [String] parent
945
- # The name of the dataset this DICOM store belongs to.
946
- # @param [Google::Apis::HealthcareV1alpha2::DicomStore] dicom_store_object
947
- # @param [String] dicom_store_id
948
- # The ID of the DICOM store that is being created.
949
- # Any string value up to 256 characters in length.
950
- # @param [String] fields
951
- # Selector specifying which fields to include in a partial response.
952
- # @param [String] quota_user
953
- # Available to use for quota purposes for server-side applications. Can be any
954
- # arbitrary string assigned to a user, but should not exceed 40 characters.
955
- # @param [Google::Apis::RequestOptions] options
956
- # Request-specific options
957
- #
958
- # @yield [result, err] Result & error if block supplied
959
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::DicomStore] parsed result object
960
- # @yieldparam err [StandardError] error object if request failed
961
- #
962
- # @return [Google::Apis::HealthcareV1alpha2::DicomStore]
963
- #
964
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
965
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
966
- # @raise [Google::Apis::AuthorizationError] Authorization is required
967
- def create_project_location_dataset_dicom_store(parent, dicom_store_object = nil, dicom_store_id: nil, fields: nil, quota_user: nil, options: nil, &block)
968
- command = make_simple_command(:post, 'v1alpha2/{+parent}/dicomStores', options)
969
- command.request_representation = Google::Apis::HealthcareV1alpha2::DicomStore::Representation
970
- command.request_object = dicom_store_object
971
- command.response_representation = Google::Apis::HealthcareV1alpha2::DicomStore::Representation
972
- command.response_class = Google::Apis::HealthcareV1alpha2::DicomStore
973
- command.params['parent'] = parent unless parent.nil?
974
- command.query['dicomStoreId'] = dicom_store_id unless dicom_store_id.nil?
975
- command.query['fields'] = fields unless fields.nil?
976
- command.query['quotaUser'] = quota_user unless quota_user.nil?
977
- execute_or_queue_command(command, &block)
978
- end
979
-
980
- # Deletes the specified DICOM store and removes all images that are contained
981
- # within it.
982
- # @param [String] name
983
- # The resource name of the DICOM store to delete.
984
- # @param [String] fields
985
- # Selector specifying which fields to include in a partial response.
986
- # @param [String] quota_user
987
- # Available to use for quota purposes for server-side applications. Can be any
988
- # arbitrary string assigned to a user, but should not exceed 40 characters.
989
- # @param [Google::Apis::RequestOptions] options
990
- # Request-specific options
991
- #
992
- # @yield [result, err] Result & error if block supplied
993
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Empty] parsed result object
994
- # @yieldparam err [StandardError] error object if request failed
995
- #
996
- # @return [Google::Apis::HealthcareV1alpha2::Empty]
997
- #
998
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
999
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1000
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1001
- def delete_project_location_dataset_dicom_store(name, fields: nil, quota_user: nil, options: nil, &block)
1002
- command = make_simple_command(:delete, 'v1alpha2/{+name}', options)
1003
- command.response_representation = Google::Apis::HealthcareV1alpha2::Empty::Representation
1004
- command.response_class = Google::Apis::HealthcareV1alpha2::Empty
1005
- command.params['name'] = name unless name.nil?
1006
- command.query['fields'] = fields unless fields.nil?
1007
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1008
- execute_or_queue_command(command, &block)
1009
- end
1010
-
1011
- # Exports data to the specified destination by copying it from the DICOM
1012
- # store.
1013
- # The metadata field type is
1014
- # OperationMetadata.
1015
- # @param [String] name
1016
- # The DICOM store resource name from which the data should be exported (e.g.,
1017
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1018
- # dicomStores/`dicom_store_id``).
1019
- # @param [Google::Apis::HealthcareV1alpha2::ExportDicomDataRequest] export_dicom_data_request_object
1020
- # @param [String] fields
1021
- # Selector specifying which fields to include in a partial response.
1022
- # @param [String] quota_user
1023
- # Available to use for quota purposes for server-side applications. Can be any
1024
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1025
- # @param [Google::Apis::RequestOptions] options
1026
- # Request-specific options
1027
- #
1028
- # @yield [result, err] Result & error if block supplied
1029
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Operation] parsed result object
1030
- # @yieldparam err [StandardError] error object if request failed
1031
- #
1032
- # @return [Google::Apis::HealthcareV1alpha2::Operation]
1033
- #
1034
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1035
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1036
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1037
- def export_dicom_store_dicom_data(name, export_dicom_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1038
- command = make_simple_command(:post, 'v1alpha2/{+name}:export', options)
1039
- command.request_representation = Google::Apis::HealthcareV1alpha2::ExportDicomDataRequest::Representation
1040
- command.request_object = export_dicom_data_request_object
1041
- command.response_representation = Google::Apis::HealthcareV1alpha2::Operation::Representation
1042
- command.response_class = Google::Apis::HealthcareV1alpha2::Operation
1043
- command.params['name'] = name unless name.nil?
1044
- command.query['fields'] = fields unless fields.nil?
1045
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1046
- execute_or_queue_command(command, &block)
1047
- end
1048
-
1049
- # Gets the specified DICOM store.
1050
- # @param [String] name
1051
- # The resource name of the DICOM store to get.
1052
- # @param [String] fields
1053
- # Selector specifying which fields to include in a partial response.
1054
- # @param [String] quota_user
1055
- # Available to use for quota purposes for server-side applications. Can be any
1056
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1057
- # @param [Google::Apis::RequestOptions] options
1058
- # Request-specific options
1059
- #
1060
- # @yield [result, err] Result & error if block supplied
1061
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::DicomStore] parsed result object
1062
- # @yieldparam err [StandardError] error object if request failed
1063
- #
1064
- # @return [Google::Apis::HealthcareV1alpha2::DicomStore]
1065
- #
1066
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1067
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1068
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1069
- def get_project_location_dataset_dicom_store(name, fields: nil, quota_user: nil, options: nil, &block)
1070
- command = make_simple_command(:get, 'v1alpha2/{+name}', options)
1071
- command.response_representation = Google::Apis::HealthcareV1alpha2::DicomStore::Representation
1072
- command.response_class = Google::Apis::HealthcareV1alpha2::DicomStore
1073
- command.params['name'] = name unless name.nil?
1074
- command.query['fields'] = fields unless fields.nil?
1075
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1076
- execute_or_queue_command(command, &block)
1077
- end
1078
-
1079
- # Gets the access control policy for a resource.
1080
- # Returns an empty policy if the resource exists and does not have a policy
1081
- # set.
1082
- # @param [String] resource
1083
- # REQUIRED: The resource for which the policy is being requested.
1084
- # See the operation documentation for the appropriate value for this field.
1085
- # @param [Fixnum] options_requested_policy_version
1086
- # Optional. The policy format version to be returned.
1087
- # Acceptable values are 0, 1, and 3.
1088
- # If the value is 0, or the field is omitted, policy format version 1 will be
1089
- # returned.
1090
- # @param [String] fields
1091
- # Selector specifying which fields to include in a partial response.
1092
- # @param [String] quota_user
1093
- # Available to use for quota purposes for server-side applications. Can be any
1094
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1095
- # @param [Google::Apis::RequestOptions] options
1096
- # Request-specific options
1097
- #
1098
- # @yield [result, err] Result & error if block supplied
1099
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Policy] parsed result object
1100
- # @yieldparam err [StandardError] error object if request failed
1101
- #
1102
- # @return [Google::Apis::HealthcareV1alpha2::Policy]
1103
- #
1104
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1105
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1106
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1107
- def get_project_location_dataset_dicom_store_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1108
- command = make_simple_command(:get, 'v1alpha2/{+resource}:getIamPolicy', options)
1109
- command.response_representation = Google::Apis::HealthcareV1alpha2::Policy::Representation
1110
- command.response_class = Google::Apis::HealthcareV1alpha2::Policy
1111
- command.params['resource'] = resource unless resource.nil?
1112
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1113
- command.query['fields'] = fields unless fields.nil?
1114
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1115
- execute_or_queue_command(command, &block)
1116
- end
1117
-
1118
- # Imports data into the DICOM store by copying it from the specified source.
1119
- # For errors, the Operation will be populated with error details (in the form
1120
- # of ImportDicomDataErrorDetails in error.details), which will hold
1121
- # finer-grained error information. Errors are also logged to Stackdriver
1122
- # (see [Viewing logs](/healthcare/docs/how-tos/stackdriver-logging)).
1123
- # The metadata field type is
1124
- # OperationMetadata.
1125
- # @param [String] name
1126
- # The name of the DICOM store resource into which the data is imported (e.g.,
1127
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1128
- # dicomStores/`dicom_store_id``).
1129
- # @param [Google::Apis::HealthcareV1alpha2::ImportDicomDataRequest] import_dicom_data_request_object
1130
- # @param [String] fields
1131
- # Selector specifying which fields to include in a partial response.
1132
- # @param [String] quota_user
1133
- # Available to use for quota purposes for server-side applications. Can be any
1134
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1135
- # @param [Google::Apis::RequestOptions] options
1136
- # Request-specific options
1137
- #
1138
- # @yield [result, err] Result & error if block supplied
1139
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Operation] parsed result object
1140
- # @yieldparam err [StandardError] error object if request failed
1141
- #
1142
- # @return [Google::Apis::HealthcareV1alpha2::Operation]
1143
- #
1144
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1145
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1146
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1147
- def import_dicom_store_dicom_data(name, import_dicom_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1148
- command = make_simple_command(:post, 'v1alpha2/{+name}:import', options)
1149
- command.request_representation = Google::Apis::HealthcareV1alpha2::ImportDicomDataRequest::Representation
1150
- command.request_object = import_dicom_data_request_object
1151
- command.response_representation = Google::Apis::HealthcareV1alpha2::Operation::Representation
1152
- command.response_class = Google::Apis::HealthcareV1alpha2::Operation
1153
- command.params['name'] = name unless name.nil?
1154
- command.query['fields'] = fields unless fields.nil?
1155
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1156
- execute_or_queue_command(command, &block)
1157
- end
1158
-
1159
- # Lists the DICOM stores in the given dataset.
1160
- # @param [String] parent
1161
- # Name of the dataset.
1162
- # @param [String] filter
1163
- # Restricts stores returned to those matching a filter. Syntax:
1164
- # https://cloud.google.com/appengine/docs/standard/python/search/query_strings
1165
- # Only filtering on labels is supported, for example `labels.key=value`.
1166
- # @param [Fixnum] page_size
1167
- # Limit on the number of DICOM stores to return in a single response.
1168
- # If zero the default page size of 100 is used.
1169
- # @param [String] page_token
1170
- # The next_page_token value returned from the previous List request, if any.
1171
- # @param [String] fields
1172
- # Selector specifying which fields to include in a partial response.
1173
- # @param [String] quota_user
1174
- # Available to use for quota purposes for server-side applications. Can be any
1175
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1176
- # @param [Google::Apis::RequestOptions] options
1177
- # Request-specific options
1178
- #
1179
- # @yield [result, err] Result & error if block supplied
1180
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::ListDicomStoresResponse] parsed result object
1181
- # @yieldparam err [StandardError] error object if request failed
1182
- #
1183
- # @return [Google::Apis::HealthcareV1alpha2::ListDicomStoresResponse]
1184
- #
1185
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1186
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1187
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1188
- def list_project_location_dataset_dicom_stores(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1189
- command = make_simple_command(:get, 'v1alpha2/{+parent}/dicomStores', options)
1190
- command.response_representation = Google::Apis::HealthcareV1alpha2::ListDicomStoresResponse::Representation
1191
- command.response_class = Google::Apis::HealthcareV1alpha2::ListDicomStoresResponse
1192
- command.params['parent'] = parent unless parent.nil?
1193
- command.query['filter'] = filter unless filter.nil?
1194
- command.query['pageSize'] = page_size unless page_size.nil?
1195
- command.query['pageToken'] = page_token unless page_token.nil?
1196
- command.query['fields'] = fields unless fields.nil?
1197
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1198
- execute_or_queue_command(command, &block)
1199
- end
1200
-
1201
- # Updates the specified DICOM store.
1202
- # @param [String] name
1203
- # Output only. Resource name of the DICOM store, of the form
1204
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1205
- # dicomStores/`dicom_store_id``.
1206
- # @param [Google::Apis::HealthcareV1alpha2::DicomStore] dicom_store_object
1207
- # @param [String] update_mask
1208
- # The update mask applies to the resource. For the `FieldMask` definition,
1209
- # see
1210
- # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
1211
- # fieldmask
1212
- # @param [String] fields
1213
- # Selector specifying which fields to include in a partial response.
1214
- # @param [String] quota_user
1215
- # Available to use for quota purposes for server-side applications. Can be any
1216
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1217
- # @param [Google::Apis::RequestOptions] options
1218
- # Request-specific options
1219
- #
1220
- # @yield [result, err] Result & error if block supplied
1221
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::DicomStore] parsed result object
1222
- # @yieldparam err [StandardError] error object if request failed
1223
- #
1224
- # @return [Google::Apis::HealthcareV1alpha2::DicomStore]
1225
- #
1226
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1227
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1228
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1229
- def patch_project_location_dataset_dicom_store(name, dicom_store_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1230
- command = make_simple_command(:patch, 'v1alpha2/{+name}', options)
1231
- command.request_representation = Google::Apis::HealthcareV1alpha2::DicomStore::Representation
1232
- command.request_object = dicom_store_object
1233
- command.response_representation = Google::Apis::HealthcareV1alpha2::DicomStore::Representation
1234
- command.response_class = Google::Apis::HealthcareV1alpha2::DicomStore
1235
- command.params['name'] = name unless name.nil?
1236
- command.query['updateMask'] = update_mask unless update_mask.nil?
1237
- command.query['fields'] = fields unless fields.nil?
1238
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1239
- execute_or_queue_command(command, &block)
1240
- end
1241
-
1242
- # Sets the access control policy on the specified resource. Replaces any
1243
- # existing policy.
1244
- # @param [String] resource
1245
- # REQUIRED: The resource for which the policy is being specified.
1246
- # See the operation documentation for the appropriate value for this field.
1247
- # @param [Google::Apis::HealthcareV1alpha2::SetIamPolicyRequest] set_iam_policy_request_object
1248
- # @param [String] fields
1249
- # Selector specifying which fields to include in a partial response.
1250
- # @param [String] quota_user
1251
- # Available to use for quota purposes for server-side applications. Can be any
1252
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1253
- # @param [Google::Apis::RequestOptions] options
1254
- # Request-specific options
1255
- #
1256
- # @yield [result, err] Result & error if block supplied
1257
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Policy] parsed result object
1258
- # @yieldparam err [StandardError] error object if request failed
1259
- #
1260
- # @return [Google::Apis::HealthcareV1alpha2::Policy]
1261
- #
1262
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1263
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1264
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1265
- def set_dicom_store_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1266
- command = make_simple_command(:post, 'v1alpha2/{+resource}:setIamPolicy', options)
1267
- command.request_representation = Google::Apis::HealthcareV1alpha2::SetIamPolicyRequest::Representation
1268
- command.request_object = set_iam_policy_request_object
1269
- command.response_representation = Google::Apis::HealthcareV1alpha2::Policy::Representation
1270
- command.response_class = Google::Apis::HealthcareV1alpha2::Policy
1271
- command.params['resource'] = resource unless resource.nil?
1272
- command.query['fields'] = fields unless fields.nil?
1273
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1274
- execute_or_queue_command(command, &block)
1275
- end
1276
-
1277
- # Returns permissions that a caller has on the specified resource.
1278
- # If the resource does not exist, this will return an empty set of
1279
- # permissions, not a NOT_FOUND error.
1280
- # Note: This operation is designed to be used for building permission-aware
1281
- # UIs and command-line tools, not for authorization checking. This operation
1282
- # may "fail open" without warning.
1283
- # @param [String] resource
1284
- # REQUIRED: The resource for which the policy detail is being requested.
1285
- # See the operation documentation for the appropriate value for this field.
1286
- # @param [Google::Apis::HealthcareV1alpha2::TestIamPermissionsRequest] test_iam_permissions_request_object
1287
- # @param [String] fields
1288
- # Selector specifying which fields to include in a partial response.
1289
- # @param [String] quota_user
1290
- # Available to use for quota purposes for server-side applications. Can be any
1291
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1292
- # @param [Google::Apis::RequestOptions] options
1293
- # Request-specific options
1294
- #
1295
- # @yield [result, err] Result & error if block supplied
1296
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::TestIamPermissionsResponse] parsed result object
1297
- # @yieldparam err [StandardError] error object if request failed
1298
- #
1299
- # @return [Google::Apis::HealthcareV1alpha2::TestIamPermissionsResponse]
1300
- #
1301
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1302
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1303
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1304
- def test_dicom_store_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1305
- command = make_simple_command(:post, 'v1alpha2/{+resource}:testIamPermissions', options)
1306
- command.request_representation = Google::Apis::HealthcareV1alpha2::TestIamPermissionsRequest::Representation
1307
- command.request_object = test_iam_permissions_request_object
1308
- command.response_representation = Google::Apis::HealthcareV1alpha2::TestIamPermissionsResponse::Representation
1309
- command.response_class = Google::Apis::HealthcareV1alpha2::TestIamPermissionsResponse
1310
- command.params['resource'] = resource unless resource.nil?
1311
- command.query['fields'] = fields unless fields.nil?
1312
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1313
- execute_or_queue_command(command, &block)
1314
- end
1315
-
1316
- # SearchForInstances returns a list of matching instances. See
1317
- # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6.
1318
- # @param [String] parent
1319
- # The name of the DICOM store that is being accessed (e.g.,
1320
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1321
- # dicomStores/`dicom_store_id``).
1322
- # @param [String] dicom_web_path
1323
- # The path of the SearchForInstancesRequest DICOMweb request (e.g.,
1324
- # `instances` or `series/`series_uid`/instances` or
1325
- # `studies/`study_uid`/instances`).
1326
- # @param [String] fields
1327
- # Selector specifying which fields to include in a partial response.
1328
- # @param [String] quota_user
1329
- # Available to use for quota purposes for server-side applications. Can be any
1330
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1331
- # @param [Google::Apis::RequestOptions] options
1332
- # Request-specific options
1333
- #
1334
- # @yield [result, err] Result & error if block supplied
1335
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
1336
- # @yieldparam err [StandardError] error object if request failed
1337
- #
1338
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
1339
- #
1340
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1341
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1342
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1343
- def search_project_location_dataset_dicom_store_dicom_web_for_instances(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1344
- command = make_simple_command(:get, 'v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}', options)
1345
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
1346
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
1347
- command.params['parent'] = parent unless parent.nil?
1348
- command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1349
- command.query['fields'] = fields unless fields.nil?
1350
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1351
- execute_or_queue_command(command, &block)
1352
- end
1353
-
1354
- # SearchForSeries returns a list of matching series. See
1355
- # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6.
1356
- # @param [String] parent
1357
- # The name of the DICOM store that is being accessed (e.g.,
1358
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1359
- # dicomStores/`dicom_store_id``).
1360
- # @param [String] dicom_web_path
1361
- # The path of the SearchForSeries DICOMweb request(e.g., `series` or
1362
- # `studies/`study_uid`/series`).
1363
- # @param [String] fields
1364
- # Selector specifying which fields to include in a partial response.
1365
- # @param [String] quota_user
1366
- # Available to use for quota purposes for server-side applications. Can be any
1367
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1368
- # @param [Google::Apis::RequestOptions] options
1369
- # Request-specific options
1370
- #
1371
- # @yield [result, err] Result & error if block supplied
1372
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
1373
- # @yieldparam err [StandardError] error object if request failed
1374
- #
1375
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
1376
- #
1377
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1378
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1379
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1380
- def search_project_location_dataset_dicom_store_dicom_web_for_series(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1381
- command = make_simple_command(:get, 'v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}', options)
1382
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
1383
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
1384
- command.params['parent'] = parent unless parent.nil?
1385
- command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1386
- command.query['fields'] = fields unless fields.nil?
1387
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1388
- execute_or_queue_command(command, &block)
1389
- end
1390
-
1391
- # SearchForStudies returns a list of matching studies. See
1392
- # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6.
1393
- # @param [String] parent
1394
- # The name of the DICOM store that is being accessed (e.g.,
1395
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1396
- # dicomStores/`dicom_store_id``).
1397
- # @param [String] dicom_web_path
1398
- # The path of the SearchForStudies DICOMweb request (e.g., `studies`).
1399
- # @param [String] fields
1400
- # Selector specifying which fields to include in a partial response.
1401
- # @param [String] quota_user
1402
- # Available to use for quota purposes for server-side applications. Can be any
1403
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1404
- # @param [Google::Apis::RequestOptions] options
1405
- # Request-specific options
1406
- #
1407
- # @yield [result, err] Result & error if block supplied
1408
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
1409
- # @yieldparam err [StandardError] error object if request failed
1410
- #
1411
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
1412
- #
1413
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1414
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1415
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1416
- def search_project_location_dataset_dicom_store_dicom_web_for_studies(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1417
- command = make_simple_command(:get, 'v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}', options)
1418
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
1419
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
1420
- command.params['parent'] = parent unless parent.nil?
1421
- command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1422
- command.query['fields'] = fields unless fields.nil?
1423
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1424
- execute_or_queue_command(command, &block)
1425
- end
1426
-
1427
- # StoreInstances stores DICOM instances associated with study instance unique
1428
- # identifiers (SUID). See
1429
- # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.5.
1430
- # @param [String] parent
1431
- # The name of the DICOM store that is being accessed (e.g.,
1432
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1433
- # dicomStores/`dicom_store_id``).
1434
- # @param [String] dicom_web_path
1435
- # The path of the StoreInstances DICOMweb request (e.g.,
1436
- # `studies/[`study_id`]`). Note that the `study_uid` is optional.
1437
- # @param [Google::Apis::HealthcareV1alpha2::HttpBody] http_body_object
1438
- # @param [String] fields
1439
- # Selector specifying which fields to include in a partial response.
1440
- # @param [String] quota_user
1441
- # Available to use for quota purposes for server-side applications. Can be any
1442
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1443
- # @param [Google::Apis::RequestOptions] options
1444
- # Request-specific options
1445
- #
1446
- # @yield [result, err] Result & error if block supplied
1447
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
1448
- # @yieldparam err [StandardError] error object if request failed
1449
- #
1450
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
1451
- #
1452
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1453
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1454
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1455
- def store_project_location_dataset_dicom_store_dicom_web_instances(parent, dicom_web_path, http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1456
- command = make_simple_command(:post, 'v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}', options)
1457
- command.request_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
1458
- command.request_object = http_body_object
1459
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
1460
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
1461
- command.params['parent'] = parent unless parent.nil?
1462
- command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1463
- command.query['fields'] = fields unless fields.nil?
1464
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1465
- execute_or_queue_command(command, &block)
1466
- end
1467
-
1468
- # DeleteStudy deletes all instances within the given study. Delete requests
1469
- # are equivalent to the GET requests specified in the WADO-RS standard.
1470
- # @param [String] parent
1471
- # The name of the DICOM store that is being accessed (e.g.,
1472
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1473
- # dicomStores/`dicom_store_id``).
1474
- # @param [String] dicom_web_path
1475
- # The path of the DeleteStudy request (e.g., `studies/`study_id``).
1476
- # @param [String] fields
1477
- # Selector specifying which fields to include in a partial response.
1478
- # @param [String] quota_user
1479
- # Available to use for quota purposes for server-side applications. Can be any
1480
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1481
- # @param [Google::Apis::RequestOptions] options
1482
- # Request-specific options
1483
- #
1484
- # @yield [result, err] Result & error if block supplied
1485
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Empty] parsed result object
1486
- # @yieldparam err [StandardError] error object if request failed
1487
- #
1488
- # @return [Google::Apis::HealthcareV1alpha2::Empty]
1489
- #
1490
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1491
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1492
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1493
- def delete_project_location_dataset_dicom_store_dicom_web_study(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1494
- command = make_simple_command(:delete, 'v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}', options)
1495
- command.response_representation = Google::Apis::HealthcareV1alpha2::Empty::Representation
1496
- command.response_class = Google::Apis::HealthcareV1alpha2::Empty
1497
- command.params['parent'] = parent unless parent.nil?
1498
- command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1499
- command.query['fields'] = fields unless fields.nil?
1500
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1501
- execute_or_queue_command(command, &block)
1502
- end
1503
-
1504
- # RetrieveStudyMetadata returns instance associated with the given study
1505
- # presented as metadata with the bulk data removed. See
1506
- # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.
1507
- # @param [String] parent
1508
- # The name of the DICOM store that is being accessed (e.g.,
1509
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1510
- # dicomStores/`dicom_store_id``).
1511
- # @param [String] dicom_web_path
1512
- # The path of the RetrieveStudyMetadata DICOMweb request (e.g.,
1513
- # `studies/`study_id`/metadata`).
1514
- # @param [String] fields
1515
- # Selector specifying which fields to include in a partial response.
1516
- # @param [String] quota_user
1517
- # Available to use for quota purposes for server-side applications. Can be any
1518
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1519
- # @param [Google::Apis::RequestOptions] options
1520
- # Request-specific options
1521
- #
1522
- # @yield [result, err] Result & error if block supplied
1523
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
1524
- # @yieldparam err [StandardError] error object if request failed
1525
- #
1526
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
1527
- #
1528
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1529
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1530
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1531
- def metadata_project_location_dataset_dicom_store_dicom_web_study(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1532
- command = make_simple_command(:get, 'v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}', options)
1533
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
1534
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
1535
- command.params['parent'] = parent unless parent.nil?
1536
- command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1537
- command.query['fields'] = fields unless fields.nil?
1538
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1539
- execute_or_queue_command(command, &block)
1540
- end
1541
-
1542
- # RetrieveStudy returns all instances within the given study. See
1543
- # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.
1544
- # @param [String] parent
1545
- # The name of the DICOM store that is being accessed (e.g.,
1546
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1547
- # dicomStores/`dicom_store_id``).
1548
- # @param [String] dicom_web_path
1549
- # The path of the RetrieveStudy DICOMweb request (e.g.,
1550
- # `studies/`study_id``).
1551
- # @param [String] fields
1552
- # Selector specifying which fields to include in a partial response.
1553
- # @param [String] quota_user
1554
- # Available to use for quota purposes for server-side applications. Can be any
1555
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1556
- # @param [Google::Apis::RequestOptions] options
1557
- # Request-specific options
1558
- #
1559
- # @yield [result, err] Result & error if block supplied
1560
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
1561
- # @yieldparam err [StandardError] error object if request failed
1562
- #
1563
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
1564
- #
1565
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1566
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1567
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1568
- def retrieve_project_location_dataset_dicom_store_dicom_web_study_study(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1569
- command = make_simple_command(:get, 'v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}', options)
1570
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
1571
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
1572
- command.params['parent'] = parent unless parent.nil?
1573
- command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1574
- command.query['fields'] = fields unless fields.nil?
1575
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1576
- execute_or_queue_command(command, &block)
1577
- end
1578
-
1579
- # SearchForInstances returns a list of matching instances. See
1580
- # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6.
1581
- # @param [String] parent
1582
- # The name of the DICOM store that is being accessed (e.g.,
1583
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1584
- # dicomStores/`dicom_store_id``).
1585
- # @param [String] dicom_web_path
1586
- # The path of the SearchForInstancesRequest DICOMweb request (e.g.,
1587
- # `instances` or `series/`series_uid`/instances` or
1588
- # `studies/`study_uid`/instances`).
1589
- # @param [String] fields
1590
- # Selector specifying which fields to include in a partial response.
1591
- # @param [String] quota_user
1592
- # Available to use for quota purposes for server-side applications. Can be any
1593
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1594
- # @param [Google::Apis::RequestOptions] options
1595
- # Request-specific options
1596
- #
1597
- # @yield [result, err] Result & error if block supplied
1598
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
1599
- # @yieldparam err [StandardError] error object if request failed
1600
- #
1601
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
1602
- #
1603
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1604
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1605
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1606
- def search_project_location_dataset_dicom_store_dicom_web_study_for_instances(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1607
- command = make_simple_command(:get, 'v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}', options)
1608
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
1609
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
1610
- command.params['parent'] = parent unless parent.nil?
1611
- command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1612
- command.query['fields'] = fields unless fields.nil?
1613
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1614
- execute_or_queue_command(command, &block)
1615
- end
1616
-
1617
- # SearchForSeries returns a list of matching series. See
1618
- # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6.
1619
- # @param [String] parent
1620
- # The name of the DICOM store that is being accessed (e.g.,
1621
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1622
- # dicomStores/`dicom_store_id``).
1623
- # @param [String] dicom_web_path
1624
- # The path of the SearchForSeries DICOMweb request(e.g., `series` or
1625
- # `studies/`study_uid`/series`).
1626
- # @param [String] fields
1627
- # Selector specifying which fields to include in a partial response.
1628
- # @param [String] quota_user
1629
- # Available to use for quota purposes for server-side applications. Can be any
1630
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1631
- # @param [Google::Apis::RequestOptions] options
1632
- # Request-specific options
1633
- #
1634
- # @yield [result, err] Result & error if block supplied
1635
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
1636
- # @yieldparam err [StandardError] error object if request failed
1637
- #
1638
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
1639
- #
1640
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1641
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1642
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1643
- def search_project_location_dataset_dicom_store_dicom_web_study_for_series(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1644
- command = make_simple_command(:get, 'v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}', options)
1645
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
1646
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
1647
- command.params['parent'] = parent unless parent.nil?
1648
- command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1649
- command.query['fields'] = fields unless fields.nil?
1650
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1651
- execute_or_queue_command(command, &block)
1652
- end
1653
-
1654
- # StoreInstances stores DICOM instances associated with study instance unique
1655
- # identifiers (SUID). See
1656
- # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.5.
1657
- # @param [String] parent
1658
- # The name of the DICOM store that is being accessed (e.g.,
1659
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1660
- # dicomStores/`dicom_store_id``).
1661
- # @param [String] dicom_web_path
1662
- # The path of the StoreInstances DICOMweb request (e.g.,
1663
- # `studies/[`study_id`]`). Note that the `study_uid` is optional.
1664
- # @param [Google::Apis::HealthcareV1alpha2::HttpBody] http_body_object
1665
- # @param [String] fields
1666
- # Selector specifying which fields to include in a partial response.
1667
- # @param [String] quota_user
1668
- # Available to use for quota purposes for server-side applications. Can be any
1669
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1670
- # @param [Google::Apis::RequestOptions] options
1671
- # Request-specific options
1672
- #
1673
- # @yield [result, err] Result & error if block supplied
1674
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
1675
- # @yieldparam err [StandardError] error object if request failed
1676
- #
1677
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
1678
- #
1679
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1680
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1681
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1682
- def store_project_location_dataset_dicom_store_dicom_web_study_instances(parent, dicom_web_path, http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1683
- command = make_simple_command(:post, 'v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}', options)
1684
- command.request_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
1685
- command.request_object = http_body_object
1686
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
1687
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
1688
- command.params['parent'] = parent unless parent.nil?
1689
- command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1690
- command.query['fields'] = fields unless fields.nil?
1691
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1692
- execute_or_queue_command(command, &block)
1693
- end
1694
-
1695
- # DeleteSeries deletes all instances within the given study and series.
1696
- # Delete requests are equivalent to the GET requests specified in the WADO-RS
1697
- # standard.
1698
- # @param [String] parent
1699
- # The name of the DICOM store that is being accessed (e.g.,
1700
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1701
- # dicomStores/`dicom_store_id``).
1702
- # @param [String] dicom_web_path
1703
- # The path of the DeleteSeries request (e.g.,
1704
- # `studies/`study_id`/series/`series_id``).
1705
- # @param [String] fields
1706
- # Selector specifying which fields to include in a partial response.
1707
- # @param [String] quota_user
1708
- # Available to use for quota purposes for server-side applications. Can be any
1709
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1710
- # @param [Google::Apis::RequestOptions] options
1711
- # Request-specific options
1712
- #
1713
- # @yield [result, err] Result & error if block supplied
1714
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Empty] parsed result object
1715
- # @yieldparam err [StandardError] error object if request failed
1716
- #
1717
- # @return [Google::Apis::HealthcareV1alpha2::Empty]
1718
- #
1719
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1720
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1721
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1722
- def delete_project_location_dataset_dicom_store_dicom_web_study_series(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1723
- command = make_simple_command(:delete, 'v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}', options)
1724
- command.response_representation = Google::Apis::HealthcareV1alpha2::Empty::Representation
1725
- command.response_class = Google::Apis::HealthcareV1alpha2::Empty
1726
- command.params['parent'] = parent unless parent.nil?
1727
- command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1728
- command.query['fields'] = fields unless fields.nil?
1729
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1730
- execute_or_queue_command(command, &block)
1731
- end
1732
-
1733
- # RetrieveSeriesMetadata returns instance associated with the given study and
1734
- # series, presented as metadata with the bulk data removed. See
1735
- # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.
1736
- # @param [String] parent
1737
- # The name of the DICOM store that is being accessed (e.g.,
1738
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1739
- # dicomStores/`dicom_store_id``).
1740
- # @param [String] dicom_web_path
1741
- # The path of the RetrieveSeriesMetadata DICOMweb request (e.g.,
1742
- # `studies/`study_id`/series/`series_id`/metadata`).
1743
- # @param [String] fields
1744
- # Selector specifying which fields to include in a partial response.
1745
- # @param [String] quota_user
1746
- # Available to use for quota purposes for server-side applications. Can be any
1747
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1748
- # @param [Google::Apis::RequestOptions] options
1749
- # Request-specific options
1750
- #
1751
- # @yield [result, err] Result & error if block supplied
1752
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
1753
- # @yieldparam err [StandardError] error object if request failed
1754
- #
1755
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
1756
- #
1757
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1758
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1759
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1760
- def metadata_project_location_dataset_dicom_store_dicom_web_study_series(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1761
- command = make_simple_command(:get, 'v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}', options)
1762
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
1763
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
1764
- command.params['parent'] = parent unless parent.nil?
1765
- command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1766
- command.query['fields'] = fields unless fields.nil?
1767
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1768
- execute_or_queue_command(command, &block)
1769
- end
1770
-
1771
- # RetrieveSeries returns all instances within the given study and series. See
1772
- # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.
1773
- # @param [String] parent
1774
- # The name of the DICOM store that is being accessed (e.g.,
1775
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1776
- # dicomStores/`dicom_store_id``).
1777
- # @param [String] dicom_web_path
1778
- # The path of the RetrieveSeries DICOMweb request (e.g.,
1779
- # `studies/`study_id`/series/`series_id``).
1780
- # @param [String] fields
1781
- # Selector specifying which fields to include in a partial response.
1782
- # @param [String] quota_user
1783
- # Available to use for quota purposes for server-side applications. Can be any
1784
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1785
- # @param [Google::Apis::RequestOptions] options
1786
- # Request-specific options
1787
- #
1788
- # @yield [result, err] Result & error if block supplied
1789
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
1790
- # @yieldparam err [StandardError] error object if request failed
1791
- #
1792
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
1793
- #
1794
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1795
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1796
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1797
- def retrieve_project_location_dataset_dicom_store_dicom_web_study_series_series(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1798
- command = make_simple_command(:get, 'v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}', options)
1799
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
1800
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
1801
- command.params['parent'] = parent unless parent.nil?
1802
- command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1803
- command.query['fields'] = fields unless fields.nil?
1804
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1805
- execute_or_queue_command(command, &block)
1806
- end
1807
-
1808
- # SearchForInstances returns a list of matching instances. See
1809
- # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6.
1810
- # @param [String] parent
1811
- # The name of the DICOM store that is being accessed (e.g.,
1812
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1813
- # dicomStores/`dicom_store_id``).
1814
- # @param [String] dicom_web_path
1815
- # The path of the SearchForInstancesRequest DICOMweb request (e.g.,
1816
- # `instances` or `series/`series_uid`/instances` or
1817
- # `studies/`study_uid`/instances`).
1818
- # @param [String] fields
1819
- # Selector specifying which fields to include in a partial response.
1820
- # @param [String] quota_user
1821
- # Available to use for quota purposes for server-side applications. Can be any
1822
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1823
- # @param [Google::Apis::RequestOptions] options
1824
- # Request-specific options
1825
- #
1826
- # @yield [result, err] Result & error if block supplied
1827
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
1828
- # @yieldparam err [StandardError] error object if request failed
1829
- #
1830
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
1831
- #
1832
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1833
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1834
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1835
- def search_project_location_dataset_dicom_store_dicom_web_study_series_for_instances(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1836
- command = make_simple_command(:get, 'v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}', options)
1837
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
1838
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
1839
- command.params['parent'] = parent unless parent.nil?
1840
- command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1841
- command.query['fields'] = fields unless fields.nil?
1842
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1843
- execute_or_queue_command(command, &block)
1844
- end
1845
-
1846
- # DeleteInstance deletes an instance associated with the given study, series,
1847
- # and SOP Instance UID. Delete requests are equivalent to the GET requests
1848
- # specified in the WADO-RS standard.
1849
- # @param [String] parent
1850
- # The name of the DICOM store that is being accessed (e.g.,
1851
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1852
- # dicomStores/`dicom_store_id``).
1853
- # @param [String] dicom_web_path
1854
- # The path of the DeleteInstance request (e.g.,
1855
- # `studies/`study_id`/series/`series_id`/instances/`instance_id``).
1856
- # @param [String] fields
1857
- # Selector specifying which fields to include in a partial response.
1858
- # @param [String] quota_user
1859
- # Available to use for quota purposes for server-side applications. Can be any
1860
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1861
- # @param [Google::Apis::RequestOptions] options
1862
- # Request-specific options
1863
- #
1864
- # @yield [result, err] Result & error if block supplied
1865
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Empty] parsed result object
1866
- # @yieldparam err [StandardError] error object if request failed
1867
- #
1868
- # @return [Google::Apis::HealthcareV1alpha2::Empty]
1869
- #
1870
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1871
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1872
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1873
- def delete_project_location_dataset_dicom_store_dicom_web_study_series_instance(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1874
- command = make_simple_command(:delete, 'v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}', options)
1875
- command.response_representation = Google::Apis::HealthcareV1alpha2::Empty::Representation
1876
- command.response_class = Google::Apis::HealthcareV1alpha2::Empty
1877
- command.params['parent'] = parent unless parent.nil?
1878
- command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1879
- command.query['fields'] = fields unless fields.nil?
1880
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1881
- execute_or_queue_command(command, &block)
1882
- end
1883
-
1884
- # RetrieveInstanceMetadata returns instance associated with the given study,
1885
- # series, and SOP Instance UID presented as metadata with the bulk data
1886
- # removed. See
1887
- # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.
1888
- # @param [String] parent
1889
- # The name of the DICOM store that is being accessed (e.g.,
1890
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1891
- # dicomStores/`dicom_store_id``).
1892
- # @param [String] dicom_web_path
1893
- # The path of the RetrieveInstanceMetadata DICOMweb request (e.g.,
1894
- # `studies/`study_id`/series/`series_id`/instances/`instance_id`/metadata`).
1895
- # @param [String] fields
1896
- # Selector specifying which fields to include in a partial response.
1897
- # @param [String] quota_user
1898
- # Available to use for quota purposes for server-side applications. Can be any
1899
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1900
- # @param [Google::Apis::RequestOptions] options
1901
- # Request-specific options
1902
- #
1903
- # @yield [result, err] Result & error if block supplied
1904
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
1905
- # @yieldparam err [StandardError] error object if request failed
1906
- #
1907
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
1908
- #
1909
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1910
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1911
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1912
- def metadata_project_location_dataset_dicom_store_dicom_web_study_series_instance(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1913
- command = make_simple_command(:get, 'v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}', options)
1914
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
1915
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
1916
- command.params['parent'] = parent unless parent.nil?
1917
- command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1918
- command.query['fields'] = fields unless fields.nil?
1919
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1920
- execute_or_queue_command(command, &block)
1921
- end
1922
-
1923
- # RetrieveRenderedInstance returns instance associated with the given study,
1924
- # series, and SOP Instance UID in an acceptable Rendered Media Type. See
1925
- # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.
1926
- # @param [String] parent
1927
- # The name of the DICOM store that is being accessed (e.g.,
1928
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1929
- # dicomStores/`dicom_store_id``).
1930
- # @param [String] dicom_web_path
1931
- # The path of the RetrieveRenderedInstance DICOMweb request (e.g.,
1932
- # `studies/`study_id`/series/`series_id`/instances/`instance_id`/rendered`).
1933
- # @param [String] fields
1934
- # Selector specifying which fields to include in a partial response.
1935
- # @param [String] quota_user
1936
- # Available to use for quota purposes for server-side applications. Can be any
1937
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1938
- # @param [Google::Apis::RequestOptions] options
1939
- # Request-specific options
1940
- #
1941
- # @yield [result, err] Result & error if block supplied
1942
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
1943
- # @yieldparam err [StandardError] error object if request failed
1944
- #
1945
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
1946
- #
1947
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1948
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1949
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1950
- def rendered_project_location_dataset_dicom_store_dicom_web_study_series_instance(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1951
- command = make_simple_command(:get, 'v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}', options)
1952
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
1953
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
1954
- command.params['parent'] = parent unless parent.nil?
1955
- command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1956
- command.query['fields'] = fields unless fields.nil?
1957
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1958
- execute_or_queue_command(command, &block)
1959
- end
1960
-
1961
- # RetrieveInstance returns instance associated with the given study, series,
1962
- # and SOP Instance UID. See
1963
- # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.
1964
- # @param [String] parent
1965
- # The name of the DICOM store that is being accessed (e.g.,
1966
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1967
- # dicomStores/`dicom_store_id``).
1968
- # @param [String] dicom_web_path
1969
- # The path of the RetrieveInstance DICOMweb request (e.g.,
1970
- # `studies/`study_id`/series/`series_id`/instances/`instance_id``).
1971
- # @param [String] fields
1972
- # Selector specifying which fields to include in a partial response.
1973
- # @param [String] quota_user
1974
- # Available to use for quota purposes for server-side applications. Can be any
1975
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1976
- # @param [Google::Apis::RequestOptions] options
1977
- # Request-specific options
1978
- #
1979
- # @yield [result, err] Result & error if block supplied
1980
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
1981
- # @yieldparam err [StandardError] error object if request failed
1982
- #
1983
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
1984
- #
1985
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1986
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1987
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1988
- def retrieve_project_location_dataset_dicom_store_dicom_web_study_series_instance_instance(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1989
- command = make_simple_command(:get, 'v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}', options)
1990
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
1991
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
1992
- command.params['parent'] = parent unless parent.nil?
1993
- command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1994
- command.query['fields'] = fields unless fields.nil?
1995
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1996
- execute_or_queue_command(command, &block)
1997
- end
1998
-
1999
- # RetrieveRenderedFrames returns instances associated with the given study,
2000
- # series, SOP Instance UID and frame numbers in an acceptable Rendered Media
2001
- # Type. See
2002
- # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.
2003
- # @param [String] parent
2004
- # The name of the DICOM store that is being accessed (e.g.,
2005
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
2006
- # dicomStores/`dicom_store_id``).
2007
- # @param [String] dicom_web_path
2008
- # The path of the RetrieveRenderedFrames DICOMweb request (e.g.,
2009
- # `studies/`study_id`/series/`series_id`/instances/`instance_id`/frames/`
2010
- # frame_list`/rendered`).
2011
- # @param [String] fields
2012
- # Selector specifying which fields to include in a partial response.
2013
- # @param [String] quota_user
2014
- # Available to use for quota purposes for server-side applications. Can be any
2015
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2016
- # @param [Google::Apis::RequestOptions] options
2017
- # Request-specific options
2018
- #
2019
- # @yield [result, err] Result & error if block supplied
2020
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
2021
- # @yieldparam err [StandardError] error object if request failed
2022
- #
2023
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
2024
- #
2025
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2026
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2027
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2028
- def rendered_project_location_dataset_dicom_store_dicom_web_study_series_instance_frame(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
2029
- command = make_simple_command(:get, 'v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}', options)
2030
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
2031
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
2032
- command.params['parent'] = parent unless parent.nil?
2033
- command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
2034
- command.query['fields'] = fields unless fields.nil?
2035
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2036
- execute_or_queue_command(command, &block)
2037
- end
2038
-
2039
- # RetrieveFrames returns instances associated with the given study, series,
2040
- # SOP Instance UID and frame numbers. See
2041
- # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.
2042
- # @param [String] parent
2043
- # The name of the DICOM store that is being accessed (e.g.,
2044
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
2045
- # dicomStores/`dicom_store_id``).
2046
- # @param [String] dicom_web_path
2047
- # The path of the RetrieveFrames DICOMweb request (e.g.,
2048
- # `studies/`study_id`/series/`series_id`/instances/`instance_id`/frames/`
2049
- # frame_list``).
2050
- # @param [String] fields
2051
- # Selector specifying which fields to include in a partial response.
2052
- # @param [String] quota_user
2053
- # Available to use for quota purposes for server-side applications. Can be any
2054
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2055
- # @param [Google::Apis::RequestOptions] options
2056
- # Request-specific options
2057
- #
2058
- # @yield [result, err] Result & error if block supplied
2059
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
2060
- # @yieldparam err [StandardError] error object if request failed
2061
- #
2062
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
2063
- #
2064
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2065
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2066
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2067
- def retrieve_project_location_dataset_dicom_store_dicom_web_study_series_instance_frame_frames(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
2068
- command = make_simple_command(:get, 'v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}', options)
2069
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
2070
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
2071
- command.params['parent'] = parent unless parent.nil?
2072
- command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
2073
- command.query['fields'] = fields unless fields.nil?
2074
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2075
- execute_or_queue_command(command, &block)
2076
- end
2077
-
2078
- # Gets the FHIR capability statement
2079
- # ([STU3](http://hl7.org/implement/standards/fhir/STU3/capabilitystatement.html))
2080
- # ,
2081
- # or the [conformance
2082
- # statement](http://hl7.org/implement/standards/fhir/DSTU2/conformance.html)
2083
- # in the DSTU2 case for the store, which contains a description of
2084
- # functionality supported by the server.
2085
- # Implements the FHIR standard capabilities interaction
2086
- # ([STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#capabilities)),
2087
- # or the [conformance
2088
- # interaction](http://hl7.org/implement/standards/fhir/DSTU2/http.html#
2089
- # conformance)
2090
- # in the DSTU2 case.
2091
- # On success, the response body will contain a JSON-encoded representation
2092
- # of a `CapabilityStatement` resource.
2093
- # @param [String] name
2094
- # Name of the FHIR store to retrieve the capabilities for.
2095
- # @param [String] fields
2096
- # Selector specifying which fields to include in a partial response.
2097
- # @param [String] quota_user
2098
- # Available to use for quota purposes for server-side applications. Can be any
2099
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2100
- # @param [Google::Apis::RequestOptions] options
2101
- # Request-specific options
2102
- #
2103
- # @yield [result, err] Result & error if block supplied
2104
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
2105
- # @yieldparam err [StandardError] error object if request failed
2106
- #
2107
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
2108
- #
2109
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2110
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2111
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2112
- def capabilities_project_location_dataset_fhir_store(name, fields: nil, quota_user: nil, options: nil, &block)
2113
- command = make_simple_command(:get, 'v1alpha2/{+name}/metadata', options)
2114
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
2115
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
2116
- command.params['name'] = name unless name.nil?
2117
- command.query['fields'] = fields unless fields.nil?
2118
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2119
- execute_or_queue_command(command, &block)
2120
- end
2121
-
2122
- # Creates a new FHIR store within the parent dataset.
2123
- # @param [String] parent
2124
- # The name of the dataset this FHIR store belongs to.
2125
- # @param [Google::Apis::HealthcareV1alpha2::FhirStore] fhir_store_object
2126
- # @param [String] fhir_store_id
2127
- # The ID of the FHIR store that is being created.
2128
- # The string must match the following regex: `[\p`L`\p`N`_\-\.]`1,256``.
2129
- # @param [String] fields
2130
- # Selector specifying which fields to include in a partial response.
2131
- # @param [String] quota_user
2132
- # Available to use for quota purposes for server-side applications. Can be any
2133
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2134
- # @param [Google::Apis::RequestOptions] options
2135
- # Request-specific options
2136
- #
2137
- # @yield [result, err] Result & error if block supplied
2138
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::FhirStore] parsed result object
2139
- # @yieldparam err [StandardError] error object if request failed
2140
- #
2141
- # @return [Google::Apis::HealthcareV1alpha2::FhirStore]
2142
- #
2143
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2144
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2145
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2146
- def create_project_location_dataset_fhir_store(parent, fhir_store_object = nil, fhir_store_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2147
- command = make_simple_command(:post, 'v1alpha2/{+parent}/fhirStores', options)
2148
- command.request_representation = Google::Apis::HealthcareV1alpha2::FhirStore::Representation
2149
- command.request_object = fhir_store_object
2150
- command.response_representation = Google::Apis::HealthcareV1alpha2::FhirStore::Representation
2151
- command.response_class = Google::Apis::HealthcareV1alpha2::FhirStore
2152
- command.params['parent'] = parent unless parent.nil?
2153
- command.query['fhirStoreId'] = fhir_store_id unless fhir_store_id.nil?
2154
- command.query['fields'] = fields unless fields.nil?
2155
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2156
- execute_or_queue_command(command, &block)
2157
- end
2158
-
2159
- # Deletes the specified FHIR store and removes all resources within it.
2160
- # @param [String] name
2161
- # The resource name of the FHIR store to delete.
2162
- # @param [String] fields
2163
- # Selector specifying which fields to include in a partial response.
2164
- # @param [String] quota_user
2165
- # Available to use for quota purposes for server-side applications. Can be any
2166
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2167
- # @param [Google::Apis::RequestOptions] options
2168
- # Request-specific options
2169
- #
2170
- # @yield [result, err] Result & error if block supplied
2171
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Empty] parsed result object
2172
- # @yieldparam err [StandardError] error object if request failed
2173
- #
2174
- # @return [Google::Apis::HealthcareV1alpha2::Empty]
2175
- #
2176
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2177
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2178
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2179
- def delete_project_location_dataset_fhir_store(name, fields: nil, quota_user: nil, options: nil, &block)
2180
- command = make_simple_command(:delete, 'v1alpha2/{+name}', options)
2181
- command.response_representation = Google::Apis::HealthcareV1alpha2::Empty::Representation
2182
- command.response_class = Google::Apis::HealthcareV1alpha2::Empty
2183
- command.params['name'] = name unless name.nil?
2184
- command.query['fields'] = fields unless fields.nil?
2185
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2186
- execute_or_queue_command(command, &block)
2187
- end
2188
-
2189
- # Export resources from the FHIR store to the specified destination.
2190
- # This method returns an Operation that can
2191
- # be used to track the status of the export by calling
2192
- # GetOperation.
2193
- # Immediate fatal errors appear in the
2194
- # error field, errors are also logged
2195
- # to Stackdriver (see [Viewing
2196
- # logs](/healthcare/docs/how-tos/stackdriver-logging)).
2197
- # Otherwise, when the operation finishes, a detailed response of type
2198
- # ExportResourcesResponse is returned in the
2199
- # response field.
2200
- # The metadata field type for this
2201
- # operation is OperationMetadata.
2202
- # @param [String] name
2203
- # The name of the FHIR store to export resource from. The name should be in
2204
- # the format of
2205
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
2206
- # fhirStores/`fhir_store_id``.
2207
- # @param [Google::Apis::HealthcareV1alpha2::ExportResourcesRequest] export_resources_request_object
2208
- # @param [String] fields
2209
- # Selector specifying which fields to include in a partial response.
2210
- # @param [String] quota_user
2211
- # Available to use for quota purposes for server-side applications. Can be any
2212
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2213
- # @param [Google::Apis::RequestOptions] options
2214
- # Request-specific options
2215
- #
2216
- # @yield [result, err] Result & error if block supplied
2217
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Operation] parsed result object
2218
- # @yieldparam err [StandardError] error object if request failed
2219
- #
2220
- # @return [Google::Apis::HealthcareV1alpha2::Operation]
2221
- #
2222
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2223
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2224
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2225
- def export_fhir_store_resources(name, export_resources_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2226
- command = make_simple_command(:post, 'v1alpha2/{+name}:export', options)
2227
- command.request_representation = Google::Apis::HealthcareV1alpha2::ExportResourcesRequest::Representation
2228
- command.request_object = export_resources_request_object
2229
- command.response_representation = Google::Apis::HealthcareV1alpha2::Operation::Representation
2230
- command.response_class = Google::Apis::HealthcareV1alpha2::Operation
2231
- command.params['name'] = name unless name.nil?
2232
- command.query['fields'] = fields unless fields.nil?
2233
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2234
- execute_or_queue_command(command, &block)
2235
- end
2236
-
2237
- # Gets the configuration of the specified FHIR store.
2238
- # @param [String] name
2239
- # The resource name of the FHIR store to get.
2240
- # @param [String] fields
2241
- # Selector specifying which fields to include in a partial response.
2242
- # @param [String] quota_user
2243
- # Available to use for quota purposes for server-side applications. Can be any
2244
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2245
- # @param [Google::Apis::RequestOptions] options
2246
- # Request-specific options
2247
- #
2248
- # @yield [result, err] Result & error if block supplied
2249
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::FhirStore] parsed result object
2250
- # @yieldparam err [StandardError] error object if request failed
2251
- #
2252
- # @return [Google::Apis::HealthcareV1alpha2::FhirStore]
2253
- #
2254
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2255
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2256
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2257
- def get_project_location_dataset_fhir_store(name, fields: nil, quota_user: nil, options: nil, &block)
2258
- command = make_simple_command(:get, 'v1alpha2/{+name}', options)
2259
- command.response_representation = Google::Apis::HealthcareV1alpha2::FhirStore::Representation
2260
- command.response_class = Google::Apis::HealthcareV1alpha2::FhirStore
2261
- command.params['name'] = name unless name.nil?
2262
- command.query['fields'] = fields unless fields.nil?
2263
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2264
- execute_or_queue_command(command, &block)
2265
- end
2266
-
2267
- # Gets the access control policy for a resource.
2268
- # Returns an empty policy if the resource exists and does not have a policy
2269
- # set.
2270
- # @param [String] resource
2271
- # REQUIRED: The resource for which the policy is being requested.
2272
- # See the operation documentation for the appropriate value for this field.
2273
- # @param [Fixnum] options_requested_policy_version
2274
- # Optional. The policy format version to be returned.
2275
- # Acceptable values are 0, 1, and 3.
2276
- # If the value is 0, or the field is omitted, policy format version 1 will be
2277
- # returned.
2278
- # @param [String] fields
2279
- # Selector specifying which fields to include in a partial response.
2280
- # @param [String] quota_user
2281
- # Available to use for quota purposes for server-side applications. Can be any
2282
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2283
- # @param [Google::Apis::RequestOptions] options
2284
- # Request-specific options
2285
- #
2286
- # @yield [result, err] Result & error if block supplied
2287
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Policy] parsed result object
2288
- # @yieldparam err [StandardError] error object if request failed
2289
- #
2290
- # @return [Google::Apis::HealthcareV1alpha2::Policy]
2291
- #
2292
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2293
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2294
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2295
- def get_project_location_dataset_fhir_store_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
2296
- command = make_simple_command(:get, 'v1alpha2/{+resource}:getIamPolicy', options)
2297
- command.response_representation = Google::Apis::HealthcareV1alpha2::Policy::Representation
2298
- command.response_class = Google::Apis::HealthcareV1alpha2::Policy
2299
- command.params['resource'] = resource unless resource.nil?
2300
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
2301
- command.query['fields'] = fields unless fields.nil?
2302
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2303
- execute_or_queue_command(command, &block)
2304
- end
2305
-
2306
- # Import resources to the FHIR store by loading data from the specified
2307
- # sources. This method is optimized to load large quantities of data using
2308
- # import semantics that ignore some FHIR store configuration options and are
2309
- # not suitable for all use cases. It is primarily intended to load data into
2310
- # an empty FHIR store that is not being used by other clients. In cases
2311
- # where this method is not appropriate, consider using ExecuteBundle to
2312
- # load data.
2313
- # Every resource in the input must contain a client-supplied ID, and will be
2314
- # stored using that ID regardless of the
2315
- # enable_update_create setting on the FHIR
2316
- # store.
2317
- # The import process does not enforce referential integrity, regardless of
2318
- # the
2319
- # disable_referential_integrity
2320
- # setting on the FHIR store. This allows the import of resources with
2321
- # arbitrary interdependencies without considering grouping or ordering, but
2322
- # if the input data contains invalid references or if some resources fail to
2323
- # be imported, the FHIR store might be left in a state that violates
2324
- # referential integrity.
2325
- # If a resource with the specified ID already exists, the most recent
2326
- # version of the resource is overwritten without creating a new historical
2327
- # version, regardless of the
2328
- # disable_resource_versioning
2329
- # setting on the FHIR store. If transient failures occur during the import,
2330
- # it is possible that successfully imported resources will be overwritten
2331
- # more than once.
2332
- # The import operation is idempotent unless the input data contains multiple
2333
- # valid resources with the same ID but different contents. In that case,
2334
- # after the import completes, the store will contain exactly one resource
2335
- # with that ID but there is no ordering guarantee on which version of the
2336
- # contents it will have. The operation result counters do not count
2337
- # duplicate IDs as an error and will count one success for each resource in
2338
- # the input, which might result in a success count larger than the number
2339
- # of resources in the FHIR store. This often occurs when importing data
2340
- # organized in bundles produced by Patient-everything
2341
- # where each bundle contains its own copy of a resource such as Practitioner
2342
- # that might be referred to by many patients.
2343
- # If some resources fail to import, for example due to parsing errors,
2344
- # successfully imported resources are not rolled back.
2345
- # The location and format of the input data is specified by the parameters
2346
- # below. Note that if no format is specified, this method assumes the
2347
- # `BUNDLE` format. When using the `BUNDLE` format this method ignores the
2348
- # `Bundle.type` field, except for the special case of `history`, and does
2349
- # not apply any of the bundle processing semantics for batch or transaction
2350
- # bundles. Unlike in ExecuteBundle, transaction bundles are not executed
2351
- # as a single transaction and bundle-internal references are not rewritten.
2352
- # The bundle is treated as a collection of resources to be written as
2353
- # provided in `Bundle.entry.resource`, ignoring `Bundle.entry.request`. As
2354
- # an example, this allows the import of `searchset` bundles produced by a
2355
- # FHIR search or
2356
- # Patient-everything operation.
2357
- # If history imports are enabled by setting
2358
- # enable_history_import in the FHIR
2359
- # store's configuration, this method can import historical versions
2360
- # of a resource by supplying a bundle of type `history` and using the
2361
- # `BUNDLE` format. The historical versions in the bundle must have
2362
- # `lastUpdated` timestamps, and the resulting resource history on the server
2363
- # will appear as if the versions had been created at those timestamps. If a
2364
- # current or historical version with the supplied resource ID already
2365
- # exists, the bundle is rejected to avoid creating an inconsistent sequence
2366
- # of resource versions.
2367
- # This method returns an Operation that can
2368
- # be used to track the status of the import by calling
2369
- # GetOperation.
2370
- # Immediate fatal errors appear in the
2371
- # error field, errors are also logged
2372
- # to Stackdriver (see [Viewing
2373
- # logs](/healthcare/docs/how-tos/stackdriver-logging)). Otherwise, when the
2374
- # operation finishes, a detailed response of type ImportResourcesResponse
2375
- # is returned in the response field.
2376
- # The metadata field type for this
2377
- # operation is OperationMetadata.
2378
- # @param [String] name
2379
- # The name of the FHIR store to import FHIR resources to. The name should be
2380
- # in the format of
2381
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
2382
- # fhirStores/`fhir_store_id``.
2383
- # @param [Google::Apis::HealthcareV1alpha2::ImportResourcesRequest] import_resources_request_object
2384
- # @param [String] fields
2385
- # Selector specifying which fields to include in a partial response.
2386
- # @param [String] quota_user
2387
- # Available to use for quota purposes for server-side applications. Can be any
2388
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2389
- # @param [Google::Apis::RequestOptions] options
2390
- # Request-specific options
2391
- #
2392
- # @yield [result, err] Result & error if block supplied
2393
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Operation] parsed result object
2394
- # @yieldparam err [StandardError] error object if request failed
2395
- #
2396
- # @return [Google::Apis::HealthcareV1alpha2::Operation]
2397
- #
2398
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2399
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2400
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2401
- def import_fhir_store_resources(name, import_resources_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2402
- command = make_simple_command(:post, 'v1alpha2/{+name}:import', options)
2403
- command.request_representation = Google::Apis::HealthcareV1alpha2::ImportResourcesRequest::Representation
2404
- command.request_object = import_resources_request_object
2405
- command.response_representation = Google::Apis::HealthcareV1alpha2::Operation::Representation
2406
- command.response_class = Google::Apis::HealthcareV1alpha2::Operation
2407
- command.params['name'] = name unless name.nil?
2408
- command.query['fields'] = fields unless fields.nil?
2409
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2410
- execute_or_queue_command(command, &block)
2411
- end
2412
-
2413
- # Lists the FHIR stores in the given dataset.
2414
- # @param [String] parent
2415
- # Name of the dataset.
2416
- # @param [String] filter
2417
- # Restricts stores returned to those matching a filter. Syntax:
2418
- # https://cloud.google.com/appengine/docs/standard/python/search/query_strings
2419
- # Only filtering on labels is supported, for example `labels.key=value`.
2420
- # @param [Fixnum] page_size
2421
- # Limit on the number of FHIR stores to return in a single response. If zero
2422
- # the default page size of 100 is used.
2423
- # @param [String] page_token
2424
- # The next_page_token value returned from the previous List request, if any.
2425
- # @param [String] fields
2426
- # Selector specifying which fields to include in a partial response.
2427
- # @param [String] quota_user
2428
- # Available to use for quota purposes for server-side applications. Can be any
2429
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2430
- # @param [Google::Apis::RequestOptions] options
2431
- # Request-specific options
2432
- #
2433
- # @yield [result, err] Result & error if block supplied
2434
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::ListFhirStoresResponse] parsed result object
2435
- # @yieldparam err [StandardError] error object if request failed
2436
- #
2437
- # @return [Google::Apis::HealthcareV1alpha2::ListFhirStoresResponse]
2438
- #
2439
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2440
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2441
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2442
- def list_project_location_dataset_fhir_stores(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2443
- command = make_simple_command(:get, 'v1alpha2/{+parent}/fhirStores', options)
2444
- command.response_representation = Google::Apis::HealthcareV1alpha2::ListFhirStoresResponse::Representation
2445
- command.response_class = Google::Apis::HealthcareV1alpha2::ListFhirStoresResponse
2446
- command.params['parent'] = parent unless parent.nil?
2447
- command.query['filter'] = filter unless filter.nil?
2448
- command.query['pageSize'] = page_size unless page_size.nil?
2449
- command.query['pageToken'] = page_token unless page_token.nil?
2450
- command.query['fields'] = fields unless fields.nil?
2451
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2452
- execute_or_queue_command(command, &block)
2453
- end
2454
-
2455
- # Updates the configuration of the specified FHIR store.
2456
- # @param [String] name
2457
- # Output only. Resource name of the FHIR store, of the form
2458
- # `projects/`project_id`/datasets/`dataset_id`/fhirStores/`fhir_store_id``.
2459
- # @param [Google::Apis::HealthcareV1alpha2::FhirStore] fhir_store_object
2460
- # @param [String] update_mask
2461
- # The update mask applies to the resource. For the `FieldMask` definition,
2462
- # see
2463
- # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
2464
- # fieldmask
2465
- # @param [String] fields
2466
- # Selector specifying which fields to include in a partial response.
2467
- # @param [String] quota_user
2468
- # Available to use for quota purposes for server-side applications. Can be any
2469
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2470
- # @param [Google::Apis::RequestOptions] options
2471
- # Request-specific options
2472
- #
2473
- # @yield [result, err] Result & error if block supplied
2474
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::FhirStore] parsed result object
2475
- # @yieldparam err [StandardError] error object if request failed
2476
- #
2477
- # @return [Google::Apis::HealthcareV1alpha2::FhirStore]
2478
- #
2479
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2480
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2481
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2482
- def patch_project_location_dataset_fhir_store(name, fhir_store_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2483
- command = make_simple_command(:patch, 'v1alpha2/{+name}', options)
2484
- command.request_representation = Google::Apis::HealthcareV1alpha2::FhirStore::Representation
2485
- command.request_object = fhir_store_object
2486
- command.response_representation = Google::Apis::HealthcareV1alpha2::FhirStore::Representation
2487
- command.response_class = Google::Apis::HealthcareV1alpha2::FhirStore
2488
- command.params['name'] = name unless name.nil?
2489
- command.query['updateMask'] = update_mask unless update_mask.nil?
2490
- command.query['fields'] = fields unless fields.nil?
2491
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2492
- execute_or_queue_command(command, &block)
2493
- end
2494
-
2495
- # Sets the access control policy on the specified resource. Replaces any
2496
- # existing policy.
2497
- # @param [String] resource
2498
- # REQUIRED: The resource for which the policy is being specified.
2499
- # See the operation documentation for the appropriate value for this field.
2500
- # @param [Google::Apis::HealthcareV1alpha2::SetIamPolicyRequest] set_iam_policy_request_object
2501
- # @param [String] fields
2502
- # Selector specifying which fields to include in a partial response.
2503
- # @param [String] quota_user
2504
- # Available to use for quota purposes for server-side applications. Can be any
2505
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2506
- # @param [Google::Apis::RequestOptions] options
2507
- # Request-specific options
2508
- #
2509
- # @yield [result, err] Result & error if block supplied
2510
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Policy] parsed result object
2511
- # @yieldparam err [StandardError] error object if request failed
2512
- #
2513
- # @return [Google::Apis::HealthcareV1alpha2::Policy]
2514
- #
2515
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2516
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2517
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2518
- def set_fhir_store_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2519
- command = make_simple_command(:post, 'v1alpha2/{+resource}:setIamPolicy', options)
2520
- command.request_representation = Google::Apis::HealthcareV1alpha2::SetIamPolicyRequest::Representation
2521
- command.request_object = set_iam_policy_request_object
2522
- command.response_representation = Google::Apis::HealthcareV1alpha2::Policy::Representation
2523
- command.response_class = Google::Apis::HealthcareV1alpha2::Policy
2524
- command.params['resource'] = resource unless resource.nil?
2525
- command.query['fields'] = fields unless fields.nil?
2526
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2527
- execute_or_queue_command(command, &block)
2528
- end
2529
-
2530
- # Returns permissions that a caller has on the specified resource.
2531
- # If the resource does not exist, this will return an empty set of
2532
- # permissions, not a NOT_FOUND error.
2533
- # Note: This operation is designed to be used for building permission-aware
2534
- # UIs and command-line tools, not for authorization checking. This operation
2535
- # may "fail open" without warning.
2536
- # @param [String] resource
2537
- # REQUIRED: The resource for which the policy detail is being requested.
2538
- # See the operation documentation for the appropriate value for this field.
2539
- # @param [Google::Apis::HealthcareV1alpha2::TestIamPermissionsRequest] test_iam_permissions_request_object
2540
- # @param [String] fields
2541
- # Selector specifying which fields to include in a partial response.
2542
- # @param [String] quota_user
2543
- # Available to use for quota purposes for server-side applications. Can be any
2544
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2545
- # @param [Google::Apis::RequestOptions] options
2546
- # Request-specific options
2547
- #
2548
- # @yield [result, err] Result & error if block supplied
2549
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::TestIamPermissionsResponse] parsed result object
2550
- # @yieldparam err [StandardError] error object if request failed
2551
- #
2552
- # @return [Google::Apis::HealthcareV1alpha2::TestIamPermissionsResponse]
2553
- #
2554
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2555
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2556
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2557
- def test_fhir_store_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2558
- command = make_simple_command(:post, 'v1alpha2/{+resource}:testIamPermissions', options)
2559
- command.request_representation = Google::Apis::HealthcareV1alpha2::TestIamPermissionsRequest::Representation
2560
- command.request_object = test_iam_permissions_request_object
2561
- command.response_representation = Google::Apis::HealthcareV1alpha2::TestIamPermissionsResponse::Representation
2562
- command.response_class = Google::Apis::HealthcareV1alpha2::TestIamPermissionsResponse
2563
- command.params['resource'] = resource unless resource.nil?
2564
- command.query['fields'] = fields unless fields.nil?
2565
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2566
- execute_or_queue_command(command, &block)
2567
- end
2568
-
2569
- # Retrieves the N most recent `Observation` resources for a subject matching
2570
- # search criteria specified as query parameters, grouped by
2571
- # `Observation.code`, sorted from most recent to oldest.
2572
- # Implements the FHIR extended operation Observation-lastn
2573
- # ([STU3](http://hl7.org/implement/standards/fhir/STU3/observation-operations.
2574
- # html#lastn)).
2575
- # DSTU2 doesn't define the Observation-lastn method, but the server supports
2576
- # it the same way it supports STU3.
2577
- # Search terms are provided as query parameters following the same pattern as
2578
- # the search method. This operation accepts an additional
2579
- # query parameter `max`, which specifies N, the maximum number of
2580
- # Observations to return from each group, with a default of 1.
2581
- # On success, the response body will contain a JSON-encoded representation
2582
- # of a `Bundle` resource of type `searchset`, containing the results of the
2583
- # operation.
2584
- # Errors generated by the FHIR store will contain a JSON-encoded
2585
- # `OperationOutcome` resource describing the reason for the error. If the
2586
- # request cannot be mapped to a valid API method on a FHIR store, a generic
2587
- # GCP error might be returned instead.
2588
- # @param [String] parent
2589
- # Name of the FHIR store to retrieve resources from.
2590
- # @param [String] fields
2591
- # Selector specifying which fields to include in a partial response.
2592
- # @param [String] quota_user
2593
- # Available to use for quota purposes for server-side applications. Can be any
2594
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2595
- # @param [Google::Apis::RequestOptions] options
2596
- # Request-specific options
2597
- #
2598
- # @yield [result, err] Result & error if block supplied
2599
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
2600
- # @yieldparam err [StandardError] error object if request failed
2601
- #
2602
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
2603
- #
2604
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2605
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2606
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2607
- def observation_project_location_dataset_fhir_store_fhir_lastn(parent, fields: nil, quota_user: nil, options: nil, &block)
2608
- command = make_simple_command(:get, 'v1alpha2/{+parent}/fhir/Observation/$lastn', options)
2609
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
2610
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
2611
- command.params['parent'] = parent unless parent.nil?
2612
- command.query['fields'] = fields unless fields.nil?
2613
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2614
- execute_or_queue_command(command, &block)
2615
- end
2616
-
2617
- # Retrieves all the resources directly referenced by a patient, as well as
2618
- # all of the resources in the patient compartment.
2619
- # Implements the FHIR extended operation Patient-everything
2620
- # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/patient-operations.html#
2621
- # everything),
2622
- # [STU3](http://hl7.org/implement/standards/fhir/STU3/patient-operations.html#
2623
- # everything)).
2624
- # On success, the response body will contain a JSON-encoded representation
2625
- # of a `Bundle` resource of type `searchset`, containing the results of the
2626
- # operation.
2627
- # Errors generated by the FHIR store will contain a JSON-encoded
2628
- # `OperationOutcome` resource describing the reason for the error. If the
2629
- # request cannot be mapped to a valid API method on a FHIR store, a generic
2630
- # GCP error might be returned instead.
2631
- # @param [String] name
2632
- # Name of the `Patient` resource for which the information is required.
2633
- # @param [Fixnum] _count
2634
- # Maximum number of resources in a page. Defaults to 100.
2635
- # @param [String] end_
2636
- # The response includes records prior to the end date. If no end date is
2637
- # provided, all records subsequent to the start date are in scope.
2638
- # @param [String] page_token
2639
- # Used to retrieve the next or previous page of results
2640
- # when using pagination. Value should be set to the value of page_token set
2641
- # in next or previous page links' url. Next and previous page are returned
2642
- # in the response bundle's links field, where `link.relation` is "previous"
2643
- # or "next".
2644
- # Omit `page_token` if no previous request has been made.
2645
- # @param [String] start
2646
- # The response includes records subsequent to the start date. If no start
2647
- # date is provided, all records prior to the end date are in scope.
2648
- # @param [String] fields
2649
- # Selector specifying which fields to include in a partial response.
2650
- # @param [String] quota_user
2651
- # Available to use for quota purposes for server-side applications. Can be any
2652
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2653
- # @param [Google::Apis::RequestOptions] options
2654
- # Request-specific options
2655
- #
2656
- # @yield [result, err] Result & error if block supplied
2657
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
2658
- # @yieldparam err [StandardError] error object if request failed
2659
- #
2660
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
2661
- #
2662
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2663
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2664
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2665
- def patient_project_location_dataset_fhir_store_fhir_everything(name, _count: nil, end_: nil, page_token: nil, start: nil, fields: nil, quota_user: nil, options: nil, &block)
2666
- command = make_simple_command(:get, 'v1alpha2/{+name}/$everything', options)
2667
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
2668
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
2669
- command.params['name'] = name unless name.nil?
2670
- command.query['_count'] = _count unless _count.nil?
2671
- command.query['end'] = end_ unless end_.nil?
2672
- command.query['pageToken'] = page_token unless page_token.nil?
2673
- command.query['start'] = start unless start.nil?
2674
- command.query['fields'] = fields unless fields.nil?
2675
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2676
- execute_or_queue_command(command, &block)
2677
- end
2678
-
2679
- # Deletes all the historical versions of a resource (excluding the current
2680
- # version) from the FHIR store. To remove all versions of a resource, first
2681
- # delete the current version and then call this method.
2682
- # This is not a FHIR standard operation.
2683
- # @param [String] name
2684
- # The name of the resource to purge.
2685
- # @param [String] fields
2686
- # Selector specifying which fields to include in a partial response.
2687
- # @param [String] quota_user
2688
- # Available to use for quota purposes for server-side applications. Can be any
2689
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2690
- # @param [Google::Apis::RequestOptions] options
2691
- # Request-specific options
2692
- #
2693
- # @yield [result, err] Result & error if block supplied
2694
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Empty] parsed result object
2695
- # @yieldparam err [StandardError] error object if request failed
2696
- #
2697
- # @return [Google::Apis::HealthcareV1alpha2::Empty]
2698
- #
2699
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2700
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2701
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2702
- def resource_project_location_dataset_fhir_store_fhir_purge(name, fields: nil, quota_user: nil, options: nil, &block)
2703
- command = make_simple_command(:delete, 'v1alpha2/{+name}/$purge', options)
2704
- command.response_representation = Google::Apis::HealthcareV1alpha2::Empty::Representation
2705
- command.response_class = Google::Apis::HealthcareV1alpha2::Empty
2706
- command.params['name'] = name unless name.nil?
2707
- command.query['fields'] = fields unless fields.nil?
2708
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2709
- execute_or_queue_command(command, &block)
2710
- end
2711
-
2712
- # Gets the FHIR capability statement
2713
- # ([STU3](http://hl7.org/implement/standards/fhir/STU3/capabilitystatement.html))
2714
- # ,
2715
- # or the [conformance
2716
- # statement](http://hl7.org/implement/standards/fhir/DSTU2/conformance.html)
2717
- # in the DSTU2 case for the store, which contains a description of
2718
- # functionality supported by the server.
2719
- # Implements the FHIR standard capabilities interaction
2720
- # ([STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#capabilities)),
2721
- # or the [conformance
2722
- # interaction](http://hl7.org/implement/standards/fhir/DSTU2/http.html#
2723
- # conformance)
2724
- # in the DSTU2 case.
2725
- # On success, the response body will contain a JSON-encoded representation
2726
- # of a `CapabilityStatement` resource.
2727
- # @param [String] name
2728
- # Name of the FHIR store to retrieve the capabilities for.
2729
- # @param [String] fields
2730
- # Selector specifying which fields to include in a partial response.
2731
- # @param [String] quota_user
2732
- # Available to use for quota purposes for server-side applications. Can be any
2733
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2734
- # @param [Google::Apis::RequestOptions] options
2735
- # Request-specific options
2736
- #
2737
- # @yield [result, err] Result & error if block supplied
2738
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
2739
- # @yieldparam err [StandardError] error object if request failed
2740
- #
2741
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
2742
- #
2743
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2744
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2745
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2746
- def capabilities_project_location_dataset_fhir_store_fhir(name, fields: nil, quota_user: nil, options: nil, &block)
2747
- command = make_simple_command(:get, 'v1alpha2/{+name}/fhir/metadata', options)
2748
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
2749
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
2750
- command.params['name'] = name unless name.nil?
2751
- command.query['fields'] = fields unless fields.nil?
2752
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2753
- execute_or_queue_command(command, &block)
2754
- end
2755
-
2756
- # Deletes FHIR resources that match a search query.
2757
- # Implements the FHIR standard conditional delete interaction
2758
- # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.12.1),
2759
- # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.13.1)).
2760
- # If multiple resources match, all of them will be deleted.
2761
- # Search terms are provided as query parameters following the same pattern as
2762
- # the search method.
2763
- # Note: Unless resource versioning is disabled by setting the
2764
- # disable_resource_versioning flag
2765
- # on the FHIR store, the deleted resources will be moved to a history
2766
- # repository that can still be retrieved through vread
2767
- # and related methods, unless they are removed by the
2768
- # purge method.
2769
- # @param [String] parent
2770
- # The name of the FHIR store this resource belongs to.
2771
- # @param [String] type
2772
- # The FHIR resource type to delete, such as Patient or Observation. For a
2773
- # complete list, see the FHIR Resource Index
2774
- # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html),
2775
- # [STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)).
2776
- # @param [String] fields
2777
- # Selector specifying which fields to include in a partial response.
2778
- # @param [String] quota_user
2779
- # Available to use for quota purposes for server-side applications. Can be any
2780
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2781
- # @param [Google::Apis::RequestOptions] options
2782
- # Request-specific options
2783
- #
2784
- # @yield [result, err] Result & error if block supplied
2785
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Empty] parsed result object
2786
- # @yieldparam err [StandardError] error object if request failed
2787
- #
2788
- # @return [Google::Apis::HealthcareV1alpha2::Empty]
2789
- #
2790
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2791
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2792
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2793
- def conditional_project_location_dataset_fhir_store_fhir_delete(parent, type, fields: nil, quota_user: nil, options: nil, &block)
2794
- command = make_simple_command(:delete, 'v1alpha2/{+parent}/fhir/{+type}', options)
2795
- command.response_representation = Google::Apis::HealthcareV1alpha2::Empty::Representation
2796
- command.response_class = Google::Apis::HealthcareV1alpha2::Empty
2797
- command.params['parent'] = parent unless parent.nil?
2798
- command.params['type'] = type unless type.nil?
2799
- command.query['fields'] = fields unless fields.nil?
2800
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2801
- execute_or_queue_command(command, &block)
2802
- end
2803
-
2804
- # If a resource is found based on the search criteria specified in the query
2805
- # parameters, updates part of that resource by applying the operations
2806
- # specified in a [JSON Patch](http://jsonpatch.com/) document.
2807
- # Implements the FHIR standard conditional patch interaction
2808
- # ([STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#patch)).
2809
- # DSTU2 doesn't define a conditional patch method, but the server supports it
2810
- # in the same way it supports STU3.
2811
- # Search terms are provided as query parameters following the same pattern as
2812
- # the search method.
2813
- # If the search criteria identify more than one match, the request will
2814
- # return a `412 Precondition Failed` error.
2815
- # The request body must contain a JSON Patch document, and the request
2816
- # headers must contain `Content-Type: application/json-patch+json`.
2817
- # On success, the response body will contain a JSON-encoded representation
2818
- # of the updated resource, including the server-assigned version ID.
2819
- # Errors generated by the FHIR store will contain a JSON-encoded
2820
- # `OperationOutcome` resource describing the reason for the error. If the
2821
- # request cannot be mapped to a valid API method on a FHIR store, a generic
2822
- # GCP error might be returned instead.
2823
- # @param [String] parent
2824
- # The name of the FHIR store this resource belongs to.
2825
- # @param [String] type
2826
- # The FHIR resource type to update, such as Patient or Observation. For a
2827
- # complete list, see the FHIR Resource Index
2828
- # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html),
2829
- # [STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)).
2830
- # @param [Google::Apis::HealthcareV1alpha2::HttpBody] http_body_object
2831
- # @param [String] fields
2832
- # Selector specifying which fields to include in a partial response.
2833
- # @param [String] quota_user
2834
- # Available to use for quota purposes for server-side applications. Can be any
2835
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2836
- # @param [Google::Apis::RequestOptions] options
2837
- # Request-specific options
2838
- #
2839
- # @yield [result, err] Result & error if block supplied
2840
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
2841
- # @yieldparam err [StandardError] error object if request failed
2842
- #
2843
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
2844
- #
2845
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2846
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2847
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2848
- def conditional_project_location_dataset_fhir_store_fhir_patch(parent, type, http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2849
- command = make_simple_command(:patch, 'v1alpha2/{+parent}/fhir/{+type}', options)
2850
- command.request_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
2851
- command.request_object = http_body_object
2852
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
2853
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
2854
- command.params['parent'] = parent unless parent.nil?
2855
- command.params['type'] = type unless type.nil?
2856
- command.query['fields'] = fields unless fields.nil?
2857
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2858
- execute_or_queue_command(command, &block)
2859
- end
2860
-
2861
- # If a resource is found based on the search criteria specified in the query
2862
- # parameters, updates the entire contents of that resource.
2863
- # Implements the FHIR standard conditional update interaction
2864
- # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.10.2),
2865
- # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#cond-update)).
2866
- # Search terms are provided as query parameters following the same pattern as
2867
- # the search method.
2868
- # If the search criteria identify more than one match, the request will
2869
- # return a `412 Precondition Failed` error.
2870
- # If the search criteria identify zero matches, and the supplied resource
2871
- # body contains an `id`, and the FHIR store has
2872
- # enable_update_create set, creates the
2873
- # resource with the client-specified ID. If the search criteria identify zero
2874
- # matches, and the supplied resource body does not contain an `id`, the
2875
- # resource will be created with a server-assigned ID as per the
2876
- # create method.
2877
- # The request body must contain a JSON-encoded FHIR resource, and the request
2878
- # headers must contain `Content-Type: application/fhir+json`.
2879
- # On success, the response body will contain a JSON-encoded representation
2880
- # of the updated resource, including the server-assigned version ID.
2881
- # Errors generated by the FHIR store will contain a JSON-encoded
2882
- # `OperationOutcome` resource describing the reason for the error. If the
2883
- # request cannot be mapped to a valid API method on a FHIR store, a generic
2884
- # GCP error might be returned instead.
2885
- # @param [String] parent
2886
- # The name of the FHIR store this resource belongs to.
2887
- # @param [String] type
2888
- # The FHIR resource type to update, such as Patient or Observation. For a
2889
- # complete list, see the FHIR Resource Index
2890
- # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html),
2891
- # [STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)).
2892
- # Must match the resource type in the provided content.
2893
- # @param [Google::Apis::HealthcareV1alpha2::HttpBody] http_body_object
2894
- # @param [String] fields
2895
- # Selector specifying which fields to include in a partial response.
2896
- # @param [String] quota_user
2897
- # Available to use for quota purposes for server-side applications. Can be any
2898
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2899
- # @param [Google::Apis::RequestOptions] options
2900
- # Request-specific options
2901
- #
2902
- # @yield [result, err] Result & error if block supplied
2903
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
2904
- # @yieldparam err [StandardError] error object if request failed
2905
- #
2906
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
2907
- #
2908
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2909
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2910
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2911
- def conditional_project_location_dataset_fhir_store_fhir_update(parent, type, http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2912
- command = make_simple_command(:put, 'v1alpha2/{+parent}/fhir/{+type}', options)
2913
- command.request_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
2914
- command.request_object = http_body_object
2915
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
2916
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
2917
- command.params['parent'] = parent unless parent.nil?
2918
- command.params['type'] = type unless type.nil?
2919
- command.query['fields'] = fields unless fields.nil?
2920
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2921
- execute_or_queue_command(command, &block)
2922
- end
2923
-
2924
- # Creates a FHIR resource.
2925
- # Implements the FHIR standard create interaction
2926
- # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#create),
2927
- # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#create)),
2928
- # which creates a new resource with a server-assigned resource ID.
2929
- # Also supports the FHIR standard conditional create interaction
2930
- # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#ccreate),
2931
- # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#ccreate)),
2932
- # specified by supplying an `If-None-Exist` header containing a FHIR search
2933
- # query. If no resources match this search query, the server processes the
2934
- # create operation as normal.
2935
- # The request body must contain a JSON-encoded FHIR resource, and the request
2936
- # headers must contain `Content-Type: application/fhir+json`.
2937
- # On success, the response body will contain a JSON-encoded representation
2938
- # of the resource as it was created on the server, including the
2939
- # server-assigned resource ID and version ID.
2940
- # Errors generated by the FHIR store will contain a JSON-encoded
2941
- # `OperationOutcome` resource describing the reason for the error. If the
2942
- # request cannot be mapped to a valid API method on a FHIR store, a generic
2943
- # GCP error might be returned instead.
2944
- # @param [String] parent
2945
- # The name of the FHIR store this resource belongs to.
2946
- # @param [String] type
2947
- # The FHIR resource type to create, such as Patient or Observation. For a
2948
- # complete list, see the FHIR Resource Index
2949
- # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html),
2950
- # [STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)).
2951
- # Must match the resource type in the provided content.
2952
- # @param [Google::Apis::HealthcareV1alpha2::HttpBody] http_body_object
2953
- # @param [String] fields
2954
- # Selector specifying which fields to include in a partial response.
2955
- # @param [String] quota_user
2956
- # Available to use for quota purposes for server-side applications. Can be any
2957
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2958
- # @param [Google::Apis::RequestOptions] options
2959
- # Request-specific options
2960
- #
2961
- # @yield [result, err] Result & error if block supplied
2962
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
2963
- # @yieldparam err [StandardError] error object if request failed
2964
- #
2965
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
2966
- #
2967
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2968
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2969
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2970
- def create_project_location_dataset_fhir_store_fhir(parent, type, http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2971
- command = make_simple_command(:post, 'v1alpha2/{+parent}/fhir/{+type}', options)
2972
- command.request_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
2973
- command.request_object = http_body_object
2974
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
2975
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
2976
- command.params['parent'] = parent unless parent.nil?
2977
- command.params['type'] = type unless type.nil?
2978
- command.query['fields'] = fields unless fields.nil?
2979
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2980
- execute_or_queue_command(command, &block)
2981
- end
2982
-
2983
- # Deletes a FHIR resource.
2984
- # Implements the FHIR standard delete interaction
2985
- # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#delete),
2986
- # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#delete)).
2987
- # Note: Unless resource versioning is disabled by setting the
2988
- # disable_resource_versioning flag
2989
- # on the FHIR store, the deleted resources will be moved to a history
2990
- # repository that can still be retrieved through vread
2991
- # and related methods, unless they are removed by the
2992
- # purge method.
2993
- # @param [String] name
2994
- # The name of the resource to delete.
2995
- # @param [String] fields
2996
- # Selector specifying which fields to include in a partial response.
2997
- # @param [String] quota_user
2998
- # Available to use for quota purposes for server-side applications. Can be any
2999
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3000
- # @param [Google::Apis::RequestOptions] options
3001
- # Request-specific options
3002
- #
3003
- # @yield [result, err] Result & error if block supplied
3004
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
3005
- # @yieldparam err [StandardError] error object if request failed
3006
- #
3007
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
3008
- #
3009
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3010
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3011
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3012
- def delete_project_location_dataset_fhir_store_fhir(name, fields: nil, quota_user: nil, options: nil, &block)
3013
- command = make_simple_command(:delete, 'v1alpha2/{+name}', options)
3014
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
3015
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
3016
- command.params['name'] = name unless name.nil?
3017
- command.query['fields'] = fields unless fields.nil?
3018
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3019
- execute_or_queue_command(command, &block)
3020
- end
3021
-
3022
- # Executes all the requests in the given Bundle.
3023
- # Implements the FHIR standard batch/transaction interaction
3024
- # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#transaction),
3025
- # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#transaction)).
3026
- # Supports all interactions within a bundle, except search. This method
3027
- # accepts Bundles of type `batch` and `transaction`, processing them
3028
- # according to the batch processing rules
3029
- # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.16.1),
3030
- # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.1))
3031
- # and transaction processing rules
3032
- # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.16.2),
3033
- # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.2)).
3034
- # The request body must contain a JSON-encoded FHIR `Bundle` resource, and
3035
- # the request headers must contain `Content-Type: application/fhir+json`.
3036
- # For a batch bundle or a successful transaction the response body will
3037
- # contain a JSON-encoded representation of a `Bundle` resource of type
3038
- # `batch-response` or `transaction-response` containing one entry for each
3039
- # entry in the request, with the outcome of processing the entry. In the
3040
- # case of an error for a transaction bundle, the response body will contain
3041
- # a JSON-encoded `OperationOutcome` resource describing the reason for the
3042
- # error. If the request cannot be mapped to a valid API method on a FHIR
3043
- # store, a generic GCP error might be returned instead.
3044
- # @param [String] parent
3045
- # Name of the FHIR store in which this bundle will be executed.
3046
- # @param [Google::Apis::HealthcareV1alpha2::HttpBody] http_body_object
3047
- # @param [String] fields
3048
- # Selector specifying which fields to include in a partial response.
3049
- # @param [String] quota_user
3050
- # Available to use for quota purposes for server-side applications. Can be any
3051
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3052
- # @param [Google::Apis::RequestOptions] options
3053
- # Request-specific options
3054
- #
3055
- # @yield [result, err] Result & error if block supplied
3056
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
3057
- # @yieldparam err [StandardError] error object if request failed
3058
- #
3059
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
3060
- #
3061
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3062
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3063
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3064
- def execute_project_location_dataset_fhir_store_fhir_bundle(parent, http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3065
- command = make_simple_command(:post, 'v1alpha2/{+parent}/fhir', options)
3066
- command.request_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
3067
- command.request_object = http_body_object
3068
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
3069
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
3070
- command.params['parent'] = parent unless parent.nil?
3071
- command.query['fields'] = fields unless fields.nil?
3072
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3073
- execute_or_queue_command(command, &block)
3074
- end
3075
-
3076
- # Lists all the versions of a resource (including the current version and
3077
- # deleted versions) from the FHIR store.
3078
- # Implements the per-resource form of the FHIR standard history interaction
3079
- # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#history),
3080
- # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#history)).
3081
- # On success, the response body will contain a JSON-encoded representation
3082
- # of a `Bundle` resource of type `history`, containing the version history
3083
- # sorted from most recent to oldest versions.
3084
- # Errors generated by the FHIR store will contain a JSON-encoded
3085
- # `OperationOutcome` resource describing the reason for the error. If the
3086
- # request cannot be mapped to a valid API method on a FHIR store, a generic
3087
- # GCP error might be returned instead.
3088
- # @param [String] name
3089
- # The name of the resource to retrieve.
3090
- # @param [String] at
3091
- # Only include resource versions that were current at some point during the
3092
- # time period specified in the date time value. The date parameter format is
3093
- # yyyy-mm-ddThh:mm:ss[Z|(+|-)hh:mm]
3094
- # Clients may specify any of the following:
3095
- # * An entire year: `_at=2019`
3096
- # * An entire month: `_at=2019-01`
3097
- # * A specific day: `_at=2019-01-20`
3098
- # * A specific second: `_at=2018-12-31T23:59:58Z`
3099
- # @param [Fixnum] count
3100
- # The maximum number of search results on a page. Defaults to 1000.
3101
- # @param [String] page
3102
- # Used to retrieve the first, previous, next, or last page of resource
3103
- # versions when using pagination. Value should be set to the value of the
3104
- # `link.url` field returned in the response to the previous request, where
3105
- # `link.relation` is "first", "previous", "next" or "last".
3106
- # Omit `page` if no previous request has been made.
3107
- # @param [String] since
3108
- # Only include resource versions that were created at or after the given
3109
- # instant in time. The instant in time uses the format
3110
- # YYYY-MM-DDThh:mm:ss.sss+zz:zz (for example 2015-02-07T13:28:17.239+02:00 or
3111
- # 2017-01-01T00:00:00Z). The time must be specified to the second and
3112
- # include a time zone.
3113
- # @param [String] fields
3114
- # Selector specifying which fields to include in a partial response.
3115
- # @param [String] quota_user
3116
- # Available to use for quota purposes for server-side applications. Can be any
3117
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3118
- # @param [Google::Apis::RequestOptions] options
3119
- # Request-specific options
3120
- #
3121
- # @yield [result, err] Result & error if block supplied
3122
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
3123
- # @yieldparam err [StandardError] error object if request failed
3124
- #
3125
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
3126
- #
3127
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3128
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3129
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3130
- def history_project_location_dataset_fhir_store_fhir(name, at: nil, count: nil, page: nil, since: nil, fields: nil, quota_user: nil, options: nil, &block)
3131
- command = make_simple_command(:get, 'v1alpha2/{+name}/_history', options)
3132
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
3133
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
3134
- command.params['name'] = name unless name.nil?
3135
- command.query['at'] = at unless at.nil?
3136
- command.query['count'] = count unless count.nil?
3137
- command.query['page'] = page unless page.nil?
3138
- command.query['since'] = since unless since.nil?
3139
- command.query['fields'] = fields unless fields.nil?
3140
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3141
- execute_or_queue_command(command, &block)
3142
- end
3143
-
3144
- # Updates part of an existing resource by applying the operations specified
3145
- # in a [JSON Patch](http://jsonpatch.com/) document.
3146
- # Implements the FHIR standard patch interaction
3147
- # ([STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#patch)).
3148
- # DSTU2 doesn't define a patch method, but the server supports it in the same
3149
- # way it supports STU3.
3150
- # The request body must contain a JSON Patch document, and the request
3151
- # headers must contain `Content-Type: application/json-patch+json`.
3152
- # On success, the response body will contain a JSON-encoded representation
3153
- # of the updated resource, including the server-assigned version ID.
3154
- # Errors generated by the FHIR store will contain a JSON-encoded
3155
- # `OperationOutcome` resource describing the reason for the error. If the
3156
- # request cannot be mapped to a valid API method on a FHIR store, a generic
3157
- # GCP error might be returned instead.
3158
- # @param [String] name
3159
- # The name of the resource to update.
3160
- # @param [Google::Apis::HealthcareV1alpha2::HttpBody] http_body_object
3161
- # @param [String] fields
3162
- # Selector specifying which fields to include in a partial response.
3163
- # @param [String] quota_user
3164
- # Available to use for quota purposes for server-side applications. Can be any
3165
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3166
- # @param [Google::Apis::RequestOptions] options
3167
- # Request-specific options
3168
- #
3169
- # @yield [result, err] Result & error if block supplied
3170
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
3171
- # @yieldparam err [StandardError] error object if request failed
3172
- #
3173
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
3174
- #
3175
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3176
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3177
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3178
- def patch_project_location_dataset_fhir_store_fhir(name, http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3179
- command = make_simple_command(:patch, 'v1alpha2/{+name}', options)
3180
- command.request_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
3181
- command.request_object = http_body_object
3182
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
3183
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
3184
- command.params['name'] = name unless name.nil?
3185
- command.query['fields'] = fields unless fields.nil?
3186
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3187
- execute_or_queue_command(command, &block)
3188
- end
3189
-
3190
- # Gets the contents of a FHIR resource.
3191
- # Implements the FHIR standard read interaction
3192
- # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#read),
3193
- # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#read)).
3194
- # Also supports the FHIR standard conditional read interaction
3195
- # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#cread),
3196
- # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#cread))
3197
- # specified by supplying an `If-Modified-Since` header with a date/time value
3198
- # or an `If-None-Match` header with an ETag value.
3199
- # On success, the response body will contain a JSON-encoded representation
3200
- # of the resource.
3201
- # Errors generated by the FHIR store will contain a JSON-encoded
3202
- # `OperationOutcome` resource describing the reason for the error. If the
3203
- # request cannot be mapped to a valid API method on a FHIR store, a generic
3204
- # GCP error might be returned instead.
3205
- # @param [String] name
3206
- # The name of the resource to retrieve.
3207
- # @param [String] fields
3208
- # Selector specifying which fields to include in a partial response.
3209
- # @param [String] quota_user
3210
- # Available to use for quota purposes for server-side applications. Can be any
3211
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3212
- # @param [Google::Apis::RequestOptions] options
3213
- # Request-specific options
3214
- #
3215
- # @yield [result, err] Result & error if block supplied
3216
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
3217
- # @yieldparam err [StandardError] error object if request failed
3218
- #
3219
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
3220
- #
3221
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3222
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3223
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3224
- def read_project_location_dataset_fhir_store_fhir(name, fields: nil, quota_user: nil, options: nil, &block)
3225
- command = make_simple_command(:get, 'v1alpha2/{+name}', options)
3226
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
3227
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
3228
- command.params['name'] = name unless name.nil?
3229
- command.query['fields'] = fields unless fields.nil?
3230
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3231
- execute_or_queue_command(command, &block)
3232
- end
3233
-
3234
- # Searches for resources in the given FHIR store according to criteria
3235
- # specified as query parameters.
3236
- # Implements the FHIR standard search interaction
3237
- # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#search),
3238
- # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#search))
3239
- # using the search semantics described in the FHIR Search specification
3240
- # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/search.html),
3241
- # [STU3](http://hl7.org/implement/standards/fhir/STU3/search.html)).
3242
- # Supports three methods of search defined by the specification:
3243
- # * `GET [base]?[parameters]` to search across all resources.
3244
- # * `GET [base]/[type]?[parameters]` to search resources of a specified
3245
- # type.
3246
- # * `POST [base]/[type]/_search?[parameters]` as an alternate form having
3247
- # the same semantics as the `GET` method.
3248
- # The `GET` methods do not support compartment searches. The `POST` method
3249
- # does not support `application/x-www-form-urlencoded` search parameters.
3250
- # On success, the response body will contain a JSON-encoded representation
3251
- # of a `Bundle` resource of type `searchset`, containing the results of the
3252
- # search.
3253
- # Errors generated by the FHIR store will contain a JSON-encoded
3254
- # `OperationOutcome` resource describing the reason for the error. If the
3255
- # request cannot be mapped to a valid API method on a FHIR store, a generic
3256
- # GCP error might be returned instead.
3257
- # The server's capability statement, retrieved through
3258
- # capabilities, indicates what search parameters
3259
- # are supported on each FHIR resource. A list of all search parameters
3260
- # defined by the specification can be found in the FHIR Search Parameter
3261
- # Registry
3262
- # ([STU3](http://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.
3263
- # html)).
3264
- # FHIR search parameters for DSTU2 can be found on each resource's definition
3265
- # page.
3266
- # Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`,
3267
- # `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `:recurse`.
3268
- # Supported search result parameters: `_sort`, `_count`, `_include`,
3269
- # `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`.
3270
- # The maximum number of search results returned defaults to 100, which can
3271
- # be overridden by the `_count` parameter up to a maximum limit of 1000. If
3272
- # there are additional results, the returned `Bundle` will contain
3273
- # pagination links.
3274
- # Resources with a total size larger than 5MB or a field count larger than
3275
- # 50,000 might not be fully searchable as the server might trim its generated
3276
- # search index in those cases.
3277
- # Note: FHIR resources are indexed asynchronously, so there might be a slight
3278
- # delay between the time a resource is created or changes and when the change
3279
- # is reflected in search results.
3280
- # @param [String] parent
3281
- # Name of the FHIR store to retrieve resources from.
3282
- # @param [Google::Apis::HealthcareV1alpha2::SearchResourcesRequest] search_resources_request_object
3283
- # @param [String] fields
3284
- # Selector specifying which fields to include in a partial response.
3285
- # @param [String] quota_user
3286
- # Available to use for quota purposes for server-side applications. Can be any
3287
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3288
- # @param [Google::Apis::RequestOptions] options
3289
- # Request-specific options
3290
- #
3291
- # @yield [result, err] Result & error if block supplied
3292
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
3293
- # @yieldparam err [StandardError] error object if request failed
3294
- #
3295
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
3296
- #
3297
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3298
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3299
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3300
- def search_fhir_resources(parent, search_resources_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3301
- command = make_simple_command(:post, 'v1alpha2/{+parent}/fhir/_search', options)
3302
- command.request_representation = Google::Apis::HealthcareV1alpha2::SearchResourcesRequest::Representation
3303
- command.request_object = search_resources_request_object
3304
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
3305
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
3306
- command.params['parent'] = parent unless parent.nil?
3307
- command.query['fields'] = fields unless fields.nil?
3308
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3309
- execute_or_queue_command(command, &block)
3310
- end
3311
-
3312
- # Updates the entire contents of a resource.
3313
- # Implements the FHIR standard update interaction
3314
- # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#update),
3315
- # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#update)).
3316
- # If the specified resource does
3317
- # not exist and the FHIR store has
3318
- # enable_update_create set, creates the
3319
- # resource with the client-specified ID.
3320
- # The request body must contain a JSON-encoded FHIR resource, and the request
3321
- # headers must contain `Content-Type: application/fhir+json`. The resource
3322
- # must contain an `id` element having an identical value to the ID in the
3323
- # REST path of the request.
3324
- # On success, the response body will contain a JSON-encoded representation
3325
- # of the updated resource, including the server-assigned version ID.
3326
- # Errors generated by the FHIR store will contain a JSON-encoded
3327
- # `OperationOutcome` resource describing the reason for the error. If the
3328
- # request cannot be mapped to a valid API method on a FHIR store, a generic
3329
- # GCP error might be returned instead.
3330
- # @param [String] name
3331
- # The name of the resource to update.
3332
- # @param [Google::Apis::HealthcareV1alpha2::HttpBody] http_body_object
3333
- # @param [String] fields
3334
- # Selector specifying which fields to include in a partial response.
3335
- # @param [String] quota_user
3336
- # Available to use for quota purposes for server-side applications. Can be any
3337
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3338
- # @param [Google::Apis::RequestOptions] options
3339
- # Request-specific options
3340
- #
3341
- # @yield [result, err] Result & error if block supplied
3342
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
3343
- # @yieldparam err [StandardError] error object if request failed
3344
- #
3345
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
3346
- #
3347
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3348
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3349
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3350
- def update_project_location_dataset_fhir_store_fhir(name, http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3351
- command = make_simple_command(:put, 'v1alpha2/{+name}', options)
3352
- command.request_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
3353
- command.request_object = http_body_object
3354
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
3355
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
3356
- command.params['name'] = name unless name.nil?
3357
- command.query['fields'] = fields unless fields.nil?
3358
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3359
- execute_or_queue_command(command, &block)
3360
- end
3361
-
3362
- # Gets the contents of a version (current or historical) of a FHIR resource
3363
- # by version ID.
3364
- # Implements the FHIR standard vread interaction
3365
- # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#vread),
3366
- # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#vread).
3367
- # On success, the response body will contain a JSON-encoded representation
3368
- # of the resource.
3369
- # Errors generated by the FHIR store will contain a JSON-encoded
3370
- # `OperationOutcome` resource describing the reason for the error. If the
3371
- # request cannot be mapped to a valid API method on a FHIR store, a generic
3372
- # GCP error might be returned instead.
3373
- # @param [String] name
3374
- # The name of the resource version to retrieve.
3375
- # @param [String] fields
3376
- # Selector specifying which fields to include in a partial response.
3377
- # @param [String] quota_user
3378
- # Available to use for quota purposes for server-side applications. Can be any
3379
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3380
- # @param [Google::Apis::RequestOptions] options
3381
- # Request-specific options
3382
- #
3383
- # @yield [result, err] Result & error if block supplied
3384
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::HttpBody] parsed result object
3385
- # @yieldparam err [StandardError] error object if request failed
3386
- #
3387
- # @return [Google::Apis::HealthcareV1alpha2::HttpBody]
3388
- #
3389
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3390
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3391
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3392
- def vread_project_location_dataset_fhir_store_fhir(name, fields: nil, quota_user: nil, options: nil, &block)
3393
- command = make_simple_command(:get, 'v1alpha2/{+name}', options)
3394
- command.response_representation = Google::Apis::HealthcareV1alpha2::HttpBody::Representation
3395
- command.response_class = Google::Apis::HealthcareV1alpha2::HttpBody
3396
- command.params['name'] = name unless name.nil?
3397
- command.query['fields'] = fields unless fields.nil?
3398
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3399
- execute_or_queue_command(command, &block)
3400
- end
3401
-
3402
- # Creates a new HL7v2 store within the parent dataset.
3403
- # @param [String] parent
3404
- # The name of the dataset this HL7v2 store belongs to.
3405
- # @param [Google::Apis::HealthcareV1alpha2::Hl7V2Store] hl7_v2_store_object
3406
- # @param [String] hl7_v2_store_id
3407
- # The ID of the HL7v2 store that is being created.
3408
- # The string must match the following regex: `[\p`L`\p`N`_\-\.]`1,256``.
3409
- # @param [String] fields
3410
- # Selector specifying which fields to include in a partial response.
3411
- # @param [String] quota_user
3412
- # Available to use for quota purposes for server-side applications. Can be any
3413
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3414
- # @param [Google::Apis::RequestOptions] options
3415
- # Request-specific options
3416
- #
3417
- # @yield [result, err] Result & error if block supplied
3418
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Hl7V2Store] parsed result object
3419
- # @yieldparam err [StandardError] error object if request failed
3420
- #
3421
- # @return [Google::Apis::HealthcareV1alpha2::Hl7V2Store]
3422
- #
3423
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3424
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3425
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3426
- def create_project_location_dataset_hl7_v2_store(parent, hl7_v2_store_object = nil, hl7_v2_store_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3427
- command = make_simple_command(:post, 'v1alpha2/{+parent}/hl7V2Stores', options)
3428
- command.request_representation = Google::Apis::HealthcareV1alpha2::Hl7V2Store::Representation
3429
- command.request_object = hl7_v2_store_object
3430
- command.response_representation = Google::Apis::HealthcareV1alpha2::Hl7V2Store::Representation
3431
- command.response_class = Google::Apis::HealthcareV1alpha2::Hl7V2Store
3432
- command.params['parent'] = parent unless parent.nil?
3433
- command.query['hl7V2StoreId'] = hl7_v2_store_id unless hl7_v2_store_id.nil?
3434
- command.query['fields'] = fields unless fields.nil?
3435
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3436
- execute_or_queue_command(command, &block)
3437
- end
3438
-
3439
- # Deletes the specified HL7v2 store and removes all messages that are
3440
- # contained within it.
3441
- # @param [String] name
3442
- # The resource name of the HL7v2 store to delete.
3443
- # @param [String] fields
3444
- # Selector specifying which fields to include in a partial response.
3445
- # @param [String] quota_user
3446
- # Available to use for quota purposes for server-side applications. Can be any
3447
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3448
- # @param [Google::Apis::RequestOptions] options
3449
- # Request-specific options
3450
- #
3451
- # @yield [result, err] Result & error if block supplied
3452
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Empty] parsed result object
3453
- # @yieldparam err [StandardError] error object if request failed
3454
- #
3455
- # @return [Google::Apis::HealthcareV1alpha2::Empty]
3456
- #
3457
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3458
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3459
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3460
- def delete_project_location_dataset_hl7_v2_store(name, fields: nil, quota_user: nil, options: nil, &block)
3461
- command = make_simple_command(:delete, 'v1alpha2/{+name}', options)
3462
- command.response_representation = Google::Apis::HealthcareV1alpha2::Empty::Representation
3463
- command.response_class = Google::Apis::HealthcareV1alpha2::Empty
3464
- command.params['name'] = name unless name.nil?
3465
- command.query['fields'] = fields unless fields.nil?
3466
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3467
- execute_or_queue_command(command, &block)
3468
- end
3469
-
3470
- # Gets the specified HL7v2 store.
3471
- # @param [String] name
3472
- # The resource name of the HL7v2 store to get.
3473
- # @param [String] fields
3474
- # Selector specifying which fields to include in a partial response.
3475
- # @param [String] quota_user
3476
- # Available to use for quota purposes for server-side applications. Can be any
3477
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3478
- # @param [Google::Apis::RequestOptions] options
3479
- # Request-specific options
3480
- #
3481
- # @yield [result, err] Result & error if block supplied
3482
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Hl7V2Store] parsed result object
3483
- # @yieldparam err [StandardError] error object if request failed
3484
- #
3485
- # @return [Google::Apis::HealthcareV1alpha2::Hl7V2Store]
3486
- #
3487
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3488
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3489
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3490
- def get_project_location_dataset_hl7_v2_store(name, fields: nil, quota_user: nil, options: nil, &block)
3491
- command = make_simple_command(:get, 'v1alpha2/{+name}', options)
3492
- command.response_representation = Google::Apis::HealthcareV1alpha2::Hl7V2Store::Representation
3493
- command.response_class = Google::Apis::HealthcareV1alpha2::Hl7V2Store
3494
- command.params['name'] = name unless name.nil?
3495
- command.query['fields'] = fields unless fields.nil?
3496
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3497
- execute_or_queue_command(command, &block)
3498
- end
3499
-
3500
- # Gets the access control policy for a resource.
3501
- # Returns an empty policy if the resource exists and does not have a policy
3502
- # set.
3503
- # @param [String] resource
3504
- # REQUIRED: The resource for which the policy is being requested.
3505
- # See the operation documentation for the appropriate value for this field.
3506
- # @param [Fixnum] options_requested_policy_version
3507
- # Optional. The policy format version to be returned.
3508
- # Acceptable values are 0, 1, and 3.
3509
- # If the value is 0, or the field is omitted, policy format version 1 will be
3510
- # returned.
3511
- # @param [String] fields
3512
- # Selector specifying which fields to include in a partial response.
3513
- # @param [String] quota_user
3514
- # Available to use for quota purposes for server-side applications. Can be any
3515
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3516
- # @param [Google::Apis::RequestOptions] options
3517
- # Request-specific options
3518
- #
3519
- # @yield [result, err] Result & error if block supplied
3520
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Policy] parsed result object
3521
- # @yieldparam err [StandardError] error object if request failed
3522
- #
3523
- # @return [Google::Apis::HealthcareV1alpha2::Policy]
3524
- #
3525
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3526
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3527
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3528
- def get_project_location_dataset_hl7_v2_store_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
3529
- command = make_simple_command(:get, 'v1alpha2/{+resource}:getIamPolicy', options)
3530
- command.response_representation = Google::Apis::HealthcareV1alpha2::Policy::Representation
3531
- command.response_class = Google::Apis::HealthcareV1alpha2::Policy
3532
- command.params['resource'] = resource unless resource.nil?
3533
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
3534
- command.query['fields'] = fields unless fields.nil?
3535
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3536
- execute_or_queue_command(command, &block)
3537
- end
3538
-
3539
- # Lists the HL7v2 stores in the given dataset.
3540
- # @param [String] parent
3541
- # Name of the dataset.
3542
- # @param [String] filter
3543
- # Restricts stores returned to those matching a filter. Syntax:
3544
- # https://cloud.google.com/appengine/docs/standard/python/search/query_strings
3545
- # Only filtering on labels is supported, for example `labels.key=value`.
3546
- # @param [Fixnum] page_size
3547
- # Limit on the number of HL7v2 stores to return in a single response.
3548
- # If zero the default page size of 100 is used.
3549
- # @param [String] page_token
3550
- # The next_page_token value returned from the previous List request, if any.
3551
- # @param [String] fields
3552
- # Selector specifying which fields to include in a partial response.
3553
- # @param [String] quota_user
3554
- # Available to use for quota purposes for server-side applications. Can be any
3555
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3556
- # @param [Google::Apis::RequestOptions] options
3557
- # Request-specific options
3558
- #
3559
- # @yield [result, err] Result & error if block supplied
3560
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::ListHl7V2StoresResponse] parsed result object
3561
- # @yieldparam err [StandardError] error object if request failed
3562
- #
3563
- # @return [Google::Apis::HealthcareV1alpha2::ListHl7V2StoresResponse]
3564
- #
3565
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3566
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3567
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3568
- def list_project_location_dataset_hl7_v2_stores(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3569
- command = make_simple_command(:get, 'v1alpha2/{+parent}/hl7V2Stores', options)
3570
- command.response_representation = Google::Apis::HealthcareV1alpha2::ListHl7V2StoresResponse::Representation
3571
- command.response_class = Google::Apis::HealthcareV1alpha2::ListHl7V2StoresResponse
3572
- command.params['parent'] = parent unless parent.nil?
3573
- command.query['filter'] = filter unless filter.nil?
3574
- command.query['pageSize'] = page_size unless page_size.nil?
3575
- command.query['pageToken'] = page_token unless page_token.nil?
3576
- command.query['fields'] = fields unless fields.nil?
3577
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3578
- execute_or_queue_command(command, &block)
3579
- end
3580
-
3581
- # Updates the HL7v2 store.
3582
- # @param [String] name
3583
- # Output only. Resource name of the HL7v2 store, of the form
3584
- # `projects/`project_id`/datasets/`dataset_id`/hl7V2Stores/`hl7v2_store_id``.
3585
- # @param [Google::Apis::HealthcareV1alpha2::Hl7V2Store] hl7_v2_store_object
3586
- # @param [String] update_mask
3587
- # The update mask applies to the resource. For the `FieldMask` definition,
3588
- # see
3589
- # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
3590
- # fieldmask
3591
- # @param [String] fields
3592
- # Selector specifying which fields to include in a partial response.
3593
- # @param [String] quota_user
3594
- # Available to use for quota purposes for server-side applications. Can be any
3595
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3596
- # @param [Google::Apis::RequestOptions] options
3597
- # Request-specific options
3598
- #
3599
- # @yield [result, err] Result & error if block supplied
3600
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Hl7V2Store] parsed result object
3601
- # @yieldparam err [StandardError] error object if request failed
3602
- #
3603
- # @return [Google::Apis::HealthcareV1alpha2::Hl7V2Store]
3604
- #
3605
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3606
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3607
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3608
- def patch_project_location_dataset_hl7_v2_store(name, hl7_v2_store_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3609
- command = make_simple_command(:patch, 'v1alpha2/{+name}', options)
3610
- command.request_representation = Google::Apis::HealthcareV1alpha2::Hl7V2Store::Representation
3611
- command.request_object = hl7_v2_store_object
3612
- command.response_representation = Google::Apis::HealthcareV1alpha2::Hl7V2Store::Representation
3613
- command.response_class = Google::Apis::HealthcareV1alpha2::Hl7V2Store
3614
- command.params['name'] = name unless name.nil?
3615
- command.query['updateMask'] = update_mask unless update_mask.nil?
3616
- command.query['fields'] = fields unless fields.nil?
3617
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3618
- execute_or_queue_command(command, &block)
3619
- end
3620
-
3621
- # Sets the access control policy on the specified resource. Replaces any
3622
- # existing policy.
3623
- # @param [String] resource
3624
- # REQUIRED: The resource for which the policy is being specified.
3625
- # See the operation documentation for the appropriate value for this field.
3626
- # @param [Google::Apis::HealthcareV1alpha2::SetIamPolicyRequest] set_iam_policy_request_object
3627
- # @param [String] fields
3628
- # Selector specifying which fields to include in a partial response.
3629
- # @param [String] quota_user
3630
- # Available to use for quota purposes for server-side applications. Can be any
3631
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3632
- # @param [Google::Apis::RequestOptions] options
3633
- # Request-specific options
3634
- #
3635
- # @yield [result, err] Result & error if block supplied
3636
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Policy] parsed result object
3637
- # @yieldparam err [StandardError] error object if request failed
3638
- #
3639
- # @return [Google::Apis::HealthcareV1alpha2::Policy]
3640
- #
3641
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3642
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3643
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3644
- def set_hl7_v2_store_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3645
- command = make_simple_command(:post, 'v1alpha2/{+resource}:setIamPolicy', options)
3646
- command.request_representation = Google::Apis::HealthcareV1alpha2::SetIamPolicyRequest::Representation
3647
- command.request_object = set_iam_policy_request_object
3648
- command.response_representation = Google::Apis::HealthcareV1alpha2::Policy::Representation
3649
- command.response_class = Google::Apis::HealthcareV1alpha2::Policy
3650
- command.params['resource'] = resource unless resource.nil?
3651
- command.query['fields'] = fields unless fields.nil?
3652
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3653
- execute_or_queue_command(command, &block)
3654
- end
3655
-
3656
- # Returns permissions that a caller has on the specified resource.
3657
- # If the resource does not exist, this will return an empty set of
3658
- # permissions, not a NOT_FOUND error.
3659
- # Note: This operation is designed to be used for building permission-aware
3660
- # UIs and command-line tools, not for authorization checking. This operation
3661
- # may "fail open" without warning.
3662
- # @param [String] resource
3663
- # REQUIRED: The resource for which the policy detail is being requested.
3664
- # See the operation documentation for the appropriate value for this field.
3665
- # @param [Google::Apis::HealthcareV1alpha2::TestIamPermissionsRequest] test_iam_permissions_request_object
3666
- # @param [String] fields
3667
- # Selector specifying which fields to include in a partial response.
3668
- # @param [String] quota_user
3669
- # Available to use for quota purposes for server-side applications. Can be any
3670
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3671
- # @param [Google::Apis::RequestOptions] options
3672
- # Request-specific options
3673
- #
3674
- # @yield [result, err] Result & error if block supplied
3675
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::TestIamPermissionsResponse] parsed result object
3676
- # @yieldparam err [StandardError] error object if request failed
3677
- #
3678
- # @return [Google::Apis::HealthcareV1alpha2::TestIamPermissionsResponse]
3679
- #
3680
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3681
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3682
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3683
- def test_hl7_v2_store_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3684
- command = make_simple_command(:post, 'v1alpha2/{+resource}:testIamPermissions', options)
3685
- command.request_representation = Google::Apis::HealthcareV1alpha2::TestIamPermissionsRequest::Representation
3686
- command.request_object = test_iam_permissions_request_object
3687
- command.response_representation = Google::Apis::HealthcareV1alpha2::TestIamPermissionsResponse::Representation
3688
- command.response_class = Google::Apis::HealthcareV1alpha2::TestIamPermissionsResponse
3689
- command.params['resource'] = resource unless resource.nil?
3690
- command.query['fields'] = fields unless fields.nil?
3691
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3692
- execute_or_queue_command(command, &block)
3693
- end
3694
-
3695
- # Creates a message and sends a notification to the Cloud Pub/Sub topic. If
3696
- # configured, the MLLP adapter listens to messages created by this method and
3697
- # sends those back to the hospital. A successful response indicates the
3698
- # message has been persisted to storage and a Cloud Pub/Sub notification has
3699
- # been sent. Sending to the hospital by the MLLP adapter happens
3700
- # asynchronously.
3701
- # @param [String] parent
3702
- # The name of the dataset this message belongs to.
3703
- # @param [Google::Apis::HealthcareV1alpha2::CreateMessageRequest] create_message_request_object
3704
- # @param [String] fields
3705
- # Selector specifying which fields to include in a partial response.
3706
- # @param [String] quota_user
3707
- # Available to use for quota purposes for server-side applications. Can be any
3708
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3709
- # @param [Google::Apis::RequestOptions] options
3710
- # Request-specific options
3711
- #
3712
- # @yield [result, err] Result & error if block supplied
3713
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Message] parsed result object
3714
- # @yieldparam err [StandardError] error object if request failed
3715
- #
3716
- # @return [Google::Apis::HealthcareV1alpha2::Message]
3717
- #
3718
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3719
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3720
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3721
- def create_message(parent, create_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3722
- command = make_simple_command(:post, 'v1alpha2/{+parent}/messages', options)
3723
- command.request_representation = Google::Apis::HealthcareV1alpha2::CreateMessageRequest::Representation
3724
- command.request_object = create_message_request_object
3725
- command.response_representation = Google::Apis::HealthcareV1alpha2::Message::Representation
3726
- command.response_class = Google::Apis::HealthcareV1alpha2::Message
3727
- command.params['parent'] = parent unless parent.nil?
3728
- command.query['fields'] = fields unless fields.nil?
3729
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3730
- execute_or_queue_command(command, &block)
3731
- end
3732
-
3733
- # Deletes an HL7v2 message.
3734
- # @param [String] name
3735
- # The resource name of the HL7v2 message to delete.
3736
- # @param [String] fields
3737
- # Selector specifying which fields to include in a partial response.
3738
- # @param [String] quota_user
3739
- # Available to use for quota purposes for server-side applications. Can be any
3740
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3741
- # @param [Google::Apis::RequestOptions] options
3742
- # Request-specific options
3743
- #
3744
- # @yield [result, err] Result & error if block supplied
3745
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Empty] parsed result object
3746
- # @yieldparam err [StandardError] error object if request failed
3747
- #
3748
- # @return [Google::Apis::HealthcareV1alpha2::Empty]
3749
- #
3750
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3751
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3752
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3753
- def delete_project_location_dataset_hl7_v2_store_message(name, fields: nil, quota_user: nil, options: nil, &block)
3754
- command = make_simple_command(:delete, 'v1alpha2/{+name}', options)
3755
- command.response_representation = Google::Apis::HealthcareV1alpha2::Empty::Representation
3756
- command.response_class = Google::Apis::HealthcareV1alpha2::Empty
3757
- command.params['name'] = name unless name.nil?
3758
- command.query['fields'] = fields unless fields.nil?
3759
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3760
- execute_or_queue_command(command, &block)
3761
- end
3762
-
3763
- # Gets an HL7v2 message.
3764
- # @param [String] name
3765
- # The resource name of the HL7v2 message to retrieve.
3766
- # @param [String] view
3767
- # Specifies which parts of the Message resource should be returned
3768
- # in the response.
3769
- # @param [String] fields
3770
- # Selector specifying which fields to include in a partial response.
3771
- # @param [String] quota_user
3772
- # Available to use for quota purposes for server-side applications. Can be any
3773
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3774
- # @param [Google::Apis::RequestOptions] options
3775
- # Request-specific options
3776
- #
3777
- # @yield [result, err] Result & error if block supplied
3778
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Message] parsed result object
3779
- # @yieldparam err [StandardError] error object if request failed
3780
- #
3781
- # @return [Google::Apis::HealthcareV1alpha2::Message]
3782
- #
3783
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3784
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3785
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3786
- def get_project_location_dataset_hl7_v2_store_message(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
3787
- command = make_simple_command(:get, 'v1alpha2/{+name}', options)
3788
- command.response_representation = Google::Apis::HealthcareV1alpha2::Message::Representation
3789
- command.response_class = Google::Apis::HealthcareV1alpha2::Message
3790
- command.params['name'] = name unless name.nil?
3791
- command.query['view'] = view unless view.nil?
3792
- command.query['fields'] = fields unless fields.nil?
3793
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3794
- execute_or_queue_command(command, &block)
3795
- end
3796
-
3797
- # Ingests a new HL7v2 message from the hospital and sends a notification to
3798
- # the Cloud Pub/Sub topic. Return is an HL7v2 ACK message if the message was
3799
- # successfully stored. Otherwise an error is returned. If an identical
3800
- # HL7v2 message is created twice only one resource is created on the server
3801
- # and no error is reported.
3802
- # @param [String] parent
3803
- # The name of the HL7v2 store this message belongs to.
3804
- # @param [Google::Apis::HealthcareV1alpha2::IngestMessageRequest] ingest_message_request_object
3805
- # @param [String] fields
3806
- # Selector specifying which fields to include in a partial response.
3807
- # @param [String] quota_user
3808
- # Available to use for quota purposes for server-side applications. Can be any
3809
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3810
- # @param [Google::Apis::RequestOptions] options
3811
- # Request-specific options
3812
- #
3813
- # @yield [result, err] Result & error if block supplied
3814
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::IngestMessageResponse] parsed result object
3815
- # @yieldparam err [StandardError] error object if request failed
3816
- #
3817
- # @return [Google::Apis::HealthcareV1alpha2::IngestMessageResponse]
3818
- #
3819
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3820
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3821
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3822
- def ingest_message(parent, ingest_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3823
- command = make_simple_command(:post, 'v1alpha2/{+parent}/messages:ingest', options)
3824
- command.request_representation = Google::Apis::HealthcareV1alpha2::IngestMessageRequest::Representation
3825
- command.request_object = ingest_message_request_object
3826
- command.response_representation = Google::Apis::HealthcareV1alpha2::IngestMessageResponse::Representation
3827
- command.response_class = Google::Apis::HealthcareV1alpha2::IngestMessageResponse
3828
- command.params['parent'] = parent unless parent.nil?
3829
- command.query['fields'] = fields unless fields.nil?
3830
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3831
- execute_or_queue_command(command, &block)
3832
- end
3833
-
3834
- # Lists all the messages in the given HL7v2 store with support for filtering.
3835
- # Note: HL7v2 messages are indexed asynchronously, so there might be a slight
3836
- # delay between the time a message is created and when it can be found
3837
- # through a filter.
3838
- # @param [String] parent
3839
- # Name of the HL7v2 store to retrieve messages from.
3840
- # @param [String] filter
3841
- # Restricts messages returned to those matching a filter. Syntax:
3842
- # https://cloud.google.com/appengine/docs/standard/python/search/query_strings
3843
- # Fields/functions available for filtering are:
3844
- # * `message_type`, from the MSH-9 segment; for example
3845
- # `NOT message_type = "ADT"`
3846
- # * `send_date` or `sendDate`, the YYYY-MM-DD date the message was sent in
3847
- # the dataset's time_zone, from the MSH-7 segment; for example
3848
- # `send_date < "2017-01-02"`
3849
- # * `send_time`, the timestamp when the message was sent, using the
3850
- # RFC3339 time format for comparisons, from the MSH-7 segment; for example
3851
- # `send_time < "2017-01-02T00:00:00-05:00"`
3852
- # * `send_facility`, the care center that the message came from, from the
3853
- # MSH-4 segment; for example `send_facility = "ABC"`
3854
- # * `HL7RegExp(expr)`, which does regular expression matching of `expr`
3855
- # against the message payload using re2 (http://code.google.com/p/re2/)
3856
- # syntax; for example `HL7RegExp("^.*\|.*\|EMERG")`
3857
- # * `PatientId(value, type)`, which matches if the message lists a patient
3858
- # having an ID of the given value and type in the PID-2, PID-3, or PID-4
3859
- # segments; for example `PatientId("123456", "MRN")`
3860
- # * `labels.x`, a string value of the label with key `x` as set using the
3861
- # Message.labels
3862
- # map, for example `labels."priority"="high"`. The operator `:*` can be used
3863
- # to assert the existence of a label, for example `labels."priority":*`.
3864
- # Limitations on conjunctions:
3865
- # * Negation on the patient ID function or the labels field is not
3866
- # supported, for example these queries are invalid:
3867
- # `NOT PatientId("123456", "MRN")`, `NOT labels."tag1":*`,
3868
- # `NOT labels."tag2"="val2"`.
3869
- # * Conjunction of multiple patient ID functions is not supported, for
3870
- # example this query is invalid:
3871
- # `PatientId("123456", "MRN") AND PatientId("456789", "MRN")`.
3872
- # * Conjunction of multiple labels fields is also not supported, for
3873
- # example this query is invalid: `labels."tag1":* AND labels."tag2"="val2"`.
3874
- # * Conjunction of one patient ID function, one labels field and conditions
3875
- # on other fields is supported, for example this query is valid:
3876
- # `PatientId("123456", "MRN") AND labels."tag1":* AND message_type = "ADT"`.
3877
- # The HasLabel(x) and Label(x) syntax from previous API versions are
3878
- # deprecated; replaced by the `labels.x` syntax.
3879
- # @param [String] order_by
3880
- # Orders messages returned by the specified order_by clause.
3881
- # Syntax: https://cloud.google.com/apis/design/design_patterns#sorting_order
3882
- # Fields available for ordering are:
3883
- # * `send_time`
3884
- # @param [Fixnum] page_size
3885
- # Limit on the number of messages to return in a single response.
3886
- # If zero the default page size of 100 is used.
3887
- # @param [String] page_token
3888
- # The next_page_token value returned from the previous List request, if any.
3889
- # @param [String] fields
3890
- # Selector specifying which fields to include in a partial response.
3891
- # @param [String] quota_user
3892
- # Available to use for quota purposes for server-side applications. Can be any
3893
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3894
- # @param [Google::Apis::RequestOptions] options
3895
- # Request-specific options
3896
- #
3897
- # @yield [result, err] Result & error if block supplied
3898
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::ListMessagesResponse] parsed result object
3899
- # @yieldparam err [StandardError] error object if request failed
3900
- #
3901
- # @return [Google::Apis::HealthcareV1alpha2::ListMessagesResponse]
3902
- #
3903
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3904
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3905
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3906
- def list_project_location_dataset_hl7_v2_store_messages(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3907
- command = make_simple_command(:get, 'v1alpha2/{+parent}/messages', options)
3908
- command.response_representation = Google::Apis::HealthcareV1alpha2::ListMessagesResponse::Representation
3909
- command.response_class = Google::Apis::HealthcareV1alpha2::ListMessagesResponse
3910
- command.params['parent'] = parent unless parent.nil?
3911
- command.query['filter'] = filter unless filter.nil?
3912
- command.query['orderBy'] = order_by unless order_by.nil?
3913
- command.query['pageSize'] = page_size unless page_size.nil?
3914
- command.query['pageToken'] = page_token unless page_token.nil?
3915
- command.query['fields'] = fields unless fields.nil?
3916
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3917
- execute_or_queue_command(command, &block)
3918
- end
3919
-
3920
- # Update the message.
3921
- # @param [String] name
3922
- # Resource name of the Message, of the form
3923
- # `projects/`project_id`/datasets/`dataset_id`/hl7V2Stores/`hl7_v2_store_id`/
3924
- # messages/`message_id``.
3925
- # Assigned by the server.
3926
- # @param [Google::Apis::HealthcareV1alpha2::Message] message_object
3927
- # @param [String] update_mask
3928
- # The update mask applies to the resource. For the `FieldMask` definition,
3929
- # see
3930
- # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
3931
- # fieldmask
3932
- # Only the `labels` field is allowed to be updated.
3933
- # The labels in the request will be merged with the existing set of labels.
3934
- # Existing labels with the same keys will be updated.
3935
- # @param [String] fields
3936
- # Selector specifying which fields to include in a partial response.
3937
- # @param [String] quota_user
3938
- # Available to use for quota purposes for server-side applications. Can be any
3939
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3940
- # @param [Google::Apis::RequestOptions] options
3941
- # Request-specific options
3942
- #
3943
- # @yield [result, err] Result & error if block supplied
3944
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Message] parsed result object
3945
- # @yieldparam err [StandardError] error object if request failed
3946
- #
3947
- # @return [Google::Apis::HealthcareV1alpha2::Message]
3948
- #
3949
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3950
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3951
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3952
- def patch_project_location_dataset_hl7_v2_store_message(name, message_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3953
- command = make_simple_command(:patch, 'v1alpha2/{+name}', options)
3954
- command.request_representation = Google::Apis::HealthcareV1alpha2::Message::Representation
3955
- command.request_object = message_object
3956
- command.response_representation = Google::Apis::HealthcareV1alpha2::Message::Representation
3957
- command.response_class = Google::Apis::HealthcareV1alpha2::Message
3958
- command.params['name'] = name unless name.nil?
3959
- command.query['updateMask'] = update_mask unless update_mask.nil?
3960
- command.query['fields'] = fields unless fields.nil?
3961
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3962
- execute_or_queue_command(command, &block)
3963
- end
3964
-
3965
- # Gets the latest state of a long-running operation. Clients can use this
3966
- # method to poll the operation result at intervals as recommended by the API
3967
- # service.
3968
- # @param [String] name
3969
- # The name of the operation resource.
3970
- # @param [String] fields
3971
- # Selector specifying which fields to include in a partial response.
3972
- # @param [String] quota_user
3973
- # Available to use for quota purposes for server-side applications. Can be any
3974
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3975
- # @param [Google::Apis::RequestOptions] options
3976
- # Request-specific options
3977
- #
3978
- # @yield [result, err] Result & error if block supplied
3979
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::Operation] parsed result object
3980
- # @yieldparam err [StandardError] error object if request failed
3981
- #
3982
- # @return [Google::Apis::HealthcareV1alpha2::Operation]
3983
- #
3984
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3985
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3986
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3987
- def get_project_location_dataset_operation(name, fields: nil, quota_user: nil, options: nil, &block)
3988
- command = make_simple_command(:get, 'v1alpha2/{+name}', options)
3989
- command.response_representation = Google::Apis::HealthcareV1alpha2::Operation::Representation
3990
- command.response_class = Google::Apis::HealthcareV1alpha2::Operation
3991
- command.params['name'] = name unless name.nil?
3992
- command.query['fields'] = fields unless fields.nil?
3993
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3994
- execute_or_queue_command(command, &block)
3995
- end
3996
-
3997
- # Lists operations that match the specified filter in the request. If the
3998
- # server doesn't support this method, it returns `UNIMPLEMENTED`.
3999
- # NOTE: the `name` binding allows API services to override the binding
4000
- # to use different resource name schemes, such as `users/*/operations`. To
4001
- # override the binding, API services can add a binding such as
4002
- # `"/v1/`name=users/*`/operations"` to their service configuration.
4003
- # For backwards compatibility, the default name includes the operations
4004
- # collection id, however overriding users must ensure the name binding
4005
- # is the parent resource, without the operations collection id.
4006
- # @param [String] name
4007
- # The name of the operation's parent resource.
4008
- # @param [String] filter
4009
- # The standard list filter.
4010
- # @param [Fixnum] page_size
4011
- # The standard list page size.
4012
- # @param [String] page_token
4013
- # The standard list page token.
4014
- # @param [String] fields
4015
- # Selector specifying which fields to include in a partial response.
4016
- # @param [String] quota_user
4017
- # Available to use for quota purposes for server-side applications. Can be any
4018
- # arbitrary string assigned to a user, but should not exceed 40 characters.
4019
- # @param [Google::Apis::RequestOptions] options
4020
- # Request-specific options
4021
- #
4022
- # @yield [result, err] Result & error if block supplied
4023
- # @yieldparam result [Google::Apis::HealthcareV1alpha2::ListOperationsResponse] parsed result object
4024
- # @yieldparam err [StandardError] error object if request failed
4025
- #
4026
- # @return [Google::Apis::HealthcareV1alpha2::ListOperationsResponse]
4027
- #
4028
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4029
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4030
- # @raise [Google::Apis::AuthorizationError] Authorization is required
4031
- def list_project_location_dataset_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
4032
- command = make_simple_command(:get, 'v1alpha2/{+name}/operations', options)
4033
- command.response_representation = Google::Apis::HealthcareV1alpha2::ListOperationsResponse::Representation
4034
- command.response_class = Google::Apis::HealthcareV1alpha2::ListOperationsResponse
4035
- command.params['name'] = name unless name.nil?
4036
- command.query['filter'] = filter unless filter.nil?
4037
- command.query['pageSize'] = page_size unless page_size.nil?
4038
- command.query['pageToken'] = page_token unless page_token.nil?
4039
- command.query['fields'] = fields unless fields.nil?
4040
- command.query['quotaUser'] = quota_user unless quota_user.nil?
4041
- execute_or_queue_command(command, &block)
4042
- end
4043
-
4044
- protected
4045
-
4046
- def apply_command_defaults(command)
4047
- command.query['key'] = key unless key.nil?
4048
- command.query['quotaUser'] = quota_user unless quota_user.nil?
4049
- end
4050
- end
4051
- end
4052
- end
4053
- end