google-api-client 0.28.4 → 0.29.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (750) hide show
  1. checksums.yaml +4 -4
  2. data/.kokoro/build.bat +9 -6
  3. data/.kokoro/build.sh +2 -34
  4. data/.kokoro/continuous/common.cfg +6 -1
  5. data/.kokoro/continuous/linux.cfg +1 -1
  6. data/.kokoro/continuous/windows.cfg +17 -1
  7. data/.kokoro/osx.sh +2 -33
  8. data/.kokoro/presubmit/common.cfg +6 -1
  9. data/.kokoro/presubmit/linux.cfg +1 -1
  10. data/.kokoro/presubmit/windows.cfg +17 -1
  11. data/.kokoro/trampoline.bat +10 -0
  12. data/.kokoro/trampoline.sh +3 -23
  13. data/CHANGELOG.md +460 -0
  14. data/README.md +1 -1
  15. data/Rakefile +31 -0
  16. data/bin/generate-api +4 -2
  17. data/generated/google/apis/abusiveexperiencereport_v1/service.rb +2 -2
  18. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +1 -1
  19. data/generated/google/apis/accessapproval_v1beta1/classes.rb +333 -0
  20. data/generated/google/apis/accessapproval_v1beta1/representations.rb +174 -0
  21. data/generated/google/apis/accessapproval_v1beta1/service.rb +728 -0
  22. data/generated/google/apis/accessapproval_v1beta1.rb +34 -0
  23. data/generated/google/apis/accesscontextmanager_v1/classes.rb +755 -0
  24. data/generated/google/apis/accesscontextmanager_v1/representations.rb +282 -0
  25. data/generated/google/apis/accesscontextmanager_v1/service.rb +788 -0
  26. data/generated/google/apis/accesscontextmanager_v1.rb +34 -0
  27. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +47 -31
  28. data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +4 -0
  29. data/generated/google/apis/accesscontextmanager_v1beta/service.rb +16 -16
  30. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  31. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +95 -200
  32. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +0 -32
  33. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +64 -104
  34. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  35. data/generated/google/apis/adexchangebuyer_v1_2/service.rb +7 -7
  36. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -21
  37. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +38 -38
  38. data/generated/google/apis/adexperiencereport_v1/service.rb +2 -2
  39. data/generated/google/apis/admin_datatransfer_v1/service.rb +5 -5
  40. data/generated/google/apis/admin_directory_v1/classes.rb +5 -50
  41. data/generated/google/apis/admin_directory_v1/representations.rb +0 -2
  42. data/generated/google/apis/admin_directory_v1/service.rb +113 -113
  43. data/generated/google/apis/admin_directory_v1.rb +1 -1
  44. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  45. data/generated/google/apis/admin_reports_v1.rb +1 -1
  46. data/generated/google/apis/adsense_v1_4/service.rb +39 -39
  47. data/generated/google/apis/adsensehost_v4_1/service.rb +26 -26
  48. data/generated/google/apis/alertcenter_v1beta1/classes.rb +101 -2
  49. data/generated/google/apis/alertcenter_v1beta1/representations.rb +25 -0
  50. data/generated/google/apis/alertcenter_v1beta1/service.rb +17 -16
  51. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  52. data/generated/google/apis/analytics_v2_4/service.rb +6 -6
  53. data/generated/google/apis/analytics_v3/service.rb +88 -88
  54. data/generated/google/apis/analyticsreporting_v4/classes.rb +638 -0
  55. data/generated/google/apis/analyticsreporting_v4/representations.rb +248 -0
  56. data/generated/google/apis/analyticsreporting_v4/service.rb +31 -1
  57. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  58. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +51 -11
  59. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +6 -0
  60. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +26 -26
  61. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  62. data/generated/google/apis/androidenterprise_v1/classes.rb +26 -30
  63. data/generated/google/apis/androidenterprise_v1/representations.rb +2 -14
  64. data/generated/google/apis/androidenterprise_v1/service.rb +85 -121
  65. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  66. data/generated/google/apis/androidmanagement_v1/classes.rb +358 -4
  67. data/generated/google/apis/androidmanagement_v1/representations.rb +163 -0
  68. data/generated/google/apis/androidmanagement_v1/service.rb +191 -21
  69. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  70. data/generated/google/apis/androidpublisher_v1/service.rb +2 -2
  71. data/generated/google/apis/androidpublisher_v1_1/service.rb +3 -3
  72. data/generated/google/apis/androidpublisher_v2/service.rb +64 -70
  73. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  74. data/generated/google/apis/androidpublisher_v3/classes.rb +113 -0
  75. data/generated/google/apis/androidpublisher_v3/representations.rb +58 -0
  76. data/generated/google/apis/androidpublisher_v3/service.rb +234 -64
  77. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  78. data/generated/google/apis/appengine_v1/classes.rb +45 -100
  79. data/generated/google/apis/appengine_v1/representations.rb +17 -35
  80. data/generated/google/apis/appengine_v1/service.rb +45 -39
  81. data/generated/google/apis/appengine_v1.rb +1 -1
  82. data/generated/google/apis/appengine_v1alpha/classes.rb +2 -99
  83. data/generated/google/apis/appengine_v1alpha/representations.rb +0 -35
  84. data/generated/google/apis/appengine_v1alpha/service.rb +15 -15
  85. data/generated/google/apis/appengine_v1alpha.rb +1 -1
  86. data/generated/google/apis/appengine_v1beta/classes.rb +7 -102
  87. data/generated/google/apis/appengine_v1beta/representations.rb +0 -35
  88. data/generated/google/apis/appengine_v1beta/service.rb +45 -39
  89. data/generated/google/apis/appengine_v1beta.rb +1 -1
  90. data/generated/google/apis/appengine_v1beta4/service.rb +20 -20
  91. data/generated/google/apis/appengine_v1beta5/service.rb +20 -20
  92. data/generated/google/apis/appsactivity_v1/service.rb +5 -4
  93. data/generated/google/apis/appsactivity_v1.rb +1 -1
  94. data/generated/google/apis/appsmarket_v2/service.rb +3 -3
  95. data/generated/google/apis/appstate_v1/service.rb +5 -5
  96. data/generated/google/apis/bigquery_v2/classes.rb +1121 -114
  97. data/generated/google/apis/bigquery_v2/representations.rb +414 -26
  98. data/generated/google/apis/bigquery_v2/service.rb +184 -22
  99. data/generated/google/apis/bigquery_v2.rb +1 -1
  100. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +88 -10
  101. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +43 -0
  102. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +142 -34
  103. data/generated/google/apis/bigquerydatatransfer_v1.rb +3 -3
  104. data/generated/google/apis/bigtableadmin_v1/service.rb +3 -3
  105. data/generated/google/apis/bigtableadmin_v1.rb +2 -2
  106. data/generated/google/apis/bigtableadmin_v2/classes.rb +14 -14
  107. data/generated/google/apis/bigtableadmin_v2/service.rb +142 -33
  108. data/generated/google/apis/bigtableadmin_v2.rb +2 -2
  109. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +66 -6
  110. data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +17 -0
  111. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +17 -13
  112. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  113. data/generated/google/apis/blogger_v2/service.rb +9 -9
  114. data/generated/google/apis/blogger_v3/service.rb +33 -33
  115. data/generated/google/apis/books_v1/service.rb +51 -51
  116. data/generated/google/apis/calendar_v3/classes.rb +1 -1
  117. data/generated/google/apis/calendar_v3/service.rb +47 -47
  118. data/generated/google/apis/calendar_v3.rb +1 -1
  119. data/generated/google/apis/chat_v1/service.rb +8 -8
  120. data/generated/google/apis/civicinfo_v2/service.rb +5 -5
  121. data/generated/google/apis/classroom_v1/classes.rb +77 -0
  122. data/generated/google/apis/classroom_v1/representations.rb +32 -0
  123. data/generated/google/apis/classroom_v1/service.rb +276 -51
  124. data/generated/google/apis/classroom_v1.rb +7 -1
  125. data/generated/google/apis/cloudasset_v1/classes.rb +818 -0
  126. data/generated/google/apis/cloudasset_v1/representations.rb +264 -0
  127. data/generated/google/apis/cloudasset_v1/service.rb +191 -0
  128. data/generated/google/apis/cloudasset_v1.rb +34 -0
  129. data/generated/google/apis/cloudasset_v1beta1/classes.rb +33 -18
  130. data/generated/google/apis/cloudasset_v1beta1/representations.rb +1 -0
  131. data/generated/google/apis/cloudasset_v1beta1/service.rb +13 -13
  132. data/generated/google/apis/cloudasset_v1beta1.rb +2 -2
  133. data/generated/google/apis/cloudbilling_v1/classes.rb +1 -1
  134. data/generated/google/apis/cloudbilling_v1/service.rb +14 -14
  135. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  136. data/generated/google/apis/cloudbuild_v1/classes.rb +162 -11
  137. data/generated/google/apis/cloudbuild_v1/representations.rb +67 -0
  138. data/generated/google/apis/cloudbuild_v1/service.rb +21 -15
  139. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  140. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +7 -1
  141. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +2 -0
  142. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +6 -6
  143. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  144. data/generated/google/apis/clouddebugger_v2/service.rb +8 -8
  145. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +19 -16
  146. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +12 -11
  147. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  148. data/generated/google/apis/cloudfunctions_v1/classes.rb +21 -17
  149. data/generated/google/apis/cloudfunctions_v1/service.rb +22 -16
  150. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  151. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +20 -16
  152. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +17 -11
  153. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  154. data/generated/google/apis/cloudidentity_v1/classes.rb +14 -14
  155. data/generated/google/apis/cloudidentity_v1/service.rb +18 -27
  156. data/generated/google/apis/cloudidentity_v1.rb +7 -1
  157. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +11 -11
  158. data/generated/google/apis/cloudidentity_v1beta1/service.rb +15 -21
  159. data/generated/google/apis/cloudidentity_v1beta1.rb +7 -1
  160. data/generated/google/apis/cloudiot_v1/classes.rb +11 -11
  161. data/generated/google/apis/cloudiot_v1/service.rb +23 -330
  162. data/generated/google/apis/cloudiot_v1.rb +1 -1
  163. data/generated/google/apis/cloudkms_v1/classes.rb +7 -3
  164. data/generated/google/apis/cloudkms_v1/service.rb +30 -30
  165. data/generated/google/apis/cloudkms_v1.rb +1 -1
  166. data/generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb +358 -0
  167. data/generated/google/apis/cloudprivatecatalog_v1beta1/representations.rb +123 -0
  168. data/generated/google/apis/cloudprivatecatalog_v1beta1/service.rb +486 -0
  169. data/generated/google/apis/cloudprivatecatalog_v1beta1.rb +35 -0
  170. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +1212 -0
  171. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/representations.rb +399 -0
  172. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +1073 -0
  173. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +35 -0
  174. data/generated/google/apis/cloudprofiler_v2/service.rb +3 -3
  175. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +24 -22
  176. data/generated/google/apis/cloudresourcemanager_v1/service.rb +68 -59
  177. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  178. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +3 -3
  179. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +53 -42
  180. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  181. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +15 -16
  182. data/generated/google/apis/cloudresourcemanager_v2/service.rb +13 -13
  183. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  184. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +15 -16
  185. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +13 -13
  186. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  187. data/generated/google/apis/cloudscheduler_v1/classes.rb +994 -0
  188. data/generated/google/apis/cloudscheduler_v1/representations.rb +297 -0
  189. data/generated/google/apis/cloudscheduler_v1/service.rb +448 -0
  190. data/generated/google/apis/cloudscheduler_v1.rb +34 -0
  191. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +160 -44
  192. data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +33 -0
  193. data/generated/google/apis/cloudscheduler_v1beta1/service.rb +15 -12
  194. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  195. data/generated/google/apis/cloudsearch_v1/classes.rb +245 -59
  196. data/generated/google/apis/cloudsearch_v1/representations.rb +91 -0
  197. data/generated/google/apis/cloudsearch_v1/service.rb +86 -80
  198. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  199. data/generated/google/apis/cloudshell_v1/classes.rb +11 -11
  200. data/generated/google/apis/cloudshell_v1/service.rb +4 -4
  201. data/generated/google/apis/cloudshell_v1.rb +1 -1
  202. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +24 -11
  203. data/generated/google/apis/cloudshell_v1alpha1/representations.rb +2 -0
  204. data/generated/google/apis/cloudshell_v1alpha1/service.rb +11 -10
  205. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  206. data/generated/google/apis/cloudtasks_v2/classes.rb +1436 -0
  207. data/generated/google/apis/cloudtasks_v2/representations.rb +408 -0
  208. data/generated/google/apis/cloudtasks_v2/service.rb +856 -0
  209. data/generated/google/apis/{partners_v2.rb → cloudtasks_v2.rb} +11 -9
  210. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +141 -102
  211. data/generated/google/apis/cloudtasks_v2beta2/service.rb +44 -43
  212. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  213. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +388 -108
  214. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +65 -0
  215. data/generated/google/apis/cloudtasks_v2beta3/service.rb +40 -39
  216. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  217. data/generated/google/apis/cloudtrace_v1/service.rb +3 -3
  218. data/generated/google/apis/cloudtrace_v2/classes.rb +10 -10
  219. data/generated/google/apis/cloudtrace_v2/service.rb +2 -2
  220. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  221. data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +484 -0
  222. data/generated/google/apis/commentanalyzer_v1alpha1/representations.rb +210 -0
  223. data/generated/google/apis/commentanalyzer_v1alpha1/service.rb +124 -0
  224. data/generated/google/apis/commentanalyzer_v1alpha1.rb +39 -0
  225. data/generated/google/apis/composer_v1/classes.rb +21 -15
  226. data/generated/google/apis/composer_v1/service.rb +9 -9
  227. data/generated/google/apis/composer_v1.rb +1 -1
  228. data/generated/google/apis/composer_v1beta1/classes.rb +175 -36
  229. data/generated/google/apis/composer_v1beta1/representations.rb +50 -0
  230. data/generated/google/apis/composer_v1beta1/service.rb +9 -9
  231. data/generated/google/apis/composer_v1beta1.rb +1 -1
  232. data/generated/google/apis/compute_alpha/classes.rb +10112 -7289
  233. data/generated/google/apis/compute_alpha/representations.rb +1337 -219
  234. data/generated/google/apis/compute_alpha/service.rb +4259 -2728
  235. data/generated/google/apis/compute_alpha.rb +1 -1
  236. data/generated/google/apis/compute_beta/classes.rb +4254 -2781
  237. data/generated/google/apis/compute_beta/representations.rb +853 -283
  238. data/generated/google/apis/compute_beta/service.rb +7077 -5955
  239. data/generated/google/apis/compute_beta.rb +1 -1
  240. data/generated/google/apis/compute_v1/classes.rb +1259 -93
  241. data/generated/google/apis/compute_v1/representations.rb +450 -1
  242. data/generated/google/apis/compute_v1/service.rb +1085 -400
  243. data/generated/google/apis/compute_v1.rb +1 -1
  244. data/generated/google/apis/container_v1/classes.rb +201 -22
  245. data/generated/google/apis/container_v1/representations.rb +69 -0
  246. data/generated/google/apis/container_v1/service.rb +151 -102
  247. data/generated/google/apis/container_v1.rb +1 -1
  248. data/generated/google/apis/container_v1beta1/classes.rb +215 -25
  249. data/generated/google/apis/container_v1beta1/representations.rb +86 -0
  250. data/generated/google/apis/container_v1beta1/service.rb +106 -106
  251. data/generated/google/apis/container_v1beta1.rb +1 -1
  252. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +26 -18
  253. data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +1 -0
  254. data/generated/google/apis/containeranalysis_v1alpha1/service.rb +33 -33
  255. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  256. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +226 -12
  257. data/generated/google/apis/containeranalysis_v1beta1/representations.rb +58 -0
  258. data/generated/google/apis/containeranalysis_v1beta1/service.rb +24 -24
  259. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  260. data/generated/google/apis/content_v2/classes.rb +218 -101
  261. data/generated/google/apis/content_v2/representations.rb +49 -0
  262. data/generated/google/apis/content_v2/service.rb +189 -152
  263. data/generated/google/apis/content_v2.rb +1 -1
  264. data/generated/google/apis/content_v2_1/classes.rb +387 -216
  265. data/generated/google/apis/content_v2_1/representations.rb +131 -56
  266. data/generated/google/apis/content_v2_1/service.rb +190 -107
  267. data/generated/google/apis/content_v2_1.rb +1 -1
  268. data/generated/google/apis/customsearch_v1/service.rb +2 -2
  269. data/generated/google/apis/dataflow_v1b3/classes.rb +148 -31
  270. data/generated/google/apis/dataflow_v1b3/representations.rb +45 -0
  271. data/generated/google/apis/dataflow_v1b3/service.rb +415 -56
  272. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  273. data/generated/google/apis/datafusion_v1beta1/classes.rb +1304 -0
  274. data/generated/google/apis/datafusion_v1beta1/representations.rb +469 -0
  275. data/generated/google/apis/datafusion_v1beta1/service.rb +657 -0
  276. data/generated/google/apis/datafusion_v1beta1.rb +43 -0
  277. data/generated/google/apis/dataproc_v1/classes.rb +27 -22
  278. data/generated/google/apis/dataproc_v1/representations.rb +1 -0
  279. data/generated/google/apis/dataproc_v1/service.rb +261 -45
  280. data/generated/google/apis/dataproc_v1.rb +1 -1
  281. data/generated/google/apis/dataproc_v1beta2/classes.rb +534 -50
  282. data/generated/google/apis/dataproc_v1beta2/representations.rb +185 -7
  283. data/generated/google/apis/dataproc_v1beta2/service.rb +617 -51
  284. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  285. data/generated/google/apis/datastore_v1/classes.rb +20 -16
  286. data/generated/google/apis/datastore_v1/service.rb +15 -15
  287. data/generated/google/apis/datastore_v1.rb +1 -1
  288. data/generated/google/apis/datastore_v1beta1/classes.rb +10 -10
  289. data/generated/google/apis/datastore_v1beta1/service.rb +2 -2
  290. data/generated/google/apis/datastore_v1beta1.rb +1 -1
  291. data/generated/google/apis/datastore_v1beta3/classes.rb +10 -6
  292. data/generated/google/apis/datastore_v1beta3/service.rb +7 -7
  293. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  294. data/generated/google/apis/deploymentmanager_alpha/service.rb +37 -37
  295. data/generated/google/apis/deploymentmanager_v2/service.rb +18 -18
  296. data/generated/google/apis/deploymentmanager_v2beta/service.rb +32 -32
  297. data/generated/google/apis/dfareporting_v3_1/service.rb +206 -206
  298. data/generated/google/apis/dfareporting_v3_2/service.rb +206 -206
  299. data/generated/google/apis/dfareporting_v3_3/classes.rb +3 -3
  300. data/generated/google/apis/dfareporting_v3_3/service.rb +204 -204
  301. data/generated/google/apis/dfareporting_v3_3.rb +1 -1
  302. data/generated/google/apis/dialogflow_v2/classes.rb +367 -82
  303. data/generated/google/apis/dialogflow_v2/representations.rb +99 -0
  304. data/generated/google/apis/dialogflow_v2/service.rb +76 -60
  305. data/generated/google/apis/dialogflow_v2.rb +1 -1
  306. data/generated/google/apis/dialogflow_v2beta1/classes.rb +199 -88
  307. data/generated/google/apis/dialogflow_v2beta1/representations.rb +31 -0
  308. data/generated/google/apis/dialogflow_v2beta1/service.rb +154 -94
  309. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  310. data/generated/google/apis/digitalassetlinks_v1/service.rb +7 -6
  311. data/generated/google/apis/digitalassetlinks_v1.rb +1 -1
  312. data/generated/google/apis/discovery_v1/service.rb +2 -2
  313. data/generated/google/apis/dlp_v2/classes.rb +116 -45
  314. data/generated/google/apis/dlp_v2/representations.rb +32 -0
  315. data/generated/google/apis/dlp_v2/service.rb +85 -45
  316. data/generated/google/apis/dlp_v2.rb +1 -1
  317. data/generated/google/apis/dns_v1/classes.rb +83 -1
  318. data/generated/google/apis/dns_v1/representations.rb +34 -0
  319. data/generated/google/apis/dns_v1/service.rb +15 -15
  320. data/generated/google/apis/dns_v1.rb +1 -1
  321. data/generated/google/apis/dns_v1beta2/classes.rb +81 -1
  322. data/generated/google/apis/dns_v1beta2/representations.rb +33 -0
  323. data/generated/google/apis/dns_v1beta2/service.rb +21 -21
  324. data/generated/google/apis/dns_v1beta2.rb +1 -1
  325. data/generated/google/apis/dns_v2beta1/classes.rb +83 -1
  326. data/generated/google/apis/dns_v2beta1/representations.rb +34 -0
  327. data/generated/google/apis/dns_v2beta1/service.rb +16 -16
  328. data/generated/google/apis/dns_v2beta1.rb +1 -1
  329. data/generated/google/apis/docs_v1/classes.rb +265 -47
  330. data/generated/google/apis/docs_v1/representations.rb +96 -0
  331. data/generated/google/apis/docs_v1/service.rb +3 -3
  332. data/generated/google/apis/docs_v1.rb +1 -1
  333. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +6 -4
  334. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +9 -9
  335. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  336. data/generated/google/apis/doubleclicksearch_v2/service.rb +10 -10
  337. data/generated/google/apis/drive_v2/classes.rb +601 -80
  338. data/generated/google/apis/drive_v2/representations.rb +152 -0
  339. data/generated/google/apis/drive_v2/service.rb +574 -164
  340. data/generated/google/apis/drive_v2.rb +1 -1
  341. data/generated/google/apis/drive_v3/classes.rb +591 -75
  342. data/generated/google/apis/drive_v3/representations.rb +151 -0
  343. data/generated/google/apis/drive_v3/service.rb +483 -116
  344. data/generated/google/apis/drive_v3.rb +1 -1
  345. data/generated/google/apis/driveactivity_v2/classes.rb +149 -17
  346. data/generated/google/apis/driveactivity_v2/representations.rb +69 -0
  347. data/generated/google/apis/driveactivity_v2/service.rb +1 -1
  348. data/generated/google/apis/driveactivity_v2.rb +1 -1
  349. data/generated/google/apis/factchecktools_v1alpha1/classes.rb +459 -0
  350. data/generated/google/apis/factchecktools_v1alpha1/representations.rb +207 -0
  351. data/generated/google/apis/factchecktools_v1alpha1/service.rb +300 -0
  352. data/generated/google/apis/factchecktools_v1alpha1.rb +34 -0
  353. data/generated/google/apis/fcm_v1/classes.rb +424 -0
  354. data/generated/google/apis/fcm_v1/representations.rb +167 -0
  355. data/generated/google/apis/fcm_v1/service.rb +97 -0
  356. data/generated/google/apis/fcm_v1.rb +35 -0
  357. data/generated/google/apis/file_v1/classes.rb +646 -11
  358. data/generated/google/apis/file_v1/representations.rb +207 -0
  359. data/generated/google/apis/file_v1/service.rb +196 -6
  360. data/generated/google/apis/file_v1.rb +1 -1
  361. data/generated/google/apis/file_v1beta1/classes.rb +461 -19
  362. data/generated/google/apis/file_v1beta1/representations.rb +137 -0
  363. data/generated/google/apis/file_v1beta1/service.rb +11 -11
  364. data/generated/google/apis/file_v1beta1.rb +1 -1
  365. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +41 -14
  366. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +4 -0
  367. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +5 -5
  368. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  369. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +13 -13
  370. data/generated/google/apis/firebasehosting_v1beta1/service.rb +14 -14
  371. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  372. data/generated/google/apis/firebaserules_v1/classes.rb +10 -2
  373. data/generated/google/apis/firebaserules_v1/service.rb +12 -12
  374. data/generated/google/apis/firebaserules_v1.rb +1 -1
  375. data/generated/google/apis/firestore_v1/classes.rb +15 -15
  376. data/generated/google/apis/firestore_v1/service.rb +28 -28
  377. data/generated/google/apis/firestore_v1.rb +1 -1
  378. data/generated/google/apis/firestore_v1beta1/classes.rb +15 -15
  379. data/generated/google/apis/firestore_v1beta1/service.rb +19 -19
  380. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  381. data/generated/google/apis/firestore_v1beta2/classes.rb +10 -10
  382. data/generated/google/apis/firestore_v1beta2/service.rb +9 -9
  383. data/generated/google/apis/firestore_v1beta2.rb +1 -1
  384. data/generated/google/apis/fitness_v1/classes.rb +4 -1
  385. data/generated/google/apis/fitness_v1/service.rb +14 -58
  386. data/generated/google/apis/fitness_v1.rb +1 -1
  387. data/generated/google/apis/fusiontables_v1/service.rb +32 -32
  388. data/generated/google/apis/fusiontables_v2/service.rb +34 -34
  389. data/generated/google/apis/games_configuration_v1configuration/service.rb +13 -13
  390. data/generated/google/apis/games_management_v1management/service.rb +27 -27
  391. data/generated/google/apis/games_management_v1management.rb +2 -2
  392. data/generated/google/apis/games_v1/service.rb +53 -53
  393. data/generated/google/apis/games_v1.rb +3 -3
  394. data/generated/google/apis/genomics_v1/classes.rb +190 -3321
  395. data/generated/google/apis/genomics_v1/representations.rb +128 -1265
  396. data/generated/google/apis/genomics_v1/service.rb +75 -1982
  397. data/generated/google/apis/genomics_v1.rb +1 -10
  398. data/generated/google/apis/genomics_v1alpha2/classes.rb +13 -53
  399. data/generated/google/apis/genomics_v1alpha2/representations.rb +0 -26
  400. data/generated/google/apis/genomics_v1alpha2/service.rb +11 -12
  401. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  402. data/generated/google/apis/genomics_v2alpha1/classes.rb +26 -58
  403. data/generated/google/apis/genomics_v2alpha1/representations.rb +1 -26
  404. data/generated/google/apis/genomics_v2alpha1/service.rb +6 -7
  405. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  406. data/generated/google/apis/gmail_v1/classes.rb +29 -0
  407. data/generated/google/apis/gmail_v1/representations.rb +13 -0
  408. data/generated/google/apis/gmail_v1/service.rb +142 -66
  409. data/generated/google/apis/gmail_v1.rb +1 -1
  410. data/generated/google/apis/groupsmigration_v1/service.rb +1 -1
  411. data/generated/google/apis/groupssettings_v1/classes.rb +126 -1
  412. data/generated/google/apis/groupssettings_v1/representations.rb +18 -0
  413. data/generated/google/apis/groupssettings_v1/service.rb +4 -4
  414. data/generated/google/apis/groupssettings_v1.rb +2 -2
  415. data/generated/google/apis/healthcare_v1alpha2/classes.rb +2849 -0
  416. data/generated/google/apis/healthcare_v1alpha2/representations.rb +1260 -0
  417. data/generated/google/apis/healthcare_v1alpha2/service.rb +4011 -0
  418. data/generated/google/apis/healthcare_v1alpha2.rb +34 -0
  419. data/generated/google/apis/healthcare_v1beta1/classes.rb +2464 -0
  420. data/generated/google/apis/healthcare_v1beta1/representations.rb +1042 -0
  421. data/generated/google/apis/healthcare_v1beta1/service.rb +3413 -0
  422. data/generated/google/apis/healthcare_v1beta1.rb +34 -0
  423. data/generated/google/apis/iam_v1/classes.rb +171 -1
  424. data/generated/google/apis/iam_v1/representations.rb +95 -0
  425. data/generated/google/apis/iam_v1/service.rb +249 -39
  426. data/generated/google/apis/iam_v1.rb +1 -1
  427. data/generated/google/apis/iamcredentials_v1/classes.rb +8 -4
  428. data/generated/google/apis/iamcredentials_v1/service.rb +15 -10
  429. data/generated/google/apis/iamcredentials_v1.rb +1 -1
  430. data/generated/google/apis/iap_v1/classes.rb +1 -1
  431. data/generated/google/apis/iap_v1/service.rb +3 -3
  432. data/generated/google/apis/iap_v1.rb +1 -1
  433. data/generated/google/apis/iap_v1beta1/classes.rb +1 -1
  434. data/generated/google/apis/iap_v1beta1/service.rb +3 -3
  435. data/generated/google/apis/iap_v1beta1.rb +1 -1
  436. data/generated/google/apis/identitytoolkit_v3/service.rb +20 -20
  437. data/generated/google/apis/indexing_v3/service.rb +2 -2
  438. data/generated/google/apis/jobs_v2/classes.rb +16 -17
  439. data/generated/google/apis/jobs_v2/service.rb +17 -17
  440. data/generated/google/apis/jobs_v2.rb +1 -1
  441. data/generated/google/apis/jobs_v3/classes.rb +14 -8
  442. data/generated/google/apis/jobs_v3/service.rb +16 -17
  443. data/generated/google/apis/jobs_v3.rb +1 -1
  444. data/generated/google/apis/jobs_v3p1beta1/classes.rb +26 -20
  445. data/generated/google/apis/jobs_v3p1beta1/service.rb +17 -18
  446. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  447. data/generated/google/apis/kgsearch_v1/service.rb +1 -1
  448. data/generated/google/apis/language_v1/classes.rb +8 -7
  449. data/generated/google/apis/language_v1/service.rb +6 -6
  450. data/generated/google/apis/language_v1.rb +1 -1
  451. data/generated/google/apis/language_v1beta1/classes.rb +5 -5
  452. data/generated/google/apis/language_v1beta1/service.rb +4 -4
  453. data/generated/google/apis/language_v1beta1.rb +1 -1
  454. data/generated/google/apis/language_v1beta2/classes.rb +8 -7
  455. data/generated/google/apis/language_v1beta2/service.rb +6 -6
  456. data/generated/google/apis/language_v1beta2.rb +1 -1
  457. data/generated/google/apis/libraryagent_v1/service.rb +6 -6
  458. data/generated/google/apis/licensing_v1/service.rb +7 -7
  459. data/generated/google/apis/logging_v2/classes.rb +8 -3
  460. data/generated/google/apis/logging_v2/representations.rb +1 -0
  461. data/generated/google/apis/logging_v2/service.rb +72 -72
  462. data/generated/google/apis/logging_v2.rb +1 -1
  463. data/generated/google/apis/manufacturers_v1/service.rb +4 -4
  464. data/generated/google/apis/mirror_v1/service.rb +24 -24
  465. data/generated/google/apis/ml_v1/classes.rb +240 -52
  466. data/generated/google/apis/ml_v1/representations.rb +25 -2
  467. data/generated/google/apis/ml_v1/service.rb +36 -36
  468. data/generated/google/apis/ml_v1.rb +1 -1
  469. data/generated/google/apis/monitoring_v3/classes.rb +22 -18
  470. data/generated/google/apis/monitoring_v3/representations.rb +2 -1
  471. data/generated/google/apis/monitoring_v3/service.rb +42 -37
  472. data/generated/google/apis/monitoring_v3.rb +1 -1
  473. data/generated/google/apis/oauth2_v1/classes.rb +0 -124
  474. data/generated/google/apis/oauth2_v1/representations.rb +0 -62
  475. data/generated/google/apis/oauth2_v1/service.rb +3 -162
  476. data/generated/google/apis/oauth2_v1.rb +3 -6
  477. data/generated/google/apis/oauth2_v2/service.rb +4 -4
  478. data/generated/google/apis/oauth2_v2.rb +3 -6
  479. data/generated/google/apis/oslogin_v1/service.rb +8 -7
  480. data/generated/google/apis/oslogin_v1.rb +3 -2
  481. data/generated/google/apis/oslogin_v1alpha/service.rb +8 -7
  482. data/generated/google/apis/oslogin_v1alpha.rb +3 -2
  483. data/generated/google/apis/oslogin_v1beta/service.rb +8 -7
  484. data/generated/google/apis/oslogin_v1beta.rb +3 -2
  485. data/generated/google/apis/pagespeedonline_v1/service.rb +1 -1
  486. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
  487. data/generated/google/apis/pagespeedonline_v4/service.rb +1 -1
  488. data/generated/google/apis/pagespeedonline_v5/classes.rb +43 -0
  489. data/generated/google/apis/pagespeedonline_v5/representations.rb +18 -0
  490. data/generated/google/apis/pagespeedonline_v5/service.rb +1 -1
  491. data/generated/google/apis/pagespeedonline_v5.rb +1 -1
  492. data/generated/google/apis/people_v1/classes.rb +38 -29
  493. data/generated/google/apis/people_v1/representations.rb +1 -0
  494. data/generated/google/apis/people_v1/service.rb +18 -13
  495. data/generated/google/apis/people_v1.rb +2 -5
  496. data/generated/google/apis/playcustomapp_v1/service.rb +1 -1
  497. data/generated/google/apis/plus_domains_v1/service.rb +18 -392
  498. data/generated/google/apis/plus_domains_v1.rb +4 -10
  499. data/generated/google/apis/plus_v1/service.rb +16 -16
  500. data/generated/google/apis/plus_v1.rb +4 -4
  501. data/generated/google/apis/poly_v1/classes.rb +8 -6
  502. data/generated/google/apis/poly_v1/service.rb +15 -12
  503. data/generated/google/apis/poly_v1.rb +1 -1
  504. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +8 -6
  505. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +17 -17
  506. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  507. data/generated/google/apis/pubsub_v1/classes.rb +55 -39
  508. data/generated/google/apis/pubsub_v1/representations.rb +16 -0
  509. data/generated/google/apis/pubsub_v1/service.rb +46 -69
  510. data/generated/google/apis/pubsub_v1.rb +1 -1
  511. data/generated/google/apis/pubsub_v1beta1a/service.rb +15 -15
  512. data/generated/google/apis/pubsub_v1beta2/classes.rb +45 -1
  513. data/generated/google/apis/pubsub_v1beta2/representations.rb +16 -0
  514. data/generated/google/apis/pubsub_v1beta2/service.rb +20 -20
  515. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  516. data/generated/google/apis/redis_v1/classes.rb +30 -10
  517. data/generated/google/apis/redis_v1/representations.rb +13 -0
  518. data/generated/google/apis/redis_v1/service.rb +51 -15
  519. data/generated/google/apis/redis_v1.rb +1 -1
  520. data/generated/google/apis/redis_v1beta1/classes.rb +18 -21
  521. data/generated/google/apis/redis_v1beta1/representations.rb +0 -1
  522. data/generated/google/apis/redis_v1beta1/service.rb +15 -15
  523. data/generated/google/apis/redis_v1beta1.rb +1 -1
  524. data/generated/google/apis/remotebuildexecution_v1/classes.rb +50 -35
  525. data/generated/google/apis/remotebuildexecution_v1/representations.rb +2 -0
  526. data/generated/google/apis/remotebuildexecution_v1/service.rb +7 -7
  527. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  528. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +48 -33
  529. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +2 -0
  530. data/generated/google/apis/remotebuildexecution_v1alpha/service.rb +10 -10
  531. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  532. data/generated/google/apis/remotebuildexecution_v2/classes.rb +58 -43
  533. data/generated/google/apis/remotebuildexecution_v2/representations.rb +2 -0
  534. data/generated/google/apis/remotebuildexecution_v2/service.rb +9 -9
  535. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  536. data/generated/google/apis/replicapool_v1beta1/service.rb +10 -10
  537. data/generated/google/apis/reseller_v1/classes.rb +32 -39
  538. data/generated/google/apis/reseller_v1/service.rb +18 -18
  539. data/generated/google/apis/reseller_v1.rb +1 -1
  540. data/generated/google/apis/run_v1/classes.rb +73 -0
  541. data/generated/google/apis/run_v1/representations.rb +43 -0
  542. data/generated/google/apis/run_v1/service.rb +90 -0
  543. data/generated/google/apis/run_v1.rb +35 -0
  544. data/generated/google/apis/run_v1alpha1/classes.rb +3882 -0
  545. data/generated/google/apis/run_v1alpha1/representations.rb +1425 -0
  546. data/generated/google/apis/run_v1alpha1/service.rb +2071 -0
  547. data/generated/google/apis/run_v1alpha1.rb +35 -0
  548. data/generated/google/apis/runtimeconfig_v1/classes.rb +11 -11
  549. data/generated/google/apis/runtimeconfig_v1/service.rb +3 -3
  550. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  551. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +26 -25
  552. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +22 -22
  553. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  554. data/generated/google/apis/safebrowsing_v4/service.rb +7 -7
  555. data/generated/google/apis/script_v1/classes.rb +167 -6
  556. data/generated/google/apis/script_v1/representations.rb +79 -1
  557. data/generated/google/apis/script_v1/service.rb +16 -16
  558. data/generated/google/apis/script_v1.rb +1 -1
  559. data/generated/google/apis/searchconsole_v1/service.rb +1 -1
  560. data/generated/google/apis/securitycenter_v1/classes.rb +1627 -0
  561. data/generated/google/apis/securitycenter_v1/representations.rb +569 -0
  562. data/generated/google/apis/securitycenter_v1/service.rb +1110 -0
  563. data/generated/google/apis/securitycenter_v1.rb +35 -0
  564. data/generated/google/apis/securitycenter_v1beta1/classes.rb +1514 -0
  565. data/generated/google/apis/securitycenter_v1beta1/representations.rb +548 -0
  566. data/generated/google/apis/securitycenter_v1beta1/service.rb +1035 -0
  567. data/generated/google/apis/securitycenter_v1beta1.rb +35 -0
  568. data/generated/google/apis/servicebroker_v1/classes.rb +1 -1
  569. data/generated/google/apis/servicebroker_v1/service.rb +3 -3
  570. data/generated/google/apis/servicebroker_v1.rb +1 -1
  571. data/generated/google/apis/servicebroker_v1alpha1/classes.rb +1 -1
  572. data/generated/google/apis/servicebroker_v1alpha1/service.rb +16 -16
  573. data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
  574. data/generated/google/apis/servicebroker_v1beta1/classes.rb +1 -1
  575. data/generated/google/apis/servicebroker_v1beta1/service.rb +21 -21
  576. data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
  577. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +453 -149
  578. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +202 -29
  579. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +148 -62
  580. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  581. data/generated/google/apis/servicecontrol_v1/classes.rb +122 -25
  582. data/generated/google/apis/servicecontrol_v1/representations.rb +47 -0
  583. data/generated/google/apis/servicecontrol_v1/service.rb +3 -3
  584. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  585. data/generated/google/apis/servicemanagement_v1/classes.rb +93 -110
  586. data/generated/google/apis/servicemanagement_v1/representations.rb +13 -26
  587. data/generated/google/apis/servicemanagement_v1/service.rb +30 -27
  588. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  589. data/generated/google/apis/servicenetworking_v1/classes.rb +3626 -0
  590. data/generated/google/apis/servicenetworking_v1/representations.rb +1055 -0
  591. data/generated/google/apis/servicenetworking_v1/service.rb +440 -0
  592. data/generated/google/apis/servicenetworking_v1.rb +38 -0
  593. data/generated/google/apis/servicenetworking_v1beta/classes.rb +65 -108
  594. data/generated/google/apis/servicenetworking_v1beta/representations.rb +2 -29
  595. data/generated/google/apis/servicenetworking_v1beta/service.rb +6 -6
  596. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  597. data/generated/google/apis/serviceusage_v1/classes.rb +160 -109
  598. data/generated/google/apis/serviceusage_v1/representations.rb +42 -26
  599. data/generated/google/apis/serviceusage_v1/service.rb +17 -19
  600. data/generated/google/apis/serviceusage_v1.rb +1 -1
  601. data/generated/google/apis/serviceusage_v1beta1/classes.rb +161 -110
  602. data/generated/google/apis/serviceusage_v1beta1/representations.rb +42 -26
  603. data/generated/google/apis/serviceusage_v1beta1/service.rb +7 -7
  604. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  605. data/generated/google/apis/sheets_v4/classes.rb +115 -26
  606. data/generated/google/apis/sheets_v4/service.rb +17 -17
  607. data/generated/google/apis/sheets_v4.rb +1 -1
  608. data/generated/google/apis/site_verification_v1/service.rb +7 -7
  609. data/generated/google/apis/slides_v1/classes.rb +2 -2
  610. data/generated/google/apis/slides_v1/service.rb +5 -5
  611. data/generated/google/apis/slides_v1.rb +1 -1
  612. data/generated/google/apis/sourcerepo_v1/classes.rb +183 -1
  613. data/generated/google/apis/sourcerepo_v1/representations.rb +45 -0
  614. data/generated/google/apis/sourcerepo_v1/service.rb +45 -10
  615. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  616. data/generated/google/apis/spanner_v1/classes.rb +231 -17
  617. data/generated/google/apis/spanner_v1/representations.rb +66 -0
  618. data/generated/google/apis/spanner_v1/service.rb +92 -42
  619. data/generated/google/apis/spanner_v1.rb +1 -1
  620. data/generated/google/apis/speech_v1/classes.rb +110 -13
  621. data/generated/google/apis/speech_v1/representations.rb +24 -0
  622. data/generated/google/apis/speech_v1/service.rb +9 -7
  623. data/generated/google/apis/speech_v1.rb +1 -1
  624. data/generated/google/apis/speech_v1p1beta1/classes.rb +19 -13
  625. data/generated/google/apis/speech_v1p1beta1/representations.rb +1 -0
  626. data/generated/google/apis/speech_v1p1beta1/service.rb +9 -7
  627. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  628. data/generated/google/apis/sqladmin_v1beta4/classes.rb +94 -17
  629. data/generated/google/apis/sqladmin_v1beta4/representations.rb +36 -0
  630. data/generated/google/apis/sqladmin_v1beta4/service.rb +44 -44
  631. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  632. data/generated/google/apis/storage_v1/classes.rb +201 -4
  633. data/generated/google/apis/storage_v1/representations.rb +76 -1
  634. data/generated/google/apis/storage_v1/service.rb +488 -93
  635. data/generated/google/apis/storage_v1.rb +1 -1
  636. data/generated/google/apis/storage_v1beta1/service.rb +24 -24
  637. data/generated/google/apis/storage_v1beta2/service.rb +34 -34
  638. data/generated/google/apis/storagetransfer_v1/classes.rb +44 -44
  639. data/generated/google/apis/storagetransfer_v1/service.rb +35 -36
  640. data/generated/google/apis/storagetransfer_v1.rb +2 -2
  641. data/generated/google/apis/streetviewpublish_v1/classes.rb +27 -27
  642. data/generated/google/apis/streetviewpublish_v1/service.rb +36 -40
  643. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  644. data/generated/google/apis/surveys_v2/service.rb +8 -8
  645. data/generated/google/apis/tagmanager_v1/service.rb +49 -95
  646. data/generated/google/apis/tagmanager_v1.rb +1 -1
  647. data/generated/google/apis/tagmanager_v2/classes.rb +197 -292
  648. data/generated/google/apis/tagmanager_v2/representations.rb +62 -103
  649. data/generated/google/apis/tagmanager_v2/service.rb +287 -249
  650. data/generated/google/apis/tagmanager_v2.rb +1 -1
  651. data/generated/google/apis/tasks_v1/service.rb +19 -19
  652. data/generated/google/apis/tasks_v1.rb +2 -2
  653. data/generated/google/apis/testing_v1/classes.rb +44 -39
  654. data/generated/google/apis/testing_v1/representations.rb +3 -1
  655. data/generated/google/apis/testing_v1/service.rb +5 -5
  656. data/generated/google/apis/testing_v1.rb +1 -1
  657. data/generated/google/apis/texttospeech_v1/service.rb +2 -2
  658. data/generated/google/apis/texttospeech_v1.rb +1 -1
  659. data/generated/google/apis/texttospeech_v1beta1/service.rb +2 -2
  660. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  661. data/generated/google/apis/toolresults_v1beta3/classes.rb +340 -17
  662. data/generated/google/apis/toolresults_v1beta3/representations.rb +90 -0
  663. data/generated/google/apis/toolresults_v1beta3/service.rb +140 -24
  664. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  665. data/generated/google/apis/tpu_v1/classes.rb +21 -15
  666. data/generated/google/apis/tpu_v1/representations.rb +1 -0
  667. data/generated/google/apis/tpu_v1/service.rb +17 -17
  668. data/generated/google/apis/tpu_v1.rb +1 -1
  669. data/generated/google/apis/tpu_v1alpha1/classes.rb +21 -15
  670. data/generated/google/apis/tpu_v1alpha1/representations.rb +1 -0
  671. data/generated/google/apis/tpu_v1alpha1/service.rb +17 -17
  672. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  673. data/generated/google/apis/translate_v2/service.rb +5 -5
  674. data/generated/google/apis/urlshortener_v1/service.rb +3 -3
  675. data/generated/google/apis/vault_v1/classes.rb +44 -18
  676. data/generated/google/apis/vault_v1/representations.rb +4 -0
  677. data/generated/google/apis/vault_v1/service.rb +28 -28
  678. data/generated/google/apis/vault_v1.rb +1 -1
  679. data/generated/google/apis/videointelligence_v1/classes.rb +2193 -350
  680. data/generated/google/apis/videointelligence_v1/representations.rb +805 -6
  681. data/generated/google/apis/videointelligence_v1/service.rb +7 -6
  682. data/generated/google/apis/videointelligence_v1.rb +3 -2
  683. data/generated/google/apis/videointelligence_v1beta2/classes.rb +2448 -605
  684. data/generated/google/apis/videointelligence_v1beta2/representations.rb +806 -7
  685. data/generated/google/apis/videointelligence_v1beta2/service.rb +3 -2
  686. data/generated/google/apis/videointelligence_v1beta2.rb +3 -2
  687. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +2422 -579
  688. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +806 -7
  689. data/generated/google/apis/videointelligence_v1p1beta1/service.rb +3 -2
  690. data/generated/google/apis/videointelligence_v1p1beta1.rb +3 -2
  691. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +2645 -830
  692. data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +796 -12
  693. data/generated/google/apis/videointelligence_v1p2beta1/service.rb +3 -2
  694. data/generated/google/apis/videointelligence_v1p2beta1.rb +3 -2
  695. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +4687 -0
  696. data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +2005 -0
  697. data/generated/google/apis/videointelligence_v1p3beta1/service.rb +94 -0
  698. data/generated/google/apis/videointelligence_v1p3beta1.rb +36 -0
  699. data/generated/google/apis/vision_v1/classes.rb +4397 -124
  700. data/generated/google/apis/vision_v1/representations.rb +2366 -541
  701. data/generated/google/apis/vision_v1/service.rb +160 -33
  702. data/generated/google/apis/vision_v1.rb +1 -1
  703. data/generated/google/apis/vision_v1p1beta1/classes.rb +4451 -158
  704. data/generated/google/apis/vision_v1p1beta1/representations.rb +2415 -576
  705. data/generated/google/apis/vision_v1p1beta1/service.rb +73 -2
  706. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  707. data/generated/google/apis/vision_v1p2beta1/classes.rb +4451 -158
  708. data/generated/google/apis/vision_v1p2beta1/representations.rb +2443 -604
  709. data/generated/google/apis/vision_v1p2beta1/service.rb +73 -2
  710. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  711. data/generated/google/apis/webfonts_v1/service.rb +1 -1
  712. data/generated/google/apis/webmasters_v3/classes.rb +0 -166
  713. data/generated/google/apis/webmasters_v3/representations.rb +0 -93
  714. data/generated/google/apis/webmasters_v3/service.rb +9 -180
  715. data/generated/google/apis/webmasters_v3.rb +1 -1
  716. data/generated/google/apis/websecurityscanner_v1alpha/service.rb +13 -13
  717. data/generated/google/apis/websecurityscanner_v1beta/classes.rb +973 -0
  718. data/generated/google/apis/websecurityscanner_v1beta/representations.rb +452 -0
  719. data/generated/google/apis/websecurityscanner_v1beta/service.rb +548 -0
  720. data/generated/google/apis/websecurityscanner_v1beta.rb +34 -0
  721. data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
  722. data/generated/google/apis/youtube_analytics_v1beta1/service.rb +8 -8
  723. data/generated/google/apis/youtube_analytics_v2/service.rb +8 -8
  724. data/generated/google/apis/youtube_partner_v1/classes.rb +15 -34
  725. data/generated/google/apis/youtube_partner_v1/representations.rb +4 -17
  726. data/generated/google/apis/youtube_partner_v1/service.rb +74 -74
  727. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  728. data/generated/google/apis/youtube_v3/service.rb +71 -71
  729. data/generated/google/apis/youtube_v3.rb +1 -1
  730. data/generated/google/apis/youtubereporting_v1/classes.rb +2 -2
  731. data/generated/google/apis/youtubereporting_v1/service.rb +8 -8
  732. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  733. data/google-api-client.gemspec +2 -2
  734. data/lib/google/apis/core/http_command.rb +1 -0
  735. data/lib/google/apis/core/json_representation.rb +4 -0
  736. data/lib/google/apis/core/upload.rb +3 -3
  737. data/lib/google/apis/generator/model.rb +1 -1
  738. data/lib/google/apis/generator/templates/_method.tmpl +3 -3
  739. data/lib/google/apis/version.rb +1 -1
  740. metadata +86 -17
  741. data/.kokoro/common.cfg +0 -22
  742. data/.kokoro/windows.sh +0 -32
  743. data/generated/google/apis/logging_v2beta1/classes.rb +0 -1765
  744. data/generated/google/apis/logging_v2beta1/representations.rb +0 -537
  745. data/generated/google/apis/logging_v2beta1/service.rb +0 -570
  746. data/generated/google/apis/logging_v2beta1.rb +0 -46
  747. data/generated/google/apis/partners_v2/classes.rb +0 -2260
  748. data/generated/google/apis/partners_v2/representations.rb +0 -905
  749. data/generated/google/apis/partners_v2/service.rb +0 -1077
  750. data/samples/web/.env +0 -2
@@ -0,0 +1,3413 @@
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 FHIR resource type to delete, such as Patient or Observation. For a
2166
+ # complete list, see the [FHIR Resource
2167
+ # Index](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html).
2168
+ # @param [String] fields
2169
+ # Selector specifying which fields to include in a partial response.
2170
+ # @param [String] quota_user
2171
+ # Available to use for quota purposes for server-side applications. Can be any
2172
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2173
+ # @param [Google::Apis::RequestOptions] options
2174
+ # Request-specific options
2175
+ #
2176
+ # @yield [result, err] Result & error if block supplied
2177
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object
2178
+ # @yieldparam err [StandardError] error object if request failed
2179
+ #
2180
+ # @return [Google::Apis::HealthcareV1beta1::Empty]
2181
+ #
2182
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2183
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2184
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2185
+ def conditional_project_location_dataset_fhir_store_fhir_delete(parent, type, fields: nil, quota_user: nil, options: nil, &block)
2186
+ command = make_simple_command(:delete, 'v1beta1/{+parent}/fhir/{+type}', options)
2187
+ command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
2188
+ command.response_class = Google::Apis::HealthcareV1beta1::Empty
2189
+ command.params['parent'] = parent unless parent.nil?
2190
+ command.params['type'] = type unless type.nil?
2191
+ command.query['fields'] = fields unless fields.nil?
2192
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2193
+ execute_or_queue_command(command, &block)
2194
+ end
2195
+
2196
+ # If a resource is found based on the search criteria specified in the query
2197
+ # parameters, updates part of that resource by applying the operations
2198
+ # specified in a [JSON Patch](http://jsonpatch.com/) document.
2199
+ # Implements the FHIR standard [conditional patch
2200
+ # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#patch).
2201
+ # Search terms are provided as query parameters following the same pattern as
2202
+ # the search method.
2203
+ # If the search criteria identify more than one match, the request will
2204
+ # return a `412 Precondition Failed` error.
2205
+ # The request body must contain a JSON Patch document, and the request
2206
+ # headers must contain `Content-Type: application/json-patch+json`.
2207
+ # On success, the response body will contain a JSON-encoded representation
2208
+ # of the updated resource, including the server-assigned version ID.
2209
+ # Errors generated by the FHIR store will contain a JSON-encoded
2210
+ # `OperationOutcome` resource describing the reason for the error. If the
2211
+ # request cannot be mapped to a valid API method on a FHIR store, a generic
2212
+ # GCP error might be returned instead.
2213
+ # @param [String] parent
2214
+ # The name of the FHIR store this resource belongs to.
2215
+ # @param [String] type
2216
+ # The FHIR resource type to update, such as Patient or Observation. For a
2217
+ # complete list, see the [FHIR Resource
2218
+ # Index](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html).
2219
+ # @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_object
2220
+ # @param [String] fields
2221
+ # Selector specifying which fields to include in a partial response.
2222
+ # @param [String] quota_user
2223
+ # Available to use for quota purposes for server-side applications. Can be any
2224
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2225
+ # @param [Google::Apis::RequestOptions] options
2226
+ # Request-specific options
2227
+ #
2228
+ # @yield [result, err] Result & error if block supplied
2229
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
2230
+ # @yieldparam err [StandardError] error object if request failed
2231
+ #
2232
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
2233
+ #
2234
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2235
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2236
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2237
+ def conditional_project_location_dataset_fhir_store_fhir_patch(parent, type, http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2238
+ command = make_simple_command(:patch, 'v1beta1/{+parent}/fhir/{+type}', options)
2239
+ command.request_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2240
+ command.request_object = http_body_object
2241
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2242
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
2243
+ command.params['parent'] = parent unless parent.nil?
2244
+ command.params['type'] = type unless type.nil?
2245
+ command.query['fields'] = fields unless fields.nil?
2246
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2247
+ execute_or_queue_command(command, &block)
2248
+ end
2249
+
2250
+ # If a resource is found based on the search criteria specified in the query
2251
+ # parameters, updates the entire contents of that resource.
2252
+ # Implements the FHIR standard [conditional update
2253
+ # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#cond-
2254
+ # update).
2255
+ # Search terms are provided as query parameters following the same pattern as
2256
+ # the search method.
2257
+ # If the search criteria identify more than one match, the request will
2258
+ # return a `412 Precondition Failed` error.
2259
+ # If the search criteria identify zero matches, and the supplied resource
2260
+ # body contains an `id`, and the FHIR store has
2261
+ # enable_update_create set, creates the
2262
+ # resource with the client-specified ID. If the search criteria identify zero
2263
+ # matches, and the supplied resource body does not contain an `id`, the
2264
+ # resource will be created with a server-assigned ID as per the
2265
+ # create method.
2266
+ # The request body must contain a JSON-encoded FHIR resource, and the request
2267
+ # headers must contain `Content-Type: application/fhir+json`.
2268
+ # On success, the response body will contain a JSON-encoded representation
2269
+ # of the updated resource, including the server-assigned version ID.
2270
+ # Errors generated by the FHIR store will contain a JSON-encoded
2271
+ # `OperationOutcome` resource describing the reason for the error. If the
2272
+ # request cannot be mapped to a valid API method on a FHIR store, a generic
2273
+ # GCP error might be returned instead.
2274
+ # @param [String] parent
2275
+ # The name of the FHIR store this resource belongs to.
2276
+ # @param [String] type
2277
+ # The FHIR resource type to update, such as Patient or Observation. For a
2278
+ # complete list, see the [FHIR Resource
2279
+ # Index](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html).
2280
+ # Must match the resource type in the provided content.
2281
+ # @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_object
2282
+ # @param [String] fields
2283
+ # Selector specifying which fields to include in a partial response.
2284
+ # @param [String] quota_user
2285
+ # Available to use for quota purposes for server-side applications. Can be any
2286
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2287
+ # @param [Google::Apis::RequestOptions] options
2288
+ # Request-specific options
2289
+ #
2290
+ # @yield [result, err] Result & error if block supplied
2291
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
2292
+ # @yieldparam err [StandardError] error object if request failed
2293
+ #
2294
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
2295
+ #
2296
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2297
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2298
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2299
+ def conditional_project_location_dataset_fhir_store_fhir_update(parent, type, http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2300
+ command = make_simple_command(:put, 'v1beta1/{+parent}/fhir/{+type}', options)
2301
+ command.request_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2302
+ command.request_object = http_body_object
2303
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2304
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
2305
+ command.params['parent'] = parent unless parent.nil?
2306
+ command.params['type'] = type unless type.nil?
2307
+ command.query['fields'] = fields unless fields.nil?
2308
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2309
+ execute_or_queue_command(command, &block)
2310
+ end
2311
+
2312
+ # Creates a FHIR resource.
2313
+ # Implements the FHIR standard [create
2314
+ # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#create),
2315
+ # which creates a new resource with a server-assigned resource ID.
2316
+ # Also supports the FHIR standard [conditional create
2317
+ # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#ccreate),
2318
+ # specified by supplying an `If-None-Exist` header containing a FHIR search
2319
+ # query. If no resources match this search query, the server processes the
2320
+ # create operation as normal.
2321
+ # The request body must contain a JSON-encoded FHIR resource, and the request
2322
+ # headers must contain `Content-Type: application/fhir+json`.
2323
+ # On success, the response body will contain a JSON-encoded representation
2324
+ # of the resource as it was created on the server, including the
2325
+ # server-assigned resource ID and version ID.
2326
+ # Errors generated by the FHIR store will contain a JSON-encoded
2327
+ # `OperationOutcome` resource describing the reason for the error. If the
2328
+ # request cannot be mapped to a valid API method on a FHIR store, a generic
2329
+ # GCP error might be returned instead.
2330
+ # @param [String] parent
2331
+ # The name of the FHIR store this resource belongs to.
2332
+ # @param [String] type
2333
+ # The FHIR resource type to create, such as Patient or Observation. For a
2334
+ # complete list, see the [FHIR Resource
2335
+ # Index](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html).
2336
+ # Must match the resource type in the provided content.
2337
+ # @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_object
2338
+ # @param [String] fields
2339
+ # Selector specifying which fields to include in a partial response.
2340
+ # @param [String] quota_user
2341
+ # Available to use for quota purposes for server-side applications. Can be any
2342
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2343
+ # @param [Google::Apis::RequestOptions] options
2344
+ # Request-specific options
2345
+ #
2346
+ # @yield [result, err] Result & error if block supplied
2347
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
2348
+ # @yieldparam err [StandardError] error object if request failed
2349
+ #
2350
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
2351
+ #
2352
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2353
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2354
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2355
+ def create_project_location_dataset_fhir_store_fhir(parent, type, http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2356
+ command = make_simple_command(:post, 'v1beta1/{+parent}/fhir/{+type}', options)
2357
+ command.request_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2358
+ command.request_object = http_body_object
2359
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2360
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
2361
+ command.params['parent'] = parent unless parent.nil?
2362
+ command.params['type'] = type unless type.nil?
2363
+ command.query['fields'] = fields unless fields.nil?
2364
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2365
+ execute_or_queue_command(command, &block)
2366
+ end
2367
+
2368
+ # Deletes a FHIR resource.
2369
+ # Implements the FHIR standard [delete
2370
+ # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#delete).
2371
+ # Note: Unless resource versioning is disabled by setting the
2372
+ # disable_resource_versioning flag
2373
+ # on the FHIR store, the deleted resources will be moved to a history
2374
+ # repository that can still be retrieved through vread
2375
+ # and related methods, unless they are removed by the
2376
+ # purge method.
2377
+ # @param [String] name
2378
+ # The name of the resource to delete.
2379
+ # @param [String] fields
2380
+ # Selector specifying which fields to include in a partial response.
2381
+ # @param [String] quota_user
2382
+ # Available to use for quota purposes for server-side applications. Can be any
2383
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2384
+ # @param [Google::Apis::RequestOptions] options
2385
+ # Request-specific options
2386
+ #
2387
+ # @yield [result, err] Result & error if block supplied
2388
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
2389
+ # @yieldparam err [StandardError] error object if request failed
2390
+ #
2391
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
2392
+ #
2393
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2394
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2395
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2396
+ def delete_project_location_dataset_fhir_store_fhir(name, fields: nil, quota_user: nil, options: nil, &block)
2397
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
2398
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2399
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
2400
+ command.params['name'] = name unless name.nil?
2401
+ command.query['fields'] = fields unless fields.nil?
2402
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2403
+ execute_or_queue_command(command, &block)
2404
+ end
2405
+
2406
+ # Executes all the requests in the given Bundle.
2407
+ # Implements the FHIR standard [batch/transaction
2408
+ # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#
2409
+ # transaction).
2410
+ # Supports all interactions within a bundle, except search. This method
2411
+ # accepts Bundles of type `batch` and `transaction`, processing them
2412
+ # according to the [batch processing
2413
+ # rules](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.1)
2414
+ # and [transaction processing
2415
+ # rules](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.2).
2416
+ # The request body must contain a JSON-encoded FHIR `Bundle` resource, and
2417
+ # the request headers must contain `Content-Type: application/fhir+json`.
2418
+ # For a batch bundle or a successful transaction the response body will
2419
+ # contain a JSON-encoded representation of a `Bundle` resource of type
2420
+ # `batch-response` or `transaction-response` containing one entry for each
2421
+ # entry in the request, with the outcome of processing the entry. In the
2422
+ # case of an error for a transaction bundle, the response body will contain
2423
+ # a JSON-encoded `OperationOutcome` resource describing the reason for the
2424
+ # error. If the request cannot be mapped to a valid API method on a FHIR
2425
+ # store, a generic GCP error might be returned instead.
2426
+ # @param [String] parent
2427
+ # Name of the FHIR store in which this bundle will be executed.
2428
+ # @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_object
2429
+ # @param [String] fields
2430
+ # Selector specifying which fields to include in a partial response.
2431
+ # @param [String] quota_user
2432
+ # Available to use for quota purposes for server-side applications. Can be any
2433
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2434
+ # @param [Google::Apis::RequestOptions] options
2435
+ # Request-specific options
2436
+ #
2437
+ # @yield [result, err] Result & error if block supplied
2438
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
2439
+ # @yieldparam err [StandardError] error object if request failed
2440
+ #
2441
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
2442
+ #
2443
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2444
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2445
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2446
+ def execute_project_location_dataset_fhir_store_fhir_bundle(parent, http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2447
+ command = make_simple_command(:post, 'v1beta1/{+parent}/fhir', options)
2448
+ command.request_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2449
+ command.request_object = http_body_object
2450
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2451
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
2452
+ command.params['parent'] = parent unless parent.nil?
2453
+ command.query['fields'] = fields unless fields.nil?
2454
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2455
+ execute_or_queue_command(command, &block)
2456
+ end
2457
+
2458
+ # Lists all the versions of a resource (including the current version and
2459
+ # deleted versions) from the FHIR store.
2460
+ # Implements the per-resource form of the FHIR standard [history
2461
+ # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#history).
2462
+ # On success, the response body will contain a JSON-encoded representation
2463
+ # of a `Bundle` resource of type `history`, containing the version history
2464
+ # sorted from most recent to oldest versions.
2465
+ # Errors generated by the FHIR store will contain a JSON-encoded
2466
+ # `OperationOutcome` resource describing the reason for the error. If the
2467
+ # request cannot be mapped to a valid API method on a FHIR store, a generic
2468
+ # GCP error might be returned instead.
2469
+ # @param [String] name
2470
+ # The name of the resource to retrieve.
2471
+ # @param [String] at
2472
+ # Only include resource versions that were current at some point during the
2473
+ # time period specified in the date time value. The date parameter format is
2474
+ # yyyy-mm-ddThh:mm:ss[Z|(+|-)hh:mm]
2475
+ # Clients may specify any of the following:
2476
+ # * An entire year: `_at=2019`
2477
+ # * An entire month: `_at=2019-01`
2478
+ # * A specific day: `_at=2019-01-20`
2479
+ # * A specific second: `_at=2018-12-31T23:59:58Z`
2480
+ # @param [Fixnum] count
2481
+ # The maximum number of search results on a page. Defaults to 1000.
2482
+ # @param [String] page
2483
+ # Used to retrieve the first, previous, next, or last page of resource
2484
+ # versions when using pagination. Value should be set to the value of the
2485
+ # `link.url` field returned in the response to the previous request, where
2486
+ # `link.relation` is "first", "previous", "next" or "last".
2487
+ # Omit `page` if no previous request has been made.
2488
+ # @param [String] since
2489
+ # Only include resource versions that were created at or after the given
2490
+ # instant in time. The instant in time uses the format
2491
+ # YYYY-MM-DDThh:mm:ss.sss+zz:zz (for example 2015-02-07T13:28:17.239+02:00 or
2492
+ # 2017-01-01T00:00:00Z). The time must be specified to the second and
2493
+ # include a time zone.
2494
+ # @param [String] fields
2495
+ # Selector specifying which fields to include in a partial response.
2496
+ # @param [String] quota_user
2497
+ # Available to use for quota purposes for server-side applications. Can be any
2498
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2499
+ # @param [Google::Apis::RequestOptions] options
2500
+ # Request-specific options
2501
+ #
2502
+ # @yield [result, err] Result & error if block supplied
2503
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
2504
+ # @yieldparam err [StandardError] error object if request failed
2505
+ #
2506
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
2507
+ #
2508
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2509
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2510
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2511
+ 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)
2512
+ command = make_simple_command(:get, 'v1beta1/{+name}/_history', options)
2513
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2514
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
2515
+ command.params['name'] = name unless name.nil?
2516
+ command.query['at'] = at unless at.nil?
2517
+ command.query['count'] = count unless count.nil?
2518
+ command.query['page'] = page unless page.nil?
2519
+ command.query['since'] = since unless since.nil?
2520
+ command.query['fields'] = fields unless fields.nil?
2521
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2522
+ execute_or_queue_command(command, &block)
2523
+ end
2524
+
2525
+ # Updates part of an existing resource by applying the operations specified
2526
+ # in a [JSON Patch](http://jsonpatch.com/) document.
2527
+ # Implements the FHIR standard [patch
2528
+ # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#patch).
2529
+ # The request body must contain a JSON Patch document, and the request
2530
+ # headers must contain `Content-Type: application/json-patch+json`.
2531
+ # On success, the response body will contain a JSON-encoded representation
2532
+ # of the updated resource, including the server-assigned version ID.
2533
+ # Errors generated by the FHIR store will contain a JSON-encoded
2534
+ # `OperationOutcome` resource describing the reason for the error. If the
2535
+ # request cannot be mapped to a valid API method on a FHIR store, a generic
2536
+ # GCP error might be returned instead.
2537
+ # @param [String] name
2538
+ # The name of the resource to update.
2539
+ # @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_object
2540
+ # @param [String] fields
2541
+ # Selector specifying which fields to include in a partial response.
2542
+ # @param [String] quota_user
2543
+ # Available to use for quota purposes for server-side applications. Can be any
2544
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2545
+ # @param [Google::Apis::RequestOptions] options
2546
+ # Request-specific options
2547
+ #
2548
+ # @yield [result, err] Result & error if block supplied
2549
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
2550
+ # @yieldparam err [StandardError] error object if request failed
2551
+ #
2552
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
2553
+ #
2554
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2555
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2556
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2557
+ def patch_project_location_dataset_fhir_store_fhir(name, http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2558
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
2559
+ command.request_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2560
+ command.request_object = http_body_object
2561
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2562
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
2563
+ command.params['name'] = name unless name.nil?
2564
+ command.query['fields'] = fields unless fields.nil?
2565
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2566
+ execute_or_queue_command(command, &block)
2567
+ end
2568
+
2569
+ # Gets the contents of a FHIR resource.
2570
+ # Implements the FHIR standard [read
2571
+ # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#read).
2572
+ # Also supports the FHIR standard [conditional read
2573
+ # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#cread)
2574
+ # specified by supplying an `If-Modified-Since` header with a date/time value
2575
+ # or an `If-None-Match` header with an ETag value.
2576
+ # On success, the response body will contain a JSON-encoded representation
2577
+ # of the resource.
2578
+ # Errors generated by the FHIR store will contain a JSON-encoded
2579
+ # `OperationOutcome` resource describing the reason for the error. If the
2580
+ # request cannot be mapped to a valid API method on a FHIR store, a generic
2581
+ # GCP error might be returned instead.
2582
+ # @param [String] name
2583
+ # The name of the resource to retrieve.
2584
+ # @param [String] fields
2585
+ # Selector specifying which fields to include in a partial response.
2586
+ # @param [String] quota_user
2587
+ # Available to use for quota purposes for server-side applications. Can be any
2588
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2589
+ # @param [Google::Apis::RequestOptions] options
2590
+ # Request-specific options
2591
+ #
2592
+ # @yield [result, err] Result & error if block supplied
2593
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
2594
+ # @yieldparam err [StandardError] error object if request failed
2595
+ #
2596
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
2597
+ #
2598
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2599
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2600
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2601
+ def read_project_location_dataset_fhir_store_fhir(name, fields: nil, quota_user: nil, options: nil, &block)
2602
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
2603
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2604
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
2605
+ command.params['name'] = name unless name.nil?
2606
+ command.query['fields'] = fields unless fields.nil?
2607
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2608
+ execute_or_queue_command(command, &block)
2609
+ end
2610
+
2611
+ # Searches for resources in the given FHIR store according to criteria
2612
+ # specified as query parameters.
2613
+ # Implements the FHIR standard [search
2614
+ # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#search)
2615
+ # using the search semantics described in the [FHIR Search
2616
+ # specification](http://hl7.org/implement/standards/fhir/STU3/search.html).
2617
+ # Supports three methods of search defined by the specification:
2618
+ # * `GET [base]?[parameters]` to search across all resources.
2619
+ # * `GET [base]/[type]?[parameters]` to search resources of a specified
2620
+ # type.
2621
+ # * `POST [base]/[type]/_search?[parameters]` as an alternate form having
2622
+ # the same semantics as the `GET` method.
2623
+ # The `GET` methods do not support compartment searches. The `POST` method
2624
+ # does not support `application/x-www-form-urlencoded` search parameters.
2625
+ # On success, the response body will contain a JSON-encoded representation
2626
+ # of a `Bundle` resource of type `searchset`, containing the results of the
2627
+ # search.
2628
+ # Errors generated by the FHIR store will contain a JSON-encoded
2629
+ # `OperationOutcome` resource describing the reason for the error. If the
2630
+ # request cannot be mapped to a valid API method on a FHIR store, a generic
2631
+ # GCP error might be returned instead.
2632
+ # # Search Parameters
2633
+ # The server's capability statement, retrieved through
2634
+ # capabilities, indicates what search parameters
2635
+ # are supported on each FHIR resource. A list of all search parameters
2636
+ # defined by the specification can be found in the [FHIR Search Parameter
2637
+ # Registry](http://hl7.org/implement/standards/fhir/STU3/searchparameter-
2638
+ # registry.html).
2639
+ # # Search Modifiers
2640
+ # Modifier | Supported
2641
+ # ----------- | ---------
2642
+ # `:missing` | Yes
2643
+ # `:exact` | Yes
2644
+ # `:contains` | Yes
2645
+ # `:text` | Yes
2646
+ # `:in` | Yes
2647
+ # `:not-in` | Yes
2648
+ # `:above` | Yes
2649
+ # `:below` | Yes
2650
+ # `:[type]` | Yes
2651
+ # `:not` | Yes
2652
+ # `:recurse` | No
2653
+ # @param [String] parent
2654
+ # Name of the FHIR store to retrieve resources from.
2655
+ # @param [Google::Apis::HealthcareV1beta1::SearchResourcesRequest] search_resources_request_object
2656
+ # @param [String] fields
2657
+ # Selector specifying which fields to include in a partial response.
2658
+ # @param [String] quota_user
2659
+ # Available to use for quota purposes for server-side applications. Can be any
2660
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2661
+ # @param [Google::Apis::RequestOptions] options
2662
+ # Request-specific options
2663
+ #
2664
+ # @yield [result, err] Result & error if block supplied
2665
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
2666
+ # @yieldparam err [StandardError] error object if request failed
2667
+ #
2668
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
2669
+ #
2670
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2671
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2672
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2673
+ def search_fhir_resources(parent, search_resources_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2674
+ command = make_simple_command(:post, 'v1beta1/{+parent}/fhir/_search', options)
2675
+ command.request_representation = Google::Apis::HealthcareV1beta1::SearchResourcesRequest::Representation
2676
+ command.request_object = search_resources_request_object
2677
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2678
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
2679
+ command.params['parent'] = parent unless parent.nil?
2680
+ command.query['fields'] = fields unless fields.nil?
2681
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2682
+ execute_or_queue_command(command, &block)
2683
+ end
2684
+
2685
+ # Updates the entire contents of a resource.
2686
+ # Implements the FHIR standard [update
2687
+ # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#update).
2688
+ # If the specified resource does
2689
+ # not exist and the FHIR store has
2690
+ # enable_update_create set, creates the
2691
+ # resource with the client-specified ID.
2692
+ # The request body must contain a JSON-encoded FHIR resource, and the request
2693
+ # headers must contain `Content-Type: application/fhir+json`. The resource
2694
+ # must contain an `id` element having an identical value to the ID in the
2695
+ # REST path of the request.
2696
+ # On success, the response body will contain a JSON-encoded representation
2697
+ # of the updated resource, including the server-assigned version ID.
2698
+ # Errors generated by the FHIR store will contain a JSON-encoded
2699
+ # `OperationOutcome` resource describing the reason for the error. If the
2700
+ # request cannot be mapped to a valid API method on a FHIR store, a generic
2701
+ # GCP error might be returned instead.
2702
+ # @param [String] name
2703
+ # The name of the resource to update.
2704
+ # @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_object
2705
+ # @param [String] fields
2706
+ # Selector specifying which fields to include in a partial response.
2707
+ # @param [String] quota_user
2708
+ # Available to use for quota purposes for server-side applications. Can be any
2709
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2710
+ # @param [Google::Apis::RequestOptions] options
2711
+ # Request-specific options
2712
+ #
2713
+ # @yield [result, err] Result & error if block supplied
2714
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
2715
+ # @yieldparam err [StandardError] error object if request failed
2716
+ #
2717
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
2718
+ #
2719
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2720
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2721
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2722
+ def update_project_location_dataset_fhir_store_fhir(name, http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2723
+ command = make_simple_command(:put, 'v1beta1/{+name}', options)
2724
+ command.request_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2725
+ command.request_object = http_body_object
2726
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2727
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
2728
+ command.params['name'] = name unless name.nil?
2729
+ command.query['fields'] = fields unless fields.nil?
2730
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2731
+ execute_or_queue_command(command, &block)
2732
+ end
2733
+
2734
+ # Gets the contents of a version (current or historical) of a FHIR resource
2735
+ # by version ID.
2736
+ # Implements the FHIR standard [vread
2737
+ # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#vread).
2738
+ # On success, the response body will contain a JSON-encoded representation
2739
+ # of the resource.
2740
+ # Errors generated by the FHIR store will contain a JSON-encoded
2741
+ # `OperationOutcome` resource describing the reason for the error. If the
2742
+ # request cannot be mapped to a valid API method on a FHIR store, a generic
2743
+ # GCP error might be returned instead.
2744
+ # @param [String] name
2745
+ # The name of the resource version to retrieve.
2746
+ # @param [String] fields
2747
+ # Selector specifying which fields to include in a partial response.
2748
+ # @param [String] quota_user
2749
+ # Available to use for quota purposes for server-side applications. Can be any
2750
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2751
+ # @param [Google::Apis::RequestOptions] options
2752
+ # Request-specific options
2753
+ #
2754
+ # @yield [result, err] Result & error if block supplied
2755
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
2756
+ # @yieldparam err [StandardError] error object if request failed
2757
+ #
2758
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
2759
+ #
2760
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2761
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2762
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2763
+ def vread_project_location_dataset_fhir_store_fhir(name, fields: nil, quota_user: nil, options: nil, &block)
2764
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
2765
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
2766
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
2767
+ command.params['name'] = name unless name.nil?
2768
+ command.query['fields'] = fields unless fields.nil?
2769
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2770
+ execute_or_queue_command(command, &block)
2771
+ end
2772
+
2773
+ # Creates a new HL7v2 store within the parent dataset.
2774
+ # @param [String] parent
2775
+ # The name of the dataset this HL7v2 store belongs to.
2776
+ # @param [Google::Apis::HealthcareV1beta1::Hl7V2Store] hl7_v2_store_object
2777
+ # @param [String] hl7_v2_store_id
2778
+ # The ID of the HL7v2 store that is being created.
2779
+ # The string must match the following regex: `[\p`L`\p`N`_\-\.]`1,256``.
2780
+ # @param [String] fields
2781
+ # Selector specifying which fields to include in a partial response.
2782
+ # @param [String] quota_user
2783
+ # Available to use for quota purposes for server-side applications. Can be any
2784
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2785
+ # @param [Google::Apis::RequestOptions] options
2786
+ # Request-specific options
2787
+ #
2788
+ # @yield [result, err] Result & error if block supplied
2789
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Hl7V2Store] parsed result object
2790
+ # @yieldparam err [StandardError] error object if request failed
2791
+ #
2792
+ # @return [Google::Apis::HealthcareV1beta1::Hl7V2Store]
2793
+ #
2794
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2795
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2796
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2797
+ 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)
2798
+ command = make_simple_command(:post, 'v1beta1/{+parent}/hl7V2Stores', options)
2799
+ command.request_representation = Google::Apis::HealthcareV1beta1::Hl7V2Store::Representation
2800
+ command.request_object = hl7_v2_store_object
2801
+ command.response_representation = Google::Apis::HealthcareV1beta1::Hl7V2Store::Representation
2802
+ command.response_class = Google::Apis::HealthcareV1beta1::Hl7V2Store
2803
+ command.params['parent'] = parent unless parent.nil?
2804
+ command.query['hl7V2StoreId'] = hl7_v2_store_id unless hl7_v2_store_id.nil?
2805
+ command.query['fields'] = fields unless fields.nil?
2806
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2807
+ execute_or_queue_command(command, &block)
2808
+ end
2809
+
2810
+ # Deletes the specified HL7v2 store and removes all messages that are
2811
+ # contained within it.
2812
+ # @param [String] name
2813
+ # The resource name of the HL7v2 store to delete.
2814
+ # @param [String] fields
2815
+ # Selector specifying which fields to include in a partial response.
2816
+ # @param [String] quota_user
2817
+ # Available to use for quota purposes for server-side applications. Can be any
2818
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2819
+ # @param [Google::Apis::RequestOptions] options
2820
+ # Request-specific options
2821
+ #
2822
+ # @yield [result, err] Result & error if block supplied
2823
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object
2824
+ # @yieldparam err [StandardError] error object if request failed
2825
+ #
2826
+ # @return [Google::Apis::HealthcareV1beta1::Empty]
2827
+ #
2828
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2829
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2830
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2831
+ def delete_project_location_dataset_hl7_v2_store(name, fields: nil, quota_user: nil, options: nil, &block)
2832
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
2833
+ command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
2834
+ command.response_class = Google::Apis::HealthcareV1beta1::Empty
2835
+ command.params['name'] = name unless name.nil?
2836
+ command.query['fields'] = fields unless fields.nil?
2837
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2838
+ execute_or_queue_command(command, &block)
2839
+ end
2840
+
2841
+ # Gets the specified HL7v2 store.
2842
+ # @param [String] name
2843
+ # The resource name of the HL7v2 store to get.
2844
+ # @param [String] fields
2845
+ # Selector specifying which fields to include in a partial response.
2846
+ # @param [String] quota_user
2847
+ # Available to use for quota purposes for server-side applications. Can be any
2848
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2849
+ # @param [Google::Apis::RequestOptions] options
2850
+ # Request-specific options
2851
+ #
2852
+ # @yield [result, err] Result & error if block supplied
2853
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Hl7V2Store] parsed result object
2854
+ # @yieldparam err [StandardError] error object if request failed
2855
+ #
2856
+ # @return [Google::Apis::HealthcareV1beta1::Hl7V2Store]
2857
+ #
2858
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2859
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2860
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2861
+ def get_project_location_dataset_hl7_v2_store(name, fields: nil, quota_user: nil, options: nil, &block)
2862
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
2863
+ command.response_representation = Google::Apis::HealthcareV1beta1::Hl7V2Store::Representation
2864
+ command.response_class = Google::Apis::HealthcareV1beta1::Hl7V2Store
2865
+ command.params['name'] = name unless name.nil?
2866
+ command.query['fields'] = fields unless fields.nil?
2867
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2868
+ execute_or_queue_command(command, &block)
2869
+ end
2870
+
2871
+ # Gets the access control policy for a resource.
2872
+ # Returns an empty policy if the resource exists and does not have a policy
2873
+ # set.
2874
+ # @param [String] resource
2875
+ # REQUIRED: The resource for which the policy is being requested.
2876
+ # See the operation documentation for the appropriate value for this field.
2877
+ # @param [String] fields
2878
+ # Selector specifying which fields to include in a partial response.
2879
+ # @param [String] quota_user
2880
+ # Available to use for quota purposes for server-side applications. Can be any
2881
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2882
+ # @param [Google::Apis::RequestOptions] options
2883
+ # Request-specific options
2884
+ #
2885
+ # @yield [result, err] Result & error if block supplied
2886
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Policy] parsed result object
2887
+ # @yieldparam err [StandardError] error object if request failed
2888
+ #
2889
+ # @return [Google::Apis::HealthcareV1beta1::Policy]
2890
+ #
2891
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2892
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2893
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2894
+ def get_project_location_dataset_hl7_v2_store_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
2895
+ command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
2896
+ command.response_representation = Google::Apis::HealthcareV1beta1::Policy::Representation
2897
+ command.response_class = Google::Apis::HealthcareV1beta1::Policy
2898
+ command.params['resource'] = resource unless resource.nil?
2899
+ command.query['fields'] = fields unless fields.nil?
2900
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2901
+ execute_or_queue_command(command, &block)
2902
+ end
2903
+
2904
+ # Lists the HL7v2 stores in the given dataset.
2905
+ # @param [String] parent
2906
+ # Name of the dataset.
2907
+ # @param [String] filter
2908
+ # Restricts stores returned to those matching a filter. Syntax:
2909
+ # https://cloud.google.com/appengine/docs/standard/python/search/query_strings
2910
+ # Only filtering on labels is supported, for example `labels.key=value`.
2911
+ # @param [Fixnum] page_size
2912
+ # Limit on the number of HL7v2 stores to return in a single response.
2913
+ # If zero the default page size of 100 is used.
2914
+ # @param [String] page_token
2915
+ # The next_page_token value returned from the previous List request, if any.
2916
+ # @param [String] fields
2917
+ # Selector specifying which fields to include in a partial response.
2918
+ # @param [String] quota_user
2919
+ # Available to use for quota purposes for server-side applications. Can be any
2920
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2921
+ # @param [Google::Apis::RequestOptions] options
2922
+ # Request-specific options
2923
+ #
2924
+ # @yield [result, err] Result & error if block supplied
2925
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ListHl7V2StoresResponse] parsed result object
2926
+ # @yieldparam err [StandardError] error object if request failed
2927
+ #
2928
+ # @return [Google::Apis::HealthcareV1beta1::ListHl7V2StoresResponse]
2929
+ #
2930
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2931
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2932
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2933
+ 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)
2934
+ command = make_simple_command(:get, 'v1beta1/{+parent}/hl7V2Stores', options)
2935
+ command.response_representation = Google::Apis::HealthcareV1beta1::ListHl7V2StoresResponse::Representation
2936
+ command.response_class = Google::Apis::HealthcareV1beta1::ListHl7V2StoresResponse
2937
+ command.params['parent'] = parent unless parent.nil?
2938
+ command.query['filter'] = filter unless filter.nil?
2939
+ command.query['pageSize'] = page_size unless page_size.nil?
2940
+ command.query['pageToken'] = page_token unless page_token.nil?
2941
+ command.query['fields'] = fields unless fields.nil?
2942
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2943
+ execute_or_queue_command(command, &block)
2944
+ end
2945
+
2946
+ # Updates the HL7v2 store.
2947
+ # @param [String] name
2948
+ # Output only. Resource name of the HL7v2 store, of the form
2949
+ # `projects/`project_id`/datasets/`dataset_id`/hl7V2Stores/`hl7v2_store_id``.
2950
+ # @param [Google::Apis::HealthcareV1beta1::Hl7V2Store] hl7_v2_store_object
2951
+ # @param [String] update_mask
2952
+ # The update mask applies to the resource. For the `FieldMask` definition,
2953
+ # see
2954
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
2955
+ # fieldmask
2956
+ # @param [String] fields
2957
+ # Selector specifying which fields to include in a partial response.
2958
+ # @param [String] quota_user
2959
+ # Available to use for quota purposes for server-side applications. Can be any
2960
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2961
+ # @param [Google::Apis::RequestOptions] options
2962
+ # Request-specific options
2963
+ #
2964
+ # @yield [result, err] Result & error if block supplied
2965
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Hl7V2Store] parsed result object
2966
+ # @yieldparam err [StandardError] error object if request failed
2967
+ #
2968
+ # @return [Google::Apis::HealthcareV1beta1::Hl7V2Store]
2969
+ #
2970
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2971
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2972
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2973
+ 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)
2974
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
2975
+ command.request_representation = Google::Apis::HealthcareV1beta1::Hl7V2Store::Representation
2976
+ command.request_object = hl7_v2_store_object
2977
+ command.response_representation = Google::Apis::HealthcareV1beta1::Hl7V2Store::Representation
2978
+ command.response_class = Google::Apis::HealthcareV1beta1::Hl7V2Store
2979
+ command.params['name'] = name unless name.nil?
2980
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2981
+ command.query['fields'] = fields unless fields.nil?
2982
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2983
+ execute_or_queue_command(command, &block)
2984
+ end
2985
+
2986
+ # Sets the access control policy on the specified resource. Replaces any
2987
+ # existing policy.
2988
+ # @param [String] resource
2989
+ # REQUIRED: The resource for which the policy is being specified.
2990
+ # See the operation documentation for the appropriate value for this field.
2991
+ # @param [Google::Apis::HealthcareV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
2992
+ # @param [String] fields
2993
+ # Selector specifying which fields to include in a partial response.
2994
+ # @param [String] quota_user
2995
+ # Available to use for quota purposes for server-side applications. Can be any
2996
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2997
+ # @param [Google::Apis::RequestOptions] options
2998
+ # Request-specific options
2999
+ #
3000
+ # @yield [result, err] Result & error if block supplied
3001
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Policy] parsed result object
3002
+ # @yieldparam err [StandardError] error object if request failed
3003
+ #
3004
+ # @return [Google::Apis::HealthcareV1beta1::Policy]
3005
+ #
3006
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3007
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3008
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3009
+ def set_hl7_v2_store_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3010
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
3011
+ command.request_representation = Google::Apis::HealthcareV1beta1::SetIamPolicyRequest::Representation
3012
+ command.request_object = set_iam_policy_request_object
3013
+ command.response_representation = Google::Apis::HealthcareV1beta1::Policy::Representation
3014
+ command.response_class = Google::Apis::HealthcareV1beta1::Policy
3015
+ command.params['resource'] = resource unless resource.nil?
3016
+ command.query['fields'] = fields unless fields.nil?
3017
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3018
+ execute_or_queue_command(command, &block)
3019
+ end
3020
+
3021
+ # Returns permissions that a caller has on the specified resource.
3022
+ # If the resource does not exist, this will return an empty set of
3023
+ # permissions, not a NOT_FOUND error.
3024
+ # Note: This operation is designed to be used for building permission-aware
3025
+ # UIs and command-line tools, not for authorization checking. This operation
3026
+ # may "fail open" without warning.
3027
+ # @param [String] resource
3028
+ # REQUIRED: The resource for which the policy detail is being requested.
3029
+ # See the operation documentation for the appropriate value for this field.
3030
+ # @param [Google::Apis::HealthcareV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
3031
+ # @param [String] fields
3032
+ # Selector specifying which fields to include in a partial response.
3033
+ # @param [String] quota_user
3034
+ # Available to use for quota purposes for server-side applications. Can be any
3035
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3036
+ # @param [Google::Apis::RequestOptions] options
3037
+ # Request-specific options
3038
+ #
3039
+ # @yield [result, err] Result & error if block supplied
3040
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse] parsed result object
3041
+ # @yieldparam err [StandardError] error object if request failed
3042
+ #
3043
+ # @return [Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse]
3044
+ #
3045
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3046
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3047
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3048
+ def test_hl7_v2_store_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3049
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
3050
+ command.request_representation = Google::Apis::HealthcareV1beta1::TestIamPermissionsRequest::Representation
3051
+ command.request_object = test_iam_permissions_request_object
3052
+ command.response_representation = Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse::Representation
3053
+ command.response_class = Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse
3054
+ command.params['resource'] = resource unless resource.nil?
3055
+ command.query['fields'] = fields unless fields.nil?
3056
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3057
+ execute_or_queue_command(command, &block)
3058
+ end
3059
+
3060
+ # Creates a message and sends a notification to the Cloud Pub/Sub topic. If
3061
+ # configured, the MLLP adapter listens to messages created by this method and
3062
+ # sends those back to the hospital. A successful response indicates the
3063
+ # message has been persisted to storage and a Cloud Pub/Sub notification has
3064
+ # been sent. Sending to the hospital by the MLLP adapter happens
3065
+ # asynchronously.
3066
+ # @param [String] parent
3067
+ # The name of the dataset this message belongs to.
3068
+ # @param [Google::Apis::HealthcareV1beta1::CreateMessageRequest] create_message_request_object
3069
+ # @param [String] fields
3070
+ # Selector specifying which fields to include in a partial response.
3071
+ # @param [String] quota_user
3072
+ # Available to use for quota purposes for server-side applications. Can be any
3073
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3074
+ # @param [Google::Apis::RequestOptions] options
3075
+ # Request-specific options
3076
+ #
3077
+ # @yield [result, err] Result & error if block supplied
3078
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Message] parsed result object
3079
+ # @yieldparam err [StandardError] error object if request failed
3080
+ #
3081
+ # @return [Google::Apis::HealthcareV1beta1::Message]
3082
+ #
3083
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3084
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3085
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3086
+ def create_message(parent, create_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3087
+ command = make_simple_command(:post, 'v1beta1/{+parent}/messages', options)
3088
+ command.request_representation = Google::Apis::HealthcareV1beta1::CreateMessageRequest::Representation
3089
+ command.request_object = create_message_request_object
3090
+ command.response_representation = Google::Apis::HealthcareV1beta1::Message::Representation
3091
+ command.response_class = Google::Apis::HealthcareV1beta1::Message
3092
+ command.params['parent'] = parent unless parent.nil?
3093
+ command.query['fields'] = fields unless fields.nil?
3094
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3095
+ execute_or_queue_command(command, &block)
3096
+ end
3097
+
3098
+ # Deletes an HL7v2 message.
3099
+ # @param [String] name
3100
+ # The resource name of the HL7v2 message to delete.
3101
+ # @param [String] fields
3102
+ # Selector specifying which fields to include in a partial response.
3103
+ # @param [String] quota_user
3104
+ # Available to use for quota purposes for server-side applications. Can be any
3105
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3106
+ # @param [Google::Apis::RequestOptions] options
3107
+ # Request-specific options
3108
+ #
3109
+ # @yield [result, err] Result & error if block supplied
3110
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object
3111
+ # @yieldparam err [StandardError] error object if request failed
3112
+ #
3113
+ # @return [Google::Apis::HealthcareV1beta1::Empty]
3114
+ #
3115
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3116
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3117
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3118
+ def delete_project_location_dataset_hl7_v2_store_message(name, fields: nil, quota_user: nil, options: nil, &block)
3119
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
3120
+ command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
3121
+ command.response_class = Google::Apis::HealthcareV1beta1::Empty
3122
+ command.params['name'] = name unless name.nil?
3123
+ command.query['fields'] = fields unless fields.nil?
3124
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3125
+ execute_or_queue_command(command, &block)
3126
+ end
3127
+
3128
+ # Gets an HL7v2 message.
3129
+ # @param [String] name
3130
+ # The resource name of the HL7v2 message to retrieve.
3131
+ # @param [String] view
3132
+ # Specifies which parts of the Message resource should be returned
3133
+ # in the response.
3134
+ # @param [String] fields
3135
+ # Selector specifying which fields to include in a partial response.
3136
+ # @param [String] quota_user
3137
+ # Available to use for quota purposes for server-side applications. Can be any
3138
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3139
+ # @param [Google::Apis::RequestOptions] options
3140
+ # Request-specific options
3141
+ #
3142
+ # @yield [result, err] Result & error if block supplied
3143
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Message] parsed result object
3144
+ # @yieldparam err [StandardError] error object if request failed
3145
+ #
3146
+ # @return [Google::Apis::HealthcareV1beta1::Message]
3147
+ #
3148
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3149
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3150
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3151
+ def get_project_location_dataset_hl7_v2_store_message(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
3152
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
3153
+ command.response_representation = Google::Apis::HealthcareV1beta1::Message::Representation
3154
+ command.response_class = Google::Apis::HealthcareV1beta1::Message
3155
+ command.params['name'] = name unless name.nil?
3156
+ command.query['view'] = view unless view.nil?
3157
+ command.query['fields'] = fields unless fields.nil?
3158
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3159
+ execute_or_queue_command(command, &block)
3160
+ end
3161
+
3162
+ # Ingests a new HL7v2 message from the hospital and sends a notification to
3163
+ # the Cloud Pub/Sub topic. Return is an HL7v2 ACK message if the message was
3164
+ # successfully stored. Otherwise an error is returned. If an identical
3165
+ # HL7v2 message is created twice only one resource is created on the server
3166
+ # and no error is reported.
3167
+ # @param [String] parent
3168
+ # The name of the HL7v2 store this message belongs to.
3169
+ # @param [Google::Apis::HealthcareV1beta1::IngestMessageRequest] ingest_message_request_object
3170
+ # @param [String] fields
3171
+ # Selector specifying which fields to include in a partial response.
3172
+ # @param [String] quota_user
3173
+ # Available to use for quota purposes for server-side applications. Can be any
3174
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3175
+ # @param [Google::Apis::RequestOptions] options
3176
+ # Request-specific options
3177
+ #
3178
+ # @yield [result, err] Result & error if block supplied
3179
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::IngestMessageResponse] parsed result object
3180
+ # @yieldparam err [StandardError] error object if request failed
3181
+ #
3182
+ # @return [Google::Apis::HealthcareV1beta1::IngestMessageResponse]
3183
+ #
3184
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3185
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3186
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3187
+ def ingest_message(parent, ingest_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3188
+ command = make_simple_command(:post, 'v1beta1/{+parent}/messages:ingest', options)
3189
+ command.request_representation = Google::Apis::HealthcareV1beta1::IngestMessageRequest::Representation
3190
+ command.request_object = ingest_message_request_object
3191
+ command.response_representation = Google::Apis::HealthcareV1beta1::IngestMessageResponse::Representation
3192
+ command.response_class = Google::Apis::HealthcareV1beta1::IngestMessageResponse
3193
+ command.params['parent'] = parent unless parent.nil?
3194
+ command.query['fields'] = fields unless fields.nil?
3195
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3196
+ execute_or_queue_command(command, &block)
3197
+ end
3198
+
3199
+ # Lists all the messages in the given HL7v2 store with support for filtering.
3200
+ # @param [String] parent
3201
+ # Name of the HL7v2 store to retrieve messages from.
3202
+ # @param [String] filter
3203
+ # Restricts messages returned to those matching a filter. Syntax:
3204
+ # https://cloud.google.com/appengine/docs/standard/python/search/query_strings
3205
+ # Fields/functions available for filtering are:
3206
+ # * `message_type`, from the MSH-9 segment; for example
3207
+ # `NOT message_type = "ADT"`
3208
+ # * `send_date` or `sendDate`, the YYYY-MM-DD date the message was sent in
3209
+ # the dataset's time_zone, from the MSH-7 segment; for example
3210
+ # `send_date < "2017-01-02"`
3211
+ # * `send_time`, the timestamp of when the message was sent, using the
3212
+ # RFC3339 time format for comparisons, from the MSH-7 segment; for example
3213
+ # `send_time < "2017-01-02T00:00:00-05:00"`
3214
+ # * `send_facility`, the care center that the message came from, from the
3215
+ # MSH-4 segment; for example `send_facility = "ABC"`
3216
+ # * `HL7RegExp(expr)`, which does regular expression matching of `expr`
3217
+ # against the message payload using re2 (http://code.google.com/p/re2/)
3218
+ # syntax; for example `HL7RegExp("^.*\|.*\|EMERG")`
3219
+ # * `PatientId(value, type)`, which matches if the message lists a patient
3220
+ # having an ID of the given value and type in the PID-2, PID-3, or PID-4
3221
+ # segments; for example `PatientId("123456", "MRN")`
3222
+ # * `labels.x`, a string value of the label with key `x` as set using the
3223
+ # Message.labels
3224
+ # map, for example `labels."priority"="high"`. The operator `:*` can be used
3225
+ # to assert the existence of a label, for example `labels."priority":*`.
3226
+ # Limitations on conjunctions:
3227
+ # * Negation on the patient ID function or the labels field is not
3228
+ # supported, for example these queries are invalid:
3229
+ # `NOT PatientId("123456", "MRN")`, `NOT labels."tag1":*`,
3230
+ # `NOT labels."tag2"="val2"`.
3231
+ # * Conjunction of multiple patient ID functions is not supported, for
3232
+ # example this query is invalid:
3233
+ # `PatientId("123456", "MRN") AND PatientId("456789", "MRN")`.
3234
+ # * Conjunction of multiple labels fields is also not supported, for
3235
+ # example this query is invalid: `labels."tag1":* AND labels."tag2"="val2"`.
3236
+ # * Conjunction of one patient ID function, one labels field and conditions
3237
+ # on other fields is supported, for example this query is valid:
3238
+ # `PatientId("123456", "MRN") AND labels."tag1":* AND message_type = "ADT"`.
3239
+ # @param [String] order_by
3240
+ # Orders messages returned by the specified order_by clause.
3241
+ # Syntax: https://cloud.google.com/apis/design/design_patterns#sorting_order
3242
+ # Fields available for ordering are:
3243
+ # * `send_time`
3244
+ # @param [Fixnum] page_size
3245
+ # Limit on the number of messages to return in a single response.
3246
+ # If zero the default page size of 100 is used.
3247
+ # @param [String] page_token
3248
+ # The next_page_token value returned from the previous List request, if any.
3249
+ # @param [String] fields
3250
+ # Selector specifying which fields to include in a partial response.
3251
+ # @param [String] quota_user
3252
+ # Available to use for quota purposes for server-side applications. Can be any
3253
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3254
+ # @param [Google::Apis::RequestOptions] options
3255
+ # Request-specific options
3256
+ #
3257
+ # @yield [result, err] Result & error if block supplied
3258
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ListMessagesResponse] parsed result object
3259
+ # @yieldparam err [StandardError] error object if request failed
3260
+ #
3261
+ # @return [Google::Apis::HealthcareV1beta1::ListMessagesResponse]
3262
+ #
3263
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3264
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3265
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3266
+ 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)
3267
+ command = make_simple_command(:get, 'v1beta1/{+parent}/messages', options)
3268
+ command.response_representation = Google::Apis::HealthcareV1beta1::ListMessagesResponse::Representation
3269
+ command.response_class = Google::Apis::HealthcareV1beta1::ListMessagesResponse
3270
+ command.params['parent'] = parent unless parent.nil?
3271
+ command.query['filter'] = filter unless filter.nil?
3272
+ command.query['orderBy'] = order_by unless order_by.nil?
3273
+ command.query['pageSize'] = page_size unless page_size.nil?
3274
+ command.query['pageToken'] = page_token unless page_token.nil?
3275
+ command.query['fields'] = fields unless fields.nil?
3276
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3277
+ execute_or_queue_command(command, &block)
3278
+ end
3279
+
3280
+ # Update the message.
3281
+ # @param [String] name
3282
+ # Resource name of the Message, of the form
3283
+ # `projects/`project_id`/datasets/`dataset_id`/hl7V2Stores/`hl7_v2_store_id`/
3284
+ # messages/`message_id``.
3285
+ # Assigned by the server.
3286
+ # @param [Google::Apis::HealthcareV1beta1::Message] message_object
3287
+ # @param [String] update_mask
3288
+ # The update mask applies to the resource. For the `FieldMask` definition,
3289
+ # see
3290
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
3291
+ # fieldmask
3292
+ # Only the `labels` field is allowed to be updated.
3293
+ # The labels in the request will be merged with the existing set of labels.
3294
+ # Existing labels with the same keys will be updated.
3295
+ # @param [String] fields
3296
+ # Selector specifying which fields to include in a partial response.
3297
+ # @param [String] quota_user
3298
+ # Available to use for quota purposes for server-side applications. Can be any
3299
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3300
+ # @param [Google::Apis::RequestOptions] options
3301
+ # Request-specific options
3302
+ #
3303
+ # @yield [result, err] Result & error if block supplied
3304
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Message] parsed result object
3305
+ # @yieldparam err [StandardError] error object if request failed
3306
+ #
3307
+ # @return [Google::Apis::HealthcareV1beta1::Message]
3308
+ #
3309
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3310
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3311
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3312
+ def patch_project_location_dataset_hl7_v2_store_message(name, message_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3313
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
3314
+ command.request_representation = Google::Apis::HealthcareV1beta1::Message::Representation
3315
+ command.request_object = message_object
3316
+ command.response_representation = Google::Apis::HealthcareV1beta1::Message::Representation
3317
+ command.response_class = Google::Apis::HealthcareV1beta1::Message
3318
+ command.params['name'] = name unless name.nil?
3319
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3320
+ command.query['fields'] = fields unless fields.nil?
3321
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3322
+ execute_or_queue_command(command, &block)
3323
+ end
3324
+
3325
+ # Gets the latest state of a long-running operation. Clients can use this
3326
+ # method to poll the operation result at intervals as recommended by the API
3327
+ # service.
3328
+ # @param [String] name
3329
+ # The name of the operation resource.
3330
+ # @param [String] fields
3331
+ # Selector specifying which fields to include in a partial response.
3332
+ # @param [String] quota_user
3333
+ # Available to use for quota purposes for server-side applications. Can be any
3334
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3335
+ # @param [Google::Apis::RequestOptions] options
3336
+ # Request-specific options
3337
+ #
3338
+ # @yield [result, err] Result & error if block supplied
3339
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Operation] parsed result object
3340
+ # @yieldparam err [StandardError] error object if request failed
3341
+ #
3342
+ # @return [Google::Apis::HealthcareV1beta1::Operation]
3343
+ #
3344
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3345
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3346
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3347
+ def get_project_location_dataset_operation(name, fields: nil, quota_user: nil, options: nil, &block)
3348
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
3349
+ command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation
3350
+ command.response_class = Google::Apis::HealthcareV1beta1::Operation
3351
+ command.params['name'] = name unless name.nil?
3352
+ command.query['fields'] = fields unless fields.nil?
3353
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3354
+ execute_or_queue_command(command, &block)
3355
+ end
3356
+
3357
+ # Lists operations that match the specified filter in the request. If the
3358
+ # server doesn't support this method, it returns `UNIMPLEMENTED`.
3359
+ # NOTE: the `name` binding allows API services to override the binding
3360
+ # to use different resource name schemes, such as `users/*/operations`. To
3361
+ # override the binding, API services can add a binding such as
3362
+ # `"/v1/`name=users/*`/operations"` to their service configuration.
3363
+ # For backwards compatibility, the default name includes the operations
3364
+ # collection id, however overriding users must ensure the name binding
3365
+ # is the parent resource, without the operations collection id.
3366
+ # @param [String] name
3367
+ # The name of the operation's parent resource.
3368
+ # @param [String] filter
3369
+ # The standard list filter.
3370
+ # @param [Fixnum] page_size
3371
+ # The standard list page size.
3372
+ # @param [String] page_token
3373
+ # The standard list page token.
3374
+ # @param [String] fields
3375
+ # Selector specifying which fields to include in a partial response.
3376
+ # @param [String] quota_user
3377
+ # Available to use for quota purposes for server-side applications. Can be any
3378
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3379
+ # @param [Google::Apis::RequestOptions] options
3380
+ # Request-specific options
3381
+ #
3382
+ # @yield [result, err] Result & error if block supplied
3383
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ListOperationsResponse] parsed result object
3384
+ # @yieldparam err [StandardError] error object if request failed
3385
+ #
3386
+ # @return [Google::Apis::HealthcareV1beta1::ListOperationsResponse]
3387
+ #
3388
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3389
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3390
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3391
+ def list_project_location_dataset_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3392
+ command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
3393
+ command.response_representation = Google::Apis::HealthcareV1beta1::ListOperationsResponse::Representation
3394
+ command.response_class = Google::Apis::HealthcareV1beta1::ListOperationsResponse
3395
+ command.params['name'] = name unless name.nil?
3396
+ command.query['filter'] = filter unless filter.nil?
3397
+ command.query['pageSize'] = page_size unless page_size.nil?
3398
+ command.query['pageToken'] = page_token unless page_token.nil?
3399
+ command.query['fields'] = fields unless fields.nil?
3400
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3401
+ execute_or_queue_command(command, &block)
3402
+ end
3403
+
3404
+ protected
3405
+
3406
+ def apply_command_defaults(command)
3407
+ command.query['key'] = key unless key.nil?
3408
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3409
+ end
3410
+ end
3411
+ end
3412
+ end
3413
+ end