google-api-client 0.32.1 → 0.40.0

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