google-api-client 0.28.4 → 0.29.2

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