google-api-client 0.28.7 → 0.29.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 (358) hide show
  1. checksums.yaml +4 -4
  2. data/.kokoro/build.bat +9 -6
  3. data/.kokoro/build.sh +2 -32
  4. data/.kokoro/continuous/common.cfg +6 -1
  5. data/.kokoro/continuous/windows.cfg +17 -1
  6. data/.kokoro/osx.sh +2 -33
  7. data/.kokoro/presubmit/common.cfg +6 -1
  8. data/.kokoro/presubmit/windows.cfg +17 -1
  9. data/.kokoro/trampoline.bat +10 -0
  10. data/.kokoro/trampoline.sh +3 -23
  11. data/CHANGELOG.md +138 -0
  12. data/Rakefile +31 -0
  13. data/generated/google/apis/accessapproval_v1beta1.rb +34 -0
  14. data/generated/google/apis/accessapproval_v1beta1/classes.rb +306 -0
  15. data/generated/google/apis/accessapproval_v1beta1/representations.rb +159 -0
  16. data/generated/google/apis/accessapproval_v1beta1/service.rb +728 -0
  17. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  18. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +96 -131
  19. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +2 -42
  20. data/generated/google/apis/admin_reports_v1.rb +1 -1
  21. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  22. data/generated/google/apis/alertcenter_v1beta1/classes.rb +98 -0
  23. data/generated/google/apis/alertcenter_v1beta1/representations.rb +25 -0
  24. data/generated/google/apis/alertcenter_v1beta1/service.rb +2 -1
  25. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  26. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +40 -0
  27. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +6 -0
  28. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  29. data/generated/google/apis/androidenterprise_v1/classes.rb +0 -26
  30. data/generated/google/apis/androidenterprise_v1/representations.rb +0 -14
  31. data/generated/google/apis/androidenterprise_v1/service.rb +0 -36
  32. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  33. data/generated/google/apis/androidmanagement_v1/classes.rb +188 -0
  34. data/generated/google/apis/androidmanagement_v1/representations.rb +82 -0
  35. data/generated/google/apis/androidmanagement_v1/service.rb +170 -0
  36. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  37. data/generated/google/apis/androidpublisher_v2/service.rb +6 -12
  38. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  39. data/generated/google/apis/androidpublisher_v3/service.rb +6 -12
  40. data/generated/google/apis/appengine_v1.rb +1 -1
  41. data/generated/google/apis/appengine_v1/service.rb +7 -1
  42. data/generated/google/apis/appengine_v1beta.rb +1 -1
  43. data/generated/google/apis/appengine_v1beta/classes.rb +2 -1
  44. data/generated/google/apis/appengine_v1beta/service.rb +7 -1
  45. data/generated/google/apis/appsactivity_v1.rb +1 -1
  46. data/generated/google/apis/appsactivity_v1/service.rb +4 -3
  47. data/generated/google/apis/bigquery_v2.rb +1 -1
  48. data/generated/google/apis/bigquery_v2/classes.rb +28 -4
  49. data/generated/google/apis/bigquery_v2/representations.rb +13 -0
  50. data/generated/google/apis/bigtableadmin_v1.rb +2 -2
  51. data/generated/google/apis/bigtableadmin_v1/service.rb +1 -1
  52. data/generated/google/apis/bigtableadmin_v2.rb +2 -2
  53. data/generated/google/apis/bigtableadmin_v2/classes.rb +10 -10
  54. data/generated/google/apis/bigtableadmin_v2/service.rb +111 -2
  55. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  56. data/generated/google/apis/calendar_v3.rb +1 -1
  57. data/generated/google/apis/calendar_v3/service.rb +16 -16
  58. data/generated/google/apis/classroom_v1.rb +7 -1
  59. data/generated/google/apis/classroom_v1/classes.rb +77 -0
  60. data/generated/google/apis/classroom_v1/representations.rb +32 -0
  61. data/generated/google/apis/classroom_v1/service.rb +224 -0
  62. data/generated/google/apis/cloudasset_v1.rb +1 -1
  63. data/generated/google/apis/cloudasset_v1/classes.rb +15 -2
  64. data/generated/google/apis/cloudasset_v1/representations.rb +1 -0
  65. data/generated/google/apis/cloudasset_v1/service.rb +3 -2
  66. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  67. data/generated/google/apis/cloudasset_v1beta1/classes.rb +13 -0
  68. data/generated/google/apis/cloudasset_v1beta1/representations.rb +1 -0
  69. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  70. data/generated/google/apis/cloudbilling_v1/service.rb +2 -2
  71. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  72. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +1 -1
  73. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  74. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +19 -16
  75. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +6 -5
  76. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  77. data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -10
  78. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  79. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +7 -4
  80. data/generated/google/apis/cloudiot_v1.rb +1 -1
  81. data/generated/google/apis/cloudkms_v1.rb +1 -1
  82. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
  83. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  84. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +6 -5
  85. data/generated/google/apis/cloudresourcemanager_v1/service.rb +30 -21
  86. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  87. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +37 -26
  88. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  89. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  90. data/generated/google/apis/cloudscheduler_v1.rb +34 -0
  91. data/generated/google/apis/cloudscheduler_v1/classes.rb +994 -0
  92. data/generated/google/apis/cloudscheduler_v1/representations.rb +297 -0
  93. data/generated/google/apis/cloudscheduler_v1/service.rb +448 -0
  94. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  95. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -2
  96. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  97. data/generated/google/apis/cloudsearch_v1/classes.rb +25 -11
  98. data/generated/google/apis/cloudsearch_v1/service.rb +36 -32
  99. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  100. data/generated/google/apis/cloudtasks_v2/service.rb +13 -13
  101. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  102. data/generated/google/apis/cloudtasks_v2beta2/service.rb +13 -13
  103. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  104. data/generated/google/apis/cloudtasks_v2beta3/service.rb +13 -13
  105. data/generated/google/apis/commentanalyzer_v1alpha1.rb +39 -0
  106. data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +484 -0
  107. data/generated/google/apis/commentanalyzer_v1alpha1/representations.rb +210 -0
  108. data/generated/google/apis/commentanalyzer_v1alpha1/service.rb +124 -0
  109. data/generated/google/apis/compute_alpha.rb +1 -1
  110. data/generated/google/apis/compute_alpha/classes.rb +328 -25
  111. data/generated/google/apis/compute_alpha/representations.rb +134 -0
  112. data/generated/google/apis/compute_alpha/service.rb +465 -0
  113. data/generated/google/apis/compute_beta.rb +1 -1
  114. data/generated/google/apis/compute_beta/classes.rb +86 -20
  115. data/generated/google/apis/compute_beta/representations.rb +7 -0
  116. data/generated/google/apis/compute_v1.rb +1 -1
  117. data/generated/google/apis/compute_v1/classes.rb +994 -103
  118. data/generated/google/apis/compute_v1/representations.rb +346 -0
  119. data/generated/google/apis/compute_v1/service.rb +533 -0
  120. data/generated/google/apis/container_v1.rb +1 -1
  121. data/generated/google/apis/container_v1/classes.rb +167 -21
  122. data/generated/google/apis/container_v1/representations.rb +66 -0
  123. data/generated/google/apis/container_v1/service.rb +85 -36
  124. data/generated/google/apis/container_v1beta1.rb +1 -1
  125. data/generated/google/apis/container_v1beta1/classes.rb +86 -21
  126. data/generated/google/apis/container_v1beta1/representations.rb +32 -0
  127. data/generated/google/apis/container_v1beta1/service.rb +38 -38
  128. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  129. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  130. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +95 -6
  131. data/generated/google/apis/containeranalysis_v1beta1/representations.rb +25 -0
  132. data/generated/google/apis/content_v2.rb +1 -1
  133. data/generated/google/apis/content_v2/classes.rb +5 -5
  134. data/generated/google/apis/content_v2/service.rb +6 -6
  135. data/generated/google/apis/content_v2_1.rb +1 -1
  136. data/generated/google/apis/content_v2_1/classes.rb +18 -4
  137. data/generated/google/apis/content_v2_1/representations.rb +2 -0
  138. data/generated/google/apis/content_v2_1/service.rb +6 -6
  139. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  140. data/generated/google/apis/dataflow_v1b3/classes.rb +56 -1
  141. data/generated/google/apis/dataflow_v1b3/representations.rb +39 -0
  142. data/generated/google/apis/dataflow_v1b3/service.rb +251 -0
  143. data/generated/google/apis/datafusion_v1beta1.rb +43 -0
  144. data/generated/google/apis/datafusion_v1beta1/classes.rb +1304 -0
  145. data/generated/google/apis/datafusion_v1beta1/representations.rb +469 -0
  146. data/generated/google/apis/datafusion_v1beta1/service.rb +657 -0
  147. data/generated/google/apis/dataproc_v1.rb +1 -1
  148. data/generated/google/apis/dataproc_v1/classes.rb +5 -5
  149. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  150. data/generated/google/apis/dataproc_v1beta2/classes.rb +37 -24
  151. data/generated/google/apis/datastore_v1.rb +1 -1
  152. data/generated/google/apis/datastore_v1/classes.rb +20 -16
  153. data/generated/google/apis/datastore_v1beta1.rb +1 -1
  154. data/generated/google/apis/datastore_v1beta1/classes.rb +10 -10
  155. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  156. data/generated/google/apis/datastore_v1beta3/classes.rb +10 -6
  157. data/generated/google/apis/dialogflow_v2.rb +1 -1
  158. data/generated/google/apis/dialogflow_v2/classes.rb +236 -0
  159. data/generated/google/apis/dialogflow_v2/representations.rb +99 -0
  160. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  161. data/generated/google/apis/dialogflow_v2beta1/classes.rb +64 -2
  162. data/generated/google/apis/dialogflow_v2beta1/representations.rb +31 -0
  163. data/generated/google/apis/dlp_v2.rb +1 -1
  164. data/generated/google/apis/dlp_v2/classes.rb +19 -2
  165. data/generated/google/apis/dns_v1.rb +1 -1
  166. data/generated/google/apis/dns_v1/classes.rb +202 -93
  167. data/generated/google/apis/dns_v1/service.rb +110 -15
  168. data/generated/google/apis/dns_v1beta2.rb +1 -1
  169. data/generated/google/apis/dns_v1beta2/classes.rb +262 -122
  170. data/generated/google/apis/dns_v1beta2/service.rb +141 -21
  171. data/generated/google/apis/dns_v2beta1.rb +1 -1
  172. data/generated/google/apis/dns_v2beta1/classes.rb +202 -93
  173. data/generated/google/apis/dns_v2beta1/service.rb +110 -15
  174. data/generated/google/apis/docs_v1.rb +1 -1
  175. data/generated/google/apis/docs_v1/classes.rb +10 -0
  176. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  177. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +6 -4
  178. data/generated/google/apis/drive_v2.rb +1 -1
  179. data/generated/google/apis/drive_v2/classes.rb +601 -69
  180. data/generated/google/apis/drive_v2/representations.rb +152 -0
  181. data/generated/google/apis/drive_v2/service.rb +452 -96
  182. data/generated/google/apis/drive_v3.rb +1 -1
  183. data/generated/google/apis/drive_v3/classes.rb +591 -64
  184. data/generated/google/apis/drive_v3/representations.rb +151 -0
  185. data/generated/google/apis/drive_v3/service.rb +407 -77
  186. data/generated/google/apis/driveactivity_v2.rb +1 -1
  187. data/generated/google/apis/driveactivity_v2/classes.rb +149 -17
  188. data/generated/google/apis/driveactivity_v2/representations.rb +69 -0
  189. data/generated/google/apis/file_v1.rb +1 -1
  190. data/generated/google/apis/file_v1/classes.rb +399 -8
  191. data/generated/google/apis/file_v1/representations.rb +121 -0
  192. data/generated/google/apis/file_v1beta1.rb +1 -1
  193. data/generated/google/apis/file_v1beta1/classes.rb +399 -8
  194. data/generated/google/apis/file_v1beta1/representations.rb +121 -0
  195. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  196. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +28 -4
  197. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +4 -0
  198. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  199. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +13 -13
  200. data/generated/google/apis/firebaserules_v1.rb +1 -1
  201. data/generated/google/apis/firebaserules_v1/classes.rb +10 -2
  202. data/generated/google/apis/firestore_v1.rb +1 -1
  203. data/generated/google/apis/firestore_v1/classes.rb +15 -15
  204. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  205. data/generated/google/apis/firestore_v1beta1/classes.rb +15 -15
  206. data/generated/google/apis/firestore_v1beta2.rb +1 -1
  207. data/generated/google/apis/firestore_v1beta2/classes.rb +10 -10
  208. data/generated/google/apis/fitness_v1.rb +1 -1
  209. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  210. data/generated/google/apis/games_v1.rb +2 -2
  211. data/generated/google/apis/gmail_v1.rb +1 -1
  212. data/generated/google/apis/gmail_v1/classes.rb +29 -0
  213. data/generated/google/apis/gmail_v1/representations.rb +13 -0
  214. data/generated/google/apis/gmail_v1/service.rb +76 -0
  215. data/generated/google/apis/healthcare_v1beta1.rb +34 -0
  216. data/generated/google/apis/healthcare_v1beta1/classes.rb +2462 -0
  217. data/generated/google/apis/healthcare_v1beta1/representations.rb +1042 -0
  218. data/generated/google/apis/healthcare_v1beta1/service.rb +3403 -0
  219. data/generated/google/apis/iap_v1.rb +1 -1
  220. data/generated/google/apis/iap_v1beta1.rb +1 -1
  221. data/generated/google/apis/jobs_v2.rb +1 -1
  222. data/generated/google/apis/jobs_v2/classes.rb +9 -8
  223. data/generated/google/apis/jobs_v3.rb +1 -1
  224. data/generated/google/apis/jobs_v3/classes.rb +13 -7
  225. data/generated/google/apis/jobs_v3/service.rb +1 -2
  226. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  227. data/generated/google/apis/jobs_v3p1beta1/classes.rb +13 -7
  228. data/generated/google/apis/jobs_v3p1beta1/service.rb +1 -2
  229. data/generated/google/apis/language_v1.rb +1 -1
  230. data/generated/google/apis/language_v1/classes.rb +3 -2
  231. data/generated/google/apis/language_v1beta2.rb +1 -1
  232. data/generated/google/apis/language_v1beta2/classes.rb +3 -2
  233. data/generated/google/apis/ml_v1.rb +1 -1
  234. data/generated/google/apis/ml_v1/classes.rb +64 -16
  235. data/generated/google/apis/ml_v1/representations.rb +2 -0
  236. data/generated/google/apis/ml_v1/service.rb +5 -5
  237. data/generated/google/apis/monitoring_v3.rb +1 -1
  238. data/generated/google/apis/monitoring_v3/classes.rb +0 -10
  239. data/generated/google/apis/monitoring_v3/representations.rb +0 -1
  240. data/generated/google/apis/oauth2_v1.rb +1 -1
  241. data/generated/google/apis/oauth2_v2.rb +1 -1
  242. data/generated/google/apis/oslogin_v1.rb +3 -2
  243. data/generated/google/apis/oslogin_v1/service.rb +2 -1
  244. data/generated/google/apis/oslogin_v1alpha.rb +3 -2
  245. data/generated/google/apis/oslogin_v1alpha/service.rb +2 -1
  246. data/generated/google/apis/oslogin_v1beta.rb +3 -2
  247. data/generated/google/apis/oslogin_v1beta/service.rb +2 -1
  248. data/generated/google/apis/people_v1.rb +1 -4
  249. data/generated/google/apis/people_v1/classes.rb +19 -11
  250. data/generated/google/apis/people_v1/representations.rb +1 -0
  251. data/generated/google/apis/people_v1/service.rb +1 -0
  252. data/generated/google/apis/plus_domains_v1.rb +2 -5
  253. data/generated/google/apis/plus_domains_v1/service.rb +8 -90
  254. data/generated/google/apis/plus_v1.rb +2 -2
  255. data/generated/google/apis/plus_v1/service.rb +7 -7
  256. data/generated/google/apis/poly_v1.rb +1 -1
  257. data/generated/google/apis/poly_v1/classes.rb +3 -2
  258. data/generated/google/apis/poly_v1/service.rb +11 -8
  259. data/generated/google/apis/pubsub_v1.rb +1 -1
  260. data/generated/google/apis/pubsub_v1/classes.rb +2 -1
  261. data/generated/google/apis/pubsub_v1/service.rb +8 -8
  262. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  263. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  264. data/generated/google/apis/remotebuildexecution_v1/classes.rb +7 -6
  265. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  266. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +5 -4
  267. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  268. data/generated/google/apis/remotebuildexecution_v2/classes.rb +5 -4
  269. data/generated/google/apis/run_v1alpha1.rb +1 -1
  270. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  271. data/generated/google/apis/securitycenter_v1.rb +35 -0
  272. data/generated/google/apis/securitycenter_v1/classes.rb +1627 -0
  273. data/generated/google/apis/securitycenter_v1/representations.rb +569 -0
  274. data/generated/google/apis/securitycenter_v1/service.rb +1110 -0
  275. data/generated/google/apis/securitycenter_v1beta1.rb +35 -0
  276. data/generated/google/apis/securitycenter_v1beta1/classes.rb +1514 -0
  277. data/generated/google/apis/securitycenter_v1beta1/representations.rb +548 -0
  278. data/generated/google/apis/securitycenter_v1beta1/service.rb +1035 -0
  279. data/generated/google/apis/servicebroker_v1.rb +1 -1
  280. data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
  281. data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
  282. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  283. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +324 -13
  284. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +174 -0
  285. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +5 -0
  286. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  287. data/generated/google/apis/servicecontrol_v1/classes.rb +2 -1
  288. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  289. data/generated/google/apis/servicemanagement_v1/classes.rb +101 -20
  290. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  291. data/generated/google/apis/servicenetworking_v1/classes.rb +16 -13
  292. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  293. data/generated/google/apis/servicenetworking_v1beta/classes.rb +16 -13
  294. data/generated/google/apis/serviceusage_v1.rb +1 -1
  295. data/generated/google/apis/serviceusage_v1/classes.rb +110 -13
  296. data/generated/google/apis/serviceusage_v1/representations.rb +43 -0
  297. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  298. data/generated/google/apis/serviceusage_v1beta1/classes.rb +110 -13
  299. data/generated/google/apis/serviceusage_v1beta1/representations.rb +43 -0
  300. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  301. data/generated/google/apis/sourcerepo_v1/classes.rb +182 -0
  302. data/generated/google/apis/sourcerepo_v1/representations.rb +45 -0
  303. data/generated/google/apis/sourcerepo_v1/service.rb +35 -0
  304. data/generated/google/apis/spanner_v1.rb +1 -1
  305. data/generated/google/apis/spanner_v1/classes.rb +20 -19
  306. data/generated/google/apis/spanner_v1/service.rb +1 -1
  307. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  308. data/generated/google/apis/sqladmin_v1beta4/classes.rb +9 -2
  309. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  310. data/generated/google/apis/storage_v1.rb +1 -1
  311. data/generated/google/apis/storage_v1/classes.rb +144 -0
  312. data/generated/google/apis/storage_v1/representations.rb +56 -0
  313. data/generated/google/apis/storage_v1/service.rb +441 -46
  314. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  315. data/generated/google/apis/storagetransfer_v1/classes.rb +3 -3
  316. data/generated/google/apis/testing_v1.rb +1 -1
  317. data/generated/google/apis/testing_v1/classes.rb +6 -0
  318. data/generated/google/apis/testing_v1/representations.rb +1 -0
  319. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  320. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  321. data/generated/google/apis/toolresults_v1beta3/classes.rb +240 -0
  322. data/generated/google/apis/toolresults_v1beta3/representations.rb +43 -0
  323. data/generated/google/apis/toolresults_v1beta3/service.rb +116 -0
  324. data/generated/google/apis/tpu_v1.rb +1 -1
  325. data/generated/google/apis/tpu_v1/classes.rb +10 -4
  326. data/generated/google/apis/tpu_v1/representations.rb +1 -0
  327. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  328. data/generated/google/apis/tpu_v1alpha1/classes.rb +10 -4
  329. data/generated/google/apis/tpu_v1alpha1/representations.rb +1 -0
  330. data/generated/google/apis/vault_v1.rb +1 -1
  331. data/generated/google/apis/vault_v1/classes.rb +37 -18
  332. data/generated/google/apis/vault_v1/representations.rb +3 -0
  333. data/generated/google/apis/vision_v1.rb +1 -1
  334. data/generated/google/apis/vision_v1/classes.rb +84 -47
  335. data/generated/google/apis/vision_v1/service.rb +68 -4
  336. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  337. data/generated/google/apis/vision_v1p1beta1/classes.rb +84 -47
  338. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  339. data/generated/google/apis/vision_v1p2beta1/classes.rb +84 -47
  340. data/generated/google/apis/webmasters_v3.rb +1 -1
  341. data/generated/google/apis/webmasters_v3/classes.rb +0 -166
  342. data/generated/google/apis/webmasters_v3/representations.rb +0 -93
  343. data/generated/google/apis/webmasters_v3/service.rb +0 -171
  344. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  345. data/generated/google/apis/youtube_partner_v1/classes.rb +15 -34
  346. data/generated/google/apis/youtube_partner_v1/representations.rb +4 -17
  347. data/generated/google/apis/youtube_v3.rb +1 -1
  348. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  349. data/generated/google/apis/youtubereporting_v1/classes.rb +2 -2
  350. data/google-api-client.gemspec +1 -1
  351. data/lib/google/apis/version.rb +1 -1
  352. metadata +31 -9
  353. data/.kokoro/common.cfg +0 -22
  354. data/.kokoro/windows.sh +0 -32
  355. data/generated/google/apis/logging_v2beta1.rb +0 -46
  356. data/generated/google/apis/logging_v2beta1/classes.rb +0 -1764
  357. data/generated/google/apis/logging_v2beta1/representations.rb +0 -537
  358. data/generated/google/apis/logging_v2beta1/service.rb +0 -570
@@ -0,0 +1,3403 @@
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 HealthcareV1beta1
23
+ # Cloud Healthcare API
24
+ #
25
+ # Manage, store, and access healthcare data in Google Cloud Platform.
26
+ #
27
+ # @example
28
+ # require 'google/apis/healthcare_v1beta1'
29
+ #
30
+ # Healthcare = Google::Apis::HealthcareV1beta1 # 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::HealthcareV1beta1::Location] parsed result object
63
+ # @yieldparam err [StandardError] error object if request failed
64
+ #
65
+ # @return [Google::Apis::HealthcareV1beta1::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, 'v1beta1/{+name}', options)
72
+ command.response_representation = Google::Apis::HealthcareV1beta1::Location::Representation
73
+ command.response_class = Google::Apis::HealthcareV1beta1::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::HealthcareV1beta1::ListLocationsResponse] parsed result object
99
+ # @yieldparam err [StandardError] error object if request failed
100
+ #
101
+ # @return [Google::Apis::HealthcareV1beta1::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, 'v1beta1/{+name}/locations', options)
108
+ command.response_representation = Google::Apis::HealthcareV1beta1::ListLocationsResponse::Representation
109
+ command.response_class = Google::Apis::HealthcareV1beta1::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
+ # @param [String] parent
125
+ # The name of the project in which the dataset should be created (e.g.,
126
+ # `projects/`project_id`/locations/`location_id``).
127
+ # @param [Google::Apis::HealthcareV1beta1::Dataset] dataset_object
128
+ # @param [String] dataset_id
129
+ # The ID of the dataset that is being created.
130
+ # The string must match the following regex: `[\p`L`\p`N`_\-\.]`1,256``.
131
+ # @param [String] fields
132
+ # Selector specifying which fields to include in a partial response.
133
+ # @param [String] quota_user
134
+ # Available to use for quota purposes for server-side applications. Can be any
135
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
136
+ # @param [Google::Apis::RequestOptions] options
137
+ # Request-specific options
138
+ #
139
+ # @yield [result, err] Result & error if block supplied
140
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Operation] parsed result object
141
+ # @yieldparam err [StandardError] error object if request failed
142
+ #
143
+ # @return [Google::Apis::HealthcareV1beta1::Operation]
144
+ #
145
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
146
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
147
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
148
+ def create_project_location_dataset(parent, dataset_object = nil, dataset_id: nil, fields: nil, quota_user: nil, options: nil, &block)
149
+ command = make_simple_command(:post, 'v1beta1/{+parent}/datasets', options)
150
+ command.request_representation = Google::Apis::HealthcareV1beta1::Dataset::Representation
151
+ command.request_object = dataset_object
152
+ command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation
153
+ command.response_class = Google::Apis::HealthcareV1beta1::Operation
154
+ command.params['parent'] = parent unless parent.nil?
155
+ command.query['datasetId'] = dataset_id unless dataset_id.nil?
156
+ command.query['fields'] = fields unless fields.nil?
157
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
158
+ execute_or_queue_command(command, &block)
159
+ end
160
+
161
+ # Creates a new dataset containing de-identified data from the source
162
+ # dataset. The metadata field type
163
+ # is OperationMetadata.
164
+ # If the request is successful, the
165
+ # response field type is
166
+ # DeidentifySummary.
167
+ # If errors occur,
168
+ # details field type is
169
+ # DeidentifyErrorDetails.
170
+ # @param [String] source_dataset
171
+ # Source dataset resource name. (e.g.,
172
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id``).
173
+ # @param [Google::Apis::HealthcareV1beta1::DeidentifyDatasetRequest] deidentify_dataset_request_object
174
+ # @param [String] fields
175
+ # Selector specifying which fields to include in a partial response.
176
+ # @param [String] quota_user
177
+ # Available to use for quota purposes for server-side applications. Can be any
178
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
179
+ # @param [Google::Apis::RequestOptions] options
180
+ # Request-specific options
181
+ #
182
+ # @yield [result, err] Result & error if block supplied
183
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Operation] parsed result object
184
+ # @yieldparam err [StandardError] error object if request failed
185
+ #
186
+ # @return [Google::Apis::HealthcareV1beta1::Operation]
187
+ #
188
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
189
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
190
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
191
+ def deidentify_dataset(source_dataset, deidentify_dataset_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
192
+ command = make_simple_command(:post, 'v1beta1/{+sourceDataset}:deidentify', options)
193
+ command.request_representation = Google::Apis::HealthcareV1beta1::DeidentifyDatasetRequest::Representation
194
+ command.request_object = deidentify_dataset_request_object
195
+ command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation
196
+ command.response_class = Google::Apis::HealthcareV1beta1::Operation
197
+ command.params['sourceDataset'] = source_dataset unless source_dataset.nil?
198
+ command.query['fields'] = fields unless fields.nil?
199
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
200
+ execute_or_queue_command(command, &block)
201
+ end
202
+
203
+ # Deletes the specified health dataset and all data contained in the dataset.
204
+ # Deleting a dataset does not affect the sources from which the dataset was
205
+ # imported (if any).
206
+ # @param [String] name
207
+ # The name of the dataset to delete (e.g.,
208
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id``).
209
+ # @param [String] fields
210
+ # Selector specifying which fields to include in a partial response.
211
+ # @param [String] quota_user
212
+ # Available to use for quota purposes for server-side applications. Can be any
213
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
214
+ # @param [Google::Apis::RequestOptions] options
215
+ # Request-specific options
216
+ #
217
+ # @yield [result, err] Result & error if block supplied
218
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object
219
+ # @yieldparam err [StandardError] error object if request failed
220
+ #
221
+ # @return [Google::Apis::HealthcareV1beta1::Empty]
222
+ #
223
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
224
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
225
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
226
+ def delete_project_location_dataset(name, fields: nil, quota_user: nil, options: nil, &block)
227
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
228
+ command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
229
+ command.response_class = Google::Apis::HealthcareV1beta1::Empty
230
+ command.params['name'] = name unless name.nil?
231
+ command.query['fields'] = fields unless fields.nil?
232
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
233
+ execute_or_queue_command(command, &block)
234
+ end
235
+
236
+ # Gets any metadata associated with a dataset.
237
+ # @param [String] name
238
+ # The name of the dataset to read (e.g.,
239
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id``).
240
+ # @param [String] fields
241
+ # Selector specifying which fields to include in a partial response.
242
+ # @param [String] quota_user
243
+ # Available to use for quota purposes for server-side applications. Can be any
244
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
245
+ # @param [Google::Apis::RequestOptions] options
246
+ # Request-specific options
247
+ #
248
+ # @yield [result, err] Result & error if block supplied
249
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Dataset] parsed result object
250
+ # @yieldparam err [StandardError] error object if request failed
251
+ #
252
+ # @return [Google::Apis::HealthcareV1beta1::Dataset]
253
+ #
254
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
255
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
256
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
257
+ def get_project_location_dataset(name, fields: nil, quota_user: nil, options: nil, &block)
258
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
259
+ command.response_representation = Google::Apis::HealthcareV1beta1::Dataset::Representation
260
+ command.response_class = Google::Apis::HealthcareV1beta1::Dataset
261
+ command.params['name'] = name unless name.nil?
262
+ command.query['fields'] = fields unless fields.nil?
263
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
264
+ execute_or_queue_command(command, &block)
265
+ end
266
+
267
+ # Gets the access control policy for a resource.
268
+ # Returns an empty policy if the resource exists and does not have a policy
269
+ # set.
270
+ # @param [String] resource
271
+ # REQUIRED: The resource for which the policy is being requested.
272
+ # See the operation documentation for the appropriate value for this field.
273
+ # @param [String] fields
274
+ # Selector specifying which fields to include in a partial response.
275
+ # @param [String] quota_user
276
+ # Available to use for quota purposes for server-side applications. Can be any
277
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
278
+ # @param [Google::Apis::RequestOptions] options
279
+ # Request-specific options
280
+ #
281
+ # @yield [result, err] Result & error if block supplied
282
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Policy] parsed result object
283
+ # @yieldparam err [StandardError] error object if request failed
284
+ #
285
+ # @return [Google::Apis::HealthcareV1beta1::Policy]
286
+ #
287
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
288
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
289
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
290
+ def get_project_location_dataset_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
291
+ command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
292
+ command.response_representation = Google::Apis::HealthcareV1beta1::Policy::Representation
293
+ command.response_class = Google::Apis::HealthcareV1beta1::Policy
294
+ command.params['resource'] = resource unless resource.nil?
295
+ command.query['fields'] = fields unless fields.nil?
296
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
297
+ execute_or_queue_command(command, &block)
298
+ end
299
+
300
+ # Lists the health datasets in the current project.
301
+ # @param [String] parent
302
+ # The name of the project whose datasets should be listed (e.g.,
303
+ # `projects/`project_id`/locations/`location_id``).
304
+ # @param [Fixnum] page_size
305
+ # The maximum number of items to return. Capped to 100 if not specified.
306
+ # May not be larger than 1000.
307
+ # @param [String] page_token
308
+ # The next_page_token value returned from a previous List request, if any.
309
+ # @param [String] fields
310
+ # Selector specifying which fields to include in a partial response.
311
+ # @param [String] quota_user
312
+ # Available to use for quota purposes for server-side applications. Can be any
313
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
314
+ # @param [Google::Apis::RequestOptions] options
315
+ # Request-specific options
316
+ #
317
+ # @yield [result, err] Result & error if block supplied
318
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ListDatasetsResponse] parsed result object
319
+ # @yieldparam err [StandardError] error object if request failed
320
+ #
321
+ # @return [Google::Apis::HealthcareV1beta1::ListDatasetsResponse]
322
+ #
323
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
324
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
325
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
326
+ def list_project_location_datasets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
327
+ command = make_simple_command(:get, 'v1beta1/{+parent}/datasets', options)
328
+ command.response_representation = Google::Apis::HealthcareV1beta1::ListDatasetsResponse::Representation
329
+ command.response_class = Google::Apis::HealthcareV1beta1::ListDatasetsResponse
330
+ command.params['parent'] = parent unless parent.nil?
331
+ command.query['pageSize'] = page_size unless page_size.nil?
332
+ command.query['pageToken'] = page_token unless page_token.nil?
333
+ command.query['fields'] = fields unless fields.nil?
334
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
335
+ execute_or_queue_command(command, &block)
336
+ end
337
+
338
+ # Updates dataset metadata.
339
+ # @param [String] name
340
+ # Output only. Resource name of the dataset, of the form
341
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id``.
342
+ # @param [Google::Apis::HealthcareV1beta1::Dataset] dataset_object
343
+ # @param [String] update_mask
344
+ # The update mask applies to the resource. For the `FieldMask` definition,
345
+ # see
346
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
347
+ # fieldmask
348
+ # @param [String] fields
349
+ # Selector specifying which fields to include in a partial response.
350
+ # @param [String] quota_user
351
+ # Available to use for quota purposes for server-side applications. Can be any
352
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
353
+ # @param [Google::Apis::RequestOptions] options
354
+ # Request-specific options
355
+ #
356
+ # @yield [result, err] Result & error if block supplied
357
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Dataset] parsed result object
358
+ # @yieldparam err [StandardError] error object if request failed
359
+ #
360
+ # @return [Google::Apis::HealthcareV1beta1::Dataset]
361
+ #
362
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
363
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
364
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
365
+ def patch_project_location_dataset(name, dataset_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
366
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
367
+ command.request_representation = Google::Apis::HealthcareV1beta1::Dataset::Representation
368
+ command.request_object = dataset_object
369
+ command.response_representation = Google::Apis::HealthcareV1beta1::Dataset::Representation
370
+ command.response_class = Google::Apis::HealthcareV1beta1::Dataset
371
+ command.params['name'] = name unless name.nil?
372
+ command.query['updateMask'] = update_mask unless update_mask.nil?
373
+ command.query['fields'] = fields unless fields.nil?
374
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
375
+ execute_or_queue_command(command, &block)
376
+ end
377
+
378
+ # Sets the access control policy on the specified resource. Replaces any
379
+ # existing policy.
380
+ # @param [String] resource
381
+ # REQUIRED: The resource for which the policy is being specified.
382
+ # See the operation documentation for the appropriate value for this field.
383
+ # @param [Google::Apis::HealthcareV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
384
+ # @param [String] fields
385
+ # Selector specifying which fields to include in a partial response.
386
+ # @param [String] quota_user
387
+ # Available to use for quota purposes for server-side applications. Can be any
388
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
389
+ # @param [Google::Apis::RequestOptions] options
390
+ # Request-specific options
391
+ #
392
+ # @yield [result, err] Result & error if block supplied
393
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Policy] parsed result object
394
+ # @yieldparam err [StandardError] error object if request failed
395
+ #
396
+ # @return [Google::Apis::HealthcareV1beta1::Policy]
397
+ #
398
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
399
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
400
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
401
+ def set_dataset_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
402
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
403
+ command.request_representation = Google::Apis::HealthcareV1beta1::SetIamPolicyRequest::Representation
404
+ command.request_object = set_iam_policy_request_object
405
+ command.response_representation = Google::Apis::HealthcareV1beta1::Policy::Representation
406
+ command.response_class = Google::Apis::HealthcareV1beta1::Policy
407
+ command.params['resource'] = resource unless resource.nil?
408
+ command.query['fields'] = fields unless fields.nil?
409
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
410
+ execute_or_queue_command(command, &block)
411
+ end
412
+
413
+ # Returns permissions that a caller has on the specified resource.
414
+ # If the resource does not exist, this will return an empty set of
415
+ # permissions, not a NOT_FOUND error.
416
+ # Note: This operation is designed to be used for building permission-aware
417
+ # UIs and command-line tools, not for authorization checking. This operation
418
+ # may "fail open" without warning.
419
+ # @param [String] resource
420
+ # REQUIRED: The resource for which the policy detail is being requested.
421
+ # See the operation documentation for the appropriate value for this field.
422
+ # @param [Google::Apis::HealthcareV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
423
+ # @param [String] fields
424
+ # Selector specifying which fields to include in a partial response.
425
+ # @param [String] quota_user
426
+ # Available to use for quota purposes for server-side applications. Can be any
427
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
428
+ # @param [Google::Apis::RequestOptions] options
429
+ # Request-specific options
430
+ #
431
+ # @yield [result, err] Result & error if block supplied
432
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse] parsed result object
433
+ # @yieldparam err [StandardError] error object if request failed
434
+ #
435
+ # @return [Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse]
436
+ #
437
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
438
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
439
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
440
+ def test_dataset_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
441
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
442
+ command.request_representation = Google::Apis::HealthcareV1beta1::TestIamPermissionsRequest::Representation
443
+ command.request_object = test_iam_permissions_request_object
444
+ command.response_representation = Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse::Representation
445
+ command.response_class = Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse
446
+ command.params['resource'] = resource unless resource.nil?
447
+ command.query['fields'] = fields unless fields.nil?
448
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
449
+ execute_or_queue_command(command, &block)
450
+ end
451
+
452
+ # Creates a new DICOM store within the parent dataset.
453
+ # @param [String] parent
454
+ # The name of the dataset this DICOM store belongs to.
455
+ # @param [Google::Apis::HealthcareV1beta1::DicomStore] dicom_store_object
456
+ # @param [String] dicom_store_id
457
+ # The ID of the DICOM store that is being created.
458
+ # Any string value up to 256 characters in length.
459
+ # @param [String] fields
460
+ # Selector specifying which fields to include in a partial response.
461
+ # @param [String] quota_user
462
+ # Available to use for quota purposes for server-side applications. Can be any
463
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
464
+ # @param [Google::Apis::RequestOptions] options
465
+ # Request-specific options
466
+ #
467
+ # @yield [result, err] Result & error if block supplied
468
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::DicomStore] parsed result object
469
+ # @yieldparam err [StandardError] error object if request failed
470
+ #
471
+ # @return [Google::Apis::HealthcareV1beta1::DicomStore]
472
+ #
473
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
474
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
475
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
476
+ def create_project_location_dataset_dicom_store(parent, dicom_store_object = nil, dicom_store_id: nil, fields: nil, quota_user: nil, options: nil, &block)
477
+ command = make_simple_command(:post, 'v1beta1/{+parent}/dicomStores', options)
478
+ command.request_representation = Google::Apis::HealthcareV1beta1::DicomStore::Representation
479
+ command.request_object = dicom_store_object
480
+ command.response_representation = Google::Apis::HealthcareV1beta1::DicomStore::Representation
481
+ command.response_class = Google::Apis::HealthcareV1beta1::DicomStore
482
+ command.params['parent'] = parent unless parent.nil?
483
+ command.query['dicomStoreId'] = dicom_store_id unless dicom_store_id.nil?
484
+ command.query['fields'] = fields unless fields.nil?
485
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
486
+ execute_or_queue_command(command, &block)
487
+ end
488
+
489
+ # Deletes the specified DICOM store and removes all images that are contained
490
+ # within it.
491
+ # @param [String] name
492
+ # The resource name of the DICOM store to delete.
493
+ # @param [String] fields
494
+ # Selector specifying which fields to include in a partial response.
495
+ # @param [String] quota_user
496
+ # Available to use for quota purposes for server-side applications. Can be any
497
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
498
+ # @param [Google::Apis::RequestOptions] options
499
+ # Request-specific options
500
+ #
501
+ # @yield [result, err] Result & error if block supplied
502
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object
503
+ # @yieldparam err [StandardError] error object if request failed
504
+ #
505
+ # @return [Google::Apis::HealthcareV1beta1::Empty]
506
+ #
507
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
508
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
509
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
510
+ def delete_project_location_dataset_dicom_store(name, fields: nil, quota_user: nil, options: nil, &block)
511
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
512
+ command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
513
+ command.response_class = Google::Apis::HealthcareV1beta1::Empty
514
+ command.params['name'] = name unless name.nil?
515
+ command.query['fields'] = fields unless fields.nil?
516
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
517
+ execute_or_queue_command(command, &block)
518
+ end
519
+
520
+ # Exports data to the specified destination by copying it from the DICOM
521
+ # store.
522
+ # The metadata field type is
523
+ # OperationMetadata.
524
+ # @param [String] name
525
+ # The DICOM store resource name from which the data should be exported (e.g.,
526
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
527
+ # dicomStores/`dicom_store_id``).
528
+ # @param [Google::Apis::HealthcareV1beta1::ExportDicomDataRequest] export_dicom_data_request_object
529
+ # @param [String] fields
530
+ # Selector specifying which fields to include in a partial response.
531
+ # @param [String] quota_user
532
+ # Available to use for quota purposes for server-side applications. Can be any
533
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
534
+ # @param [Google::Apis::RequestOptions] options
535
+ # Request-specific options
536
+ #
537
+ # @yield [result, err] Result & error if block supplied
538
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Operation] parsed result object
539
+ # @yieldparam err [StandardError] error object if request failed
540
+ #
541
+ # @return [Google::Apis::HealthcareV1beta1::Operation]
542
+ #
543
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
544
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
545
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
546
+ def export_dicom_store_dicom_data(name, export_dicom_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
547
+ command = make_simple_command(:post, 'v1beta1/{+name}:export', options)
548
+ command.request_representation = Google::Apis::HealthcareV1beta1::ExportDicomDataRequest::Representation
549
+ command.request_object = export_dicom_data_request_object
550
+ command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation
551
+ command.response_class = Google::Apis::HealthcareV1beta1::Operation
552
+ command.params['name'] = name unless name.nil?
553
+ command.query['fields'] = fields unless fields.nil?
554
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
555
+ execute_or_queue_command(command, &block)
556
+ end
557
+
558
+ # Gets the specified DICOM store.
559
+ # @param [String] name
560
+ # The resource name of the DICOM store to get.
561
+ # @param [String] fields
562
+ # Selector specifying which fields to include in a partial response.
563
+ # @param [String] quota_user
564
+ # Available to use for quota purposes for server-side applications. Can be any
565
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
566
+ # @param [Google::Apis::RequestOptions] options
567
+ # Request-specific options
568
+ #
569
+ # @yield [result, err] Result & error if block supplied
570
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::DicomStore] parsed result object
571
+ # @yieldparam err [StandardError] error object if request failed
572
+ #
573
+ # @return [Google::Apis::HealthcareV1beta1::DicomStore]
574
+ #
575
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
576
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
577
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
578
+ def get_project_location_dataset_dicom_store(name, fields: nil, quota_user: nil, options: nil, &block)
579
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
580
+ command.response_representation = Google::Apis::HealthcareV1beta1::DicomStore::Representation
581
+ command.response_class = Google::Apis::HealthcareV1beta1::DicomStore
582
+ command.params['name'] = name unless name.nil?
583
+ command.query['fields'] = fields unless fields.nil?
584
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
585
+ execute_or_queue_command(command, &block)
586
+ end
587
+
588
+ # Gets the access control policy for a resource.
589
+ # Returns an empty policy if the resource exists and does not have a policy
590
+ # set.
591
+ # @param [String] resource
592
+ # REQUIRED: The resource for which the policy is being requested.
593
+ # See the operation documentation for the appropriate value for this field.
594
+ # @param [String] fields
595
+ # Selector specifying which fields to include in a partial response.
596
+ # @param [String] quota_user
597
+ # Available to use for quota purposes for server-side applications. Can be any
598
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
599
+ # @param [Google::Apis::RequestOptions] options
600
+ # Request-specific options
601
+ #
602
+ # @yield [result, err] Result & error if block supplied
603
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Policy] parsed result object
604
+ # @yieldparam err [StandardError] error object if request failed
605
+ #
606
+ # @return [Google::Apis::HealthcareV1beta1::Policy]
607
+ #
608
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
609
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
610
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
611
+ def get_project_location_dataset_dicom_store_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
612
+ command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
613
+ command.response_representation = Google::Apis::HealthcareV1beta1::Policy::Representation
614
+ command.response_class = Google::Apis::HealthcareV1beta1::Policy
615
+ command.params['resource'] = resource unless resource.nil?
616
+ command.query['fields'] = fields unless fields.nil?
617
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
618
+ execute_or_queue_command(command, &block)
619
+ end
620
+
621
+ # Imports data into the DICOM store by copying it from the specified source.
622
+ # For errors, the Operation will be populated with error details (in the form
623
+ # of ImportDicomDataErrorDetails in error.details), which will hold
624
+ # finer-grained error information.
625
+ # The metadata field type is
626
+ # OperationMetadata.
627
+ # @param [String] name
628
+ # The name of the DICOM store resource into which the data is imported (e.g.,
629
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
630
+ # dicomStores/`dicom_store_id``).
631
+ # @param [Google::Apis::HealthcareV1beta1::ImportDicomDataRequest] import_dicom_data_request_object
632
+ # @param [String] fields
633
+ # Selector specifying which fields to include in a partial response.
634
+ # @param [String] quota_user
635
+ # Available to use for quota purposes for server-side applications. Can be any
636
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
637
+ # @param [Google::Apis::RequestOptions] options
638
+ # Request-specific options
639
+ #
640
+ # @yield [result, err] Result & error if block supplied
641
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Operation] parsed result object
642
+ # @yieldparam err [StandardError] error object if request failed
643
+ #
644
+ # @return [Google::Apis::HealthcareV1beta1::Operation]
645
+ #
646
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
647
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
648
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
649
+ def import_dicom_store_dicom_data(name, import_dicom_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
650
+ command = make_simple_command(:post, 'v1beta1/{+name}:import', options)
651
+ command.request_representation = Google::Apis::HealthcareV1beta1::ImportDicomDataRequest::Representation
652
+ command.request_object = import_dicom_data_request_object
653
+ command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation
654
+ command.response_class = Google::Apis::HealthcareV1beta1::Operation
655
+ command.params['name'] = name unless name.nil?
656
+ command.query['fields'] = fields unless fields.nil?
657
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
658
+ execute_or_queue_command(command, &block)
659
+ end
660
+
661
+ # Lists the DICOM stores in the given dataset.
662
+ # @param [String] parent
663
+ # Name of the dataset.
664
+ # @param [String] filter
665
+ # Restricts stores returned to those matching a filter. Syntax:
666
+ # https://cloud.google.com/appengine/docs/standard/python/search/query_strings
667
+ # Only filtering on labels is supported, for example `labels.key=value`.
668
+ # @param [Fixnum] page_size
669
+ # Limit on the number of DICOM stores to return in a single response.
670
+ # If zero the default page size of 100 is used.
671
+ # @param [String] page_token
672
+ # The next_page_token value returned from the previous List request, if any.
673
+ # @param [String] fields
674
+ # Selector specifying which fields to include in a partial response.
675
+ # @param [String] quota_user
676
+ # Available to use for quota purposes for server-side applications. Can be any
677
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
678
+ # @param [Google::Apis::RequestOptions] options
679
+ # Request-specific options
680
+ #
681
+ # @yield [result, err] Result & error if block supplied
682
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ListDicomStoresResponse] parsed result object
683
+ # @yieldparam err [StandardError] error object if request failed
684
+ #
685
+ # @return [Google::Apis::HealthcareV1beta1::ListDicomStoresResponse]
686
+ #
687
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
688
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
689
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
690
+ def list_project_location_dataset_dicom_stores(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
691
+ command = make_simple_command(:get, 'v1beta1/{+parent}/dicomStores', options)
692
+ command.response_representation = Google::Apis::HealthcareV1beta1::ListDicomStoresResponse::Representation
693
+ command.response_class = Google::Apis::HealthcareV1beta1::ListDicomStoresResponse
694
+ command.params['parent'] = parent unless parent.nil?
695
+ command.query['filter'] = filter unless filter.nil?
696
+ command.query['pageSize'] = page_size unless page_size.nil?
697
+ command.query['pageToken'] = page_token unless page_token.nil?
698
+ command.query['fields'] = fields unless fields.nil?
699
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
700
+ execute_or_queue_command(command, &block)
701
+ end
702
+
703
+ # Updates the specified DICOM store.
704
+ # @param [String] name
705
+ # Output only. Resource name of the DICOM store, of the form
706
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
707
+ # dicomStores/`dicom_store_id``.
708
+ # @param [Google::Apis::HealthcareV1beta1::DicomStore] dicom_store_object
709
+ # @param [String] update_mask
710
+ # The update mask applies to the resource. For the `FieldMask` definition,
711
+ # see
712
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
713
+ # fieldmask
714
+ # @param [String] fields
715
+ # Selector specifying which fields to include in a partial response.
716
+ # @param [String] quota_user
717
+ # Available to use for quota purposes for server-side applications. Can be any
718
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
719
+ # @param [Google::Apis::RequestOptions] options
720
+ # Request-specific options
721
+ #
722
+ # @yield [result, err] Result & error if block supplied
723
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::DicomStore] parsed result object
724
+ # @yieldparam err [StandardError] error object if request failed
725
+ #
726
+ # @return [Google::Apis::HealthcareV1beta1::DicomStore]
727
+ #
728
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
729
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
730
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
731
+ def patch_project_location_dataset_dicom_store(name, dicom_store_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
732
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
733
+ command.request_representation = Google::Apis::HealthcareV1beta1::DicomStore::Representation
734
+ command.request_object = dicom_store_object
735
+ command.response_representation = Google::Apis::HealthcareV1beta1::DicomStore::Representation
736
+ command.response_class = Google::Apis::HealthcareV1beta1::DicomStore
737
+ command.params['name'] = name unless name.nil?
738
+ command.query['updateMask'] = update_mask unless update_mask.nil?
739
+ command.query['fields'] = fields unless fields.nil?
740
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
741
+ execute_or_queue_command(command, &block)
742
+ end
743
+
744
+ # SearchForInstances returns a list of matching instances. See
745
+ # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_6.7
746
+ # @param [String] parent
747
+ # The name of the DICOM store that is being accessed (e.g.,
748
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
749
+ # dicomStores/`dicom_store_id``).
750
+ # @param [String] dicom_web_path
751
+ # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or
752
+ # QIDO-RS standard (e.g.,
753
+ # `instances`).
754
+ # @param [String] fields
755
+ # Selector specifying which fields to include in a partial response.
756
+ # @param [String] quota_user
757
+ # Available to use for quota purposes for server-side applications. Can be any
758
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
759
+ # @param [Google::Apis::RequestOptions] options
760
+ # Request-specific options
761
+ #
762
+ # @yield [result, err] Result & error if block supplied
763
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
764
+ # @yieldparam err [StandardError] error object if request failed
765
+ #
766
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
767
+ #
768
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
769
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
770
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
771
+ def search_project_location_dataset_dicom_store_for_instances(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
772
+ command = make_simple_command(:get, 'v1beta1/{+parent}/dicomWeb/{+dicomWebPath}', options)
773
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
774
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
775
+ command.params['parent'] = parent unless parent.nil?
776
+ command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
777
+ command.query['fields'] = fields unless fields.nil?
778
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
779
+ execute_or_queue_command(command, &block)
780
+ end
781
+
782
+ # SearchForSeries returns a list of matching series. See
783
+ # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_6.7
784
+ # @param [String] parent
785
+ # The name of the DICOM store that is being accessed (e.g.,
786
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
787
+ # dicomStores/`dicom_store_id``).
788
+ # @param [String] dicom_web_path
789
+ # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or
790
+ # QIDO-RS standard (e.g.,
791
+ # `series`).
792
+ # @param [String] fields
793
+ # Selector specifying which fields to include in a partial response.
794
+ # @param [String] quota_user
795
+ # Available to use for quota purposes for server-side applications. Can be any
796
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
797
+ # @param [Google::Apis::RequestOptions] options
798
+ # Request-specific options
799
+ #
800
+ # @yield [result, err] Result & error if block supplied
801
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
802
+ # @yieldparam err [StandardError] error object if request failed
803
+ #
804
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
805
+ #
806
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
807
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
808
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
809
+ def search_project_location_dataset_dicom_store_for_series(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
810
+ command = make_simple_command(:get, 'v1beta1/{+parent}/dicomWeb/{+dicomWebPath}', options)
811
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
812
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
813
+ command.params['parent'] = parent unless parent.nil?
814
+ command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
815
+ command.query['fields'] = fields unless fields.nil?
816
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
817
+ execute_or_queue_command(command, &block)
818
+ end
819
+
820
+ # SearchForStudies returns a list of matching studies. See
821
+ # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_6.7
822
+ # @param [String] parent
823
+ # The name of the DICOM store that is being accessed (e.g.,
824
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
825
+ # dicomStores/`dicom_store_id``).
826
+ # @param [String] dicom_web_path
827
+ # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or
828
+ # QIDO-RS standard (e.g.,
829
+ # `studies`).
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::HealthcareV1beta1::HttpBody] parsed result object
840
+ # @yieldparam err [StandardError] error object if request failed
841
+ #
842
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
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 search_project_location_dataset_dicom_store_for_studies(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
848
+ command = make_simple_command(:get, 'v1beta1/{+parent}/dicomWeb/{+dicomWebPath}', options)
849
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
850
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
851
+ command.params['parent'] = parent unless parent.nil?
852
+ command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
853
+ command.query['fields'] = fields unless fields.nil?
854
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
855
+ execute_or_queue_command(command, &block)
856
+ end
857
+
858
+ # Sets the access control policy on the specified resource. Replaces any
859
+ # existing policy.
860
+ # @param [String] resource
861
+ # REQUIRED: The resource for which the policy is being specified.
862
+ # See the operation documentation for the appropriate value for this field.
863
+ # @param [Google::Apis::HealthcareV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
864
+ # @param [String] fields
865
+ # Selector specifying which fields to include in a partial response.
866
+ # @param [String] quota_user
867
+ # Available to use for quota purposes for server-side applications. Can be any
868
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
869
+ # @param [Google::Apis::RequestOptions] options
870
+ # Request-specific options
871
+ #
872
+ # @yield [result, err] Result & error if block supplied
873
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Policy] parsed result object
874
+ # @yieldparam err [StandardError] error object if request failed
875
+ #
876
+ # @return [Google::Apis::HealthcareV1beta1::Policy]
877
+ #
878
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
879
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
880
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
881
+ def set_dicom_store_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
882
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
883
+ command.request_representation = Google::Apis::HealthcareV1beta1::SetIamPolicyRequest::Representation
884
+ command.request_object = set_iam_policy_request_object
885
+ command.response_representation = Google::Apis::HealthcareV1beta1::Policy::Representation
886
+ command.response_class = Google::Apis::HealthcareV1beta1::Policy
887
+ command.params['resource'] = resource unless resource.nil?
888
+ command.query['fields'] = fields unless fields.nil?
889
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
890
+ execute_or_queue_command(command, &block)
891
+ end
892
+
893
+ # StoreInstances stores DICOM instances associated with study instance unique
894
+ # identifiers (SUID). See
895
+ # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_6.6.1.
896
+ # @param [String] parent
897
+ # The name of the DICOM store that is being accessed (e.g.,
898
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
899
+ # dicomStores/`dicom_store_id``).
900
+ # @param [String] dicom_web_path
901
+ # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or
902
+ # QIDO-RS standard (e.g., `studies/`study_id``).
903
+ # @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_object
904
+ # @param [String] fields
905
+ # Selector specifying which fields to include in a partial response.
906
+ # @param [String] quota_user
907
+ # Available to use for quota purposes for server-side applications. Can be any
908
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
909
+ # @param [Google::Apis::RequestOptions] options
910
+ # Request-specific options
911
+ #
912
+ # @yield [result, err] Result & error if block supplied
913
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
914
+ # @yieldparam err [StandardError] error object if request failed
915
+ #
916
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
917
+ #
918
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
919
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
920
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
921
+ def store_project_location_dataset_dicom_store_instances(parent, dicom_web_path, http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
922
+ command = make_simple_command(:post, 'v1beta1/{+parent}/dicomWeb/{+dicomWebPath}', options)
923
+ command.request_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
924
+ command.request_object = http_body_object
925
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
926
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
927
+ command.params['parent'] = parent unless parent.nil?
928
+ command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
929
+ command.query['fields'] = fields unless fields.nil?
930
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
931
+ execute_or_queue_command(command, &block)
932
+ end
933
+
934
+ # Returns permissions that a caller has on the specified resource.
935
+ # If the resource does not exist, this will return an empty set of
936
+ # permissions, not a NOT_FOUND error.
937
+ # Note: This operation is designed to be used for building permission-aware
938
+ # UIs and command-line tools, not for authorization checking. This operation
939
+ # may "fail open" without warning.
940
+ # @param [String] resource
941
+ # REQUIRED: The resource for which the policy detail is being requested.
942
+ # See the operation documentation for the appropriate value for this field.
943
+ # @param [Google::Apis::HealthcareV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
944
+ # @param [String] fields
945
+ # Selector specifying which fields to include in a partial response.
946
+ # @param [String] quota_user
947
+ # Available to use for quota purposes for server-side applications. Can be any
948
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
949
+ # @param [Google::Apis::RequestOptions] options
950
+ # Request-specific options
951
+ #
952
+ # @yield [result, err] Result & error if block supplied
953
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse] parsed result object
954
+ # @yieldparam err [StandardError] error object if request failed
955
+ #
956
+ # @return [Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse]
957
+ #
958
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
959
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
960
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
961
+ def test_dicom_store_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
962
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
963
+ command.request_representation = Google::Apis::HealthcareV1beta1::TestIamPermissionsRequest::Representation
964
+ command.request_object = test_iam_permissions_request_object
965
+ command.response_representation = Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse::Representation
966
+ command.response_class = Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse
967
+ command.params['resource'] = resource unless resource.nil?
968
+ command.query['fields'] = fields unless fields.nil?
969
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
970
+ execute_or_queue_command(command, &block)
971
+ end
972
+
973
+ # DeleteStudy deletes all instances within the given study. Delete requests
974
+ # are equivalent to the GET requests specified in the WADO-RS standard.
975
+ # @param [String] parent
976
+ # The name of the DICOM store that is being accessed (e.g.,
977
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
978
+ # dicomStores/`dicom_store_id``).
979
+ # @param [String] dicom_web_path
980
+ # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or
981
+ # QIDO-RS standard (e.g., `studies/`study_id``).
982
+ # @param [String] fields
983
+ # Selector specifying which fields to include in a partial response.
984
+ # @param [String] quota_user
985
+ # Available to use for quota purposes for server-side applications. Can be any
986
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
987
+ # @param [Google::Apis::RequestOptions] options
988
+ # Request-specific options
989
+ #
990
+ # @yield [result, err] Result & error if block supplied
991
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object
992
+ # @yieldparam err [StandardError] error object if request failed
993
+ #
994
+ # @return [Google::Apis::HealthcareV1beta1::Empty]
995
+ #
996
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
997
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
998
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
999
+ def delete_project_location_dataset_dicom_store_study(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1000
+ command = make_simple_command(:delete, 'v1beta1/{+parent}/dicomWeb/{+dicomWebPath}', options)
1001
+ command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
1002
+ command.response_class = Google::Apis::HealthcareV1beta1::Empty
1003
+ command.params['parent'] = parent unless parent.nil?
1004
+ command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1005
+ command.query['fields'] = fields unless fields.nil?
1006
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1007
+ execute_or_queue_command(command, &block)
1008
+ end
1009
+
1010
+ # RetrieveStudyMetadata returns instance associated with the given study
1011
+ # presented as metadata with the bulk data removed. See
1012
+ # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_6.5.6.
1013
+ # @param [String] parent
1014
+ # The name of the DICOM store that is being accessed (e.g.,
1015
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1016
+ # dicomStores/`dicom_store_id``).
1017
+ # @param [String] dicom_web_path
1018
+ # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or
1019
+ # QIDO-RS standard (e.g., `studies/`study_id`/metadata`.
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::HealthcareV1beta1::HttpBody] parsed result object
1030
+ # @yieldparam err [StandardError] error object if request failed
1031
+ #
1032
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
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 retrieve_project_location_dataset_dicom_store_study_metadata(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1038
+ command = make_simple_command(:get, 'v1beta1/{+parent}/dicomWeb/{+dicomWebPath}', options)
1039
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
1040
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
1041
+ command.params['parent'] = parent unless parent.nil?
1042
+ command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1043
+ command.query['fields'] = fields unless fields.nil?
1044
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1045
+ execute_or_queue_command(command, &block)
1046
+ end
1047
+
1048
+ # RetrieveStudy returns all instances within the given study. See
1049
+ # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_6.5.1.
1050
+ # @param [String] parent
1051
+ # The name of the DICOM store that is being accessed (e.g.,
1052
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1053
+ # dicomStores/`dicom_store_id``).
1054
+ # @param [String] dicom_web_path
1055
+ # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or
1056
+ # QIDO-RS standard (e.g., `studies/`study_id``).
1057
+ # @param [String] fields
1058
+ # Selector specifying which fields to include in a partial response.
1059
+ # @param [String] quota_user
1060
+ # Available to use for quota purposes for server-side applications. Can be any
1061
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1062
+ # @param [Google::Apis::RequestOptions] options
1063
+ # Request-specific options
1064
+ #
1065
+ # @yield [result, err] Result & error if block supplied
1066
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
1067
+ # @yieldparam err [StandardError] error object if request failed
1068
+ #
1069
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
1070
+ #
1071
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1072
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1073
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1074
+ def retrieve_project_location_dataset_dicom_store_study_study(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1075
+ command = make_simple_command(:get, 'v1beta1/{+parent}/dicomWeb/{+dicomWebPath}', options)
1076
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
1077
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
1078
+ command.params['parent'] = parent unless parent.nil?
1079
+ command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1080
+ command.query['fields'] = fields unless fields.nil?
1081
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1082
+ execute_or_queue_command(command, &block)
1083
+ end
1084
+
1085
+ # SearchForInstances returns a list of matching instances. See
1086
+ # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_6.7
1087
+ # @param [String] parent
1088
+ # The name of the DICOM store that is being accessed (e.g.,
1089
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1090
+ # dicomStores/`dicom_store_id``).
1091
+ # @param [String] dicom_web_path
1092
+ # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or
1093
+ # QIDO-RS standard (e.g.,
1094
+ # `instances`).
1095
+ # @param [String] fields
1096
+ # Selector specifying which fields to include in a partial response.
1097
+ # @param [String] quota_user
1098
+ # Available to use for quota purposes for server-side applications. Can be any
1099
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1100
+ # @param [Google::Apis::RequestOptions] options
1101
+ # Request-specific options
1102
+ #
1103
+ # @yield [result, err] Result & error if block supplied
1104
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
1105
+ # @yieldparam err [StandardError] error object if request failed
1106
+ #
1107
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
1108
+ #
1109
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1110
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1111
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1112
+ def search_project_location_dataset_dicom_store_study_for_instances(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1113
+ command = make_simple_command(:get, 'v1beta1/{+parent}/dicomWeb/{+dicomWebPath}', options)
1114
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
1115
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
1116
+ command.params['parent'] = parent unless parent.nil?
1117
+ command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1118
+ command.query['fields'] = fields unless fields.nil?
1119
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1120
+ execute_or_queue_command(command, &block)
1121
+ end
1122
+
1123
+ # SearchForSeries returns a list of matching series. See
1124
+ # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_6.7
1125
+ # @param [String] parent
1126
+ # The name of the DICOM store that is being accessed (e.g.,
1127
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1128
+ # dicomStores/`dicom_store_id``).
1129
+ # @param [String] dicom_web_path
1130
+ # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or
1131
+ # QIDO-RS standard (e.g.,
1132
+ # `series`).
1133
+ # @param [String] fields
1134
+ # Selector specifying which fields to include in a partial response.
1135
+ # @param [String] quota_user
1136
+ # Available to use for quota purposes for server-side applications. Can be any
1137
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1138
+ # @param [Google::Apis::RequestOptions] options
1139
+ # Request-specific options
1140
+ #
1141
+ # @yield [result, err] Result & error if block supplied
1142
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
1143
+ # @yieldparam err [StandardError] error object if request failed
1144
+ #
1145
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
1146
+ #
1147
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1148
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1149
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1150
+ def search_project_location_dataset_dicom_store_study_for_series(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1151
+ command = make_simple_command(:get, 'v1beta1/{+parent}/dicomWeb/{+dicomWebPath}', options)
1152
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
1153
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
1154
+ command.params['parent'] = parent unless parent.nil?
1155
+ command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1156
+ command.query['fields'] = fields unless fields.nil?
1157
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1158
+ execute_or_queue_command(command, &block)
1159
+ end
1160
+
1161
+ # StoreInstances stores DICOM instances associated with study instance unique
1162
+ # identifiers (SUID). See
1163
+ # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_6.6.1.
1164
+ # @param [String] parent
1165
+ # The name of the DICOM store that is being accessed (e.g.,
1166
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1167
+ # dicomStores/`dicom_store_id``).
1168
+ # @param [String] dicom_web_path
1169
+ # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or
1170
+ # QIDO-RS standard (e.g., `studies/`study_id``).
1171
+ # @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_object
1172
+ # @param [String] fields
1173
+ # Selector specifying which fields to include in a partial response.
1174
+ # @param [String] quota_user
1175
+ # Available to use for quota purposes for server-side applications. Can be any
1176
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1177
+ # @param [Google::Apis::RequestOptions] options
1178
+ # Request-specific options
1179
+ #
1180
+ # @yield [result, err] Result & error if block supplied
1181
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
1182
+ # @yieldparam err [StandardError] error object if request failed
1183
+ #
1184
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
1185
+ #
1186
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1187
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1188
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1189
+ def store_project_location_dataset_dicom_store_study_instances(parent, dicom_web_path, http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1190
+ command = make_simple_command(:post, 'v1beta1/{+parent}/dicomWeb/{+dicomWebPath}', options)
1191
+ command.request_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
1192
+ command.request_object = http_body_object
1193
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
1194
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
1195
+ command.params['parent'] = parent unless parent.nil?
1196
+ command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1197
+ command.query['fields'] = fields unless fields.nil?
1198
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1199
+ execute_or_queue_command(command, &block)
1200
+ end
1201
+
1202
+ # DeleteSeries deletes all instances within the given study and series.
1203
+ # Delete requests are equivalent to the GET requests specified in the WADO-RS
1204
+ # standard.
1205
+ # @param [String] parent
1206
+ # The name of the DICOM store that is being accessed (e.g.,
1207
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1208
+ # dicomStores/`dicom_store_id``).
1209
+ # @param [String] dicom_web_path
1210
+ # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or
1211
+ # QIDO-RS standard (e.g., `studies/`study_id`/series/`series_id``).
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::HealthcareV1beta1::Empty] parsed result object
1222
+ # @yieldparam err [StandardError] error object if request failed
1223
+ #
1224
+ # @return [Google::Apis::HealthcareV1beta1::Empty]
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 delete_project_location_dataset_dicom_store_study_series(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1230
+ command = make_simple_command(:delete, 'v1beta1/{+parent}/dicomWeb/{+dicomWebPath}', options)
1231
+ command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
1232
+ command.response_class = Google::Apis::HealthcareV1beta1::Empty
1233
+ command.params['parent'] = parent unless parent.nil?
1234
+ command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1235
+ command.query['fields'] = fields unless fields.nil?
1236
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1237
+ execute_or_queue_command(command, &block)
1238
+ end
1239
+
1240
+ # RetrieveSeriesMetadata returns instance associated with the given study and
1241
+ # series, presented as metadata with the bulk data removed. See
1242
+ # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_6.5.6.
1243
+ # @param [String] parent
1244
+ # The name of the DICOM store that is being accessed (e.g.,
1245
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1246
+ # dicomStores/`dicom_store_id``).
1247
+ # @param [String] dicom_web_path
1248
+ # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or
1249
+ # QIDO-RS standard (e.g., `studies/`study_id`/series/`series_id`/metadata`.
1250
+ # @param [String] fields
1251
+ # Selector specifying which fields to include in a partial response.
1252
+ # @param [String] quota_user
1253
+ # Available to use for quota purposes for server-side applications. Can be any
1254
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1255
+ # @param [Google::Apis::RequestOptions] options
1256
+ # Request-specific options
1257
+ #
1258
+ # @yield [result, err] Result & error if block supplied
1259
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
1260
+ # @yieldparam err [StandardError] error object if request failed
1261
+ #
1262
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
1263
+ #
1264
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1265
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1266
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1267
+ def retrieve_project_location_dataset_dicom_store_study_series_metadata(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1268
+ command = make_simple_command(:get, 'v1beta1/{+parent}/dicomWeb/{+dicomWebPath}', options)
1269
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
1270
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
1271
+ command.params['parent'] = parent unless parent.nil?
1272
+ command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1273
+ command.query['fields'] = fields unless fields.nil?
1274
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1275
+ execute_or_queue_command(command, &block)
1276
+ end
1277
+
1278
+ # RetrieveSeries returns all instances within the given study and series. See
1279
+ # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_6.5.2.
1280
+ # @param [String] parent
1281
+ # The name of the DICOM store that is being accessed (e.g.,
1282
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1283
+ # dicomStores/`dicom_store_id``).
1284
+ # @param [String] dicom_web_path
1285
+ # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or
1286
+ # QIDO-RS standard (e.g., `studies/`study_id`/series/`series_id``).
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::HealthcareV1beta1::HttpBody] parsed result object
1297
+ # @yieldparam err [StandardError] error object if request failed
1298
+ #
1299
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
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 retrieve_project_location_dataset_dicom_store_study_series_series(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1305
+ command = make_simple_command(:get, 'v1beta1/{+parent}/dicomWeb/{+dicomWebPath}', options)
1306
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
1307
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
1308
+ command.params['parent'] = parent unless parent.nil?
1309
+ command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1310
+ command.query['fields'] = fields unless fields.nil?
1311
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1312
+ execute_or_queue_command(command, &block)
1313
+ end
1314
+
1315
+ # SearchForInstances returns a list of matching instances. See
1316
+ # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_6.7
1317
+ # @param [String] parent
1318
+ # The name of the DICOM store that is being accessed (e.g.,
1319
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1320
+ # dicomStores/`dicom_store_id``).
1321
+ # @param [String] dicom_web_path
1322
+ # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or
1323
+ # QIDO-RS standard (e.g.,
1324
+ # `instances`).
1325
+ # @param [String] fields
1326
+ # Selector specifying which fields to include in a partial response.
1327
+ # @param [String] quota_user
1328
+ # Available to use for quota purposes for server-side applications. Can be any
1329
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1330
+ # @param [Google::Apis::RequestOptions] options
1331
+ # Request-specific options
1332
+ #
1333
+ # @yield [result, err] Result & error if block supplied
1334
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
1335
+ # @yieldparam err [StandardError] error object if request failed
1336
+ #
1337
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
1338
+ #
1339
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1340
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1341
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1342
+ def search_project_location_dataset_dicom_store_study_series_for_instances(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1343
+ command = make_simple_command(:get, 'v1beta1/{+parent}/dicomWeb/{+dicomWebPath}', options)
1344
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
1345
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
1346
+ command.params['parent'] = parent unless parent.nil?
1347
+ command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1348
+ command.query['fields'] = fields unless fields.nil?
1349
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1350
+ execute_or_queue_command(command, &block)
1351
+ end
1352
+
1353
+ # DeleteInstance deletes an instance associated with the given study, series,
1354
+ # and SOP Instance UID. Delete requests are equivalent to the GET requests
1355
+ # specified in the WADO-RS standard.
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 DICOMweb request, as specified in the STOW-RS, WADO-RS, or
1362
+ # QIDO-RS standard (e.g.,
1363
+ # `studies/`study_id`/series/`series_id`/instances/`instance_id``).
1364
+ # @param [String] fields
1365
+ # Selector specifying which fields to include in a partial response.
1366
+ # @param [String] quota_user
1367
+ # Available to use for quota purposes for server-side applications. Can be any
1368
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1369
+ # @param [Google::Apis::RequestOptions] options
1370
+ # Request-specific options
1371
+ #
1372
+ # @yield [result, err] Result & error if block supplied
1373
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object
1374
+ # @yieldparam err [StandardError] error object if request failed
1375
+ #
1376
+ # @return [Google::Apis::HealthcareV1beta1::Empty]
1377
+ #
1378
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1379
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1380
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1381
+ def delete_project_location_dataset_dicom_store_study_series_instance(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1382
+ command = make_simple_command(:delete, 'v1beta1/{+parent}/dicomWeb/{+dicomWebPath}', options)
1383
+ command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
1384
+ command.response_class = Google::Apis::HealthcareV1beta1::Empty
1385
+ command.params['parent'] = parent unless parent.nil?
1386
+ command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1387
+ command.query['fields'] = fields unless fields.nil?
1388
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1389
+ execute_or_queue_command(command, &block)
1390
+ end
1391
+
1392
+ # RetrieveInstance returns instance associated with the given study, series,
1393
+ # and SOP Instance UID. See
1394
+ # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_6.5.3.
1395
+ # @param [String] parent
1396
+ # The name of the DICOM store that is being accessed (e.g.,
1397
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1398
+ # dicomStores/`dicom_store_id``).
1399
+ # @param [String] dicom_web_path
1400
+ # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or
1401
+ # QIDO-RS standard (e.g.,
1402
+ # `studies/`study_id`/series/`series_id`/instance/`instance_id``).
1403
+ # @param [String] fields
1404
+ # Selector specifying which fields to include in a partial response.
1405
+ # @param [String] quota_user
1406
+ # Available to use for quota purposes for server-side applications. Can be any
1407
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1408
+ # @param [Google::Apis::RequestOptions] options
1409
+ # Request-specific options
1410
+ #
1411
+ # @yield [result, err] Result & error if block supplied
1412
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
1413
+ # @yieldparam err [StandardError] error object if request failed
1414
+ #
1415
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
1416
+ #
1417
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1418
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1419
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1420
+ def retrieve_project_location_dataset_dicom_store_study_series_instance_instance(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1421
+ command = make_simple_command(:get, 'v1beta1/{+parent}/dicomWeb/{+dicomWebPath}', options)
1422
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
1423
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
1424
+ command.params['parent'] = parent unless parent.nil?
1425
+ command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1426
+ command.query['fields'] = fields unless fields.nil?
1427
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1428
+ execute_or_queue_command(command, &block)
1429
+ end
1430
+
1431
+ # RetrieveInstanceMetadata returns instance associated with the given study,
1432
+ # series, and SOP Instance UID presented as metadata with the bulk data
1433
+ # removed. See
1434
+ # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_6.5.6.
1435
+ # @param [String] parent
1436
+ # The name of the DICOM store that is being accessed (e.g.,
1437
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1438
+ # dicomStores/`dicom_store_id``).
1439
+ # @param [String] dicom_web_path
1440
+ # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or
1441
+ # QIDO-RS standard (e.g.,
1442
+ # `studies/`study_id`/series/`series_id`/instances/`instance_id`/metadata`).
1443
+ # @param [String] fields
1444
+ # Selector specifying which fields to include in a partial response.
1445
+ # @param [String] quota_user
1446
+ # Available to use for quota purposes for server-side applications. Can be any
1447
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1448
+ # @param [Google::Apis::RequestOptions] options
1449
+ # Request-specific options
1450
+ #
1451
+ # @yield [result, err] Result & error if block supplied
1452
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
1453
+ # @yieldparam err [StandardError] error object if request failed
1454
+ #
1455
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
1456
+ #
1457
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1458
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1459
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1460
+ def retrieve_project_location_dataset_dicom_store_study_series_instance_metadata(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1461
+ command = make_simple_command(:get, 'v1beta1/{+parent}/dicomWeb/{+dicomWebPath}', options)
1462
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
1463
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
1464
+ command.params['parent'] = parent unless parent.nil?
1465
+ command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1466
+ command.query['fields'] = fields unless fields.nil?
1467
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1468
+ execute_or_queue_command(command, &block)
1469
+ end
1470
+
1471
+ # RetrieveRenderedInstance returns instance associated with the given study,
1472
+ # series, and SOP Instance UID in an acceptable Rendered Media Type. See
1473
+ # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_6.5.8.
1474
+ # @param [String] parent
1475
+ # The name of the DICOM store that is being accessed (e.g.,
1476
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1477
+ # dicomStores/`dicom_store_id``).
1478
+ # @param [String] dicom_web_path
1479
+ # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or
1480
+ # QIDO-RS standard (e.g.,
1481
+ # `studies/`study_id`/series/`series_id`/instance/`instance_id`/rendered`).
1482
+ # @param [String] fields
1483
+ # Selector specifying which fields to include in a partial response.
1484
+ # @param [String] quota_user
1485
+ # Available to use for quota purposes for server-side applications. Can be any
1486
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1487
+ # @param [Google::Apis::RequestOptions] options
1488
+ # Request-specific options
1489
+ #
1490
+ # @yield [result, err] Result & error if block supplied
1491
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
1492
+ # @yieldparam err [StandardError] error object if request failed
1493
+ #
1494
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
1495
+ #
1496
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1497
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1498
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1499
+ def retrieve_project_location_dataset_dicom_store_study_series_instance_rendered(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1500
+ command = make_simple_command(:get, 'v1beta1/{+parent}/dicomWeb/{+dicomWebPath}', options)
1501
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
1502
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
1503
+ command.params['parent'] = parent unless parent.nil?
1504
+ command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1505
+ command.query['fields'] = fields unless fields.nil?
1506
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1507
+ execute_or_queue_command(command, &block)
1508
+ end
1509
+
1510
+ # RetrieveFrames returns instances associated with the given study, series,
1511
+ # SOP Instance UID and frame numbers. See
1512
+ # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_6.5.4.
1513
+ # @param [String] parent
1514
+ # The name of the DICOM store that is being accessed (e.g.,
1515
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1516
+ # dicomStores/`dicom_store_id``).
1517
+ # @param [String] dicom_web_path
1518
+ # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or
1519
+ # QIDO-RS standard (e.g.,
1520
+ # `studies/`study_id`/series/`series_id`/instance/`instance_id`/frames/`
1521
+ # frame_list``).
1522
+ # @param [String] fields
1523
+ # Selector specifying which fields to include in a partial response.
1524
+ # @param [String] quota_user
1525
+ # Available to use for quota purposes for server-side applications. Can be any
1526
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1527
+ # @param [Google::Apis::RequestOptions] options
1528
+ # Request-specific options
1529
+ #
1530
+ # @yield [result, err] Result & error if block supplied
1531
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
1532
+ # @yieldparam err [StandardError] error object if request failed
1533
+ #
1534
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
1535
+ #
1536
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1537
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1538
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1539
+ def retrieve_project_location_dataset_dicom_store_study_series_instance_frame_frames(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1540
+ command = make_simple_command(:get, 'v1beta1/{+parent}/dicomWeb/{+dicomWebPath}', options)
1541
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
1542
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
1543
+ command.params['parent'] = parent unless parent.nil?
1544
+ command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1545
+ command.query['fields'] = fields unless fields.nil?
1546
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1547
+ execute_or_queue_command(command, &block)
1548
+ end
1549
+
1550
+ # RetrieveRenderedFrames returns instances associated with the given study,
1551
+ # series, SOP Instance UID and frame numbers in an acceptable Rendered Media
1552
+ # Type. See
1553
+ # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_6.5.8.
1554
+ # @param [String] parent
1555
+ # The name of the DICOM store that is being accessed (e.g.,
1556
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1557
+ # dicomStores/`dicom_store_id``).
1558
+ # @param [String] dicom_web_path
1559
+ # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or
1560
+ # QIDO-RS standard (e.g.,
1561
+ # `studies/`study_id`/series/`series_id`/instance/`instance_id`/frames/`
1562
+ # frame_list`/rendered`).
1563
+ # @param [String] fields
1564
+ # Selector specifying which fields to include in a partial response.
1565
+ # @param [String] quota_user
1566
+ # Available to use for quota purposes for server-side applications. Can be any
1567
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1568
+ # @param [Google::Apis::RequestOptions] options
1569
+ # Request-specific options
1570
+ #
1571
+ # @yield [result, err] Result & error if block supplied
1572
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
1573
+ # @yieldparam err [StandardError] error object if request failed
1574
+ #
1575
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
1576
+ #
1577
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1578
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1579
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1580
+ def retrieve_project_location_dataset_dicom_store_study_series_instance_frame_rendered(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1581
+ command = make_simple_command(:get, 'v1beta1/{+parent}/dicomWeb/{+dicomWebPath}', options)
1582
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
1583
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
1584
+ command.params['parent'] = parent unless parent.nil?
1585
+ command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1586
+ command.query['fields'] = fields unless fields.nil?
1587
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1588
+ execute_or_queue_command(command, &block)
1589
+ end
1590
+
1591
+ # Creates a new FHIR store within the parent dataset.
1592
+ # @param [String] parent
1593
+ # The name of the dataset this FHIR store belongs to.
1594
+ # @param [Google::Apis::HealthcareV1beta1::FhirStore] fhir_store_object
1595
+ # @param [String] fhir_store_id
1596
+ # The ID of the FHIR store that is being created.
1597
+ # The string must match the following regex: `[\p`L`\p`N`_\-\.]`1,256``.
1598
+ # @param [String] fields
1599
+ # Selector specifying which fields to include in a partial response.
1600
+ # @param [String] quota_user
1601
+ # Available to use for quota purposes for server-side applications. Can be any
1602
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1603
+ # @param [Google::Apis::RequestOptions] options
1604
+ # Request-specific options
1605
+ #
1606
+ # @yield [result, err] Result & error if block supplied
1607
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::FhirStore] parsed result object
1608
+ # @yieldparam err [StandardError] error object if request failed
1609
+ #
1610
+ # @return [Google::Apis::HealthcareV1beta1::FhirStore]
1611
+ #
1612
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1613
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1614
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1615
+ def create_project_location_dataset_fhir_store(parent, fhir_store_object = nil, fhir_store_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1616
+ command = make_simple_command(:post, 'v1beta1/{+parent}/fhirStores', options)
1617
+ command.request_representation = Google::Apis::HealthcareV1beta1::FhirStore::Representation
1618
+ command.request_object = fhir_store_object
1619
+ command.response_representation = Google::Apis::HealthcareV1beta1::FhirStore::Representation
1620
+ command.response_class = Google::Apis::HealthcareV1beta1::FhirStore
1621
+ command.params['parent'] = parent unless parent.nil?
1622
+ command.query['fhirStoreId'] = fhir_store_id unless fhir_store_id.nil?
1623
+ command.query['fields'] = fields unless fields.nil?
1624
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1625
+ execute_or_queue_command(command, &block)
1626
+ end
1627
+
1628
+ # Deletes the specified FHIR store and removes all resources within it.
1629
+ # @param [String] name
1630
+ # The resource name of the FHIR store to delete.
1631
+ # @param [String] fields
1632
+ # Selector specifying which fields to include in a partial response.
1633
+ # @param [String] quota_user
1634
+ # Available to use for quota purposes for server-side applications. Can be any
1635
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1636
+ # @param [Google::Apis::RequestOptions] options
1637
+ # Request-specific options
1638
+ #
1639
+ # @yield [result, err] Result & error if block supplied
1640
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object
1641
+ # @yieldparam err [StandardError] error object if request failed
1642
+ #
1643
+ # @return [Google::Apis::HealthcareV1beta1::Empty]
1644
+ #
1645
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1646
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1647
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1648
+ def delete_project_location_dataset_fhir_store(name, fields: nil, quota_user: nil, options: nil, &block)
1649
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
1650
+ command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
1651
+ command.response_class = Google::Apis::HealthcareV1beta1::Empty
1652
+ command.params['name'] = name unless name.nil?
1653
+ command.query['fields'] = fields unless fields.nil?
1654
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1655
+ execute_or_queue_command(command, &block)
1656
+ end
1657
+
1658
+ # Export resources from the FHIR store to the specified destination.
1659
+ # This method returns an Operation that can
1660
+ # be used to track the status of the export by calling
1661
+ # GetOperation.
1662
+ # Immediate fatal errors appear in the
1663
+ # error field.
1664
+ # Otherwise, when the operation finishes, a detailed response of type
1665
+ # ExportResourcesResponse is returned in the
1666
+ # response field.
1667
+ # The metadata field type for this
1668
+ # operation is OperationMetadata.
1669
+ # @param [String] name
1670
+ # The name of the FHIR store to export resource from. The name should be in
1671
+ # the format of
1672
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1673
+ # fhirStores/`fhir_store_id``.
1674
+ # @param [Google::Apis::HealthcareV1beta1::ExportResourcesRequest] export_resources_request_object
1675
+ # @param [String] fields
1676
+ # Selector specifying which fields to include in a partial response.
1677
+ # @param [String] quota_user
1678
+ # Available to use for quota purposes for server-side applications. Can be any
1679
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1680
+ # @param [Google::Apis::RequestOptions] options
1681
+ # Request-specific options
1682
+ #
1683
+ # @yield [result, err] Result & error if block supplied
1684
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Operation] parsed result object
1685
+ # @yieldparam err [StandardError] error object if request failed
1686
+ #
1687
+ # @return [Google::Apis::HealthcareV1beta1::Operation]
1688
+ #
1689
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1690
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1691
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1692
+ def export_fhir_store_resources(name, export_resources_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1693
+ command = make_simple_command(:post, 'v1beta1/{+name}:export', options)
1694
+ command.request_representation = Google::Apis::HealthcareV1beta1::ExportResourcesRequest::Representation
1695
+ command.request_object = export_resources_request_object
1696
+ command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation
1697
+ command.response_class = Google::Apis::HealthcareV1beta1::Operation
1698
+ command.params['name'] = name unless name.nil?
1699
+ command.query['fields'] = fields unless fields.nil?
1700
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1701
+ execute_or_queue_command(command, &block)
1702
+ end
1703
+
1704
+ # Gets the configuration of the specified FHIR store.
1705
+ # @param [String] name
1706
+ # The resource name of the FHIR store to get.
1707
+ # @param [String] fields
1708
+ # Selector specifying which fields to include in a partial response.
1709
+ # @param [String] quota_user
1710
+ # Available to use for quota purposes for server-side applications. Can be any
1711
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1712
+ # @param [Google::Apis::RequestOptions] options
1713
+ # Request-specific options
1714
+ #
1715
+ # @yield [result, err] Result & error if block supplied
1716
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::FhirStore] parsed result object
1717
+ # @yieldparam err [StandardError] error object if request failed
1718
+ #
1719
+ # @return [Google::Apis::HealthcareV1beta1::FhirStore]
1720
+ #
1721
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1722
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1723
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1724
+ def get_project_location_dataset_fhir_store(name, fields: nil, quota_user: nil, options: nil, &block)
1725
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
1726
+ command.response_representation = Google::Apis::HealthcareV1beta1::FhirStore::Representation
1727
+ command.response_class = Google::Apis::HealthcareV1beta1::FhirStore
1728
+ command.params['name'] = name unless name.nil?
1729
+ command.query['fields'] = fields unless fields.nil?
1730
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1731
+ execute_or_queue_command(command, &block)
1732
+ end
1733
+
1734
+ # Gets the access control policy for a resource.
1735
+ # Returns an empty policy if the resource exists and does not have a policy
1736
+ # set.
1737
+ # @param [String] resource
1738
+ # REQUIRED: The resource for which the policy is being requested.
1739
+ # See the operation documentation for the appropriate value for this field.
1740
+ # @param [String] fields
1741
+ # Selector specifying which fields to include in a partial response.
1742
+ # @param [String] quota_user
1743
+ # Available to use for quota purposes for server-side applications. Can be any
1744
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1745
+ # @param [Google::Apis::RequestOptions] options
1746
+ # Request-specific options
1747
+ #
1748
+ # @yield [result, err] Result & error if block supplied
1749
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Policy] parsed result object
1750
+ # @yieldparam err [StandardError] error object if request failed
1751
+ #
1752
+ # @return [Google::Apis::HealthcareV1beta1::Policy]
1753
+ #
1754
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1755
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1756
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1757
+ def get_project_location_dataset_fhir_store_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
1758
+ command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
1759
+ command.response_representation = Google::Apis::HealthcareV1beta1::Policy::Representation
1760
+ command.response_class = Google::Apis::HealthcareV1beta1::Policy
1761
+ command.params['resource'] = resource unless resource.nil?
1762
+ command.query['fields'] = fields unless fields.nil?
1763
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1764
+ execute_or_queue_command(command, &block)
1765
+ end
1766
+
1767
+ # Import resources to the FHIR store by loading data from the specified
1768
+ # sources. Each resource must have a client-supplied ID, which is retained
1769
+ # by the server.
1770
+ # The import operation is idempotent. Upon retry, the most recent data
1771
+ # (matching the client-supplied ID) is overwritten, without creating a new
1772
+ # resource version. If partial failures occur during the import, successful
1773
+ # changes are not rolled back.
1774
+ # If history imports are enabled
1775
+ # (enable_history_import is set in the
1776
+ # FHIR store's configuration), you can import historical versions of a
1777
+ # resource by supplying a bundle of type `history`. The historical versions
1778
+ # in the bundle must have `lastUpdated` timestamps. If a current or
1779
+ # historical version with the supplied resource ID already exists, the
1780
+ # bundle is rejected.
1781
+ # This method returns an Operation that can
1782
+ # be used to track the status of the import by calling
1783
+ # GetOperation.
1784
+ # Immediate fatal errors appear in the
1785
+ # error field.
1786
+ # Otherwise, when the operation finishes, a detailed response of type
1787
+ # ImportResourcesResponse is returned in the
1788
+ # response field.
1789
+ # The metadata field type for this
1790
+ # operation is OperationMetadata.
1791
+ # @param [String] name
1792
+ # The name of the FHIR store to import FHIR resources to. The name should be
1793
+ # in the format of
1794
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1795
+ # fhirStores/`fhir_store_id``.
1796
+ # @param [Google::Apis::HealthcareV1beta1::ImportResourcesRequest] import_resources_request_object
1797
+ # @param [String] fields
1798
+ # Selector specifying which fields to include in a partial response.
1799
+ # @param [String] quota_user
1800
+ # Available to use for quota purposes for server-side applications. Can be any
1801
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1802
+ # @param [Google::Apis::RequestOptions] options
1803
+ # Request-specific options
1804
+ #
1805
+ # @yield [result, err] Result & error if block supplied
1806
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Operation] parsed result object
1807
+ # @yieldparam err [StandardError] error object if request failed
1808
+ #
1809
+ # @return [Google::Apis::HealthcareV1beta1::Operation]
1810
+ #
1811
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1812
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1813
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1814
+ def import_fhir_store_resources(name, import_resources_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1815
+ command = make_simple_command(:post, 'v1beta1/{+name}:import', options)
1816
+ command.request_representation = Google::Apis::HealthcareV1beta1::ImportResourcesRequest::Representation
1817
+ command.request_object = import_resources_request_object
1818
+ command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation
1819
+ command.response_class = Google::Apis::HealthcareV1beta1::Operation
1820
+ command.params['name'] = name unless name.nil?
1821
+ command.query['fields'] = fields unless fields.nil?
1822
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1823
+ execute_or_queue_command(command, &block)
1824
+ end
1825
+
1826
+ # Lists the FHIR stores in the given dataset.
1827
+ # @param [String] parent
1828
+ # Name of the dataset.
1829
+ # @param [String] filter
1830
+ # Restricts stores returned to those matching a filter. Syntax:
1831
+ # https://cloud.google.com/appengine/docs/standard/python/search/query_strings
1832
+ # Only filtering on labels is supported, for example `labels.key=value`.
1833
+ # @param [Fixnum] page_size
1834
+ # Limit on the number of FHIR stores to return in a single response. If zero
1835
+ # the default page size of 100 is used.
1836
+ # @param [String] page_token
1837
+ # The next_page_token value returned from the previous List request, if any.
1838
+ # @param [String] fields
1839
+ # Selector specifying which fields to include in a partial response.
1840
+ # @param [String] quota_user
1841
+ # Available to use for quota purposes for server-side applications. Can be any
1842
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1843
+ # @param [Google::Apis::RequestOptions] options
1844
+ # Request-specific options
1845
+ #
1846
+ # @yield [result, err] Result & error if block supplied
1847
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ListFhirStoresResponse] parsed result object
1848
+ # @yieldparam err [StandardError] error object if request failed
1849
+ #
1850
+ # @return [Google::Apis::HealthcareV1beta1::ListFhirStoresResponse]
1851
+ #
1852
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1853
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1854
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1855
+ def list_project_location_dataset_fhir_stores(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1856
+ command = make_simple_command(:get, 'v1beta1/{+parent}/fhirStores', options)
1857
+ command.response_representation = Google::Apis::HealthcareV1beta1::ListFhirStoresResponse::Representation
1858
+ command.response_class = Google::Apis::HealthcareV1beta1::ListFhirStoresResponse
1859
+ command.params['parent'] = parent unless parent.nil?
1860
+ command.query['filter'] = filter unless filter.nil?
1861
+ command.query['pageSize'] = page_size unless page_size.nil?
1862
+ command.query['pageToken'] = page_token unless page_token.nil?
1863
+ command.query['fields'] = fields unless fields.nil?
1864
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1865
+ execute_or_queue_command(command, &block)
1866
+ end
1867
+
1868
+ # Updates the configuration of the specified FHIR store.
1869
+ # @param [String] name
1870
+ # Output only. Resource name of the FHIR store, of the form
1871
+ # `projects/`project_id`/datasets/`dataset_id`/fhirStores/`fhir_store_id``.
1872
+ # @param [Google::Apis::HealthcareV1beta1::FhirStore] fhir_store_object
1873
+ # @param [String] update_mask
1874
+ # The update mask applies to the resource. For the `FieldMask` definition,
1875
+ # see
1876
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
1877
+ # fieldmask
1878
+ # @param [String] fields
1879
+ # Selector specifying which fields to include in a partial response.
1880
+ # @param [String] quota_user
1881
+ # Available to use for quota purposes for server-side applications. Can be any
1882
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1883
+ # @param [Google::Apis::RequestOptions] options
1884
+ # Request-specific options
1885
+ #
1886
+ # @yield [result, err] Result & error if block supplied
1887
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::FhirStore] parsed result object
1888
+ # @yieldparam err [StandardError] error object if request failed
1889
+ #
1890
+ # @return [Google::Apis::HealthcareV1beta1::FhirStore]
1891
+ #
1892
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1893
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1894
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1895
+ def patch_project_location_dataset_fhir_store(name, fhir_store_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1896
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
1897
+ command.request_representation = Google::Apis::HealthcareV1beta1::FhirStore::Representation
1898
+ command.request_object = fhir_store_object
1899
+ command.response_representation = Google::Apis::HealthcareV1beta1::FhirStore::Representation
1900
+ command.response_class = Google::Apis::HealthcareV1beta1::FhirStore
1901
+ command.params['name'] = name unless name.nil?
1902
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1903
+ command.query['fields'] = fields unless fields.nil?
1904
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1905
+ execute_or_queue_command(command, &block)
1906
+ end
1907
+
1908
+ # Sets the access control policy on the specified resource. Replaces any
1909
+ # existing policy.
1910
+ # @param [String] resource
1911
+ # REQUIRED: The resource for which the policy is being specified.
1912
+ # See the operation documentation for the appropriate value for this field.
1913
+ # @param [Google::Apis::HealthcareV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
1914
+ # @param [String] fields
1915
+ # Selector specifying which fields to include in a partial response.
1916
+ # @param [String] quota_user
1917
+ # Available to use for quota purposes for server-side applications. Can be any
1918
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1919
+ # @param [Google::Apis::RequestOptions] options
1920
+ # Request-specific options
1921
+ #
1922
+ # @yield [result, err] Result & error if block supplied
1923
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Policy] parsed result object
1924
+ # @yieldparam err [StandardError] error object if request failed
1925
+ #
1926
+ # @return [Google::Apis::HealthcareV1beta1::Policy]
1927
+ #
1928
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1929
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1930
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1931
+ def set_fhir_store_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1932
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
1933
+ command.request_representation = Google::Apis::HealthcareV1beta1::SetIamPolicyRequest::Representation
1934
+ command.request_object = set_iam_policy_request_object
1935
+ command.response_representation = Google::Apis::HealthcareV1beta1::Policy::Representation
1936
+ command.response_class = Google::Apis::HealthcareV1beta1::Policy
1937
+ command.params['resource'] = resource unless resource.nil?
1938
+ command.query['fields'] = fields unless fields.nil?
1939
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1940
+ execute_or_queue_command(command, &block)
1941
+ end
1942
+
1943
+ # Returns permissions that a caller has on the specified resource.
1944
+ # If the resource does not exist, this will return an empty set of
1945
+ # permissions, not a NOT_FOUND error.
1946
+ # Note: This operation is designed to be used for building permission-aware
1947
+ # UIs and command-line tools, not for authorization checking. This operation
1948
+ # may "fail open" without warning.
1949
+ # @param [String] resource
1950
+ # REQUIRED: The resource for which the policy detail is being requested.
1951
+ # See the operation documentation for the appropriate value for this field.
1952
+ # @param [Google::Apis::HealthcareV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
1953
+ # @param [String] fields
1954
+ # Selector specifying which fields to include in a partial response.
1955
+ # @param [String] quota_user
1956
+ # Available to use for quota purposes for server-side applications. Can be any
1957
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1958
+ # @param [Google::Apis::RequestOptions] options
1959
+ # Request-specific options
1960
+ #
1961
+ # @yield [result, err] Result & error if block supplied
1962
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse] parsed result object
1963
+ # @yieldparam err [StandardError] error object if request failed
1964
+ #
1965
+ # @return [Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse]
1966
+ #
1967
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1968
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1969
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1970
+ def test_fhir_store_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1971
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
1972
+ command.request_representation = Google::Apis::HealthcareV1beta1::TestIamPermissionsRequest::Representation
1973
+ command.request_object = test_iam_permissions_request_object
1974
+ command.response_representation = Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse::Representation
1975
+ command.response_class = Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse
1976
+ command.params['resource'] = resource unless resource.nil?
1977
+ command.query['fields'] = fields unless fields.nil?
1978
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1979
+ execute_or_queue_command(command, &block)
1980
+ end
1981
+
1982
+ # Retrieves the N most recent `Observation` resources for a subject matching
1983
+ # search criteria specified as query parameters, grouped by
1984
+ # `Observation.code`, sorted from most recent to oldest.
1985
+ # Implements the FHIR extended operation
1986
+ # [Observation-lastn](http://hl7.org/implement/standards/fhir/STU3/observation-
1987
+ # operations.html#lastn).
1988
+ # Search terms are provided as query parameters following the same pattern as
1989
+ # the search method. This operation accepts an additional
1990
+ # query parameter `max`, which specifies N, the maximum number of
1991
+ # Observations to return from each group, with a default of 1.
1992
+ # On success, the response body will contain a JSON-encoded representation
1993
+ # of a `Bundle` resource of type `searchset`, containing the results of the
1994
+ # operation.
1995
+ # Errors generated by the FHIR store will contain a JSON-encoded
1996
+ # `OperationOutcome` resource describing the reason for the error. If the
1997
+ # request cannot be mapped to a valid API method on a FHIR store, a generic
1998
+ # GCP error might be returned instead.
1999
+ # @param [String] parent
2000
+ # Name of the FHIR store to retrieve resources from.
2001
+ # @param [String] fields
2002
+ # Selector specifying which fields to include in a partial response.
2003
+ # @param [String] quota_user
2004
+ # Available to use for quota purposes for server-side applications. Can be any
2005
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2006
+ # @param [Google::Apis::RequestOptions] options
2007
+ # Request-specific options
2008
+ #
2009
+ # @yield [result, err] Result & error if block supplied
2010
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
2011
+ # @yieldparam err [StandardError] error object if request failed
2012
+ #
2013
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
2014
+ #
2015
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2016
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2017
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2018
+ def observation_project_location_dataset_fhir_store_fhir_lastn(parent, fields: nil, quota_user: nil, options: nil, &block)
2019
+ command = make_simple_command(:get, 'v1beta1/{+parent}/fhir/Observation/$lastn', options)
2020
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2021
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
2022
+ command.params['parent'] = parent unless parent.nil?
2023
+ command.query['fields'] = fields unless fields.nil?
2024
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2025
+ execute_or_queue_command(command, &block)
2026
+ end
2027
+
2028
+ # Retrieves all the resources in the patient compartment for a `Patient`
2029
+ # resource.
2030
+ # Implements the FHIR extended operation
2031
+ # [Patient-everything](http://hl7.org/implement/standards/fhir/STU3/patient-
2032
+ # operations.html#everything).
2033
+ # On success, the response body will contain a JSON-encoded representation
2034
+ # of a `Bundle` resource of type `searchset`, containing the results of the
2035
+ # operation.
2036
+ # Errors generated by the FHIR store will contain a JSON-encoded
2037
+ # `OperationOutcome` resource describing the reason for the error. If the
2038
+ # request cannot be mapped to a valid API method on a FHIR store, a generic
2039
+ # GCP error might be returned instead.
2040
+ # @param [String] name
2041
+ # Name of the `Patient` resource for which the information is required.
2042
+ # @param [String] end_
2043
+ # The response includes records prior to the end date. If no end date is
2044
+ # provided, all records subsequent to the start date are in scope.
2045
+ # @param [String] start
2046
+ # The response includes records subsequent to the start date. If no start
2047
+ # date is provided, all records prior to the end date are in scope.
2048
+ # @param [String] fields
2049
+ # Selector specifying which fields to include in a partial response.
2050
+ # @param [String] quota_user
2051
+ # Available to use for quota purposes for server-side applications. Can be any
2052
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2053
+ # @param [Google::Apis::RequestOptions] options
2054
+ # Request-specific options
2055
+ #
2056
+ # @yield [result, err] Result & error if block supplied
2057
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
2058
+ # @yieldparam err [StandardError] error object if request failed
2059
+ #
2060
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
2061
+ #
2062
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2063
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2064
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2065
+ def patient_project_location_dataset_fhir_store_fhir_everything(name, end_: nil, start: nil, fields: nil, quota_user: nil, options: nil, &block)
2066
+ command = make_simple_command(:get, 'v1beta1/{+name}/$everything', options)
2067
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2068
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
2069
+ command.params['name'] = name unless name.nil?
2070
+ command.query['end'] = end_ unless end_.nil?
2071
+ command.query['start'] = start unless start.nil?
2072
+ command.query['fields'] = fields unless fields.nil?
2073
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2074
+ execute_or_queue_command(command, &block)
2075
+ end
2076
+
2077
+ # Deletes all the historical versions of a resource (excluding the current
2078
+ # version) from the FHIR store. To remove all versions of a resource, first
2079
+ # delete the current version and then call this method.
2080
+ # This is not a FHIR standard operation.
2081
+ # @param [String] name
2082
+ # The name of the resource to purge.
2083
+ # @param [String] fields
2084
+ # Selector specifying which fields to include in a partial response.
2085
+ # @param [String] quota_user
2086
+ # Available to use for quota purposes for server-side applications. Can be any
2087
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2088
+ # @param [Google::Apis::RequestOptions] options
2089
+ # Request-specific options
2090
+ #
2091
+ # @yield [result, err] Result & error if block supplied
2092
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object
2093
+ # @yieldparam err [StandardError] error object if request failed
2094
+ #
2095
+ # @return [Google::Apis::HealthcareV1beta1::Empty]
2096
+ #
2097
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2098
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2099
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2100
+ def resource_project_location_dataset_fhir_store_fhir_purge(name, fields: nil, quota_user: nil, options: nil, &block)
2101
+ command = make_simple_command(:delete, 'v1beta1/{+name}/$purge', options)
2102
+ command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
2103
+ command.response_class = Google::Apis::HealthcareV1beta1::Empty
2104
+ command.params['name'] = name unless name.nil?
2105
+ command.query['fields'] = fields unless fields.nil?
2106
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2107
+ execute_or_queue_command(command, &block)
2108
+ end
2109
+
2110
+ # Gets the FHIR [capability
2111
+ # statement](http://hl7.org/implement/standards/fhir/STU3/capabilitystatement.
2112
+ # html)
2113
+ # for the store, which contains a description of functionality supported by
2114
+ # the server.
2115
+ # Implements the FHIR standard [capabilities
2116
+ # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#
2117
+ # capabilities).
2118
+ # On success, the response body will contain a JSON-encoded representation
2119
+ # of a `CapabilityStatement` resource.
2120
+ # @param [String] name
2121
+ # Name of the FHIR store to retrieve the capabilities for.
2122
+ # @param [String] fields
2123
+ # Selector specifying which fields to include in a partial response.
2124
+ # @param [String] quota_user
2125
+ # Available to use for quota purposes for server-side applications. Can be any
2126
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2127
+ # @param [Google::Apis::RequestOptions] options
2128
+ # Request-specific options
2129
+ #
2130
+ # @yield [result, err] Result & error if block supplied
2131
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
2132
+ # @yieldparam err [StandardError] error object if request failed
2133
+ #
2134
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
2135
+ #
2136
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2137
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2138
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2139
+ def capabilities_project_location_dataset_fhir_store_fhir(name, fields: nil, quota_user: nil, options: nil, &block)
2140
+ command = make_simple_command(:get, 'v1beta1/{+name}/fhir/metadata', options)
2141
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2142
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
2143
+ command.params['name'] = name unless name.nil?
2144
+ command.query['fields'] = fields unless fields.nil?
2145
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2146
+ execute_or_queue_command(command, &block)
2147
+ end
2148
+
2149
+ # Deletes FHIR resources that match a search query.
2150
+ # Implements the FHIR standard [conditional delete
2151
+ # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.13.
2152
+ # 1).
2153
+ # If multiple resources match, all of them will be deleted.
2154
+ # Search terms are provided as query parameters following the same pattern as
2155
+ # the search method.
2156
+ # Note: Unless resource versioning is disabled by setting the
2157
+ # disable_resource_versioning flag
2158
+ # on the FHIR store, the deleted resources will be moved to a history
2159
+ # repository that can still be retrieved through vread
2160
+ # and related methods, unless they are removed by the
2161
+ # purge method.
2162
+ # @param [String] parent
2163
+ # The name of the FHIR store this resource belongs to.
2164
+ # @param [String] type
2165
+ # The type of the resource to delete.
2166
+ # @param [String] fields
2167
+ # Selector specifying which fields to include in a partial response.
2168
+ # @param [String] quota_user
2169
+ # Available to use for quota purposes for server-side applications. Can be any
2170
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2171
+ # @param [Google::Apis::RequestOptions] options
2172
+ # Request-specific options
2173
+ #
2174
+ # @yield [result, err] Result & error if block supplied
2175
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object
2176
+ # @yieldparam err [StandardError] error object if request failed
2177
+ #
2178
+ # @return [Google::Apis::HealthcareV1beta1::Empty]
2179
+ #
2180
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2181
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2182
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2183
+ def conditional_project_location_dataset_fhir_store_fhir_delete(parent, type, fields: nil, quota_user: nil, options: nil, &block)
2184
+ command = make_simple_command(:delete, 'v1beta1/{+parent}/fhir/{+type}', options)
2185
+ command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
2186
+ command.response_class = Google::Apis::HealthcareV1beta1::Empty
2187
+ command.params['parent'] = parent unless parent.nil?
2188
+ command.params['type'] = type unless type.nil?
2189
+ command.query['fields'] = fields unless fields.nil?
2190
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2191
+ execute_or_queue_command(command, &block)
2192
+ end
2193
+
2194
+ # If a resource is found based on the search criteria specified in the query
2195
+ # parameters, updates part of that resource by applying the operations
2196
+ # specified in a [JSON Patch](http://jsonpatch.com/) document.
2197
+ # Implements the FHIR standard [conditional patch
2198
+ # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#patch).
2199
+ # Search terms are provided as query parameters following the same pattern as
2200
+ # the search method.
2201
+ # If the search criteria identify more than one match, the request will
2202
+ # return a `412 Precondition Failed` error.
2203
+ # The request body must contain a JSON Patch document, and the request
2204
+ # headers must contain `Content-Type: application/json-patch+json`.
2205
+ # On success, the response body will contain a JSON-encoded representation
2206
+ # of the updated resource, including the server-assigned version ID.
2207
+ # Errors generated by the FHIR store will contain a JSON-encoded
2208
+ # `OperationOutcome` resource describing the reason for the error. If the
2209
+ # request cannot be mapped to a valid API method on a FHIR store, a generic
2210
+ # GCP error might be returned instead.
2211
+ # @param [String] parent
2212
+ # The name of the FHIR store this resource belongs to.
2213
+ # @param [String] type
2214
+ # The type of the resource to update.
2215
+ # @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_object
2216
+ # @param [String] fields
2217
+ # Selector specifying which fields to include in a partial response.
2218
+ # @param [String] quota_user
2219
+ # Available to use for quota purposes for server-side applications. Can be any
2220
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2221
+ # @param [Google::Apis::RequestOptions] options
2222
+ # Request-specific options
2223
+ #
2224
+ # @yield [result, err] Result & error if block supplied
2225
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
2226
+ # @yieldparam err [StandardError] error object if request failed
2227
+ #
2228
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
2229
+ #
2230
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2231
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2232
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2233
+ def conditional_project_location_dataset_fhir_store_fhir_patch(parent, type, http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2234
+ command = make_simple_command(:patch, 'v1beta1/{+parent}/fhir/{+type}', options)
2235
+ command.request_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2236
+ command.request_object = http_body_object
2237
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2238
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
2239
+ command.params['parent'] = parent unless parent.nil?
2240
+ command.params['type'] = type unless type.nil?
2241
+ command.query['fields'] = fields unless fields.nil?
2242
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2243
+ execute_or_queue_command(command, &block)
2244
+ end
2245
+
2246
+ # If a resource is found based on the search criteria specified in the query
2247
+ # parameters, updates the entire contents of that resource.
2248
+ # Implements the FHIR standard [conditional update
2249
+ # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#cond-
2250
+ # update).
2251
+ # Search terms are provided as query parameters following the same pattern as
2252
+ # the search method.
2253
+ # If the search criteria identify more than one match, the request will
2254
+ # return a `412 Precondition Failed` error.
2255
+ # If the search criteria identify zero matches, and the supplied resource
2256
+ # body contains an `id`, and the FHIR store has
2257
+ # enable_update_create set, creates the
2258
+ # resource with the client-specified ID. If the search criteria identify zero
2259
+ # matches, and the supplied resource body does not contain an `id`, the
2260
+ # resource will be created with a server-assigned ID as per the
2261
+ # create method.
2262
+ # The request body must contain a JSON-encoded FHIR resource, and the request
2263
+ # headers must contain `Content-Type: application/fhir+json`.
2264
+ # On success, the response body will contain a JSON-encoded representation
2265
+ # of the updated resource, including the server-assigned version ID.
2266
+ # Errors generated by the FHIR store will contain a JSON-encoded
2267
+ # `OperationOutcome` resource describing the reason for the error. If the
2268
+ # request cannot be mapped to a valid API method on a FHIR store, a generic
2269
+ # GCP error might be returned instead.
2270
+ # @param [String] parent
2271
+ # The name of the FHIR store this resource belongs to.
2272
+ # @param [String] type
2273
+ # The type of the resource to update.
2274
+ # @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_object
2275
+ # @param [String] fields
2276
+ # Selector specifying which fields to include in a partial response.
2277
+ # @param [String] quota_user
2278
+ # Available to use for quota purposes for server-side applications. Can be any
2279
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2280
+ # @param [Google::Apis::RequestOptions] options
2281
+ # Request-specific options
2282
+ #
2283
+ # @yield [result, err] Result & error if block supplied
2284
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
2285
+ # @yieldparam err [StandardError] error object if request failed
2286
+ #
2287
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
2288
+ #
2289
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2290
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2291
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2292
+ def conditional_project_location_dataset_fhir_store_fhir_update(parent, type, http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2293
+ command = make_simple_command(:put, 'v1beta1/{+parent}/fhir/{+type}', options)
2294
+ command.request_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2295
+ command.request_object = http_body_object
2296
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2297
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
2298
+ command.params['parent'] = parent unless parent.nil?
2299
+ command.params['type'] = type unless type.nil?
2300
+ command.query['fields'] = fields unless fields.nil?
2301
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2302
+ execute_or_queue_command(command, &block)
2303
+ end
2304
+
2305
+ # Creates a FHIR resource.
2306
+ # Implements the FHIR standard [create
2307
+ # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#create),
2308
+ # which creates a new resource with a server-assigned resource ID.
2309
+ # Also supports the FHIR standard [conditional create
2310
+ # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#ccreate),
2311
+ # specified by supplying an `If-None-Exist` header containing a FHIR search
2312
+ # query. If no resources match this search query, the server processes the
2313
+ # create operation as normal.
2314
+ # The request body must contain a JSON-encoded FHIR resource, and the request
2315
+ # headers must contain `Content-Type: application/fhir+json`.
2316
+ # On success, the response body will contain a JSON-encoded representation
2317
+ # of the resource as it was created on the server, including the
2318
+ # server-assigned resource ID and version ID.
2319
+ # Errors generated by the FHIR store will contain a JSON-encoded
2320
+ # `OperationOutcome` resource describing the reason for the error. If the
2321
+ # request cannot be mapped to a valid API method on a FHIR store, a generic
2322
+ # GCP error might be returned instead.
2323
+ # @param [String] parent
2324
+ # The name of the FHIR store this resource belongs to.
2325
+ # @param [String] type
2326
+ # The type of the resource to create.
2327
+ # @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_object
2328
+ # @param [String] fields
2329
+ # Selector specifying which fields to include in a partial response.
2330
+ # @param [String] quota_user
2331
+ # Available to use for quota purposes for server-side applications. Can be any
2332
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2333
+ # @param [Google::Apis::RequestOptions] options
2334
+ # Request-specific options
2335
+ #
2336
+ # @yield [result, err] Result & error if block supplied
2337
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
2338
+ # @yieldparam err [StandardError] error object if request failed
2339
+ #
2340
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
2341
+ #
2342
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2343
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2344
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2345
+ def create_project_location_dataset_fhir_store_fhir(parent, type, http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2346
+ command = make_simple_command(:post, 'v1beta1/{+parent}/fhir/{+type}', options)
2347
+ command.request_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2348
+ command.request_object = http_body_object
2349
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2350
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
2351
+ command.params['parent'] = parent unless parent.nil?
2352
+ command.params['type'] = type unless type.nil?
2353
+ command.query['fields'] = fields unless fields.nil?
2354
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2355
+ execute_or_queue_command(command, &block)
2356
+ end
2357
+
2358
+ # Deletes a FHIR resource.
2359
+ # Implements the FHIR standard [delete
2360
+ # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#delete).
2361
+ # Note: Unless resource versioning is disabled by setting the
2362
+ # disable_resource_versioning flag
2363
+ # on the FHIR store, the deleted resources will be moved to a history
2364
+ # repository that can still be retrieved through vread
2365
+ # and related methods, unless they are removed by the
2366
+ # purge method.
2367
+ # @param [String] name
2368
+ # The name of the resource to delete.
2369
+ # @param [String] fields
2370
+ # Selector specifying which fields to include in a partial response.
2371
+ # @param [String] quota_user
2372
+ # Available to use for quota purposes for server-side applications. Can be any
2373
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2374
+ # @param [Google::Apis::RequestOptions] options
2375
+ # Request-specific options
2376
+ #
2377
+ # @yield [result, err] Result & error if block supplied
2378
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
2379
+ # @yieldparam err [StandardError] error object if request failed
2380
+ #
2381
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
2382
+ #
2383
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2384
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2385
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2386
+ def delete_project_location_dataset_fhir_store_fhir(name, fields: nil, quota_user: nil, options: nil, &block)
2387
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
2388
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2389
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
2390
+ command.params['name'] = name unless name.nil?
2391
+ command.query['fields'] = fields unless fields.nil?
2392
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2393
+ execute_or_queue_command(command, &block)
2394
+ end
2395
+
2396
+ # Executes all the requests in the given Bundle.
2397
+ # Implements the FHIR standard [batch/transaction
2398
+ # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#
2399
+ # transaction).
2400
+ # Supports all interactions within a bundle, except search. This method
2401
+ # accepts Bundles of type `batch` and `transaction`, processing them
2402
+ # according to the [batch processing
2403
+ # rules](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.1)
2404
+ # and [transaction processing
2405
+ # rules](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.2).
2406
+ # The request body must contain a JSON-encoded FHIR `Bundle` resource, and
2407
+ # the request headers must contain `Content-Type: application/fhir+json`.
2408
+ # For a batch bundle or a successful transaction the response body will
2409
+ # contain a JSON-encoded representation of a `Bundle` resource of type
2410
+ # `batch-response` or `transaction-response` containing one entry for each
2411
+ # entry in the request, with the outcome of processing the entry. In the
2412
+ # case of an error for a transaction bundle, the response body will contain
2413
+ # a JSON-encoded `OperationOutcome` resource describing the reason for the
2414
+ # error. If the request cannot be mapped to a valid API method on a FHIR
2415
+ # store, a generic GCP error might be returned instead.
2416
+ # @param [String] parent
2417
+ # Name of the FHIR store in which this bundle will be executed.
2418
+ # @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_object
2419
+ # @param [String] fields
2420
+ # Selector specifying which fields to include in a partial response.
2421
+ # @param [String] quota_user
2422
+ # Available to use for quota purposes for server-side applications. Can be any
2423
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2424
+ # @param [Google::Apis::RequestOptions] options
2425
+ # Request-specific options
2426
+ #
2427
+ # @yield [result, err] Result & error if block supplied
2428
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
2429
+ # @yieldparam err [StandardError] error object if request failed
2430
+ #
2431
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
2432
+ #
2433
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2434
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2435
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2436
+ def execute_project_location_dataset_fhir_store_fhir_bundle(parent, http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2437
+ command = make_simple_command(:post, 'v1beta1/{+parent}/fhir', options)
2438
+ command.request_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2439
+ command.request_object = http_body_object
2440
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2441
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
2442
+ command.params['parent'] = parent unless parent.nil?
2443
+ command.query['fields'] = fields unless fields.nil?
2444
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2445
+ execute_or_queue_command(command, &block)
2446
+ end
2447
+
2448
+ # Lists all the versions of a resource (including the current version and
2449
+ # deleted versions) from the FHIR store.
2450
+ # Implements the per-resource form of the FHIR standard [history
2451
+ # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#history).
2452
+ # On success, the response body will contain a JSON-encoded representation
2453
+ # of a `Bundle` resource of type `history`, containing the version history
2454
+ # sorted from most recent to oldest versions.
2455
+ # Errors generated by the FHIR store will contain a JSON-encoded
2456
+ # `OperationOutcome` resource describing the reason for the error. If the
2457
+ # request cannot be mapped to a valid API method on a FHIR store, a generic
2458
+ # GCP error might be returned instead.
2459
+ # @param [String] name
2460
+ # The name of the resource to retrieve.
2461
+ # @param [String] at
2462
+ # Only include resource versions that were current at some point during the
2463
+ # time period specified in the date time value. The date parameter format is
2464
+ # yyyy-mm-ddThh:mm:ss[Z|(+|-)hh:mm]
2465
+ # Clients may specify any of the following:
2466
+ # * An entire year: `_at=2019`
2467
+ # * An entire month: `_at=2019-01`
2468
+ # * A specific day: `_at=2019-01-20`
2469
+ # * A specific second: `_at=2018-12-31T23:59:58Z`
2470
+ # @param [Fixnum] count
2471
+ # The maximum number of search results on a page. Defaults to 1000.
2472
+ # @param [String] page
2473
+ # Used to retrieve the first, previous, next, or last page of resource
2474
+ # versions when using pagination. Value should be set to the value of the
2475
+ # `link.url` field returned in the response to the previous request, where
2476
+ # `link.relation` is "first", "previous", "next" or "last".
2477
+ # Omit `page` if no previous request has been made.
2478
+ # @param [String] since
2479
+ # Only include resource versions that were created at or after the given
2480
+ # instant in time. The instant in time uses the format
2481
+ # YYYY-MM-DDThh:mm:ss.sss+zz:zz (for example 2015-02-07T13:28:17.239+02:00 or
2482
+ # 2017-01-01T00:00:00Z). The time must be specified to the second and
2483
+ # include a time zone.
2484
+ # @param [String] fields
2485
+ # Selector specifying which fields to include in a partial response.
2486
+ # @param [String] quota_user
2487
+ # Available to use for quota purposes for server-side applications. Can be any
2488
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2489
+ # @param [Google::Apis::RequestOptions] options
2490
+ # Request-specific options
2491
+ #
2492
+ # @yield [result, err] Result & error if block supplied
2493
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
2494
+ # @yieldparam err [StandardError] error object if request failed
2495
+ #
2496
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
2497
+ #
2498
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2499
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2500
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2501
+ 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)
2502
+ command = make_simple_command(:get, 'v1beta1/{+name}/_history', options)
2503
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2504
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
2505
+ command.params['name'] = name unless name.nil?
2506
+ command.query['at'] = at unless at.nil?
2507
+ command.query['count'] = count unless count.nil?
2508
+ command.query['page'] = page unless page.nil?
2509
+ command.query['since'] = since unless since.nil?
2510
+ command.query['fields'] = fields unless fields.nil?
2511
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2512
+ execute_or_queue_command(command, &block)
2513
+ end
2514
+
2515
+ # Updates part of an existing resource by applying the operations specified
2516
+ # in a [JSON Patch](http://jsonpatch.com/) document.
2517
+ # Implements the FHIR standard [patch
2518
+ # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#patch).
2519
+ # The request body must contain a JSON Patch document, and the request
2520
+ # headers must contain `Content-Type: application/json-patch+json`.
2521
+ # On success, the response body will contain a JSON-encoded representation
2522
+ # of the updated resource, including the server-assigned version ID.
2523
+ # Errors generated by the FHIR store will contain a JSON-encoded
2524
+ # `OperationOutcome` resource describing the reason for the error. If the
2525
+ # request cannot be mapped to a valid API method on a FHIR store, a generic
2526
+ # GCP error might be returned instead.
2527
+ # @param [String] name
2528
+ # The name of the resource to update.
2529
+ # @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_object
2530
+ # @param [String] fields
2531
+ # Selector specifying which fields to include in a partial response.
2532
+ # @param [String] quota_user
2533
+ # Available to use for quota purposes for server-side applications. Can be any
2534
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2535
+ # @param [Google::Apis::RequestOptions] options
2536
+ # Request-specific options
2537
+ #
2538
+ # @yield [result, err] Result & error if block supplied
2539
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
2540
+ # @yieldparam err [StandardError] error object if request failed
2541
+ #
2542
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
2543
+ #
2544
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2545
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2546
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2547
+ def patch_project_location_dataset_fhir_store_fhir(name, http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2548
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
2549
+ command.request_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2550
+ command.request_object = http_body_object
2551
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2552
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
2553
+ command.params['name'] = name unless name.nil?
2554
+ command.query['fields'] = fields unless fields.nil?
2555
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2556
+ execute_or_queue_command(command, &block)
2557
+ end
2558
+
2559
+ # Gets the contents of a FHIR resource.
2560
+ # Implements the FHIR standard [read
2561
+ # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#read).
2562
+ # Also supports the FHIR standard [conditional read
2563
+ # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#cread)
2564
+ # specified by supplying an `If-Modified-Since` header with a date/time value
2565
+ # or an `If-None-Match` header with an ETag value.
2566
+ # On success, the response body will contain a JSON-encoded representation
2567
+ # of the resource.
2568
+ # Errors generated by the FHIR store will contain a JSON-encoded
2569
+ # `OperationOutcome` resource describing the reason for the error. If the
2570
+ # request cannot be mapped to a valid API method on a FHIR store, a generic
2571
+ # GCP error might be returned instead.
2572
+ # @param [String] name
2573
+ # The name of the resource to retrieve.
2574
+ # @param [String] fields
2575
+ # Selector specifying which fields to include in a partial response.
2576
+ # @param [String] quota_user
2577
+ # Available to use for quota purposes for server-side applications. Can be any
2578
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2579
+ # @param [Google::Apis::RequestOptions] options
2580
+ # Request-specific options
2581
+ #
2582
+ # @yield [result, err] Result & error if block supplied
2583
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
2584
+ # @yieldparam err [StandardError] error object if request failed
2585
+ #
2586
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
2587
+ #
2588
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2589
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2590
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2591
+ def read_project_location_dataset_fhir_store_fhir(name, fields: nil, quota_user: nil, options: nil, &block)
2592
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
2593
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2594
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
2595
+ command.params['name'] = name unless name.nil?
2596
+ command.query['fields'] = fields unless fields.nil?
2597
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2598
+ execute_or_queue_command(command, &block)
2599
+ end
2600
+
2601
+ # Searches for resources in the given FHIR store according to criteria
2602
+ # specified as query parameters.
2603
+ # Implements the FHIR standard [search
2604
+ # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#search)
2605
+ # using the search semantics described in the [FHIR Search
2606
+ # specification](http://hl7.org/implement/standards/fhir/STU3/search.html).
2607
+ # Supports three methods of search defined by the specification:
2608
+ # * `GET [base]?[parameters]` to search across all resources.
2609
+ # * `GET [base]/[type]?[parameters]` to search resources of a specified
2610
+ # type.
2611
+ # * `POST [base]/[type]/_search?[parameters]` as an alternate form having
2612
+ # the same semantics as the `GET` method.
2613
+ # The `GET` methods do not support compartment searches. The `POST` method
2614
+ # does not support `application/x-www-form-urlencoded` search parameters.
2615
+ # On success, the response body will contain a JSON-encoded representation
2616
+ # of a `Bundle` resource of type `searchset`, containing the results of the
2617
+ # search.
2618
+ # Errors generated by the FHIR store will contain a JSON-encoded
2619
+ # `OperationOutcome` resource describing the reason for the error. If the
2620
+ # request cannot be mapped to a valid API method on a FHIR store, a generic
2621
+ # GCP error might be returned instead.
2622
+ # # Search Parameters
2623
+ # The server's capability statement, retrieved through
2624
+ # capabilities, indicates what search parameters
2625
+ # are supported on each FHIR resource. A list of all search parameters
2626
+ # defined by the specification can be found in the [FHIR Search Parameter
2627
+ # Registry](http://hl7.org/implement/standards/fhir/STU3/searchparameter-
2628
+ # registry.html).
2629
+ # # Search Modifiers
2630
+ # Modifier | Supported
2631
+ # ----------- | ---------
2632
+ # `:missing` | Yes
2633
+ # `:exact` | Yes
2634
+ # `:contains` | Yes
2635
+ # `:text` | Yes
2636
+ # `:in` | Yes
2637
+ # `:not-in` | Yes
2638
+ # `:above` | Yes
2639
+ # `:below` | Yes
2640
+ # `:[type]` | Yes
2641
+ # `:not` | Yes
2642
+ # `:recurse` | No
2643
+ # @param [String] parent
2644
+ # Name of the FHIR store to retrieve resources from.
2645
+ # @param [Google::Apis::HealthcareV1beta1::SearchResourcesRequest] search_resources_request_object
2646
+ # @param [String] fields
2647
+ # Selector specifying which fields to include in a partial response.
2648
+ # @param [String] quota_user
2649
+ # Available to use for quota purposes for server-side applications. Can be any
2650
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2651
+ # @param [Google::Apis::RequestOptions] options
2652
+ # Request-specific options
2653
+ #
2654
+ # @yield [result, err] Result & error if block supplied
2655
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
2656
+ # @yieldparam err [StandardError] error object if request failed
2657
+ #
2658
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
2659
+ #
2660
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2661
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2662
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2663
+ def search_fhir_resources(parent, search_resources_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2664
+ command = make_simple_command(:post, 'v1beta1/{+parent}/fhir/_search', options)
2665
+ command.request_representation = Google::Apis::HealthcareV1beta1::SearchResourcesRequest::Representation
2666
+ command.request_object = search_resources_request_object
2667
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2668
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
2669
+ command.params['parent'] = parent unless parent.nil?
2670
+ command.query['fields'] = fields unless fields.nil?
2671
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2672
+ execute_or_queue_command(command, &block)
2673
+ end
2674
+
2675
+ # Updates the entire contents of a resource.
2676
+ # Implements the FHIR standard [update
2677
+ # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#update).
2678
+ # If the specified resource does
2679
+ # not exist and the FHIR store has
2680
+ # enable_update_create set, creates the
2681
+ # resource with the client-specified ID.
2682
+ # The request body must contain a JSON-encoded FHIR resource, and the request
2683
+ # headers must contain `Content-Type: application/fhir+json`. The resource
2684
+ # must contain an `id` element having an identical value to the ID in the
2685
+ # REST path of the request.
2686
+ # On success, the response body will contain a JSON-encoded representation
2687
+ # of the updated resource, including the server-assigned version ID.
2688
+ # Errors generated by the FHIR store will contain a JSON-encoded
2689
+ # `OperationOutcome` resource describing the reason for the error. If the
2690
+ # request cannot be mapped to a valid API method on a FHIR store, a generic
2691
+ # GCP error might be returned instead.
2692
+ # @param [String] name
2693
+ # The name of the resource to update.
2694
+ # @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_object
2695
+ # @param [String] fields
2696
+ # Selector specifying which fields to include in a partial response.
2697
+ # @param [String] quota_user
2698
+ # Available to use for quota purposes for server-side applications. Can be any
2699
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2700
+ # @param [Google::Apis::RequestOptions] options
2701
+ # Request-specific options
2702
+ #
2703
+ # @yield [result, err] Result & error if block supplied
2704
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
2705
+ # @yieldparam err [StandardError] error object if request failed
2706
+ #
2707
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
2708
+ #
2709
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2710
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2711
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2712
+ def update_project_location_dataset_fhir_store_fhir(name, http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2713
+ command = make_simple_command(:put, 'v1beta1/{+name}', options)
2714
+ command.request_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2715
+ command.request_object = http_body_object
2716
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2717
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
2718
+ command.params['name'] = name unless name.nil?
2719
+ command.query['fields'] = fields unless fields.nil?
2720
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2721
+ execute_or_queue_command(command, &block)
2722
+ end
2723
+
2724
+ # Gets the contents of a version (current or historical) of a FHIR resource
2725
+ # by version ID.
2726
+ # Implements the FHIR standard [vread
2727
+ # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#vread).
2728
+ # On success, the response body will contain a JSON-encoded representation
2729
+ # of the resource.
2730
+ # Errors generated by the FHIR store will contain a JSON-encoded
2731
+ # `OperationOutcome` resource describing the reason for the error. If the
2732
+ # request cannot be mapped to a valid API method on a FHIR store, a generic
2733
+ # GCP error might be returned instead.
2734
+ # @param [String] name
2735
+ # The name of the resource version to retrieve.
2736
+ # @param [String] fields
2737
+ # Selector specifying which fields to include in a partial response.
2738
+ # @param [String] quota_user
2739
+ # Available to use for quota purposes for server-side applications. Can be any
2740
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2741
+ # @param [Google::Apis::RequestOptions] options
2742
+ # Request-specific options
2743
+ #
2744
+ # @yield [result, err] Result & error if block supplied
2745
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
2746
+ # @yieldparam err [StandardError] error object if request failed
2747
+ #
2748
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
2749
+ #
2750
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2751
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2752
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2753
+ def vread_project_location_dataset_fhir_store_fhir(name, fields: nil, quota_user: nil, options: nil, &block)
2754
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
2755
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2756
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
2757
+ command.params['name'] = name unless name.nil?
2758
+ command.query['fields'] = fields unless fields.nil?
2759
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2760
+ execute_or_queue_command(command, &block)
2761
+ end
2762
+
2763
+ # Creates a new HL7v2 store within the parent dataset.
2764
+ # @param [String] parent
2765
+ # The name of the dataset this HL7v2 store belongs to.
2766
+ # @param [Google::Apis::HealthcareV1beta1::Hl7V2Store] hl7_v2_store_object
2767
+ # @param [String] hl7_v2_store_id
2768
+ # The ID of the HL7v2 store that is being created.
2769
+ # The string must match the following regex: `[\p`L`\p`N`_\-\.]`1,256``.
2770
+ # @param [String] fields
2771
+ # Selector specifying which fields to include in a partial response.
2772
+ # @param [String] quota_user
2773
+ # Available to use for quota purposes for server-side applications. Can be any
2774
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2775
+ # @param [Google::Apis::RequestOptions] options
2776
+ # Request-specific options
2777
+ #
2778
+ # @yield [result, err] Result & error if block supplied
2779
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Hl7V2Store] parsed result object
2780
+ # @yieldparam err [StandardError] error object if request failed
2781
+ #
2782
+ # @return [Google::Apis::HealthcareV1beta1::Hl7V2Store]
2783
+ #
2784
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2785
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2786
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2787
+ 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)
2788
+ command = make_simple_command(:post, 'v1beta1/{+parent}/hl7V2Stores', options)
2789
+ command.request_representation = Google::Apis::HealthcareV1beta1::Hl7V2Store::Representation
2790
+ command.request_object = hl7_v2_store_object
2791
+ command.response_representation = Google::Apis::HealthcareV1beta1::Hl7V2Store::Representation
2792
+ command.response_class = Google::Apis::HealthcareV1beta1::Hl7V2Store
2793
+ command.params['parent'] = parent unless parent.nil?
2794
+ command.query['hl7V2StoreId'] = hl7_v2_store_id unless hl7_v2_store_id.nil?
2795
+ command.query['fields'] = fields unless fields.nil?
2796
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2797
+ execute_or_queue_command(command, &block)
2798
+ end
2799
+
2800
+ # Deletes the specified HL7v2 store and removes all messages that are
2801
+ # contained within it.
2802
+ # @param [String] name
2803
+ # The resource name of the HL7v2 store to delete.
2804
+ # @param [String] fields
2805
+ # Selector specifying which fields to include in a partial response.
2806
+ # @param [String] quota_user
2807
+ # Available to use for quota purposes for server-side applications. Can be any
2808
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2809
+ # @param [Google::Apis::RequestOptions] options
2810
+ # Request-specific options
2811
+ #
2812
+ # @yield [result, err] Result & error if block supplied
2813
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object
2814
+ # @yieldparam err [StandardError] error object if request failed
2815
+ #
2816
+ # @return [Google::Apis::HealthcareV1beta1::Empty]
2817
+ #
2818
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2819
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2820
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2821
+ def delete_project_location_dataset_hl7_v2_store(name, fields: nil, quota_user: nil, options: nil, &block)
2822
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
2823
+ command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
2824
+ command.response_class = Google::Apis::HealthcareV1beta1::Empty
2825
+ command.params['name'] = name unless name.nil?
2826
+ command.query['fields'] = fields unless fields.nil?
2827
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2828
+ execute_or_queue_command(command, &block)
2829
+ end
2830
+
2831
+ # Gets the specified HL7v2 store.
2832
+ # @param [String] name
2833
+ # The resource name of the HL7v2 store to get.
2834
+ # @param [String] fields
2835
+ # Selector specifying which fields to include in a partial response.
2836
+ # @param [String] quota_user
2837
+ # Available to use for quota purposes for server-side applications. Can be any
2838
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2839
+ # @param [Google::Apis::RequestOptions] options
2840
+ # Request-specific options
2841
+ #
2842
+ # @yield [result, err] Result & error if block supplied
2843
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Hl7V2Store] parsed result object
2844
+ # @yieldparam err [StandardError] error object if request failed
2845
+ #
2846
+ # @return [Google::Apis::HealthcareV1beta1::Hl7V2Store]
2847
+ #
2848
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2849
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2850
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2851
+ def get_project_location_dataset_hl7_v2_store(name, fields: nil, quota_user: nil, options: nil, &block)
2852
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
2853
+ command.response_representation = Google::Apis::HealthcareV1beta1::Hl7V2Store::Representation
2854
+ command.response_class = Google::Apis::HealthcareV1beta1::Hl7V2Store
2855
+ command.params['name'] = name unless name.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
+ # Gets the access control policy for a resource.
2862
+ # Returns an empty policy if the resource exists and does not have a policy
2863
+ # set.
2864
+ # @param [String] resource
2865
+ # REQUIRED: The resource for which the policy is being requested.
2866
+ # See the operation documentation for the appropriate value for this field.
2867
+ # @param [String] fields
2868
+ # Selector specifying which fields to include in a partial response.
2869
+ # @param [String] quota_user
2870
+ # Available to use for quota purposes for server-side applications. Can be any
2871
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2872
+ # @param [Google::Apis::RequestOptions] options
2873
+ # Request-specific options
2874
+ #
2875
+ # @yield [result, err] Result & error if block supplied
2876
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Policy] parsed result object
2877
+ # @yieldparam err [StandardError] error object if request failed
2878
+ #
2879
+ # @return [Google::Apis::HealthcareV1beta1::Policy]
2880
+ #
2881
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2882
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2883
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2884
+ def get_project_location_dataset_hl7_v2_store_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
2885
+ command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
2886
+ command.response_representation = Google::Apis::HealthcareV1beta1::Policy::Representation
2887
+ command.response_class = Google::Apis::HealthcareV1beta1::Policy
2888
+ command.params['resource'] = resource unless resource.nil?
2889
+ command.query['fields'] = fields unless fields.nil?
2890
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2891
+ execute_or_queue_command(command, &block)
2892
+ end
2893
+
2894
+ # Lists the HL7v2 stores in the given dataset.
2895
+ # @param [String] parent
2896
+ # Name of the dataset.
2897
+ # @param [String] filter
2898
+ # Restricts stores returned to those matching a filter. Syntax:
2899
+ # https://cloud.google.com/appengine/docs/standard/python/search/query_strings
2900
+ # Only filtering on labels is supported, for example `labels.key=value`.
2901
+ # @param [Fixnum] page_size
2902
+ # Limit on the number of HL7v2 stores to return in a single response.
2903
+ # If zero the default page size of 100 is used.
2904
+ # @param [String] page_token
2905
+ # The next_page_token value returned from the previous List request, if any.
2906
+ # @param [String] fields
2907
+ # Selector specifying which fields to include in a partial response.
2908
+ # @param [String] quota_user
2909
+ # Available to use for quota purposes for server-side applications. Can be any
2910
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2911
+ # @param [Google::Apis::RequestOptions] options
2912
+ # Request-specific options
2913
+ #
2914
+ # @yield [result, err] Result & error if block supplied
2915
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ListHl7V2StoresResponse] parsed result object
2916
+ # @yieldparam err [StandardError] error object if request failed
2917
+ #
2918
+ # @return [Google::Apis::HealthcareV1beta1::ListHl7V2StoresResponse]
2919
+ #
2920
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2921
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2922
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2923
+ 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)
2924
+ command = make_simple_command(:get, 'v1beta1/{+parent}/hl7V2Stores', options)
2925
+ command.response_representation = Google::Apis::HealthcareV1beta1::ListHl7V2StoresResponse::Representation
2926
+ command.response_class = Google::Apis::HealthcareV1beta1::ListHl7V2StoresResponse
2927
+ command.params['parent'] = parent unless parent.nil?
2928
+ command.query['filter'] = filter unless filter.nil?
2929
+ command.query['pageSize'] = page_size unless page_size.nil?
2930
+ command.query['pageToken'] = page_token unless page_token.nil?
2931
+ command.query['fields'] = fields unless fields.nil?
2932
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2933
+ execute_or_queue_command(command, &block)
2934
+ end
2935
+
2936
+ # Updates the HL7v2 store.
2937
+ # @param [String] name
2938
+ # Output only. Resource name of the HL7v2 store, of the form
2939
+ # `projects/`project_id`/datasets/`dataset_id`/hl7V2Stores/`hl7v2_store_id``.
2940
+ # @param [Google::Apis::HealthcareV1beta1::Hl7V2Store] hl7_v2_store_object
2941
+ # @param [String] update_mask
2942
+ # The update mask applies to the resource. For the `FieldMask` definition,
2943
+ # see
2944
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
2945
+ # fieldmask
2946
+ # @param [String] fields
2947
+ # Selector specifying which fields to include in a partial response.
2948
+ # @param [String] quota_user
2949
+ # Available to use for quota purposes for server-side applications. Can be any
2950
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2951
+ # @param [Google::Apis::RequestOptions] options
2952
+ # Request-specific options
2953
+ #
2954
+ # @yield [result, err] Result & error if block supplied
2955
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Hl7V2Store] parsed result object
2956
+ # @yieldparam err [StandardError] error object if request failed
2957
+ #
2958
+ # @return [Google::Apis::HealthcareV1beta1::Hl7V2Store]
2959
+ #
2960
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2961
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2962
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2963
+ 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)
2964
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
2965
+ command.request_representation = Google::Apis::HealthcareV1beta1::Hl7V2Store::Representation
2966
+ command.request_object = hl7_v2_store_object
2967
+ command.response_representation = Google::Apis::HealthcareV1beta1::Hl7V2Store::Representation
2968
+ command.response_class = Google::Apis::HealthcareV1beta1::Hl7V2Store
2969
+ command.params['name'] = name unless name.nil?
2970
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2971
+ command.query['fields'] = fields unless fields.nil?
2972
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2973
+ execute_or_queue_command(command, &block)
2974
+ end
2975
+
2976
+ # Sets the access control policy on the specified resource. Replaces any
2977
+ # existing policy.
2978
+ # @param [String] resource
2979
+ # REQUIRED: The resource for which the policy is being specified.
2980
+ # See the operation documentation for the appropriate value for this field.
2981
+ # @param [Google::Apis::HealthcareV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
2982
+ # @param [String] fields
2983
+ # Selector specifying which fields to include in a partial response.
2984
+ # @param [String] quota_user
2985
+ # Available to use for quota purposes for server-side applications. Can be any
2986
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2987
+ # @param [Google::Apis::RequestOptions] options
2988
+ # Request-specific options
2989
+ #
2990
+ # @yield [result, err] Result & error if block supplied
2991
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Policy] parsed result object
2992
+ # @yieldparam err [StandardError] error object if request failed
2993
+ #
2994
+ # @return [Google::Apis::HealthcareV1beta1::Policy]
2995
+ #
2996
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2997
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2998
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2999
+ def set_hl7_v2_store_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3000
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
3001
+ command.request_representation = Google::Apis::HealthcareV1beta1::SetIamPolicyRequest::Representation
3002
+ command.request_object = set_iam_policy_request_object
3003
+ command.response_representation = Google::Apis::HealthcareV1beta1::Policy::Representation
3004
+ command.response_class = Google::Apis::HealthcareV1beta1::Policy
3005
+ command.params['resource'] = resource unless resource.nil?
3006
+ command.query['fields'] = fields unless fields.nil?
3007
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3008
+ execute_or_queue_command(command, &block)
3009
+ end
3010
+
3011
+ # Returns permissions that a caller has on the specified resource.
3012
+ # If the resource does not exist, this will return an empty set of
3013
+ # permissions, not a NOT_FOUND error.
3014
+ # Note: This operation is designed to be used for building permission-aware
3015
+ # UIs and command-line tools, not for authorization checking. This operation
3016
+ # may "fail open" without warning.
3017
+ # @param [String] resource
3018
+ # REQUIRED: The resource for which the policy detail is being requested.
3019
+ # See the operation documentation for the appropriate value for this field.
3020
+ # @param [Google::Apis::HealthcareV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
3021
+ # @param [String] fields
3022
+ # Selector specifying which fields to include in a partial response.
3023
+ # @param [String] quota_user
3024
+ # Available to use for quota purposes for server-side applications. Can be any
3025
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3026
+ # @param [Google::Apis::RequestOptions] options
3027
+ # Request-specific options
3028
+ #
3029
+ # @yield [result, err] Result & error if block supplied
3030
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse] parsed result object
3031
+ # @yieldparam err [StandardError] error object if request failed
3032
+ #
3033
+ # @return [Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse]
3034
+ #
3035
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3036
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3037
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3038
+ def test_hl7_v2_store_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3039
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
3040
+ command.request_representation = Google::Apis::HealthcareV1beta1::TestIamPermissionsRequest::Representation
3041
+ command.request_object = test_iam_permissions_request_object
3042
+ command.response_representation = Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse::Representation
3043
+ command.response_class = Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse
3044
+ command.params['resource'] = resource unless resource.nil?
3045
+ command.query['fields'] = fields unless fields.nil?
3046
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3047
+ execute_or_queue_command(command, &block)
3048
+ end
3049
+
3050
+ # Creates a message and sends a notification to the Cloud Pub/Sub topic. If
3051
+ # configured, the MLLP adapter listens to messages created by this method and
3052
+ # sends those back to the hospital. A successful response indicates the
3053
+ # message has been persisted to storage and a Cloud Pub/Sub notification has
3054
+ # been sent. Sending to the hospital by the MLLP adapter happens
3055
+ # asynchronously.
3056
+ # @param [String] parent
3057
+ # The name of the dataset this message belongs to.
3058
+ # @param [Google::Apis::HealthcareV1beta1::CreateMessageRequest] create_message_request_object
3059
+ # @param [String] fields
3060
+ # Selector specifying which fields to include in a partial response.
3061
+ # @param [String] quota_user
3062
+ # Available to use for quota purposes for server-side applications. Can be any
3063
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3064
+ # @param [Google::Apis::RequestOptions] options
3065
+ # Request-specific options
3066
+ #
3067
+ # @yield [result, err] Result & error if block supplied
3068
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Message] parsed result object
3069
+ # @yieldparam err [StandardError] error object if request failed
3070
+ #
3071
+ # @return [Google::Apis::HealthcareV1beta1::Message]
3072
+ #
3073
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3074
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3075
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3076
+ def create_message(parent, create_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3077
+ command = make_simple_command(:post, 'v1beta1/{+parent}/messages', options)
3078
+ command.request_representation = Google::Apis::HealthcareV1beta1::CreateMessageRequest::Representation
3079
+ command.request_object = create_message_request_object
3080
+ command.response_representation = Google::Apis::HealthcareV1beta1::Message::Representation
3081
+ command.response_class = Google::Apis::HealthcareV1beta1::Message
3082
+ command.params['parent'] = parent unless parent.nil?
3083
+ command.query['fields'] = fields unless fields.nil?
3084
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3085
+ execute_or_queue_command(command, &block)
3086
+ end
3087
+
3088
+ # Deletes an HL7v2 message.
3089
+ # @param [String] name
3090
+ # The resource name of the HL7v2 message to delete.
3091
+ # @param [String] fields
3092
+ # Selector specifying which fields to include in a partial response.
3093
+ # @param [String] quota_user
3094
+ # Available to use for quota purposes for server-side applications. Can be any
3095
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3096
+ # @param [Google::Apis::RequestOptions] options
3097
+ # Request-specific options
3098
+ #
3099
+ # @yield [result, err] Result & error if block supplied
3100
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object
3101
+ # @yieldparam err [StandardError] error object if request failed
3102
+ #
3103
+ # @return [Google::Apis::HealthcareV1beta1::Empty]
3104
+ #
3105
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3106
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3107
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3108
+ def delete_project_location_dataset_hl7_v2_store_message(name, fields: nil, quota_user: nil, options: nil, &block)
3109
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
3110
+ command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
3111
+ command.response_class = Google::Apis::HealthcareV1beta1::Empty
3112
+ command.params['name'] = name unless name.nil?
3113
+ command.query['fields'] = fields unless fields.nil?
3114
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3115
+ execute_or_queue_command(command, &block)
3116
+ end
3117
+
3118
+ # Gets an HL7v2 message.
3119
+ # @param [String] name
3120
+ # The resource name of the HL7v2 message to retrieve.
3121
+ # @param [String] view
3122
+ # Specifies which parts of the Message resource should be returned
3123
+ # in the response.
3124
+ # @param [String] fields
3125
+ # Selector specifying which fields to include in a partial response.
3126
+ # @param [String] quota_user
3127
+ # Available to use for quota purposes for server-side applications. Can be any
3128
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3129
+ # @param [Google::Apis::RequestOptions] options
3130
+ # Request-specific options
3131
+ #
3132
+ # @yield [result, err] Result & error if block supplied
3133
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Message] parsed result object
3134
+ # @yieldparam err [StandardError] error object if request failed
3135
+ #
3136
+ # @return [Google::Apis::HealthcareV1beta1::Message]
3137
+ #
3138
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3139
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3140
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3141
+ def get_project_location_dataset_hl7_v2_store_message(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
3142
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
3143
+ command.response_representation = Google::Apis::HealthcareV1beta1::Message::Representation
3144
+ command.response_class = Google::Apis::HealthcareV1beta1::Message
3145
+ command.params['name'] = name unless name.nil?
3146
+ command.query['view'] = view unless view.nil?
3147
+ command.query['fields'] = fields unless fields.nil?
3148
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3149
+ execute_or_queue_command(command, &block)
3150
+ end
3151
+
3152
+ # Ingests a new HL7v2 message from the hospital and sends a notification to
3153
+ # the Cloud Pub/Sub topic. Return is an HL7v2 ACK message if the message was
3154
+ # successfully stored. Otherwise an error is returned. If an identical
3155
+ # HL7v2 message is created twice only one resource is created on the server
3156
+ # and no error is reported.
3157
+ # @param [String] parent
3158
+ # The name of the HL7v2 store this message belongs to.
3159
+ # @param [Google::Apis::HealthcareV1beta1::IngestMessageRequest] ingest_message_request_object
3160
+ # @param [String] fields
3161
+ # Selector specifying which fields to include in a partial response.
3162
+ # @param [String] quota_user
3163
+ # Available to use for quota purposes for server-side applications. Can be any
3164
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3165
+ # @param [Google::Apis::RequestOptions] options
3166
+ # Request-specific options
3167
+ #
3168
+ # @yield [result, err] Result & error if block supplied
3169
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::IngestMessageResponse] parsed result object
3170
+ # @yieldparam err [StandardError] error object if request failed
3171
+ #
3172
+ # @return [Google::Apis::HealthcareV1beta1::IngestMessageResponse]
3173
+ #
3174
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3175
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3176
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3177
+ def ingest_message(parent, ingest_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3178
+ command = make_simple_command(:post, 'v1beta1/{+parent}/messages:ingest', options)
3179
+ command.request_representation = Google::Apis::HealthcareV1beta1::IngestMessageRequest::Representation
3180
+ command.request_object = ingest_message_request_object
3181
+ command.response_representation = Google::Apis::HealthcareV1beta1::IngestMessageResponse::Representation
3182
+ command.response_class = Google::Apis::HealthcareV1beta1::IngestMessageResponse
3183
+ command.params['parent'] = parent unless parent.nil?
3184
+ command.query['fields'] = fields unless fields.nil?
3185
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3186
+ execute_or_queue_command(command, &block)
3187
+ end
3188
+
3189
+ # Lists all the messages in the given HL7v2 store with support for filtering.
3190
+ # @param [String] parent
3191
+ # Name of the HL7v2 store to retrieve messages from.
3192
+ # @param [String] filter
3193
+ # Restricts messages returned to those matching a filter. Syntax:
3194
+ # https://cloud.google.com/appengine/docs/standard/python/search/query_strings
3195
+ # Fields/functions available for filtering are:
3196
+ # * `message_type`, from the MSH-9 segment; for example
3197
+ # `NOT message_type = "ADT"`
3198
+ # * `send_date` or `sendDate`, the YYYY-MM-DD date the message was sent in
3199
+ # the dataset's time_zone, from the MSH-7 segment; for example
3200
+ # `send_date < "2017-01-02"`
3201
+ # * `send_time`, the timestamp of when the message was sent, using the
3202
+ # RFC3339 time format for comparisons, from the MSH-7 segment; for example
3203
+ # `send_time < "2017-01-02T00:00:00-05:00"`
3204
+ # * `send_facility`, the care center that the message came from, from the
3205
+ # MSH-4 segment; for example `send_facility = "ABC"`
3206
+ # * `HL7RegExp(expr)`, which does regular expression matching of `expr`
3207
+ # against the message payload using re2 (http://code.google.com/p/re2/)
3208
+ # syntax; for example `HL7RegExp("^.*\|.*\|EMERG")`
3209
+ # * `PatientId(value, type)`, which matches if the message lists a patient
3210
+ # having an ID of the given value and type in the PID-2, PID-3, or PID-4
3211
+ # segments; for example `PatientId("123456", "MRN")`
3212
+ # * `labels.x`, a string value of the label with key `x` as set using the
3213
+ # Message.labels
3214
+ # map, for example `labels."priority"="high"`. The operator `:*` can be used
3215
+ # to assert the existence of a label, for example `labels."priority":*`.
3216
+ # Limitations on conjunctions:
3217
+ # * Negation on the patient ID function or the labels field is not
3218
+ # supported, for example these queries are invalid:
3219
+ # `NOT PatientId("123456", "MRN")`, `NOT labels."tag1":*`,
3220
+ # `NOT labels."tag2"="val2"`.
3221
+ # * Conjunction of multiple patient ID functions is not supported, for
3222
+ # example this query is invalid:
3223
+ # `PatientId("123456", "MRN") AND PatientId("456789", "MRN")`.
3224
+ # * Conjunction of multiple labels fields is also not supported, for
3225
+ # example this query is invalid: `labels."tag1":* AND labels."tag2"="val2"`.
3226
+ # * Conjunction of one patient ID function, one labels field and conditions
3227
+ # on other fields is supported, for example this query is valid:
3228
+ # `PatientId("123456", "MRN") AND labels."tag1":* AND message_type = "ADT"`.
3229
+ # @param [String] order_by
3230
+ # Orders messages returned by the specified order_by clause.
3231
+ # Syntax: https://cloud.google.com/apis/design/design_patterns#sorting_order
3232
+ # Fields available for ordering are:
3233
+ # * `send_time`
3234
+ # @param [Fixnum] page_size
3235
+ # Limit on the number of messages to return in a single response.
3236
+ # If zero the default page size of 100 is used.
3237
+ # @param [String] page_token
3238
+ # The next_page_token value returned from the previous List request, if any.
3239
+ # @param [String] fields
3240
+ # Selector specifying which fields to include in a partial response.
3241
+ # @param [String] quota_user
3242
+ # Available to use for quota purposes for server-side applications. Can be any
3243
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3244
+ # @param [Google::Apis::RequestOptions] options
3245
+ # Request-specific options
3246
+ #
3247
+ # @yield [result, err] Result & error if block supplied
3248
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ListMessagesResponse] parsed result object
3249
+ # @yieldparam err [StandardError] error object if request failed
3250
+ #
3251
+ # @return [Google::Apis::HealthcareV1beta1::ListMessagesResponse]
3252
+ #
3253
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3254
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3255
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3256
+ 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)
3257
+ command = make_simple_command(:get, 'v1beta1/{+parent}/messages', options)
3258
+ command.response_representation = Google::Apis::HealthcareV1beta1::ListMessagesResponse::Representation
3259
+ command.response_class = Google::Apis::HealthcareV1beta1::ListMessagesResponse
3260
+ command.params['parent'] = parent unless parent.nil?
3261
+ command.query['filter'] = filter unless filter.nil?
3262
+ command.query['orderBy'] = order_by unless order_by.nil?
3263
+ command.query['pageSize'] = page_size unless page_size.nil?
3264
+ command.query['pageToken'] = page_token unless page_token.nil?
3265
+ command.query['fields'] = fields unless fields.nil?
3266
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3267
+ execute_or_queue_command(command, &block)
3268
+ end
3269
+
3270
+ # Update the message.
3271
+ # @param [String] name
3272
+ # Resource name of the Message, of the form
3273
+ # `projects/`project_id`/datasets/`dataset_id`/hl7V2Stores/`hl7_v2_store_id`/
3274
+ # messages/`message_id``.
3275
+ # Assigned by the server.
3276
+ # @param [Google::Apis::HealthcareV1beta1::Message] message_object
3277
+ # @param [String] update_mask
3278
+ # The update mask applies to the resource. For the `FieldMask` definition,
3279
+ # see
3280
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
3281
+ # fieldmask
3282
+ # Only the `labels` field is allowed to be updated.
3283
+ # The labels in the request will be merged with the existing set of labels.
3284
+ # Existing labels with the same keys will be updated.
3285
+ # @param [String] fields
3286
+ # Selector specifying which fields to include in a partial response.
3287
+ # @param [String] quota_user
3288
+ # Available to use for quota purposes for server-side applications. Can be any
3289
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3290
+ # @param [Google::Apis::RequestOptions] options
3291
+ # Request-specific options
3292
+ #
3293
+ # @yield [result, err] Result & error if block supplied
3294
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Message] parsed result object
3295
+ # @yieldparam err [StandardError] error object if request failed
3296
+ #
3297
+ # @return [Google::Apis::HealthcareV1beta1::Message]
3298
+ #
3299
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3300
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3301
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3302
+ def patch_project_location_dataset_hl7_v2_store_message(name, message_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3303
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
3304
+ command.request_representation = Google::Apis::HealthcareV1beta1::Message::Representation
3305
+ command.request_object = message_object
3306
+ command.response_representation = Google::Apis::HealthcareV1beta1::Message::Representation
3307
+ command.response_class = Google::Apis::HealthcareV1beta1::Message
3308
+ command.params['name'] = name unless name.nil?
3309
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3310
+ command.query['fields'] = fields unless fields.nil?
3311
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3312
+ execute_or_queue_command(command, &block)
3313
+ end
3314
+
3315
+ # Gets the latest state of a long-running operation. Clients can use this
3316
+ # method to poll the operation result at intervals as recommended by the API
3317
+ # service.
3318
+ # @param [String] name
3319
+ # The name of the operation resource.
3320
+ # @param [String] fields
3321
+ # Selector specifying which fields to include in a partial response.
3322
+ # @param [String] quota_user
3323
+ # Available to use for quota purposes for server-side applications. Can be any
3324
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3325
+ # @param [Google::Apis::RequestOptions] options
3326
+ # Request-specific options
3327
+ #
3328
+ # @yield [result, err] Result & error if block supplied
3329
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Operation] parsed result object
3330
+ # @yieldparam err [StandardError] error object if request failed
3331
+ #
3332
+ # @return [Google::Apis::HealthcareV1beta1::Operation]
3333
+ #
3334
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3335
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3336
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3337
+ def get_project_location_dataset_operation(name, fields: nil, quota_user: nil, options: nil, &block)
3338
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
3339
+ command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation
3340
+ command.response_class = Google::Apis::HealthcareV1beta1::Operation
3341
+ command.params['name'] = name unless name.nil?
3342
+ command.query['fields'] = fields unless fields.nil?
3343
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3344
+ execute_or_queue_command(command, &block)
3345
+ end
3346
+
3347
+ # Lists operations that match the specified filter in the request. If the
3348
+ # server doesn't support this method, it returns `UNIMPLEMENTED`.
3349
+ # NOTE: the `name` binding allows API services to override the binding
3350
+ # to use different resource name schemes, such as `users/*/operations`. To
3351
+ # override the binding, API services can add a binding such as
3352
+ # `"/v1/`name=users/*`/operations"` to their service configuration.
3353
+ # For backwards compatibility, the default name includes the operations
3354
+ # collection id, however overriding users must ensure the name binding
3355
+ # is the parent resource, without the operations collection id.
3356
+ # @param [String] name
3357
+ # The name of the operation's parent resource.
3358
+ # @param [String] filter
3359
+ # The standard list filter.
3360
+ # @param [Fixnum] page_size
3361
+ # The standard list page size.
3362
+ # @param [String] page_token
3363
+ # The standard list page token.
3364
+ # @param [String] fields
3365
+ # Selector specifying which fields to include in a partial response.
3366
+ # @param [String] quota_user
3367
+ # Available to use for quota purposes for server-side applications. Can be any
3368
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3369
+ # @param [Google::Apis::RequestOptions] options
3370
+ # Request-specific options
3371
+ #
3372
+ # @yield [result, err] Result & error if block supplied
3373
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ListOperationsResponse] parsed result object
3374
+ # @yieldparam err [StandardError] error object if request failed
3375
+ #
3376
+ # @return [Google::Apis::HealthcareV1beta1::ListOperationsResponse]
3377
+ #
3378
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3379
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3380
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3381
+ def list_project_location_dataset_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3382
+ command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
3383
+ command.response_representation = Google::Apis::HealthcareV1beta1::ListOperationsResponse::Representation
3384
+ command.response_class = Google::Apis::HealthcareV1beta1::ListOperationsResponse
3385
+ command.params['name'] = name unless name.nil?
3386
+ command.query['filter'] = filter unless filter.nil?
3387
+ command.query['pageSize'] = page_size unless page_size.nil?
3388
+ command.query['pageToken'] = page_token unless page_token.nil?
3389
+ command.query['fields'] = fields unless fields.nil?
3390
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3391
+ execute_or_queue_command(command, &block)
3392
+ end
3393
+
3394
+ protected
3395
+
3396
+ def apply_command_defaults(command)
3397
+ command.query['key'] = key unless key.nil?
3398
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3399
+ end
3400
+ end
3401
+ end
3402
+ end
3403
+ end