google-api-client 0.44.2 → 0.46.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (502) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/autoapprove.yml +49 -0
  3. data/.gitignore +2 -0
  4. data/CHANGELOG.md +295 -0
  5. data/api_list_config.yaml +8 -0
  6. data/bin/generate-api +77 -15
  7. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +1 -1
  8. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +7 -9
  9. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
  10. data/generated/google/apis/accessapproval_v1.rb +1 -1
  11. data/generated/google/apis/accessapproval_v1/classes.rb +25 -16
  12. data/generated/google/apis/accessapproval_v1/service.rb +27 -27
  13. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  14. data/generated/google/apis/accesscontextmanager_v1/classes.rb +68 -0
  15. data/generated/google/apis/accesscontextmanager_v1/representations.rb +30 -0
  16. data/generated/google/apis/accesscontextmanager_v1/service.rb +180 -0
  17. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  18. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +30 -30
  19. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  20. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +25 -0
  21. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +15 -0
  22. data/generated/google/apis/admin_directory_v1.rb +1 -1
  23. data/generated/google/apis/admin_directory_v1/classes.rb +135 -0
  24. data/generated/google/apis/admin_directory_v1/representations.rb +62 -0
  25. data/generated/google/apis/admin_directory_v1/service.rb +72 -0
  26. data/generated/google/apis/admin_reports_v1.rb +1 -1
  27. data/generated/google/apis/admob_v1.rb +6 -2
  28. data/generated/google/apis/admob_v1/classes.rb +31 -31
  29. data/generated/google/apis/admob_v1/service.rb +2 -1
  30. data/generated/google/apis/adsense_v1_4.rb +1 -1
  31. data/generated/google/apis/adsense_v1_4/service.rb +4 -1
  32. data/generated/google/apis/analyticsadmin_v1alpha.rb +43 -0
  33. data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +1361 -0
  34. data/generated/google/apis/analyticsadmin_v1alpha/representations.rb +610 -0
  35. data/generated/google/apis/analyticsadmin_v1alpha/service.rb +2134 -0
  36. data/generated/google/apis/analyticsdata_v1alpha.rb +1 -1
  37. data/generated/google/apis/analyticsdata_v1alpha/classes.rb +32 -1
  38. data/generated/google/apis/analyticsdata_v1alpha/representations.rb +17 -0
  39. data/generated/google/apis/analyticsdata_v1alpha/service.rb +39 -0
  40. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  41. data/generated/google/apis/androidenterprise_v1/service.rb +2 -2
  42. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  43. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  44. data/generated/google/apis/androidpublisher_v3/classes.rb +7 -0
  45. data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
  46. data/generated/google/apis/apigee_v1.rb +1 -1
  47. data/generated/google/apis/apigee_v1/classes.rb +442 -14
  48. data/generated/google/apis/apigee_v1/representations.rb +161 -1
  49. data/generated/google/apis/apigee_v1/service.rb +264 -44
  50. data/generated/google/apis/appengine_v1.rb +1 -1
  51. data/generated/google/apis/appengine_v1beta.rb +1 -1
  52. data/generated/google/apis/appsmarket_v2.rb +1 -1
  53. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  54. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +14 -0
  55. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +2 -0
  56. data/generated/google/apis/{apigateway_v1alpha1.rb → assuredworkloads_v1beta1.rb} +8 -8
  57. data/generated/google/apis/assuredworkloads_v1beta1/classes.rb +722 -0
  58. data/generated/google/apis/assuredworkloads_v1beta1/representations.rb +359 -0
  59. data/generated/google/apis/assuredworkloads_v1beta1/service.rb +328 -0
  60. data/generated/google/apis/bigquery_v2.rb +1 -1
  61. data/generated/google/apis/bigquery_v2/classes.rb +140 -23
  62. data/generated/google/apis/bigquery_v2/representations.rb +36 -0
  63. data/generated/google/apis/bigquery_v2/service.rb +46 -0
  64. data/generated/google/apis/billingbudgets_v1.rb +38 -0
  65. data/generated/google/apis/billingbudgets_v1/classes.rb +362 -0
  66. data/generated/google/apis/billingbudgets_v1/representations.rb +170 -0
  67. data/generated/google/apis/billingbudgets_v1/service.rb +249 -0
  68. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  69. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +16 -6
  70. data/generated/google/apis/billingbudgets_v1beta1/representations.rb +1 -0
  71. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  72. data/generated/google/apis/binaryauthorization_v1/classes.rb +187 -0
  73. data/generated/google/apis/binaryauthorization_v1/representations.rb +74 -0
  74. data/generated/google/apis/binaryauthorization_v1/service.rb +35 -0
  75. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  76. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +187 -0
  77. data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +74 -0
  78. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +35 -0
  79. data/generated/google/apis/books_v1.rb +1 -1
  80. data/generated/google/apis/books_v1/service.rb +2 -2
  81. data/generated/google/apis/calendar_v3.rb +1 -1
  82. data/generated/google/apis/calendar_v3/classes.rb +2 -1
  83. data/generated/google/apis/chat_v1.rb +1 -1
  84. data/generated/google/apis/chat_v1/classes.rb +79 -5
  85. data/generated/google/apis/chat_v1/representations.rb +35 -0
  86. data/generated/google/apis/civicinfo_v2.rb +1 -1
  87. data/generated/google/apis/civicinfo_v2/classes.rb +0 -24
  88. data/generated/google/apis/civicinfo_v2/representations.rb +0 -3
  89. data/generated/google/apis/classroom_v1.rb +7 -1
  90. data/generated/google/apis/classroom_v1/classes.rb +153 -21
  91. data/generated/google/apis/classroom_v1/representations.rb +43 -0
  92. data/generated/google/apis/classroom_v1/service.rb +240 -0
  93. data/generated/google/apis/cloudasset_v1.rb +1 -1
  94. data/generated/google/apis/cloudasset_v1/classes.rb +52 -0
  95. data/generated/google/apis/cloudasset_v1/representations.rb +16 -0
  96. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  97. data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +7 -5
  98. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  99. data/generated/google/apis/cloudbilling_v1/classes.rb +4 -4
  100. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  101. data/generated/google/apis/cloudbuild_v1/classes.rb +0 -34
  102. data/generated/google/apis/cloudbuild_v1/representations.rb +0 -15
  103. data/generated/google/apis/cloudbuild_v1/service.rb +7 -4
  104. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  105. data/generated/google/apis/cloudfunctions_v1/classes.rb +12 -1
  106. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
  107. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  108. data/generated/google/apis/cloudidentity_v1/classes.rb +127 -63
  109. data/generated/google/apis/cloudidentity_v1/representations.rb +29 -0
  110. data/generated/google/apis/cloudidentity_v1/service.rb +124 -70
  111. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  112. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +188 -0
  113. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +94 -0
  114. data/generated/google/apis/cloudidentity_v1beta1/service.rb +179 -0
  115. data/generated/google/apis/cloudkms_v1.rb +1 -1
  116. data/generated/google/apis/cloudkms_v1/classes.rb +7 -0
  117. data/generated/google/apis/cloudkms_v1/representations.rb +1 -0
  118. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  119. data/generated/google/apis/cloudresourcemanager_v1/service.rb +2 -2
  120. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  121. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +2 -2
  122. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  123. data/generated/google/apis/cloudsearch_v1/classes.rb +2 -1
  124. data/generated/google/apis/cloudshell_v1.rb +1 -1
  125. data/generated/google/apis/cloudshell_v1/classes.rb +342 -0
  126. data/generated/google/apis/cloudshell_v1/representations.rb +200 -0
  127. data/generated/google/apis/cloudshell_v1/service.rb +177 -0
  128. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  129. data/generated/google/apis/cloudtasks_v2/classes.rb +7 -0
  130. data/generated/google/apis/cloudtasks_v2/representations.rb +1 -0
  131. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  132. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +25 -19
  133. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +1 -0
  134. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  135. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +7 -0
  136. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +1 -0
  137. data/generated/google/apis/composer_v1.rb +1 -1
  138. data/generated/google/apis/composer_v1/classes.rb +2 -3
  139. data/generated/google/apis/composer_v1beta1.rb +1 -1
  140. data/generated/google/apis/composer_v1beta1/classes.rb +4 -4
  141. data/generated/google/apis/composer_v1beta1/service.rb +37 -35
  142. data/generated/google/apis/compute_alpha.rb +1 -1
  143. data/generated/google/apis/compute_alpha/classes.rb +633 -146
  144. data/generated/google/apis/compute_alpha/representations.rb +131 -8
  145. data/generated/google/apis/compute_alpha/service.rb +1995 -1013
  146. data/generated/google/apis/compute_beta.rb +1 -1
  147. data/generated/google/apis/compute_beta/classes.rb +566 -94
  148. data/generated/google/apis/compute_beta/representations.rb +100 -1
  149. data/generated/google/apis/compute_beta/service.rb +805 -136
  150. data/generated/google/apis/compute_v1.rb +1 -1
  151. data/generated/google/apis/compute_v1/classes.rb +336 -53
  152. data/generated/google/apis/compute_v1/representations.rb +57 -1
  153. data/generated/google/apis/compute_v1/service.rb +739 -133
  154. data/generated/google/apis/container_v1.rb +1 -1
  155. data/generated/google/apis/container_v1/classes.rb +22 -10
  156. data/generated/google/apis/container_v1beta1.rb +1 -1
  157. data/generated/google/apis/container_v1beta1/classes.rb +50 -10
  158. data/generated/google/apis/container_v1beta1/representations.rb +15 -0
  159. data/generated/google/apis/content_v2.rb +1 -1
  160. data/generated/google/apis/content_v2/classes.rb +2 -1
  161. data/generated/google/apis/content_v2_1.rb +1 -1
  162. data/generated/google/apis/content_v2_1/classes.rb +108 -5
  163. data/generated/google/apis/content_v2_1/representations.rb +47 -0
  164. data/generated/google/apis/content_v2_1/service.rb +38 -1
  165. data/generated/google/apis/customsearch_v1.rb +1 -1
  166. data/generated/google/apis/customsearch_v1/service.rb +2 -2
  167. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  168. data/generated/google/apis/datacatalog_v1beta1/classes.rb +1 -1
  169. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  170. data/generated/google/apis/dataflow_v1b3/classes.rb +152 -5
  171. data/generated/google/apis/dataflow_v1b3/representations.rb +30 -0
  172. data/generated/google/apis/dataflow_v1b3/service.rb +10 -1
  173. data/generated/google/apis/datafusion_v1.rb +1 -1
  174. data/generated/google/apis/dataproc_v1.rb +1 -1
  175. data/generated/google/apis/dataproc_v1/classes.rb +29 -3
  176. data/generated/google/apis/dataproc_v1/representations.rb +15 -0
  177. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  178. data/generated/google/apis/dataproc_v1beta2/classes.rb +33 -6
  179. data/generated/google/apis/dataproc_v1beta2/representations.rb +15 -0
  180. data/generated/google/apis/dfareporting_v3_3.rb +1 -1
  181. data/generated/google/apis/dfareporting_v3_3/classes.rb +0 -164
  182. data/generated/google/apis/dfareporting_v3_3/representations.rb +0 -42
  183. data/generated/google/apis/dfareporting_v3_3/service.rb +51 -54
  184. data/generated/google/apis/dfareporting_v3_4.rb +1 -1
  185. data/generated/google/apis/dfareporting_v3_4/classes.rb +0 -164
  186. data/generated/google/apis/dfareporting_v3_4/representations.rb +0 -42
  187. data/generated/google/apis/dfareporting_v3_4/service.rb +51 -54
  188. data/generated/google/apis/dialogflow_v2.rb +1 -1
  189. data/generated/google/apis/dialogflow_v2/classes.rb +208 -30
  190. data/generated/google/apis/dialogflow_v2/representations.rb +118 -7
  191. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  192. data/generated/google/apis/dialogflow_v2beta1/classes.rb +215 -38
  193. data/generated/google/apis/dialogflow_v2beta1/representations.rb +118 -7
  194. data/generated/google/apis/dialogflow_v2beta1/service.rb +60 -10
  195. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  196. data/generated/google/apis/dialogflow_v3beta1/classes.rb +311 -33
  197. data/generated/google/apis/dialogflow_v3beta1/representations.rb +153 -7
  198. data/generated/google/apis/dialogflow_v3beta1/service.rb +22 -9
  199. data/generated/google/apis/displayvideo_v1.rb +1 -1
  200. data/generated/google/apis/displayvideo_v1/classes.rb +38 -30
  201. data/generated/google/apis/displayvideo_v1/representations.rb +1 -0
  202. data/generated/google/apis/displayvideo_v1/service.rb +21 -18
  203. data/generated/google/apis/dlp_v2.rb +1 -1
  204. data/generated/google/apis/dlp_v2/classes.rb +30 -3
  205. data/generated/google/apis/dlp_v2/representations.rb +16 -0
  206. data/generated/google/apis/dlp_v2/service.rb +328 -328
  207. data/generated/google/apis/dns_v1.rb +1 -1
  208. data/generated/google/apis/dns_v1/classes.rb +181 -0
  209. data/generated/google/apis/dns_v1/representations.rb +83 -0
  210. data/generated/google/apis/dns_v1/service.rb +10 -10
  211. data/generated/google/apis/dns_v1beta2.rb +1 -1
  212. data/generated/google/apis/dns_v1beta2/classes.rb +181 -0
  213. data/generated/google/apis/dns_v1beta2/representations.rb +83 -0
  214. data/generated/google/apis/dns_v1beta2/service.rb +10 -10
  215. data/generated/google/apis/documentai_v1beta3.rb +36 -0
  216. data/generated/google/apis/documentai_v1beta3/classes.rb +6149 -0
  217. data/generated/google/apis/documentai_v1beta3/representations.rb +2666 -0
  218. data/generated/google/apis/documentai_v1beta3/service.rb +263 -0
  219. data/generated/google/apis/domains_v1alpha2.rb +34 -0
  220. data/generated/google/apis/domains_v1alpha2/classes.rb +1534 -0
  221. data/generated/google/apis/domains_v1alpha2/representations.rb +605 -0
  222. data/generated/google/apis/domains_v1alpha2/service.rb +805 -0
  223. data/generated/google/apis/{appsactivity_v1.rb → domains_v1beta1.rb} +11 -11
  224. data/generated/google/apis/domains_v1beta1/classes.rb +1534 -0
  225. data/generated/google/apis/domains_v1beta1/representations.rb +605 -0
  226. data/generated/google/apis/domains_v1beta1/service.rb +805 -0
  227. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  228. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
  229. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  230. data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +3 -3
  231. data/generated/google/apis/drive_v2.rb +1 -1
  232. data/generated/google/apis/drive_v2/classes.rb +4 -1
  233. data/generated/google/apis/drive_v3.rb +1 -1
  234. data/generated/google/apis/drive_v3/classes.rb +4 -2
  235. data/generated/google/apis/file_v1.rb +1 -1
  236. data/generated/google/apis/file_v1/classes.rb +1 -1
  237. data/generated/google/apis/file_v1beta1.rb +1 -1
  238. data/generated/google/apis/file_v1beta1/classes.rb +1 -1
  239. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  240. data/generated/google/apis/firebasehosting_v1beta1/service.rb +4 -4
  241. data/generated/google/apis/firestore_v1.rb +1 -1
  242. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  243. data/generated/google/apis/fitness_v1.rb +13 -1
  244. data/generated/google/apis/fitness_v1/service.rb +3 -1
  245. data/generated/google/apis/gameservices_v1.rb +1 -1
  246. data/generated/google/apis/gameservices_v1/classes.rb +15 -14
  247. data/generated/google/apis/gameservices_v1/service.rb +54 -51
  248. data/generated/google/apis/gameservices_v1beta.rb +1 -1
  249. data/generated/google/apis/gameservices_v1beta/classes.rb +15 -14
  250. data/generated/google/apis/gameservices_v1beta/service.rb +54 -51
  251. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  252. data/generated/google/apis/genomics_v2alpha1/classes.rb +104 -0
  253. data/generated/google/apis/genomics_v2alpha1/representations.rb +47 -0
  254. data/generated/google/apis/gmail_v1.rb +1 -1
  255. data/generated/google/apis/gmail_v1/service.rb +1 -1
  256. data/generated/google/apis/gmailpostmastertools_v1beta1.rb +1 -1
  257. data/generated/google/apis/gmailpostmastertools_v1beta1/service.rb +10 -10
  258. data/generated/google/apis/healthcare_v1.rb +1 -1
  259. data/generated/google/apis/healthcare_v1/classes.rb +7 -5
  260. data/generated/google/apis/healthcare_v1/service.rb +1 -3
  261. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  262. data/generated/google/apis/healthcare_v1beta1/classes.rb +1111 -278
  263. data/generated/google/apis/healthcare_v1beta1/representations.rb +486 -68
  264. data/generated/google/apis/healthcare_v1beta1/service.rb +1475 -247
  265. data/generated/google/apis/iam_v1.rb +1 -1
  266. data/generated/google/apis/iam_v1/service.rb +2 -1
  267. data/generated/google/apis/jobs_v2.rb +1 -1
  268. data/generated/google/apis/jobs_v2/classes.rb +798 -0
  269. data/generated/google/apis/jobs_v2/representations.rb +272 -0
  270. data/generated/google/apis/jobs_v3.rb +1 -1
  271. data/generated/google/apis/jobs_v3/classes.rb +798 -0
  272. data/generated/google/apis/jobs_v3/representations.rb +272 -0
  273. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  274. data/generated/google/apis/jobs_v3p1beta1/classes.rb +759 -0
  275. data/generated/google/apis/jobs_v3p1beta1/representations.rb +257 -0
  276. data/generated/google/apis/licensing_v1.rb +4 -3
  277. data/generated/google/apis/licensing_v1/classes.rb +1 -1
  278. data/generated/google/apis/licensing_v1/service.rb +55 -85
  279. data/generated/google/apis/lifesciences_v2beta.rb +1 -1
  280. data/generated/google/apis/lifesciences_v2beta/classes.rb +104 -0
  281. data/generated/google/apis/lifesciences_v2beta/representations.rb +47 -0
  282. data/generated/google/apis/localservices_v1.rb +1 -1
  283. data/generated/google/apis/localservices_v1/service.rb +20 -20
  284. data/generated/google/apis/logging_v2.rb +1 -1
  285. data/generated/google/apis/logging_v2/classes.rb +98 -55
  286. data/generated/google/apis/logging_v2/representations.rb +32 -0
  287. data/generated/google/apis/logging_v2/service.rb +1214 -264
  288. data/generated/google/apis/managedidentities_v1.rb +1 -1
  289. data/generated/google/apis/managedidentities_v1/classes.rb +8 -1
  290. data/generated/google/apis/managedidentities_v1/representations.rb +1 -0
  291. data/generated/google/apis/managedidentities_v1/service.rb +1 -4
  292. data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
  293. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +87 -9
  294. data/generated/google/apis/managedidentities_v1alpha1/representations.rb +34 -1
  295. data/generated/google/apis/managedidentities_v1alpha1/service.rb +83 -5
  296. data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
  297. data/generated/google/apis/managedidentities_v1beta1/classes.rb +88 -9
  298. data/generated/google/apis/managedidentities_v1beta1/representations.rb +34 -1
  299. data/generated/google/apis/managedidentities_v1beta1/service.rb +83 -5
  300. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  301. data/generated/google/apis/memcache_v1beta2/classes.rb +1 -1
  302. data/generated/google/apis/memcache_v1beta2/service.rb +5 -5
  303. data/generated/google/apis/monitoring_v1.rb +1 -1
  304. data/generated/google/apis/monitoring_v1/classes.rb +10 -10
  305. data/generated/google/apis/monitoring_v3.rb +1 -1
  306. data/generated/google/apis/monitoring_v3/classes.rb +99 -45
  307. data/generated/google/apis/monitoring_v3/representations.rb +18 -0
  308. data/generated/google/apis/monitoring_v3/service.rb +5 -5
  309. data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
  310. data/generated/google/apis/networkmanagement_v1beta1/classes.rb +68 -0
  311. data/generated/google/apis/networkmanagement_v1beta1/representations.rb +23 -0
  312. data/generated/google/apis/{plus_v1.rb → oauth2_v2.rb} +12 -15
  313. data/generated/google/apis/oauth2_v2/classes.rb +165 -0
  314. data/generated/google/apis/oauth2_v2/representations.rb +68 -0
  315. data/generated/google/apis/oauth2_v2/service.rb +158 -0
  316. data/generated/google/apis/osconfig_v1.rb +3 -3
  317. data/generated/google/apis/osconfig_v1/service.rb +4 -4
  318. data/generated/google/apis/osconfig_v1beta.rb +3 -3
  319. data/generated/google/apis/osconfig_v1beta/service.rb +4 -4
  320. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  321. data/generated/google/apis/oslogin_v1alpha/classes.rb +2 -2
  322. data/generated/google/apis/oslogin_v1alpha/service.rb +13 -13
  323. data/generated/google/apis/people_v1.rb +1 -1
  324. data/generated/google/apis/people_v1/classes.rb +48 -47
  325. data/generated/google/apis/people_v1/service.rb +12 -10
  326. data/generated/google/apis/playablelocations_v3.rb +1 -1
  327. data/generated/google/apis/playablelocations_v3/classes.rb +6 -6
  328. data/generated/google/apis/poly_v1.rb +3 -4
  329. data/generated/google/apis/poly_v1/classes.rb +65 -79
  330. data/generated/google/apis/poly_v1/service.rb +50 -63
  331. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  332. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +109 -0
  333. data/generated/google/apis/pubsub_v1.rb +1 -1
  334. data/generated/google/apis/pubsub_v1/classes.rb +7 -0
  335. data/generated/google/apis/pubsub_v1/representations.rb +1 -0
  336. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  337. data/generated/google/apis/pubsub_v1beta2/classes.rb +7 -0
  338. data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -0
  339. data/generated/google/apis/pubsublite_v1.rb +1 -1
  340. data/generated/google/apis/pubsublite_v1/classes.rb +72 -0
  341. data/generated/google/apis/pubsublite_v1/representations.rb +33 -0
  342. data/generated/google/apis/pubsublite_v1/service.rb +33 -0
  343. data/generated/google/apis/realtimebidding_v1.rb +1 -1
  344. data/generated/google/apis/realtimebidding_v1/classes.rb +84 -123
  345. data/generated/google/apis/realtimebidding_v1/representations.rb +18 -32
  346. data/generated/google/apis/realtimebidding_v1/service.rb +4 -1
  347. data/generated/google/apis/recommender_v1.rb +1 -1
  348. data/generated/google/apis/recommender_v1/service.rb +4 -2
  349. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  350. data/generated/google/apis/recommender_v1beta1/service.rb +4 -2
  351. data/generated/google/apis/redis_v1.rb +1 -1
  352. data/generated/google/apis/redis_v1/classes.rb +5 -391
  353. data/generated/google/apis/redis_v1/representations.rb +0 -139
  354. data/generated/google/apis/redis_v1/service.rb +2 -2
  355. data/generated/google/apis/redis_v1beta1.rb +1 -1
  356. data/generated/google/apis/redis_v1beta1/classes.rb +33 -391
  357. data/generated/google/apis/redis_v1beta1/representations.rb +12 -137
  358. data/generated/google/apis/redis_v1beta1/service.rb +36 -2
  359. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  360. data/generated/google/apis/remotebuildexecution_v1/classes.rb +6 -0
  361. data/generated/google/apis/remotebuildexecution_v1/representations.rb +1 -0
  362. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  363. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +6 -0
  364. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +1 -0
  365. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  366. data/generated/google/apis/remotebuildexecution_v2/classes.rb +6 -0
  367. data/generated/google/apis/remotebuildexecution_v2/representations.rb +1 -0
  368. data/generated/google/apis/reseller_v1.rb +2 -2
  369. data/generated/google/apis/reseller_v1/classes.rb +151 -219
  370. data/generated/google/apis/reseller_v1/service.rb +122 -173
  371. data/generated/google/apis/run_v1.rb +1 -1
  372. data/generated/google/apis/run_v1/classes.rb +15 -135
  373. data/generated/google/apis/run_v1/representations.rb +0 -61
  374. data/generated/google/apis/run_v1/service.rb +0 -342
  375. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  376. data/generated/google/apis/sasportal_v1alpha1/classes.rb +20 -0
  377. data/generated/google/apis/sasportal_v1alpha1/representations.rb +13 -0
  378. data/generated/google/apis/sasportal_v1alpha1/service.rb +479 -0
  379. data/generated/google/apis/searchconsole_v1.rb +7 -1
  380. data/generated/google/apis/searchconsole_v1/classes.rb +388 -0
  381. data/generated/google/apis/searchconsole_v1/representations.rb +162 -0
  382. data/generated/google/apis/searchconsole_v1/service.rb +287 -0
  383. data/generated/google/apis/secretmanager_v1.rb +1 -1
  384. data/generated/google/apis/securitycenter_v1.rb +1 -1
  385. data/generated/google/apis/securitycenter_v1/classes.rb +5 -199
  386. data/generated/google/apis/securitycenter_v1/representations.rb +0 -72
  387. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  388. data/generated/google/apis/securitycenter_v1beta1/classes.rb +2 -196
  389. data/generated/google/apis/securitycenter_v1beta1/representations.rb +0 -72
  390. data/generated/google/apis/securitycenter_v1beta2.rb +1 -1
  391. data/generated/google/apis/securitycenter_v1beta2/classes.rb +2 -196
  392. data/generated/google/apis/securitycenter_v1beta2/representations.rb +0 -72
  393. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  394. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +12 -12
  395. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +32 -30
  396. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  397. data/generated/google/apis/servicecontrol_v1/classes.rb +6 -4
  398. data/generated/google/apis/servicecontrol_v2.rb +1 -1
  399. data/generated/google/apis/servicecontrol_v2/classes.rb +5 -3
  400. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  401. data/generated/google/apis/servicemanagement_v1/classes.rb +0 -22
  402. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -13
  403. data/generated/google/apis/servicemanagement_v1/service.rb +0 -36
  404. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  405. data/generated/google/apis/servicenetworking_v1/classes.rb +107 -4
  406. data/generated/google/apis/servicenetworking_v1/representations.rb +34 -0
  407. data/generated/google/apis/servicenetworking_v1/service.rb +2 -2
  408. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  409. data/generated/google/apis/servicenetworking_v1beta/classes.rb +107 -4
  410. data/generated/google/apis/servicenetworking_v1beta/representations.rb +34 -0
  411. data/generated/google/apis/sheets_v4.rb +1 -1
  412. data/generated/google/apis/sheets_v4/classes.rb +175 -85
  413. data/generated/google/apis/smartdevicemanagement_v1.rb +35 -0
  414. data/generated/google/apis/smartdevicemanagement_v1/classes.rb +307 -0
  415. data/generated/google/apis/smartdevicemanagement_v1/representations.rb +173 -0
  416. data/generated/google/apis/smartdevicemanagement_v1/service.rb +309 -0
  417. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  418. data/generated/google/apis/sourcerepo_v1/classes.rb +250 -400
  419. data/generated/google/apis/sourcerepo_v1/service.rb +40 -49
  420. data/generated/google/apis/spanner_v1.rb +1 -1
  421. data/generated/google/apis/spanner_v1/classes.rb +7 -0
  422. data/generated/google/apis/spanner_v1/representations.rb +1 -0
  423. data/generated/google/apis/{sql_v1beta4.rb → sqladmin_v1beta4.rb} +5 -5
  424. data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/classes.rb +229 -109
  425. data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/representations.rb +137 -87
  426. data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/service.rb +244 -244
  427. data/generated/google/apis/storage_v1.rb +1 -1
  428. data/generated/google/apis/storage_v1/classes.rb +2 -10
  429. data/generated/google/apis/storage_v1/representations.rb +0 -1
  430. data/generated/google/apis/storage_v1/service.rb +3 -2
  431. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  432. data/generated/google/apis/storagetransfer_v1/classes.rb +21 -0
  433. data/generated/google/apis/storagetransfer_v1/representations.rb +13 -0
  434. data/generated/google/apis/storagetransfer_v1/service.rb +22 -20
  435. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  436. data/generated/google/apis/streetviewpublish_v1/classes.rb +4 -4
  437. data/generated/google/apis/sts_v1.rb +1 -1
  438. data/generated/google/apis/sts_v1/classes.rb +10 -9
  439. data/generated/google/apis/sts_v1beta.rb +1 -1
  440. data/generated/google/apis/sts_v1beta/classes.rb +67 -67
  441. data/generated/google/apis/sts_v1beta/service.rb +2 -2
  442. data/generated/google/apis/tagmanager_v2.rb +1 -1
  443. data/generated/google/apis/tasks_v1.rb +1 -1
  444. data/generated/google/apis/tasks_v1/classes.rb +1 -1
  445. data/generated/google/apis/tasks_v1/service.rb +4 -3
  446. data/generated/google/apis/testing_v1.rb +1 -1
  447. data/generated/google/apis/testing_v1/classes.rb +49 -2
  448. data/generated/google/apis/testing_v1/representations.rb +20 -0
  449. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  450. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  451. data/generated/google/apis/tpu_v1.rb +1 -1
  452. data/generated/google/apis/tpu_v1/classes.rb +3 -3
  453. data/generated/google/apis/tpu_v1/service.rb +8 -8
  454. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  455. data/generated/google/apis/tpu_v1alpha1/classes.rb +3 -3
  456. data/generated/google/apis/tpu_v1alpha1/service.rb +8 -8
  457. data/generated/google/apis/translate_v3.rb +1 -1
  458. data/generated/google/apis/translate_v3/classes.rb +2 -2
  459. data/generated/google/apis/vault_v1.rb +1 -1
  460. data/generated/google/apis/vault_v1/classes.rb +333 -0
  461. data/generated/google/apis/vault_v1/representations.rb +162 -0
  462. data/generated/google/apis/vault_v1/service.rb +151 -0
  463. data/generated/google/apis/videointelligence_v1.rb +1 -1
  464. data/generated/google/apis/videointelligence_v1/classes.rb +751 -28
  465. data/generated/google/apis/videointelligence_v1/representations.rb +402 -2
  466. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  467. data/generated/google/apis/videointelligence_v1beta2/classes.rb +751 -28
  468. data/generated/google/apis/videointelligence_v1beta2/representations.rb +402 -2
  469. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  470. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +749 -26
  471. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +402 -2
  472. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  473. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +734 -11
  474. data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +402 -2
  475. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  476. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +667 -28
  477. data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +368 -2
  478. data/generated/google/apis/websecurityscanner_v1.rb +1 -1
  479. data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
  480. data/generated/google/apis/workflowexecutions_v1beta.rb +2 -2
  481. data/generated/google/apis/workflowexecutions_v1beta/service.rb +1 -1
  482. data/generated/google/apis/workflows_v1beta.rb +3 -2
  483. data/generated/google/apis/workflows_v1beta/service.rb +2 -1
  484. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  485. data/generated/google/apis/youtube_v3.rb +1 -1
  486. data/generated/google/apis/youtube_v3/classes.rb +12 -945
  487. data/generated/google/apis/youtube_v3/representations.rb +0 -445
  488. data/generated/google/apis/youtube_v3/service.rb +3 -198
  489. data/google-api-client.gemspec +1 -1
  490. data/lib/google/apis/core/api_command.rb +1 -0
  491. data/lib/google/apis/version.rb +1 -1
  492. data/synth.py +40 -0
  493. metadata +41 -19
  494. data/generated/google/apis/apigateway_v1alpha1/classes.rb +0 -633
  495. data/generated/google/apis/apigateway_v1alpha1/representations.rb +0 -250
  496. data/generated/google/apis/apigateway_v1alpha1/service.rb +0 -623
  497. data/generated/google/apis/appsactivity_v1/classes.rb +0 -415
  498. data/generated/google/apis/appsactivity_v1/representations.rb +0 -209
  499. data/generated/google/apis/appsactivity_v1/service.rb +0 -126
  500. data/generated/google/apis/plus_v1/classes.rb +0 -2094
  501. data/generated/google/apis/plus_v1/representations.rb +0 -907
  502. data/generated/google/apis/plus_v1/service.rb +0 -451
@@ -118,9 +118,7 @@ module Google
118
118
 
119
119
  # Creates a new health dataset. Results are returned through the Operation
120
120
  # interface which returns either an `Operation.response` which contains a
121
- # Dataset or `Operation.error`. The metadata field type is OperationMetadata. A
122
- # Google Cloud Platform project can contain up to 500 datasets across all
123
- # regions.
121
+ # Dataset or `Operation.error`. The metadata field type is OperationMetadata.
124
122
  # @param [String] parent
125
123
  # The name of the project where the server creates the dataset. For example, `
126
124
  # projects/`project_id`/locations/`location_id``.
@@ -528,7 +526,7 @@ module Google
528
526
  # EvaluateAnnotationStoreResponse, contained in the response. The metadata field
529
527
  # type is OperationMetadata. Errors are logged to Cloud Logging (see [Viewing
530
528
  # logs](/healthcare/docs/how-tos/logging)).
531
- # @param [String] eval_store
529
+ # @param [String] name
532
530
  # The Annotation store to compare against `golden_store`, in the format of `
533
531
  # projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
534
532
  # annotationStores/`annotation_store_id``.
@@ -550,13 +548,13 @@ module Google
550
548
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
551
549
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
552
550
  # @raise [Google::Apis::AuthorizationError] Authorization is required
553
- def evaluate_annotation_store(eval_store, evaluate_annotation_store_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
554
- command = make_simple_command(:post, 'v1beta1/{+evalStore}:evaluate', options)
551
+ def evaluate_annotation_store(name, evaluate_annotation_store_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
552
+ command = make_simple_command(:post, 'v1beta1/{+name}:evaluate', options)
555
553
  command.request_representation = Google::Apis::HealthcareV1beta1::EvaluateAnnotationStoreRequest::Representation
556
554
  command.request_object = evaluate_annotation_store_request_object
557
555
  command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation
558
556
  command.response_class = Google::Apis::HealthcareV1beta1::Operation
559
- command.params['evalStore'] = eval_store unless eval_store.nil?
557
+ command.params['name'] = name unless name.nil?
560
558
  command.query['fields'] = fields unless fields.nil?
561
559
  command.query['quotaUser'] = quota_user unless quota_user.nil?
562
560
  execute_or_queue_command(command, &block)
@@ -567,7 +565,7 @@ module Google
567
565
  # the response field when the operation finishes. The metadata field type is
568
566
  # OperationMetadata. Errors are logged to Cloud Logging (see [Viewing logs](/
569
567
  # healthcare/docs/how-tos/logging)).
570
- # @param [String] annotation_store
568
+ # @param [String] name
571
569
  # The name of the Annotation store to export annotations to, in the format of `
572
570
  # projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
573
571
  # annotationStores/`annotation_store_id``.
@@ -589,13 +587,13 @@ module Google
589
587
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
590
588
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
591
589
  # @raise [Google::Apis::AuthorizationError] Authorization is required
592
- def export_annotation_store_annotations(annotation_store, export_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
593
- command = make_simple_command(:post, 'v1beta1/{+annotationStore}:export', options)
590
+ def export_annotation_store_annotations(name, export_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
591
+ command = make_simple_command(:post, 'v1beta1/{+name}:export', options)
594
592
  command.request_representation = Google::Apis::HealthcareV1beta1::ExportAnnotationsRequest::Representation
595
593
  command.request_object = export_annotations_request_object
596
594
  command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation
597
595
  command.response_class = Google::Apis::HealthcareV1beta1::Operation
598
- command.params['annotationStore'] = annotation_store unless annotation_store.nil?
596
+ command.params['name'] = name unless name.nil?
599
597
  command.query['fields'] = fields unless fields.nil?
600
598
  command.query['quotaUser'] = quota_user unless quota_user.nil?
601
599
  execute_or_queue_command(command, &block)
@@ -677,7 +675,7 @@ module Google
677
675
  # type ImportAnnotationsResponse, contained in the response field when the
678
676
  # operation finishes. The metadata field type is OperationMetadata. Errors are
679
677
  # logged to Cloud Logging (see [Viewing logs](/healthcare/docs/how-tos/logging)).
680
- # @param [String] annotation_store
678
+ # @param [String] name
681
679
  # The name of the Annotation store to which the server imports annotations, in
682
680
  # the format `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`
683
681
  # /annotationStores/`annotation_store_id``.
@@ -699,13 +697,13 @@ module Google
699
697
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
700
698
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
701
699
  # @raise [Google::Apis::AuthorizationError] Authorization is required
702
- def import_annotation_store_annotations(annotation_store, import_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
703
- command = make_simple_command(:post, 'v1beta1/{+annotationStore}:import', options)
700
+ def import_annotation_store_annotations(name, import_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
701
+ command = make_simple_command(:post, 'v1beta1/{+name}:import', options)
704
702
  command.request_representation = Google::Apis::HealthcareV1beta1::ImportAnnotationsRequest::Representation
705
703
  command.request_object = import_annotations_request_object
706
704
  command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation
707
705
  command.response_class = Google::Apis::HealthcareV1beta1::Operation
708
- command.params['annotationStore'] = annotation_store unless annotation_store.nil?
706
+ command.params['name'] = name unless name.nil?
709
707
  command.query['fields'] = fields unless fields.nil?
710
708
  command.query['quotaUser'] = quota_user unless quota_user.nil?
711
709
  execute_or_queue_command(command, &block)
@@ -753,16 +751,1241 @@ module Google
753
751
  execute_or_queue_command(command, &block)
754
752
  end
755
753
 
756
- # Updates the specified Annotation store.
757
- # @param [String] name
758
- # Resource name of the Annotation store, of the form `projects/`project_id`/
759
- # locations/`location_id`/datasets/`dataset_id`/annotationStores/`
760
- # annotation_store_id``.
761
- # @param [Google::Apis::HealthcareV1beta1::AnnotationStore] annotation_store_object
762
- # @param [String] update_mask
763
- # The update mask applies to the resource. For the `FieldMask` definition, see
764
- # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
765
- # fieldmask
754
+ # Updates the specified Annotation store.
755
+ # @param [String] name
756
+ # Resource name of the Annotation store, of the form `projects/`project_id`/
757
+ # locations/`location_id`/datasets/`dataset_id`/annotationStores/`
758
+ # annotation_store_id``.
759
+ # @param [Google::Apis::HealthcareV1beta1::AnnotationStore] annotation_store_object
760
+ # @param [String] update_mask
761
+ # The update mask applies to the resource. For the `FieldMask` definition, see
762
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
763
+ # fieldmask
764
+ # @param [String] fields
765
+ # Selector specifying which fields to include in a partial response.
766
+ # @param [String] quota_user
767
+ # Available to use for quota purposes for server-side applications. Can be any
768
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
769
+ # @param [Google::Apis::RequestOptions] options
770
+ # Request-specific options
771
+ #
772
+ # @yield [result, err] Result & error if block supplied
773
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::AnnotationStore] parsed result object
774
+ # @yieldparam err [StandardError] error object if request failed
775
+ #
776
+ # @return [Google::Apis::HealthcareV1beta1::AnnotationStore]
777
+ #
778
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
779
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
780
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
781
+ def patch_project_location_dataset_annotation_store(name, annotation_store_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
782
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
783
+ command.request_representation = Google::Apis::HealthcareV1beta1::AnnotationStore::Representation
784
+ command.request_object = annotation_store_object
785
+ command.response_representation = Google::Apis::HealthcareV1beta1::AnnotationStore::Representation
786
+ command.response_class = Google::Apis::HealthcareV1beta1::AnnotationStore
787
+ command.params['name'] = name unless name.nil?
788
+ command.query['updateMask'] = update_mask unless update_mask.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
+ # Sets the access control policy on the specified resource. Replaces any
795
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
796
+ # PERMISSION_DENIED` errors.
797
+ # @param [String] resource
798
+ # REQUIRED: The resource for which the policy is being specified. See the
799
+ # operation documentation for the appropriate value for this field.
800
+ # @param [Google::Apis::HealthcareV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
801
+ # @param [String] fields
802
+ # Selector specifying which fields to include in a partial response.
803
+ # @param [String] quota_user
804
+ # Available to use for quota purposes for server-side applications. Can be any
805
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
806
+ # @param [Google::Apis::RequestOptions] options
807
+ # Request-specific options
808
+ #
809
+ # @yield [result, err] Result & error if block supplied
810
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Policy] parsed result object
811
+ # @yieldparam err [StandardError] error object if request failed
812
+ #
813
+ # @return [Google::Apis::HealthcareV1beta1::Policy]
814
+ #
815
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
816
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
817
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
818
+ def set_annotation_store_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
819
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
820
+ command.request_representation = Google::Apis::HealthcareV1beta1::SetIamPolicyRequest::Representation
821
+ command.request_object = set_iam_policy_request_object
822
+ command.response_representation = Google::Apis::HealthcareV1beta1::Policy::Representation
823
+ command.response_class = Google::Apis::HealthcareV1beta1::Policy
824
+ command.params['resource'] = resource unless resource.nil?
825
+ command.query['fields'] = fields unless fields.nil?
826
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
827
+ execute_or_queue_command(command, &block)
828
+ end
829
+
830
+ # Returns permissions that a caller has on the specified resource. If the
831
+ # resource does not exist, this will return an empty set of permissions, not a `
832
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
833
+ # permission-aware UIs and command-line tools, not for authorization checking.
834
+ # This operation may "fail open" without warning.
835
+ # @param [String] resource
836
+ # REQUIRED: The resource for which the policy detail is being requested. See the
837
+ # operation documentation for the appropriate value for this field.
838
+ # @param [Google::Apis::HealthcareV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
839
+ # @param [String] fields
840
+ # Selector specifying which fields to include in a partial response.
841
+ # @param [String] quota_user
842
+ # Available to use for quota purposes for server-side applications. Can be any
843
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
844
+ # @param [Google::Apis::RequestOptions] options
845
+ # Request-specific options
846
+ #
847
+ # @yield [result, err] Result & error if block supplied
848
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse] parsed result object
849
+ # @yieldparam err [StandardError] error object if request failed
850
+ #
851
+ # @return [Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse]
852
+ #
853
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
854
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
855
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
856
+ def test_annotation_store_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
857
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
858
+ command.request_representation = Google::Apis::HealthcareV1beta1::TestIamPermissionsRequest::Representation
859
+ command.request_object = test_iam_permissions_request_object
860
+ command.response_representation = Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse::Representation
861
+ command.response_class = Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse
862
+ command.params['resource'] = resource unless resource.nil?
863
+ command.query['fields'] = fields unless fields.nil?
864
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
865
+ execute_or_queue_command(command, &block)
866
+ end
867
+
868
+ # Creates a new Annotation record. It is valid to create Annotation objects for
869
+ # the same source more than once since a unique ID is assigned to each record by
870
+ # this service.
871
+ # @param [String] parent
872
+ # The name of the Annotation store this annotation belongs to. For example, `
873
+ # projects/my-project/locations/us-central1/datasets/mydataset/annotationStores/
874
+ # myannotationstore`.
875
+ # @param [Google::Apis::HealthcareV1beta1::Annotation] annotation_object
876
+ # @param [String] fields
877
+ # Selector specifying which fields to include in a partial response.
878
+ # @param [String] quota_user
879
+ # Available to use for quota purposes for server-side applications. Can be any
880
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
881
+ # @param [Google::Apis::RequestOptions] options
882
+ # Request-specific options
883
+ #
884
+ # @yield [result, err] Result & error if block supplied
885
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Annotation] parsed result object
886
+ # @yieldparam err [StandardError] error object if request failed
887
+ #
888
+ # @return [Google::Apis::HealthcareV1beta1::Annotation]
889
+ #
890
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
891
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
892
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
893
+ def create_project_location_dataset_annotation_store_annotation(parent, annotation_object = nil, fields: nil, quota_user: nil, options: nil, &block)
894
+ command = make_simple_command(:post, 'v1beta1/{+parent}/annotations', options)
895
+ command.request_representation = Google::Apis::HealthcareV1beta1::Annotation::Representation
896
+ command.request_object = annotation_object
897
+ command.response_representation = Google::Apis::HealthcareV1beta1::Annotation::Representation
898
+ command.response_class = Google::Apis::HealthcareV1beta1::Annotation
899
+ command.params['parent'] = parent unless parent.nil?
900
+ command.query['fields'] = fields unless fields.nil?
901
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
902
+ execute_or_queue_command(command, &block)
903
+ end
904
+
905
+ # Deletes an Annotation or returns NOT_FOUND if it does not exist.
906
+ # @param [String] name
907
+ # The resource name of the Annotation to delete.
908
+ # @param [String] fields
909
+ # Selector specifying which fields to include in a partial response.
910
+ # @param [String] quota_user
911
+ # Available to use for quota purposes for server-side applications. Can be any
912
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
913
+ # @param [Google::Apis::RequestOptions] options
914
+ # Request-specific options
915
+ #
916
+ # @yield [result, err] Result & error if block supplied
917
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object
918
+ # @yieldparam err [StandardError] error object if request failed
919
+ #
920
+ # @return [Google::Apis::HealthcareV1beta1::Empty]
921
+ #
922
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
923
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
924
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
925
+ def delete_project_location_dataset_annotation_store_annotation(name, fields: nil, quota_user: nil, options: nil, &block)
926
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
927
+ command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
928
+ command.response_class = Google::Apis::HealthcareV1beta1::Empty
929
+ command.params['name'] = name unless name.nil?
930
+ command.query['fields'] = fields unless fields.nil?
931
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
932
+ execute_or_queue_command(command, &block)
933
+ end
934
+
935
+ # Gets an Annotation.
936
+ # @param [String] name
937
+ # The resource name of the Annotation to retrieve.
938
+ # @param [String] fields
939
+ # Selector specifying which fields to include in a partial response.
940
+ # @param [String] quota_user
941
+ # Available to use for quota purposes for server-side applications. Can be any
942
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
943
+ # @param [Google::Apis::RequestOptions] options
944
+ # Request-specific options
945
+ #
946
+ # @yield [result, err] Result & error if block supplied
947
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Annotation] parsed result object
948
+ # @yieldparam err [StandardError] error object if request failed
949
+ #
950
+ # @return [Google::Apis::HealthcareV1beta1::Annotation]
951
+ #
952
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
953
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
954
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
955
+ def get_project_location_dataset_annotation_store_annotation(name, fields: nil, quota_user: nil, options: nil, &block)
956
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
957
+ command.response_representation = Google::Apis::HealthcareV1beta1::Annotation::Representation
958
+ command.response_class = Google::Apis::HealthcareV1beta1::Annotation
959
+ command.params['name'] = name unless name.nil?
960
+ command.query['fields'] = fields unless fields.nil?
961
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
962
+ execute_or_queue_command(command, &block)
963
+ end
964
+
965
+ # Lists the Annotations in the given Annotation store for a source resource.
966
+ # @param [String] parent
967
+ # Name of the Annotation store to retrieve Annotations from.
968
+ # @param [String] filter
969
+ # Restricts Annotations returned to those matching a filter. Functions available
970
+ # for filtering are: - `matches("annotation_source.cloud_healthcare_source.name",
971
+ # substring)`. Filter on `cloud_healthcare_source.name`. For example: `matches("
972
+ # annotation_source.cloud_healthcare_source.name", "some source")`. - `matches("
973
+ # annotation", substring)`. Filter on all fields of annotation. For example: `
974
+ # matches("annotation", "some-content")`. - `type("text")`, `type("image")`, `
975
+ # type("resource")`. Filter on the type of annotation `data`.
976
+ # @param [Fixnum] page_size
977
+ # Limit on the number of Annotations to return in a single response. If zero the
978
+ # default page size of 100 is used.
979
+ # @param [String] page_token
980
+ # The next_page_token value returned from the previous List request, if any.
981
+ # @param [String] view
982
+ # Controls which fields are populated in the response.
983
+ # @param [String] fields
984
+ # Selector specifying which fields to include in a partial response.
985
+ # @param [String] quota_user
986
+ # Available to use for quota purposes for server-side applications. Can be any
987
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
988
+ # @param [Google::Apis::RequestOptions] options
989
+ # Request-specific options
990
+ #
991
+ # @yield [result, err] Result & error if block supplied
992
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ListAnnotationsResponse] parsed result object
993
+ # @yieldparam err [StandardError] error object if request failed
994
+ #
995
+ # @return [Google::Apis::HealthcareV1beta1::ListAnnotationsResponse]
996
+ #
997
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
998
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
999
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1000
+ def list_project_location_dataset_annotation_store_annotations(parent, filter: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
1001
+ command = make_simple_command(:get, 'v1beta1/{+parent}/annotations', options)
1002
+ command.response_representation = Google::Apis::HealthcareV1beta1::ListAnnotationsResponse::Representation
1003
+ command.response_class = Google::Apis::HealthcareV1beta1::ListAnnotationsResponse
1004
+ command.params['parent'] = parent unless parent.nil?
1005
+ command.query['filter'] = filter unless filter.nil?
1006
+ command.query['pageSize'] = page_size unless page_size.nil?
1007
+ command.query['pageToken'] = page_token unless page_token.nil?
1008
+ command.query['view'] = view unless view.nil?
1009
+ command.query['fields'] = fields unless fields.nil?
1010
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1011
+ execute_or_queue_command(command, &block)
1012
+ end
1013
+
1014
+ # Updates the Annotation.
1015
+ # @param [String] name
1016
+ # Resource name of the Annotation, of the form `projects/`project_id`/locations/`
1017
+ # location_id`/datasets/`dataset_id`/annotationStores/`annotation_store_id`/
1018
+ # annotations/`annotation_id``.
1019
+ # @param [Google::Apis::HealthcareV1beta1::Annotation] annotation_object
1020
+ # @param [String] update_mask
1021
+ # The update mask applies to the resource. For the `FieldMask` definition, see
1022
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
1023
+ # fieldmask
1024
+ # @param [String] fields
1025
+ # Selector specifying which fields to include in a partial response.
1026
+ # @param [String] quota_user
1027
+ # Available to use for quota purposes for server-side applications. Can be any
1028
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1029
+ # @param [Google::Apis::RequestOptions] options
1030
+ # Request-specific options
1031
+ #
1032
+ # @yield [result, err] Result & error if block supplied
1033
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Annotation] parsed result object
1034
+ # @yieldparam err [StandardError] error object if request failed
1035
+ #
1036
+ # @return [Google::Apis::HealthcareV1beta1::Annotation]
1037
+ #
1038
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1039
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1040
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1041
+ def patch_project_location_dataset_annotation_store_annotation(name, annotation_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1042
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
1043
+ command.request_representation = Google::Apis::HealthcareV1beta1::Annotation::Representation
1044
+ command.request_object = annotation_object
1045
+ command.response_representation = Google::Apis::HealthcareV1beta1::Annotation::Representation
1046
+ command.response_class = Google::Apis::HealthcareV1beta1::Annotation
1047
+ command.params['name'] = name unless name.nil?
1048
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1049
+ command.query['fields'] = fields unless fields.nil?
1050
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1051
+ execute_or_queue_command(command, &block)
1052
+ end
1053
+
1054
+ # Checks if a particular data_id of a User data mapping in the given Consent
1055
+ # store is consented for a given use.
1056
+ # @param [String] consent_store
1057
+ # Name of the Consent store where the requested data_id is stored, of the form `
1058
+ # projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1059
+ # consentStores/`consent_store_id``.
1060
+ # @param [Google::Apis::HealthcareV1beta1::CheckDataAccessRequest] check_data_access_request_object
1061
+ # @param [String] fields
1062
+ # Selector specifying which fields to include in a partial response.
1063
+ # @param [String] quota_user
1064
+ # Available to use for quota purposes for server-side applications. Can be any
1065
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1066
+ # @param [Google::Apis::RequestOptions] options
1067
+ # Request-specific options
1068
+ #
1069
+ # @yield [result, err] Result & error if block supplied
1070
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::CheckDataAccessResponse] parsed result object
1071
+ # @yieldparam err [StandardError] error object if request failed
1072
+ #
1073
+ # @return [Google::Apis::HealthcareV1beta1::CheckDataAccessResponse]
1074
+ #
1075
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1076
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1077
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1078
+ def check_consent_store_data_access(consent_store, check_data_access_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1079
+ command = make_simple_command(:post, 'v1beta1/{+consentStore}:checkDataAccess', options)
1080
+ command.request_representation = Google::Apis::HealthcareV1beta1::CheckDataAccessRequest::Representation
1081
+ command.request_object = check_data_access_request_object
1082
+ command.response_representation = Google::Apis::HealthcareV1beta1::CheckDataAccessResponse::Representation
1083
+ command.response_class = Google::Apis::HealthcareV1beta1::CheckDataAccessResponse
1084
+ command.params['consentStore'] = consent_store unless consent_store.nil?
1085
+ command.query['fields'] = fields unless fields.nil?
1086
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1087
+ execute_or_queue_command(command, &block)
1088
+ end
1089
+
1090
+ # Creates a new Consent store in the parent dataset. Attempting to create a
1091
+ # consent store with the same ID as an existing store fails with an
1092
+ # ALREADY_EXISTS error.
1093
+ # @param [String] parent
1094
+ # Required. The name of the dataset this Consent store belongs to.
1095
+ # @param [Google::Apis::HealthcareV1beta1::ConsentStore] consent_store_object
1096
+ # @param [String] consent_store_id
1097
+ # The ID of the consent store to create. The string must match the following
1098
+ # regex: `[\p`L`\p`N`_\-\.]`1,256``.
1099
+ # @param [String] fields
1100
+ # Selector specifying which fields to include in a partial response.
1101
+ # @param [String] quota_user
1102
+ # Available to use for quota purposes for server-side applications. Can be any
1103
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1104
+ # @param [Google::Apis::RequestOptions] options
1105
+ # Request-specific options
1106
+ #
1107
+ # @yield [result, err] Result & error if block supplied
1108
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ConsentStore] parsed result object
1109
+ # @yieldparam err [StandardError] error object if request failed
1110
+ #
1111
+ # @return [Google::Apis::HealthcareV1beta1::ConsentStore]
1112
+ #
1113
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1114
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1115
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1116
+ def create_project_location_dataset_consent_store(parent, consent_store_object = nil, consent_store_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1117
+ command = make_simple_command(:post, 'v1beta1/{+parent}/consentStores', options)
1118
+ command.request_representation = Google::Apis::HealthcareV1beta1::ConsentStore::Representation
1119
+ command.request_object = consent_store_object
1120
+ command.response_representation = Google::Apis::HealthcareV1beta1::ConsentStore::Representation
1121
+ command.response_class = Google::Apis::HealthcareV1beta1::ConsentStore
1122
+ command.params['parent'] = parent unless parent.nil?
1123
+ command.query['consentStoreId'] = consent_store_id unless consent_store_id.nil?
1124
+ command.query['fields'] = fields unless fields.nil?
1125
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1126
+ execute_or_queue_command(command, &block)
1127
+ end
1128
+
1129
+ # Deletes the specified Consent store and removes all consent data in the
1130
+ # specified consent store.
1131
+ # @param [String] name
1132
+ # Required. The resource name of the Consent store to delete.
1133
+ # @param [String] fields
1134
+ # Selector specifying which fields to include in a partial response.
1135
+ # @param [String] quota_user
1136
+ # Available to use for quota purposes for server-side applications. Can be any
1137
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1138
+ # @param [Google::Apis::RequestOptions] options
1139
+ # Request-specific options
1140
+ #
1141
+ # @yield [result, err] Result & error if block supplied
1142
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object
1143
+ # @yieldparam err [StandardError] error object if request failed
1144
+ #
1145
+ # @return [Google::Apis::HealthcareV1beta1::Empty]
1146
+ #
1147
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1148
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1149
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1150
+ def delete_project_location_dataset_consent_store(name, fields: nil, quota_user: nil, options: nil, &block)
1151
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
1152
+ command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
1153
+ command.response_class = Google::Apis::HealthcareV1beta1::Empty
1154
+ command.params['name'] = name unless name.nil?
1155
+ command.query['fields'] = fields unless fields.nil?
1156
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1157
+ execute_or_queue_command(command, &block)
1158
+ end
1159
+
1160
+ # Evaluates the end user's Consents for all matching User data mappings. Note:
1161
+ # User data mappings are indexed asynchronously, so there might be a slight
1162
+ # delay between the time a mapping is created or updated and when it is included
1163
+ # in the results of EvaluateUserConsents.
1164
+ # @param [String] consent_store
1165
+ # Name of the Consent store to retrieve user data mappings from.
1166
+ # @param [Google::Apis::HealthcareV1beta1::EvaluateUserConsentsRequest] evaluate_user_consents_request_object
1167
+ # @param [String] fields
1168
+ # Selector specifying which fields to include in a partial response.
1169
+ # @param [String] quota_user
1170
+ # Available to use for quota purposes for server-side applications. Can be any
1171
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1172
+ # @param [Google::Apis::RequestOptions] options
1173
+ # Request-specific options
1174
+ #
1175
+ # @yield [result, err] Result & error if block supplied
1176
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::EvaluateUserConsentsResponse] parsed result object
1177
+ # @yieldparam err [StandardError] error object if request failed
1178
+ #
1179
+ # @return [Google::Apis::HealthcareV1beta1::EvaluateUserConsentsResponse]
1180
+ #
1181
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1182
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1183
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1184
+ def evaluate_consent_store_user_consents(consent_store, evaluate_user_consents_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1185
+ command = make_simple_command(:post, 'v1beta1/{+consentStore}:evaluateUserConsents', options)
1186
+ command.request_representation = Google::Apis::HealthcareV1beta1::EvaluateUserConsentsRequest::Representation
1187
+ command.request_object = evaluate_user_consents_request_object
1188
+ command.response_representation = Google::Apis::HealthcareV1beta1::EvaluateUserConsentsResponse::Representation
1189
+ command.response_class = Google::Apis::HealthcareV1beta1::EvaluateUserConsentsResponse
1190
+ command.params['consentStore'] = consent_store unless consent_store.nil?
1191
+ command.query['fields'] = fields unless fields.nil?
1192
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1193
+ execute_or_queue_command(command, &block)
1194
+ end
1195
+
1196
+ # Gets the specified Consent store.
1197
+ # @param [String] name
1198
+ # Required. The resource name of the Consent store to get.
1199
+ # @param [String] fields
1200
+ # Selector specifying which fields to include in a partial response.
1201
+ # @param [String] quota_user
1202
+ # Available to use for quota purposes for server-side applications. Can be any
1203
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1204
+ # @param [Google::Apis::RequestOptions] options
1205
+ # Request-specific options
1206
+ #
1207
+ # @yield [result, err] Result & error if block supplied
1208
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ConsentStore] parsed result object
1209
+ # @yieldparam err [StandardError] error object if request failed
1210
+ #
1211
+ # @return [Google::Apis::HealthcareV1beta1::ConsentStore]
1212
+ #
1213
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1214
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1215
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1216
+ def get_project_location_dataset_consent_store(name, fields: nil, quota_user: nil, options: nil, &block)
1217
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
1218
+ command.response_representation = Google::Apis::HealthcareV1beta1::ConsentStore::Representation
1219
+ command.response_class = Google::Apis::HealthcareV1beta1::ConsentStore
1220
+ command.params['name'] = name unless name.nil?
1221
+ command.query['fields'] = fields unless fields.nil?
1222
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1223
+ execute_or_queue_command(command, &block)
1224
+ end
1225
+
1226
+ # Gets the access control policy for a resource. Returns an empty policy if the
1227
+ # resource exists and does not have a policy set.
1228
+ # @param [String] resource
1229
+ # REQUIRED: The resource for which the policy is being requested. See the
1230
+ # operation documentation for the appropriate value for this field.
1231
+ # @param [Fixnum] options_requested_policy_version
1232
+ # Optional. The policy format version to be returned. Valid values are 0, 1, and
1233
+ # 3. Requests specifying an invalid value will be rejected. Requests for
1234
+ # policies with any conditional bindings must specify version 3. Policies
1235
+ # without any conditional bindings may specify any valid value or leave the
1236
+ # field unset. To learn which resources support conditions in their IAM policies,
1237
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1238
+ # resource-policies).
1239
+ # @param [String] fields
1240
+ # Selector specifying which fields to include in a partial response.
1241
+ # @param [String] quota_user
1242
+ # Available to use for quota purposes for server-side applications. Can be any
1243
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1244
+ # @param [Google::Apis::RequestOptions] options
1245
+ # Request-specific options
1246
+ #
1247
+ # @yield [result, err] Result & error if block supplied
1248
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Policy] parsed result object
1249
+ # @yieldparam err [StandardError] error object if request failed
1250
+ #
1251
+ # @return [Google::Apis::HealthcareV1beta1::Policy]
1252
+ #
1253
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1254
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1255
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1256
+ def get_project_location_dataset_consent_store_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1257
+ command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
1258
+ command.response_representation = Google::Apis::HealthcareV1beta1::Policy::Representation
1259
+ command.response_class = Google::Apis::HealthcareV1beta1::Policy
1260
+ command.params['resource'] = resource unless resource.nil?
1261
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1262
+ command.query['fields'] = fields unless fields.nil?
1263
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1264
+ execute_or_queue_command(command, &block)
1265
+ end
1266
+
1267
+ # Lists the Consent stores in the given dataset.
1268
+ # @param [String] parent
1269
+ # Required. Name of the dataset.
1270
+ # @param [String] filter
1271
+ # Restricts the stores returned to those matching a filter. Syntax: https://
1272
+ # cloud.google.com/appengine/docs/standard/python/search/query_strings. Only
1273
+ # filtering on labels is supported. For example, `labels.key=value`.
1274
+ # @param [Fixnum] page_size
1275
+ # Limit on the number of Consent stores to return in a single response. If zero
1276
+ # the default page size of 100 is used.
1277
+ # @param [String] page_token
1278
+ # Token to retrieve the next page of results or empty to get the first page.
1279
+ # @param [String] fields
1280
+ # Selector specifying which fields to include in a partial response.
1281
+ # @param [String] quota_user
1282
+ # Available to use for quota purposes for server-side applications. Can be any
1283
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1284
+ # @param [Google::Apis::RequestOptions] options
1285
+ # Request-specific options
1286
+ #
1287
+ # @yield [result, err] Result & error if block supplied
1288
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ListConsentStoresResponse] parsed result object
1289
+ # @yieldparam err [StandardError] error object if request failed
1290
+ #
1291
+ # @return [Google::Apis::HealthcareV1beta1::ListConsentStoresResponse]
1292
+ #
1293
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1294
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1295
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1296
+ def list_project_location_dataset_consent_stores(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1297
+ command = make_simple_command(:get, 'v1beta1/{+parent}/consentStores', options)
1298
+ command.response_representation = Google::Apis::HealthcareV1beta1::ListConsentStoresResponse::Representation
1299
+ command.response_class = Google::Apis::HealthcareV1beta1::ListConsentStoresResponse
1300
+ command.params['parent'] = parent unless parent.nil?
1301
+ command.query['filter'] = filter unless filter.nil?
1302
+ command.query['pageSize'] = page_size unless page_size.nil?
1303
+ command.query['pageToken'] = page_token unless page_token.nil?
1304
+ command.query['fields'] = fields unless fields.nil?
1305
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1306
+ execute_or_queue_command(command, &block)
1307
+ end
1308
+
1309
+ # Updates the specified Consent store.
1310
+ # @param [String] name
1311
+ # Resource name of the Consent store, of the form `projects/`project_id`/
1312
+ # locations/`location_id`/datasets/`dataset_id`/consentStores/`consent_store_id``
1313
+ # .
1314
+ # @param [Google::Apis::HealthcareV1beta1::ConsentStore] consent_store_object
1315
+ # @param [String] update_mask
1316
+ # The update mask that applies to the resource. For the `FieldMask` definition,
1317
+ # see https://developers.google.com/protocol-buffers/docs/reference/google.
1318
+ # protobuf#fieldmask. The `labels` field is allowed to be updated.
1319
+ # @param [String] fields
1320
+ # Selector specifying which fields to include in a partial response.
1321
+ # @param [String] quota_user
1322
+ # Available to use for quota purposes for server-side applications. Can be any
1323
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1324
+ # @param [Google::Apis::RequestOptions] options
1325
+ # Request-specific options
1326
+ #
1327
+ # @yield [result, err] Result & error if block supplied
1328
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ConsentStore] parsed result object
1329
+ # @yieldparam err [StandardError] error object if request failed
1330
+ #
1331
+ # @return [Google::Apis::HealthcareV1beta1::ConsentStore]
1332
+ #
1333
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1334
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1335
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1336
+ def patch_project_location_dataset_consent_store(name, consent_store_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1337
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
1338
+ command.request_representation = Google::Apis::HealthcareV1beta1::ConsentStore::Representation
1339
+ command.request_object = consent_store_object
1340
+ command.response_representation = Google::Apis::HealthcareV1beta1::ConsentStore::Representation
1341
+ command.response_class = Google::Apis::HealthcareV1beta1::ConsentStore
1342
+ command.params['name'] = name unless name.nil?
1343
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1344
+ command.query['fields'] = fields unless fields.nil?
1345
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1346
+ execute_or_queue_command(command, &block)
1347
+ end
1348
+
1349
+ # Queries all data_ids that are consented for a given use in the given Consent
1350
+ # store and writes them to a specified destination. The returned Operation
1351
+ # includes a progress counter for the number of User data mappings processed.
1352
+ # Errors are logged to Cloud Logging (see [Viewing logs] (/healthcare/docs/how-
1353
+ # tos/logging)). For example, the following sample log entry shows a `failed to
1354
+ # evaluate consent policy` error that occurred during a QueryAccessibleData call
1355
+ # to consent store `projects/`project_id`/locations/`location_id`/datasets/`
1356
+ # dataset_id`/consentStores/`consent_store_id``. ```json jsonPayload: ` @type: "
1357
+ # type.googleapis.com/google.cloud.healthcare.logging.
1358
+ # QueryAccessibleDataLogEntry" error: ` code: 9 message: "failed to evaluate
1359
+ # consent policy" ` resourceName: "projects/`project_id`/locations/`location_id`/
1360
+ # datasets/`dataset_id`/consentStores/`consent_store_id`/consents/`consent_id`" `
1361
+ # logName: "projects/`project_id`/logs/healthcare.googleapis.com%
1362
+ # 2Fquery_accessible_data" operation: ` id: "projects/`project_id`/locations/`
1363
+ # location_id`/datasets/`dataset_id`/operations/`operation_id`" producer: "
1364
+ # healthcare.googleapis.com/QueryAccessibleData" ` receiveTimestamp: "TIMESTAMP"
1365
+ # resource: ` labels: ` consent_store_id: "`consent_store_id`" dataset_id: "`
1366
+ # dataset_id`" location: "`location_id`" project_id: "`project_id`" ` type: "
1367
+ # healthcare_consent_store" ` severity: "ERROR" timestamp: "TIMESTAMP" ```
1368
+ # @param [String] consent_store
1369
+ # Name of the Consent store to retrieve user data mappings from.
1370
+ # @param [Google::Apis::HealthcareV1beta1::QueryAccessibleDataRequest] query_accessible_data_request_object
1371
+ # @param [String] fields
1372
+ # Selector specifying which fields to include in a partial response.
1373
+ # @param [String] quota_user
1374
+ # Available to use for quota purposes for server-side applications. Can be any
1375
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1376
+ # @param [Google::Apis::RequestOptions] options
1377
+ # Request-specific options
1378
+ #
1379
+ # @yield [result, err] Result & error if block supplied
1380
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Operation] parsed result object
1381
+ # @yieldparam err [StandardError] error object if request failed
1382
+ #
1383
+ # @return [Google::Apis::HealthcareV1beta1::Operation]
1384
+ #
1385
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1386
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1387
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1388
+ def query_consent_store_accessible_data(consent_store, query_accessible_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1389
+ command = make_simple_command(:post, 'v1beta1/{+consentStore}:queryAccessibleData', options)
1390
+ command.request_representation = Google::Apis::HealthcareV1beta1::QueryAccessibleDataRequest::Representation
1391
+ command.request_object = query_accessible_data_request_object
1392
+ command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation
1393
+ command.response_class = Google::Apis::HealthcareV1beta1::Operation
1394
+ command.params['consentStore'] = consent_store unless consent_store.nil?
1395
+ command.query['fields'] = fields unless fields.nil?
1396
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1397
+ execute_or_queue_command(command, &block)
1398
+ end
1399
+
1400
+ # Sets the access control policy on the specified resource. Replaces any
1401
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1402
+ # PERMISSION_DENIED` errors.
1403
+ # @param [String] resource
1404
+ # REQUIRED: The resource for which the policy is being specified. See the
1405
+ # operation documentation for the appropriate value for this field.
1406
+ # @param [Google::Apis::HealthcareV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
1407
+ # @param [String] fields
1408
+ # Selector specifying which fields to include in a partial response.
1409
+ # @param [String] quota_user
1410
+ # Available to use for quota purposes for server-side applications. Can be any
1411
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1412
+ # @param [Google::Apis::RequestOptions] options
1413
+ # Request-specific options
1414
+ #
1415
+ # @yield [result, err] Result & error if block supplied
1416
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Policy] parsed result object
1417
+ # @yieldparam err [StandardError] error object if request failed
1418
+ #
1419
+ # @return [Google::Apis::HealthcareV1beta1::Policy]
1420
+ #
1421
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1422
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1423
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1424
+ def set_consent_store_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1425
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
1426
+ command.request_representation = Google::Apis::HealthcareV1beta1::SetIamPolicyRequest::Representation
1427
+ command.request_object = set_iam_policy_request_object
1428
+ command.response_representation = Google::Apis::HealthcareV1beta1::Policy::Representation
1429
+ command.response_class = Google::Apis::HealthcareV1beta1::Policy
1430
+ command.params['resource'] = resource unless resource.nil?
1431
+ command.query['fields'] = fields unless fields.nil?
1432
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1433
+ execute_or_queue_command(command, &block)
1434
+ end
1435
+
1436
+ # Returns permissions that a caller has on the specified resource. If the
1437
+ # resource does not exist, this will return an empty set of permissions, not a `
1438
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
1439
+ # permission-aware UIs and command-line tools, not for authorization checking.
1440
+ # This operation may "fail open" without warning.
1441
+ # @param [String] resource
1442
+ # REQUIRED: The resource for which the policy detail is being requested. See the
1443
+ # operation documentation for the appropriate value for this field.
1444
+ # @param [Google::Apis::HealthcareV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
1445
+ # @param [String] fields
1446
+ # Selector specifying which fields to include in a partial response.
1447
+ # @param [String] quota_user
1448
+ # Available to use for quota purposes for server-side applications. Can be any
1449
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1450
+ # @param [Google::Apis::RequestOptions] options
1451
+ # Request-specific options
1452
+ #
1453
+ # @yield [result, err] Result & error if block supplied
1454
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse] parsed result object
1455
+ # @yieldparam err [StandardError] error object if request failed
1456
+ #
1457
+ # @return [Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse]
1458
+ #
1459
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1460
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1461
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1462
+ def test_consent_store_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1463
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
1464
+ command.request_representation = Google::Apis::HealthcareV1beta1::TestIamPermissionsRequest::Representation
1465
+ command.request_object = test_iam_permissions_request_object
1466
+ command.response_representation = Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse::Representation
1467
+ command.response_class = Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse
1468
+ command.params['resource'] = resource unless resource.nil?
1469
+ command.query['fields'] = fields unless fields.nil?
1470
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1471
+ execute_or_queue_command(command, &block)
1472
+ end
1473
+
1474
+ # Creates a new Attribute definition in the parent Consent store.
1475
+ # @param [String] parent
1476
+ # Required. The name of the consent store that this Attribute definition belongs
1477
+ # to.
1478
+ # @param [Google::Apis::HealthcareV1beta1::AttributeDefinition] attribute_definition_object
1479
+ # @param [String] attribute_definition_id
1480
+ # Required. The ID of the Attribute definition to create. The string must match
1481
+ # the following regex: `_a-zA-Z`0,255`` and must not be a reserved keyword
1482
+ # within the Common Expression Language as listed on https://github.com/google/
1483
+ # cel-spec/blob/master/doc/langdef.md.
1484
+ # @param [String] fields
1485
+ # Selector specifying which fields to include in a partial response.
1486
+ # @param [String] quota_user
1487
+ # Available to use for quota purposes for server-side applications. Can be any
1488
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1489
+ # @param [Google::Apis::RequestOptions] options
1490
+ # Request-specific options
1491
+ #
1492
+ # @yield [result, err] Result & error if block supplied
1493
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::AttributeDefinition] parsed result object
1494
+ # @yieldparam err [StandardError] error object if request failed
1495
+ #
1496
+ # @return [Google::Apis::HealthcareV1beta1::AttributeDefinition]
1497
+ #
1498
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1499
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1500
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1501
+ def create_project_location_dataset_consent_store_attribute_definition(parent, attribute_definition_object = nil, attribute_definition_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1502
+ command = make_simple_command(:post, 'v1beta1/{+parent}/attributeDefinitions', options)
1503
+ command.request_representation = Google::Apis::HealthcareV1beta1::AttributeDefinition::Representation
1504
+ command.request_object = attribute_definition_object
1505
+ command.response_representation = Google::Apis::HealthcareV1beta1::AttributeDefinition::Representation
1506
+ command.response_class = Google::Apis::HealthcareV1beta1::AttributeDefinition
1507
+ command.params['parent'] = parent unless parent.nil?
1508
+ command.query['attributeDefinitionId'] = attribute_definition_id unless attribute_definition_id.nil?
1509
+ command.query['fields'] = fields unless fields.nil?
1510
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1511
+ execute_or_queue_command(command, &block)
1512
+ end
1513
+
1514
+ # Deletes the specified Attribute definition. Fails if it is referenced by the
1515
+ # latest revision of any Consent or User data mapping.
1516
+ # @param [String] name
1517
+ # Required. The resource name of the Attribute definition to delete.
1518
+ # @param [String] fields
1519
+ # Selector specifying which fields to include in a partial response.
1520
+ # @param [String] quota_user
1521
+ # Available to use for quota purposes for server-side applications. Can be any
1522
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1523
+ # @param [Google::Apis::RequestOptions] options
1524
+ # Request-specific options
1525
+ #
1526
+ # @yield [result, err] Result & error if block supplied
1527
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object
1528
+ # @yieldparam err [StandardError] error object if request failed
1529
+ #
1530
+ # @return [Google::Apis::HealthcareV1beta1::Empty]
1531
+ #
1532
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1533
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1534
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1535
+ def delete_project_location_dataset_consent_store_attribute_definition(name, fields: nil, quota_user: nil, options: nil, &block)
1536
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
1537
+ command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
1538
+ command.response_class = Google::Apis::HealthcareV1beta1::Empty
1539
+ command.params['name'] = name unless name.nil?
1540
+ command.query['fields'] = fields unless fields.nil?
1541
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1542
+ execute_or_queue_command(command, &block)
1543
+ end
1544
+
1545
+ # Gets the specified Attribute definition.
1546
+ # @param [String] name
1547
+ # Required. The resource name of the Attribute definition to get.
1548
+ # @param [String] fields
1549
+ # Selector specifying which fields to include in a partial response.
1550
+ # @param [String] quota_user
1551
+ # Available to use for quota purposes for server-side applications. Can be any
1552
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1553
+ # @param [Google::Apis::RequestOptions] options
1554
+ # Request-specific options
1555
+ #
1556
+ # @yield [result, err] Result & error if block supplied
1557
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::AttributeDefinition] parsed result object
1558
+ # @yieldparam err [StandardError] error object if request failed
1559
+ #
1560
+ # @return [Google::Apis::HealthcareV1beta1::AttributeDefinition]
1561
+ #
1562
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1563
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1564
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1565
+ def get_project_location_dataset_consent_store_attribute_definition(name, fields: nil, quota_user: nil, options: nil, &block)
1566
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
1567
+ command.response_representation = Google::Apis::HealthcareV1beta1::AttributeDefinition::Representation
1568
+ command.response_class = Google::Apis::HealthcareV1beta1::AttributeDefinition
1569
+ command.params['name'] = name unless name.nil?
1570
+ command.query['fields'] = fields unless fields.nil?
1571
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1572
+ execute_or_queue_command(command, &block)
1573
+ end
1574
+
1575
+ # Lists the Attribute definitions in the given Consent store.
1576
+ # @param [String] parent
1577
+ # Required. Name of the Consent store to retrieve attribute definitions from.
1578
+ # @param [String] filter
1579
+ # Restricts the attributes returned to those matching a filter. Syntax: https://
1580
+ # cloud.google.com/appengine/docs/standard/python/search/query_strings. The only
1581
+ # field available for filtering is `category`.
1582
+ # @param [Fixnum] page_size
1583
+ # Limit on the number of attribute definitions to return in a single response.
1584
+ # If zero the default page size of 100 is used.
1585
+ # @param [String] page_token
1586
+ # Token to retrieve the next page of results or empty to get the first page.
1587
+ # @param [String] fields
1588
+ # Selector specifying which fields to include in a partial response.
1589
+ # @param [String] quota_user
1590
+ # Available to use for quota purposes for server-side applications. Can be any
1591
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1592
+ # @param [Google::Apis::RequestOptions] options
1593
+ # Request-specific options
1594
+ #
1595
+ # @yield [result, err] Result & error if block supplied
1596
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ListAttributeDefinitionsResponse] parsed result object
1597
+ # @yieldparam err [StandardError] error object if request failed
1598
+ #
1599
+ # @return [Google::Apis::HealthcareV1beta1::ListAttributeDefinitionsResponse]
1600
+ #
1601
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1602
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1603
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1604
+ def list_project_location_dataset_consent_store_attribute_definitions(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1605
+ command = make_simple_command(:get, 'v1beta1/{+parent}/attributeDefinitions', options)
1606
+ command.response_representation = Google::Apis::HealthcareV1beta1::ListAttributeDefinitionsResponse::Representation
1607
+ command.response_class = Google::Apis::HealthcareV1beta1::ListAttributeDefinitionsResponse
1608
+ command.params['parent'] = parent unless parent.nil?
1609
+ command.query['filter'] = filter unless filter.nil?
1610
+ command.query['pageSize'] = page_size unless page_size.nil?
1611
+ command.query['pageToken'] = page_token unless page_token.nil?
1612
+ command.query['fields'] = fields unless fields.nil?
1613
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1614
+ execute_or_queue_command(command, &block)
1615
+ end
1616
+
1617
+ # Updates the specified Attribute definition.
1618
+ # @param [String] name
1619
+ # Resource name of the attribute definition, of the form `projects/`project_id`/
1620
+ # locations/`location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/
1621
+ # attributeDefinitions/`attribute_definition_id``.
1622
+ # @param [Google::Apis::HealthcareV1beta1::AttributeDefinition] attribute_definition_object
1623
+ # @param [String] update_mask
1624
+ # The update mask that applies to the resource. For the `FieldMask` definition,
1625
+ # see https://developers.google.com/protocol-buffers/docs/reference/google.
1626
+ # protobuf#fieldmask. The `description`, `allowed_values`, `
1627
+ # consent_default_values`, and `data_mapping_default_value` fields are allowed
1628
+ # to be updated. The updated `allowed_values` must contain all values from the
1629
+ # previous `allowed_values`.
1630
+ # @param [String] fields
1631
+ # Selector specifying which fields to include in a partial response.
1632
+ # @param [String] quota_user
1633
+ # Available to use for quota purposes for server-side applications. Can be any
1634
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1635
+ # @param [Google::Apis::RequestOptions] options
1636
+ # Request-specific options
1637
+ #
1638
+ # @yield [result, err] Result & error if block supplied
1639
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::AttributeDefinition] parsed result object
1640
+ # @yieldparam err [StandardError] error object if request failed
1641
+ #
1642
+ # @return [Google::Apis::HealthcareV1beta1::AttributeDefinition]
1643
+ #
1644
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1645
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1646
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1647
+ def patch_project_location_dataset_consent_store_attribute_definition(name, attribute_definition_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1648
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
1649
+ command.request_representation = Google::Apis::HealthcareV1beta1::AttributeDefinition::Representation
1650
+ command.request_object = attribute_definition_object
1651
+ command.response_representation = Google::Apis::HealthcareV1beta1::AttributeDefinition::Representation
1652
+ command.response_class = Google::Apis::HealthcareV1beta1::AttributeDefinition
1653
+ command.params['name'] = name unless name.nil?
1654
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1655
+ command.query['fields'] = fields unless fields.nil?
1656
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1657
+ execute_or_queue_command(command, &block)
1658
+ end
1659
+
1660
+ # Creates a new Consent artifact in the parent Consent store.
1661
+ # @param [String] parent
1662
+ # Required. The name of the Consent store this consent artifact belongs to.
1663
+ # @param [Google::Apis::HealthcareV1beta1::ConsentArtifact] consent_artifact_object
1664
+ # @param [String] fields
1665
+ # Selector specifying which fields to include in a partial response.
1666
+ # @param [String] quota_user
1667
+ # Available to use for quota purposes for server-side applications. Can be any
1668
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1669
+ # @param [Google::Apis::RequestOptions] options
1670
+ # Request-specific options
1671
+ #
1672
+ # @yield [result, err] Result & error if block supplied
1673
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ConsentArtifact] parsed result object
1674
+ # @yieldparam err [StandardError] error object if request failed
1675
+ #
1676
+ # @return [Google::Apis::HealthcareV1beta1::ConsentArtifact]
1677
+ #
1678
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1679
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1680
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1681
+ def create_project_location_dataset_consent_store_consent_artifact(parent, consent_artifact_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1682
+ command = make_simple_command(:post, 'v1beta1/{+parent}/consentArtifacts', options)
1683
+ command.request_representation = Google::Apis::HealthcareV1beta1::ConsentArtifact::Representation
1684
+ command.request_object = consent_artifact_object
1685
+ command.response_representation = Google::Apis::HealthcareV1beta1::ConsentArtifact::Representation
1686
+ command.response_class = Google::Apis::HealthcareV1beta1::ConsentArtifact
1687
+ command.params['parent'] = parent unless parent.nil?
1688
+ command.query['fields'] = fields unless fields.nil?
1689
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1690
+ execute_or_queue_command(command, &block)
1691
+ end
1692
+
1693
+ # Deletes the specified Consent artifact. Fails if it is referenced by the
1694
+ # latest revision of any Consent.
1695
+ # @param [String] name
1696
+ # Required. The resource name of the consent artifact to delete.
1697
+ # @param [String] fields
1698
+ # Selector specifying which fields to include in a partial response.
1699
+ # @param [String] quota_user
1700
+ # Available to use for quota purposes for server-side applications. Can be any
1701
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1702
+ # @param [Google::Apis::RequestOptions] options
1703
+ # Request-specific options
1704
+ #
1705
+ # @yield [result, err] Result & error if block supplied
1706
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object
1707
+ # @yieldparam err [StandardError] error object if request failed
1708
+ #
1709
+ # @return [Google::Apis::HealthcareV1beta1::Empty]
1710
+ #
1711
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1712
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1713
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1714
+ def delete_project_location_dataset_consent_store_consent_artifact(name, fields: nil, quota_user: nil, options: nil, &block)
1715
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
1716
+ command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
1717
+ command.response_class = Google::Apis::HealthcareV1beta1::Empty
1718
+ command.params['name'] = name unless name.nil?
1719
+ command.query['fields'] = fields unless fields.nil?
1720
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1721
+ execute_or_queue_command(command, &block)
1722
+ end
1723
+
1724
+ # Gets the specified Consent artifact.
1725
+ # @param [String] name
1726
+ # Required. The resource name of the consent artifact to retrieve.
1727
+ # @param [String] fields
1728
+ # Selector specifying which fields to include in a partial response.
1729
+ # @param [String] quota_user
1730
+ # Available to use for quota purposes for server-side applications. Can be any
1731
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1732
+ # @param [Google::Apis::RequestOptions] options
1733
+ # Request-specific options
1734
+ #
1735
+ # @yield [result, err] Result & error if block supplied
1736
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ConsentArtifact] parsed result object
1737
+ # @yieldparam err [StandardError] error object if request failed
1738
+ #
1739
+ # @return [Google::Apis::HealthcareV1beta1::ConsentArtifact]
1740
+ #
1741
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1742
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1743
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1744
+ def get_project_location_dataset_consent_store_consent_artifact(name, fields: nil, quota_user: nil, options: nil, &block)
1745
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
1746
+ command.response_representation = Google::Apis::HealthcareV1beta1::ConsentArtifact::Representation
1747
+ command.response_class = Google::Apis::HealthcareV1beta1::ConsentArtifact
1748
+ command.params['name'] = name unless name.nil?
1749
+ command.query['fields'] = fields unless fields.nil?
1750
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1751
+ execute_or_queue_command(command, &block)
1752
+ end
1753
+
1754
+ # Lists the Consent artifacts in the given Consent store.
1755
+ # @param [String] parent
1756
+ # Required. Name of the Consent store to retrieve consent artifacts from.
1757
+ # @param [String] filter
1758
+ # Restricts the artifacts returned to those matching a filter. Syntax: https://
1759
+ # cloud.google.com/appengine/docs/standard/python/search/query_strings The
1760
+ # fields available for filtering are: - user_id - consent_content_version
1761
+ # @param [Fixnum] page_size
1762
+ # Limit on the number of consent artifacts to return in a single response. If
1763
+ # zero the default page size of 100 is used.
1764
+ # @param [String] page_token
1765
+ # The next_page_token value returned from the previous List request, if any.
1766
+ # @param [String] fields
1767
+ # Selector specifying which fields to include in a partial response.
1768
+ # @param [String] quota_user
1769
+ # Available to use for quota purposes for server-side applications. Can be any
1770
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1771
+ # @param [Google::Apis::RequestOptions] options
1772
+ # Request-specific options
1773
+ #
1774
+ # @yield [result, err] Result & error if block supplied
1775
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ListConsentArtifactsResponse] parsed result object
1776
+ # @yieldparam err [StandardError] error object if request failed
1777
+ #
1778
+ # @return [Google::Apis::HealthcareV1beta1::ListConsentArtifactsResponse]
1779
+ #
1780
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1781
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1782
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1783
+ def list_project_location_dataset_consent_store_consent_artifacts(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1784
+ command = make_simple_command(:get, 'v1beta1/{+parent}/consentArtifacts', options)
1785
+ command.response_representation = Google::Apis::HealthcareV1beta1::ListConsentArtifactsResponse::Representation
1786
+ command.response_class = Google::Apis::HealthcareV1beta1::ListConsentArtifactsResponse
1787
+ command.params['parent'] = parent unless parent.nil?
1788
+ command.query['filter'] = filter unless filter.nil?
1789
+ command.query['pageSize'] = page_size unless page_size.nil?
1790
+ command.query['pageToken'] = page_token unless page_token.nil?
1791
+ command.query['fields'] = fields unless fields.nil?
1792
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1793
+ execute_or_queue_command(command, &block)
1794
+ end
1795
+
1796
+ # Activates the latest revision of the specified Consent by committing a new
1797
+ # revision with `state` updated to `ACTIVE`. If the latest revision of the given
1798
+ # consent is in the `ACTIVE` state, no new revision is committed. A
1799
+ # FAILED_PRECONDITION error occurs if the latest revision of the given consent
1800
+ # is in the `REJECTED` or `REVOKED` state.
1801
+ # @param [String] name
1802
+ # Required. The resource name of the consent to activate, of the form `projects/`
1803
+ # project_id`/locations/`location_id`/datasets/`dataset_id`/consentStores/`
1804
+ # consent_store_id`/consents/`consent_id``. An INVALID_ARGUMENT error occurs if `
1805
+ # revision_id` is specified in the name.
1806
+ # @param [Google::Apis::HealthcareV1beta1::ActivateConsentRequest] activate_consent_request_object
1807
+ # @param [String] fields
1808
+ # Selector specifying which fields to include in a partial response.
1809
+ # @param [String] quota_user
1810
+ # Available to use for quota purposes for server-side applications. Can be any
1811
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1812
+ # @param [Google::Apis::RequestOptions] options
1813
+ # Request-specific options
1814
+ #
1815
+ # @yield [result, err] Result & error if block supplied
1816
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Consent] parsed result object
1817
+ # @yieldparam err [StandardError] error object if request failed
1818
+ #
1819
+ # @return [Google::Apis::HealthcareV1beta1::Consent]
1820
+ #
1821
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1822
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1823
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1824
+ def activate_consent(name, activate_consent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1825
+ command = make_simple_command(:post, 'v1beta1/{+name}:activate', options)
1826
+ command.request_representation = Google::Apis::HealthcareV1beta1::ActivateConsentRequest::Representation
1827
+ command.request_object = activate_consent_request_object
1828
+ command.response_representation = Google::Apis::HealthcareV1beta1::Consent::Representation
1829
+ command.response_class = Google::Apis::HealthcareV1beta1::Consent
1830
+ command.params['name'] = name unless name.nil?
1831
+ command.query['fields'] = fields unless fields.nil?
1832
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1833
+ execute_or_queue_command(command, &block)
1834
+ end
1835
+
1836
+ # Creates a new Consent in the parent Consent store.
1837
+ # @param [String] parent
1838
+ # Required. Name of the consent store.
1839
+ # @param [Google::Apis::HealthcareV1beta1::Consent] consent_object
1840
+ # @param [String] fields
1841
+ # Selector specifying which fields to include in a partial response.
1842
+ # @param [String] quota_user
1843
+ # Available to use for quota purposes for server-side applications. Can be any
1844
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1845
+ # @param [Google::Apis::RequestOptions] options
1846
+ # Request-specific options
1847
+ #
1848
+ # @yield [result, err] Result & error if block supplied
1849
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Consent] parsed result object
1850
+ # @yieldparam err [StandardError] error object if request failed
1851
+ #
1852
+ # @return [Google::Apis::HealthcareV1beta1::Consent]
1853
+ #
1854
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1855
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1856
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1857
+ def create_project_location_dataset_consent_store_consent(parent, consent_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1858
+ command = make_simple_command(:post, 'v1beta1/{+parent}/consents', options)
1859
+ command.request_representation = Google::Apis::HealthcareV1beta1::Consent::Representation
1860
+ command.request_object = consent_object
1861
+ command.response_representation = Google::Apis::HealthcareV1beta1::Consent::Representation
1862
+ command.response_class = Google::Apis::HealthcareV1beta1::Consent
1863
+ command.params['parent'] = parent unless parent.nil?
1864
+ command.query['fields'] = fields unless fields.nil?
1865
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1866
+ execute_or_queue_command(command, &block)
1867
+ end
1868
+
1869
+ # Deletes the Consent and its revisions. To keep a record of the Consent but
1870
+ # mark it inactive, see [RevokeConsent]. To delete a revision of a Consent, see [
1871
+ # DeleteConsentRevision]. This operation does not delete the related consent
1872
+ # artifact.
1873
+ # @param [String] name
1874
+ # Required. The resource name of the consent to delete, of the form `projects/`
1875
+ # project_id`/locations/`location_id`/datasets/`dataset_id`/consentStores/`
1876
+ # consent_store_id`/consents/`consent_id``. An INVALID_ARGUMENT error occurs if `
1877
+ # revision_id` is specified in the name.
1878
+ # @param [String] fields
1879
+ # Selector specifying which fields to include in a partial response.
1880
+ # @param [String] quota_user
1881
+ # Available to use for quota purposes for server-side applications. Can be any
1882
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1883
+ # @param [Google::Apis::RequestOptions] options
1884
+ # Request-specific options
1885
+ #
1886
+ # @yield [result, err] Result & error if block supplied
1887
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object
1888
+ # @yieldparam err [StandardError] error object if request failed
1889
+ #
1890
+ # @return [Google::Apis::HealthcareV1beta1::Empty]
1891
+ #
1892
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1893
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1894
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1895
+ def delete_project_location_dataset_consent_store_consent(name, fields: nil, quota_user: nil, options: nil, &block)
1896
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
1897
+ command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
1898
+ command.response_class = Google::Apis::HealthcareV1beta1::Empty
1899
+ command.params['name'] = name unless name.nil?
1900
+ command.query['fields'] = fields unless fields.nil?
1901
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1902
+ execute_or_queue_command(command, &block)
1903
+ end
1904
+
1905
+ # Deletes the specified revision of a Consent. An INVALID_ARGUMENT error occurs
1906
+ # if the specified revision is the latest revision.
1907
+ # @param [String] name
1908
+ # Required. The resource name of the consent revision to delete, of the form `
1909
+ # projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1910
+ # consentStores/`consent_store_id`/consents/`consent_id`@`revision_id``. An
1911
+ # INVALID_ARGUMENT error occurs if `revision_id` is not specified in the name.
1912
+ # @param [String] fields
1913
+ # Selector specifying which fields to include in a partial response.
1914
+ # @param [String] quota_user
1915
+ # Available to use for quota purposes for server-side applications. Can be any
1916
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1917
+ # @param [Google::Apis::RequestOptions] options
1918
+ # Request-specific options
1919
+ #
1920
+ # @yield [result, err] Result & error if block supplied
1921
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object
1922
+ # @yieldparam err [StandardError] error object if request failed
1923
+ #
1924
+ # @return [Google::Apis::HealthcareV1beta1::Empty]
1925
+ #
1926
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1927
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1928
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1929
+ def delete_project_location_dataset_consent_store_consent_revision(name, fields: nil, quota_user: nil, options: nil, &block)
1930
+ command = make_simple_command(:delete, 'v1beta1/{+name}:deleteRevision', options)
1931
+ command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
1932
+ command.response_class = Google::Apis::HealthcareV1beta1::Empty
1933
+ command.params['name'] = name unless name.nil?
1934
+ command.query['fields'] = fields unless fields.nil?
1935
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1936
+ execute_or_queue_command(command, &block)
1937
+ end
1938
+
1939
+ # Gets the specified revision of a Consent, or the latest revision if `
1940
+ # revision_id` is not specified in the resource name.
1941
+ # @param [String] name
1942
+ # Required. The resource name of the consent to retrieve, of the form `projects/`
1943
+ # project_id`/locations/`location_id`/datasets/`dataset_id`/consentStores/`
1944
+ # consent_store_id`/consents/`consent_id``. In order to retrieve a previous
1945
+ # revision of the consent, also provide the revision ID: `projects/`project_id`/
1946
+ # locations/`location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/
1947
+ # consents/`consent_id`@`revision_id``
1948
+ # @param [String] fields
1949
+ # Selector specifying which fields to include in a partial response.
1950
+ # @param [String] quota_user
1951
+ # Available to use for quota purposes for server-side applications. Can be any
1952
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1953
+ # @param [Google::Apis::RequestOptions] options
1954
+ # Request-specific options
1955
+ #
1956
+ # @yield [result, err] Result & error if block supplied
1957
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Consent] parsed result object
1958
+ # @yieldparam err [StandardError] error object if request failed
1959
+ #
1960
+ # @return [Google::Apis::HealthcareV1beta1::Consent]
1961
+ #
1962
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1963
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1964
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1965
+ def get_project_location_dataset_consent_store_consent(name, fields: nil, quota_user: nil, options: nil, &block)
1966
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
1967
+ command.response_representation = Google::Apis::HealthcareV1beta1::Consent::Representation
1968
+ command.response_class = Google::Apis::HealthcareV1beta1::Consent
1969
+ command.params['name'] = name unless name.nil?
1970
+ command.query['fields'] = fields unless fields.nil?
1971
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1972
+ execute_or_queue_command(command, &block)
1973
+ end
1974
+
1975
+ # Lists the Consent in the given Consent store, returning each consent's latest
1976
+ # revision.
1977
+ # @param [String] parent
1978
+ # Required. Name of the Consent store to retrieve consents from.
1979
+ # @param [String] filter
1980
+ # Restricts the consents returned to those matching a filter. Syntax: https://
1981
+ # cloud.google.com/appengine/docs/standard/python/search/query_strings The
1982
+ # fields available for filtering are: - user_id - consent_artifact - state -
1983
+ # revision_create_time
1984
+ # @param [Fixnum] page_size
1985
+ # Limit on the number of consents to return in a single response. If zero the
1986
+ # default page size of 100 is used.
1987
+ # @param [String] page_token
1988
+ # The next_page_token value returned from the previous List request, if any.
766
1989
  # @param [String] fields
767
1990
  # Selector specifying which fields to include in a partial response.
768
1991
  # @param [String] quota_user
@@ -772,34 +1995,41 @@ module Google
772
1995
  # Request-specific options
773
1996
  #
774
1997
  # @yield [result, err] Result & error if block supplied
775
- # @yieldparam result [Google::Apis::HealthcareV1beta1::AnnotationStore] parsed result object
1998
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ListConsentsResponse] parsed result object
776
1999
  # @yieldparam err [StandardError] error object if request failed
777
2000
  #
778
- # @return [Google::Apis::HealthcareV1beta1::AnnotationStore]
2001
+ # @return [Google::Apis::HealthcareV1beta1::ListConsentsResponse]
779
2002
  #
780
2003
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
781
2004
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
782
2005
  # @raise [Google::Apis::AuthorizationError] Authorization is required
783
- def patch_project_location_dataset_annotation_store(name, annotation_store_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
784
- command = make_simple_command(:patch, 'v1beta1/{+name}', options)
785
- command.request_representation = Google::Apis::HealthcareV1beta1::AnnotationStore::Representation
786
- command.request_object = annotation_store_object
787
- command.response_representation = Google::Apis::HealthcareV1beta1::AnnotationStore::Representation
788
- command.response_class = Google::Apis::HealthcareV1beta1::AnnotationStore
789
- command.params['name'] = name unless name.nil?
790
- command.query['updateMask'] = update_mask unless update_mask.nil?
2006
+ def list_project_location_dataset_consent_store_consents(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2007
+ command = make_simple_command(:get, 'v1beta1/{+parent}/consents', options)
2008
+ command.response_representation = Google::Apis::HealthcareV1beta1::ListConsentsResponse::Representation
2009
+ command.response_class = Google::Apis::HealthcareV1beta1::ListConsentsResponse
2010
+ command.params['parent'] = parent unless parent.nil?
2011
+ command.query['filter'] = filter unless filter.nil?
2012
+ command.query['pageSize'] = page_size unless page_size.nil?
2013
+ command.query['pageToken'] = page_token unless page_token.nil?
791
2014
  command.query['fields'] = fields unless fields.nil?
792
2015
  command.query['quotaUser'] = quota_user unless quota_user.nil?
793
2016
  execute_or_queue_command(command, &block)
794
2017
  end
795
2018
 
796
- # Sets the access control policy on the specified resource. Replaces any
797
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
798
- # PERMISSION_DENIED` errors.
799
- # @param [String] resource
800
- # REQUIRED: The resource for which the policy is being specified. See the
801
- # operation documentation for the appropriate value for this field.
802
- # @param [Google::Apis::HealthcareV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
2019
+ # Lists the revisions of the given Consent in reverse chronological order.
2020
+ # @param [String] name
2021
+ # Required. The resource name of the consent to retrieve revisions for.
2022
+ # @param [String] filter
2023
+ # Restricts the revisions returned to those matching a filter. Syntax: https://
2024
+ # cloud.google.com/appengine/docs/standard/python/search/query_strings. Fields/
2025
+ # functions available for filtering are: - user_id - consent_artifact - state -
2026
+ # revision_create_time
2027
+ # @param [Fixnum] page_size
2028
+ # Limit on the number of revisions to return in a single response. If zero the
2029
+ # default page size of 100 is used.
2030
+ # @param [String] page_token
2031
+ # Token to retrieve the next page of results or empty if there are no more
2032
+ # results in the list.
803
2033
  # @param [String] fields
804
2034
  # Selector specifying which fields to include in a partial response.
805
2035
  # @param [String] quota_user
@@ -809,35 +2039,40 @@ module Google
809
2039
  # Request-specific options
810
2040
  #
811
2041
  # @yield [result, err] Result & error if block supplied
812
- # @yieldparam result [Google::Apis::HealthcareV1beta1::Policy] parsed result object
2042
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ListConsentRevisionsResponse] parsed result object
813
2043
  # @yieldparam err [StandardError] error object if request failed
814
2044
  #
815
- # @return [Google::Apis::HealthcareV1beta1::Policy]
2045
+ # @return [Google::Apis::HealthcareV1beta1::ListConsentRevisionsResponse]
816
2046
  #
817
2047
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
818
2048
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
819
2049
  # @raise [Google::Apis::AuthorizationError] Authorization is required
820
- def set_annotation_store_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
821
- command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
822
- command.request_representation = Google::Apis::HealthcareV1beta1::SetIamPolicyRequest::Representation
823
- command.request_object = set_iam_policy_request_object
824
- command.response_representation = Google::Apis::HealthcareV1beta1::Policy::Representation
825
- command.response_class = Google::Apis::HealthcareV1beta1::Policy
826
- command.params['resource'] = resource unless resource.nil?
2050
+ def list_project_location_dataset_consent_store_consent_revisions(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2051
+ command = make_simple_command(:get, 'v1beta1/{+name}:listRevisions', options)
2052
+ command.response_representation = Google::Apis::HealthcareV1beta1::ListConsentRevisionsResponse::Representation
2053
+ command.response_class = Google::Apis::HealthcareV1beta1::ListConsentRevisionsResponse
2054
+ command.params['name'] = name unless name.nil?
2055
+ command.query['filter'] = filter unless filter.nil?
2056
+ command.query['pageSize'] = page_size unless page_size.nil?
2057
+ command.query['pageToken'] = page_token unless page_token.nil?
827
2058
  command.query['fields'] = fields unless fields.nil?
828
2059
  command.query['quotaUser'] = quota_user unless quota_user.nil?
829
2060
  execute_or_queue_command(command, &block)
830
2061
  end
831
2062
 
832
- # Returns permissions that a caller has on the specified resource. If the
833
- # resource does not exist, this will return an empty set of permissions, not a `
834
- # NOT_FOUND` error. Note: This operation is designed to be used for building
835
- # permission-aware UIs and command-line tools, not for authorization checking.
836
- # This operation may "fail open" without warning.
837
- # @param [String] resource
838
- # REQUIRED: The resource for which the policy detail is being requested. See the
839
- # operation documentation for the appropriate value for this field.
840
- # @param [Google::Apis::HealthcareV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
2063
+ # Updates the latest revision of the specified Consent by committing a new
2064
+ # revision with the changes. A FAILED_PRECONDITION error occurs if the latest
2065
+ # revision of the given consent is in the `REJECTED` or `REVOKED` state.
2066
+ # @param [String] name
2067
+ # Resource name of the Consent, of the form `projects/`project_id`/locations/`
2068
+ # location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/consents/`
2069
+ # consent_id``.
2070
+ # @param [Google::Apis::HealthcareV1beta1::Consent] consent_object
2071
+ # @param [String] update_mask
2072
+ # The update mask to apply to the resource. For the `FieldMask` definition, see
2073
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
2074
+ # fieldmask. The `user_id`, `policies`, and `consent_artifact` fields can be
2075
+ # updated.
841
2076
  # @param [String] fields
842
2077
  # Selector specifying which fields to include in a partial response.
843
2078
  # @param [String] quota_user
@@ -847,34 +2082,38 @@ module Google
847
2082
  # Request-specific options
848
2083
  #
849
2084
  # @yield [result, err] Result & error if block supplied
850
- # @yieldparam result [Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse] parsed result object
2085
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Consent] parsed result object
851
2086
  # @yieldparam err [StandardError] error object if request failed
852
2087
  #
853
- # @return [Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse]
2088
+ # @return [Google::Apis::HealthcareV1beta1::Consent]
854
2089
  #
855
2090
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
856
2091
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
857
2092
  # @raise [Google::Apis::AuthorizationError] Authorization is required
858
- def test_annotation_store_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
859
- command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
860
- command.request_representation = Google::Apis::HealthcareV1beta1::TestIamPermissionsRequest::Representation
861
- command.request_object = test_iam_permissions_request_object
862
- command.response_representation = Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse::Representation
863
- command.response_class = Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse
864
- command.params['resource'] = resource unless resource.nil?
2093
+ def patch_project_location_dataset_consent_store_consent(name, consent_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2094
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
2095
+ command.request_representation = Google::Apis::HealthcareV1beta1::Consent::Representation
2096
+ command.request_object = consent_object
2097
+ command.response_representation = Google::Apis::HealthcareV1beta1::Consent::Representation
2098
+ command.response_class = Google::Apis::HealthcareV1beta1::Consent
2099
+ command.params['name'] = name unless name.nil?
2100
+ command.query['updateMask'] = update_mask unless update_mask.nil?
865
2101
  command.query['fields'] = fields unless fields.nil?
866
2102
  command.query['quotaUser'] = quota_user unless quota_user.nil?
867
2103
  execute_or_queue_command(command, &block)
868
2104
  end
869
2105
 
870
- # Creates a new Annotation record. It is valid to create Annotation objects for
871
- # the same source more than once since a unique ID is assigned to each record by
872
- # this service.
873
- # @param [String] parent
874
- # The name of the Annotation store this annotation belongs to. For example, `
875
- # projects/my-project/locations/us-central1/datasets/mydataset/annotationStores/
876
- # myannotationstore`.
877
- # @param [Google::Apis::HealthcareV1beta1::Annotation] annotation_object
2106
+ # Rejects the latest revision of the specified Consent by committing a new
2107
+ # revision with `state` updated to `REJECTED`. If the latest revision of the
2108
+ # given consent is in the `REJECTED` state, no new revision is committed. A
2109
+ # FAILED_PRECONDITION error occurs if the latest revision of the given consent
2110
+ # is in the `ACTIVE` or `REVOKED` state.
2111
+ # @param [String] name
2112
+ # Required. The resource name of the consent to reject, of the form `projects/`
2113
+ # project_id`/locations/`location_id`/datasets/`dataset_id`/consentStores/`
2114
+ # consent_store_id`/consents/`consent_id``. An INVALID_ARGUMENT error occurs if `
2115
+ # revision_id` is specified in the name.
2116
+ # @param [Google::Apis::HealthcareV1beta1::RejectConsentRequest] reject_consent_request_object
878
2117
  # @param [String] fields
879
2118
  # Selector specifying which fields to include in a partial response.
880
2119
  # @param [String] quota_user
@@ -884,29 +2123,37 @@ module Google
884
2123
  # Request-specific options
885
2124
  #
886
2125
  # @yield [result, err] Result & error if block supplied
887
- # @yieldparam result [Google::Apis::HealthcareV1beta1::Annotation] parsed result object
2126
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Consent] parsed result object
888
2127
  # @yieldparam err [StandardError] error object if request failed
889
2128
  #
890
- # @return [Google::Apis::HealthcareV1beta1::Annotation]
2129
+ # @return [Google::Apis::HealthcareV1beta1::Consent]
891
2130
  #
892
2131
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
893
2132
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
894
2133
  # @raise [Google::Apis::AuthorizationError] Authorization is required
895
- def create_project_location_dataset_annotation_store_annotation(parent, annotation_object = nil, fields: nil, quota_user: nil, options: nil, &block)
896
- command = make_simple_command(:post, 'v1beta1/{+parent}/annotations', options)
897
- command.request_representation = Google::Apis::HealthcareV1beta1::Annotation::Representation
898
- command.request_object = annotation_object
899
- command.response_representation = Google::Apis::HealthcareV1beta1::Annotation::Representation
900
- command.response_class = Google::Apis::HealthcareV1beta1::Annotation
901
- command.params['parent'] = parent unless parent.nil?
2134
+ def reject_consent(name, reject_consent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2135
+ command = make_simple_command(:post, 'v1beta1/{+name}:reject', options)
2136
+ command.request_representation = Google::Apis::HealthcareV1beta1::RejectConsentRequest::Representation
2137
+ command.request_object = reject_consent_request_object
2138
+ command.response_representation = Google::Apis::HealthcareV1beta1::Consent::Representation
2139
+ command.response_class = Google::Apis::HealthcareV1beta1::Consent
2140
+ command.params['name'] = name unless name.nil?
902
2141
  command.query['fields'] = fields unless fields.nil?
903
2142
  command.query['quotaUser'] = quota_user unless quota_user.nil?
904
2143
  execute_or_queue_command(command, &block)
905
2144
  end
906
2145
 
907
- # Deletes an Annotation or returns NOT_FOUND if it does not exist.
2146
+ # Revokes the latest revision of the specified Consent by committing a new
2147
+ # revision with `state` updated to `REVOKED`. If the latest revision of the
2148
+ # given consent is in the `REVOKED` state, no new revision is committed. A
2149
+ # FAILED_PRECONDITION error occurs if the latest revision of the given consent
2150
+ # is in `DRAFT` or `REJECTED` state.
908
2151
  # @param [String] name
909
- # The resource name of the Annotation to delete.
2152
+ # Required. The resource name of the consent to revoke, of the form `projects/`
2153
+ # project_id`/locations/`location_id`/datasets/`dataset_id`/consentStores/`
2154
+ # consent_store_id`/consents/`consent_id``. An INVALID_ARGUMENT error occurs if `
2155
+ # revision_id` is specified in the name.
2156
+ # @param [Google::Apis::HealthcareV1beta1::RevokeConsentRequest] revoke_consent_request_object
910
2157
  # @param [String] fields
911
2158
  # Selector specifying which fields to include in a partial response.
912
2159
  # @param [String] quota_user
@@ -916,27 +2163,30 @@ module Google
916
2163
  # Request-specific options
917
2164
  #
918
2165
  # @yield [result, err] Result & error if block supplied
919
- # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object
2166
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Consent] parsed result object
920
2167
  # @yieldparam err [StandardError] error object if request failed
921
2168
  #
922
- # @return [Google::Apis::HealthcareV1beta1::Empty]
2169
+ # @return [Google::Apis::HealthcareV1beta1::Consent]
923
2170
  #
924
2171
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
925
2172
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
926
2173
  # @raise [Google::Apis::AuthorizationError] Authorization is required
927
- def delete_project_location_dataset_annotation_store_annotation(name, fields: nil, quota_user: nil, options: nil, &block)
928
- command = make_simple_command(:delete, 'v1beta1/{+name}', options)
929
- command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
930
- command.response_class = Google::Apis::HealthcareV1beta1::Empty
2174
+ def revoke_consent(name, revoke_consent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2175
+ command = make_simple_command(:post, 'v1beta1/{+name}:revoke', options)
2176
+ command.request_representation = Google::Apis::HealthcareV1beta1::RevokeConsentRequest::Representation
2177
+ command.request_object = revoke_consent_request_object
2178
+ command.response_representation = Google::Apis::HealthcareV1beta1::Consent::Representation
2179
+ command.response_class = Google::Apis::HealthcareV1beta1::Consent
931
2180
  command.params['name'] = name unless name.nil?
932
2181
  command.query['fields'] = fields unless fields.nil?
933
2182
  command.query['quotaUser'] = quota_user unless quota_user.nil?
934
2183
  execute_or_queue_command(command, &block)
935
2184
  end
936
2185
 
937
- # Gets an Annotation.
2186
+ # Archives the specified User data mapping.
938
2187
  # @param [String] name
939
- # The resource name of the Annotation to retrieve.
2188
+ # The resource name of the user data mapping to archive.
2189
+ # @param [Google::Apis::HealthcareV1beta1::ArchiveUserDataMappingRequest] archive_user_data_mapping_request_object
940
2190
  # @param [String] fields
941
2191
  # Selector specifying which fields to include in a partial response.
942
2192
  # @param [String] quota_user
@@ -946,42 +2196,30 @@ module Google
946
2196
  # Request-specific options
947
2197
  #
948
2198
  # @yield [result, err] Result & error if block supplied
949
- # @yieldparam result [Google::Apis::HealthcareV1beta1::Annotation] parsed result object
2199
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ArchiveUserDataMappingResponse] parsed result object
950
2200
  # @yieldparam err [StandardError] error object if request failed
951
2201
  #
952
- # @return [Google::Apis::HealthcareV1beta1::Annotation]
2202
+ # @return [Google::Apis::HealthcareV1beta1::ArchiveUserDataMappingResponse]
953
2203
  #
954
2204
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
955
2205
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
956
2206
  # @raise [Google::Apis::AuthorizationError] Authorization is required
957
- def get_project_location_dataset_annotation_store_annotation(name, fields: nil, quota_user: nil, options: nil, &block)
958
- command = make_simple_command(:get, 'v1beta1/{+name}', options)
959
- command.response_representation = Google::Apis::HealthcareV1beta1::Annotation::Representation
960
- command.response_class = Google::Apis::HealthcareV1beta1::Annotation
2207
+ def archive_user_data_mapping(name, archive_user_data_mapping_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2208
+ command = make_simple_command(:post, 'v1beta1/{+name}:archive', options)
2209
+ command.request_representation = Google::Apis::HealthcareV1beta1::ArchiveUserDataMappingRequest::Representation
2210
+ command.request_object = archive_user_data_mapping_request_object
2211
+ command.response_representation = Google::Apis::HealthcareV1beta1::ArchiveUserDataMappingResponse::Representation
2212
+ command.response_class = Google::Apis::HealthcareV1beta1::ArchiveUserDataMappingResponse
961
2213
  command.params['name'] = name unless name.nil?
962
2214
  command.query['fields'] = fields unless fields.nil?
963
2215
  command.query['quotaUser'] = quota_user unless quota_user.nil?
964
2216
  execute_or_queue_command(command, &block)
965
2217
  end
966
2218
 
967
- # Lists the Annotations in the given Annotation store for a source resource.
2219
+ # Creates a new User data mapping in the parent Consent store.
968
2220
  # @param [String] parent
969
- # Name of the Annotation store to retrieve Annotations from.
970
- # @param [String] filter
971
- # Restricts Annotations returned to those matching a filter. Functions available
972
- # for filtering are: - `matches("annotation_source.cloud_healthcare_source.name",
973
- # substring)`. Filter on `cloud_healthcare_source.name`. For example: `matches("
974
- # annotation_source.cloud_healthcare_source.name", "some source")`. - `matches("
975
- # annotation", substring)`. Filter on all fields of annotation. For example: `
976
- # matches("annotation", "some-content")`. - `type("text")`, `type("image")`, `
977
- # type("resource")`. Filter on the type of annotation `data`.
978
- # @param [Fixnum] page_size
979
- # Limit on the number of Annotations to return in a single response. If zero the
980
- # default page size of 100 is used.
981
- # @param [String] page_token
982
- # The next_page_token value returned from the previous List request, if any.
983
- # @param [String] view
984
- # Controls which fields are populated in the response.
2221
+ # Required. Name of the consent store.
2222
+ # @param [Google::Apis::HealthcareV1beta1::UserDataMapping] user_data_mapping_object
985
2223
  # @param [String] fields
986
2224
  # Selector specifying which fields to include in a partial response.
987
2225
  # @param [String] quota_user
@@ -991,38 +2229,29 @@ module Google
991
2229
  # Request-specific options
992
2230
  #
993
2231
  # @yield [result, err] Result & error if block supplied
994
- # @yieldparam result [Google::Apis::HealthcareV1beta1::ListAnnotationsResponse] parsed result object
2232
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::UserDataMapping] parsed result object
995
2233
  # @yieldparam err [StandardError] error object if request failed
996
2234
  #
997
- # @return [Google::Apis::HealthcareV1beta1::ListAnnotationsResponse]
2235
+ # @return [Google::Apis::HealthcareV1beta1::UserDataMapping]
998
2236
  #
999
2237
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1000
2238
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1001
2239
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1002
- def list_project_location_dataset_annotation_store_annotations(parent, filter: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
1003
- command = make_simple_command(:get, 'v1beta1/{+parent}/annotations', options)
1004
- command.response_representation = Google::Apis::HealthcareV1beta1::ListAnnotationsResponse::Representation
1005
- command.response_class = Google::Apis::HealthcareV1beta1::ListAnnotationsResponse
2240
+ def create_project_location_dataset_consent_store_user_data_mapping(parent, user_data_mapping_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2241
+ command = make_simple_command(:post, 'v1beta1/{+parent}/userDataMappings', options)
2242
+ command.request_representation = Google::Apis::HealthcareV1beta1::UserDataMapping::Representation
2243
+ command.request_object = user_data_mapping_object
2244
+ command.response_representation = Google::Apis::HealthcareV1beta1::UserDataMapping::Representation
2245
+ command.response_class = Google::Apis::HealthcareV1beta1::UserDataMapping
1006
2246
  command.params['parent'] = parent unless parent.nil?
1007
- command.query['filter'] = filter unless filter.nil?
1008
- command.query['pageSize'] = page_size unless page_size.nil?
1009
- command.query['pageToken'] = page_token unless page_token.nil?
1010
- command.query['view'] = view unless view.nil?
1011
2247
  command.query['fields'] = fields unless fields.nil?
1012
2248
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1013
2249
  execute_or_queue_command(command, &block)
1014
2250
  end
1015
2251
 
1016
- # Updates the Annotation.
2252
+ # Deletes the specified User data mapping.
1017
2253
  # @param [String] name
1018
- # Resource name of the Annotation, of the form `projects/`project_id`/locations/`
1019
- # location_id`/datasets/`dataset_id`/annotationStores/`annotation_store_id`/
1020
- # annotations/`annotation_id``.
1021
- # @param [Google::Apis::HealthcareV1beta1::Annotation] annotation_object
1022
- # @param [String] update_mask
1023
- # The update mask applies to the resource. For the `FieldMask` definition, see
1024
- # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
1025
- # fieldmask
2254
+ # Required. The resource name of the user data mapping to delete.
1026
2255
  # @param [String] fields
1027
2256
  # Selector specifying which fields to include in a partial response.
1028
2257
  # @param [String] quota_user
@@ -1032,40 +2261,27 @@ module Google
1032
2261
  # Request-specific options
1033
2262
  #
1034
2263
  # @yield [result, err] Result & error if block supplied
1035
- # @yieldparam result [Google::Apis::HealthcareV1beta1::Annotation] parsed result object
2264
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object
1036
2265
  # @yieldparam err [StandardError] error object if request failed
1037
2266
  #
1038
- # @return [Google::Apis::HealthcareV1beta1::Annotation]
2267
+ # @return [Google::Apis::HealthcareV1beta1::Empty]
1039
2268
  #
1040
2269
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1041
2270
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1042
2271
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1043
- def patch_project_location_dataset_annotation_store_annotation(name, annotation_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1044
- command = make_simple_command(:patch, 'v1beta1/{+name}', options)
1045
- command.request_representation = Google::Apis::HealthcareV1beta1::Annotation::Representation
1046
- command.request_object = annotation_object
1047
- command.response_representation = Google::Apis::HealthcareV1beta1::Annotation::Representation
1048
- command.response_class = Google::Apis::HealthcareV1beta1::Annotation
2272
+ def delete_project_location_dataset_consent_store_user_data_mapping(name, fields: nil, quota_user: nil, options: nil, &block)
2273
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
2274
+ command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
2275
+ command.response_class = Google::Apis::HealthcareV1beta1::Empty
1049
2276
  command.params['name'] = name unless name.nil?
1050
- command.query['updateMask'] = update_mask unless update_mask.nil?
1051
2277
  command.query['fields'] = fields unless fields.nil?
1052
2278
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1053
2279
  execute_or_queue_command(command, &block)
1054
2280
  end
1055
2281
 
1056
- # Gets the access control policy for a resource. Returns an empty policy if the
1057
- # resource exists and does not have a policy set.
1058
- # @param [String] resource
1059
- # REQUIRED: The resource for which the policy is being requested. See the
1060
- # operation documentation for the appropriate value for this field.
1061
- # @param [Fixnum] options_requested_policy_version
1062
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
1063
- # 3. Requests specifying an invalid value will be rejected. Requests for
1064
- # policies with any conditional bindings must specify version 3. Policies
1065
- # without any conditional bindings may specify any valid value or leave the
1066
- # field unset. To learn which resources support conditions in their IAM policies,
1067
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1068
- # resource-policies).
2282
+ # Gets the specified User data mapping.
2283
+ # @param [String] name
2284
+ # Required. The resource name of the user data mapping to retrieve.
1069
2285
  # @param [String] fields
1070
2286
  # Selector specifying which fields to include in a partial response.
1071
2287
  # @param [String] quota_user
@@ -1075,32 +2291,37 @@ module Google
1075
2291
  # Request-specific options
1076
2292
  #
1077
2293
  # @yield [result, err] Result & error if block supplied
1078
- # @yieldparam result [Google::Apis::HealthcareV1beta1::Policy] parsed result object
2294
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::UserDataMapping] parsed result object
1079
2295
  # @yieldparam err [StandardError] error object if request failed
1080
2296
  #
1081
- # @return [Google::Apis::HealthcareV1beta1::Policy]
2297
+ # @return [Google::Apis::HealthcareV1beta1::UserDataMapping]
1082
2298
  #
1083
2299
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1084
2300
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1085
2301
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1086
- def get_project_location_dataset_consent_store_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1087
- command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
1088
- command.response_representation = Google::Apis::HealthcareV1beta1::Policy::Representation
1089
- command.response_class = Google::Apis::HealthcareV1beta1::Policy
1090
- command.params['resource'] = resource unless resource.nil?
1091
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
2302
+ def get_project_location_dataset_consent_store_user_data_mapping(name, fields: nil, quota_user: nil, options: nil, &block)
2303
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
2304
+ command.response_representation = Google::Apis::HealthcareV1beta1::UserDataMapping::Representation
2305
+ command.response_class = Google::Apis::HealthcareV1beta1::UserDataMapping
2306
+ command.params['name'] = name unless name.nil?
1092
2307
  command.query['fields'] = fields unless fields.nil?
1093
2308
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1094
2309
  execute_or_queue_command(command, &block)
1095
2310
  end
1096
2311
 
1097
- # Sets the access control policy on the specified resource. Replaces any
1098
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1099
- # PERMISSION_DENIED` errors.
1100
- # @param [String] resource
1101
- # REQUIRED: The resource for which the policy is being specified. See the
1102
- # operation documentation for the appropriate value for this field.
1103
- # @param [Google::Apis::HealthcareV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
2312
+ # Lists the User data mappings in the given Consent store.
2313
+ # @param [String] parent
2314
+ # Required. Name of the Consent store to retrieve user data mappings from.
2315
+ # @param [String] filter
2316
+ # Restricts the user data mappings returned to those matching a filter. Syntax:
2317
+ # https://cloud.google.com/appengine/docs/standard/python/search/query_strings
2318
+ # The fields available for filtering are: - data_id - user_id - archived -
2319
+ # archive_time
2320
+ # @param [Fixnum] page_size
2321
+ # Limit on the number of user data mappings to return in a single response. If
2322
+ # zero the default page size of 100 is used.
2323
+ # @param [String] page_token
2324
+ # Token to retrieve the next page of results or empty to get the first page.
1104
2325
  # @param [String] fields
1105
2326
  # Selector specifying which fields to include in a partial response.
1106
2327
  # @param [String] quota_user
@@ -1110,35 +2331,37 @@ module Google
1110
2331
  # Request-specific options
1111
2332
  #
1112
2333
  # @yield [result, err] Result & error if block supplied
1113
- # @yieldparam result [Google::Apis::HealthcareV1beta1::Policy] parsed result object
2334
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::ListUserDataMappingsResponse] parsed result object
1114
2335
  # @yieldparam err [StandardError] error object if request failed
1115
2336
  #
1116
- # @return [Google::Apis::HealthcareV1beta1::Policy]
2337
+ # @return [Google::Apis::HealthcareV1beta1::ListUserDataMappingsResponse]
1117
2338
  #
1118
2339
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1119
2340
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1120
2341
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1121
- def set_consent_store_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1122
- command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
1123
- command.request_representation = Google::Apis::HealthcareV1beta1::SetIamPolicyRequest::Representation
1124
- command.request_object = set_iam_policy_request_object
1125
- command.response_representation = Google::Apis::HealthcareV1beta1::Policy::Representation
1126
- command.response_class = Google::Apis::HealthcareV1beta1::Policy
1127
- command.params['resource'] = resource unless resource.nil?
2342
+ def list_project_location_dataset_consent_store_user_data_mappings(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2343
+ command = make_simple_command(:get, 'v1beta1/{+parent}/userDataMappings', options)
2344
+ command.response_representation = Google::Apis::HealthcareV1beta1::ListUserDataMappingsResponse::Representation
2345
+ command.response_class = Google::Apis::HealthcareV1beta1::ListUserDataMappingsResponse
2346
+ command.params['parent'] = parent unless parent.nil?
2347
+ command.query['filter'] = filter unless filter.nil?
2348
+ command.query['pageSize'] = page_size unless page_size.nil?
2349
+ command.query['pageToken'] = page_token unless page_token.nil?
1128
2350
  command.query['fields'] = fields unless fields.nil?
1129
2351
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1130
2352
  execute_or_queue_command(command, &block)
1131
2353
  end
1132
2354
 
1133
- # Returns permissions that a caller has on the specified resource. If the
1134
- # resource does not exist, this will return an empty set of permissions, not a `
1135
- # NOT_FOUND` error. Note: This operation is designed to be used for building
1136
- # permission-aware UIs and command-line tools, not for authorization checking.
1137
- # This operation may "fail open" without warning.
1138
- # @param [String] resource
1139
- # REQUIRED: The resource for which the policy detail is being requested. See the
1140
- # operation documentation for the appropriate value for this field.
1141
- # @param [Google::Apis::HealthcareV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
2355
+ # Updates the specified User data mapping.
2356
+ # @param [String] name
2357
+ # Resource name of the User data mapping, of the form `projects/`project_id`/
2358
+ # locations/`location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/
2359
+ # userDataMappings/`user_data_mapping_id``.
2360
+ # @param [Google::Apis::HealthcareV1beta1::UserDataMapping] user_data_mapping_object
2361
+ # @param [String] update_mask
2362
+ # The update mask that applies to the resource. For the `FieldMask` definition,
2363
+ # see https://developers.google.com/protocol-buffers/docs/reference/google.
2364
+ # protobuf#fieldmask.
1142
2365
  # @param [String] fields
1143
2366
  # Selector specifying which fields to include in a partial response.
1144
2367
  # @param [String] quota_user
@@ -1148,21 +2371,22 @@ module Google
1148
2371
  # Request-specific options
1149
2372
  #
1150
2373
  # @yield [result, err] Result & error if block supplied
1151
- # @yieldparam result [Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse] parsed result object
2374
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::UserDataMapping] parsed result object
1152
2375
  # @yieldparam err [StandardError] error object if request failed
1153
2376
  #
1154
- # @return [Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse]
2377
+ # @return [Google::Apis::HealthcareV1beta1::UserDataMapping]
1155
2378
  #
1156
2379
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1157
2380
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1158
2381
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1159
- def test_consent_store_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1160
- command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
1161
- command.request_representation = Google::Apis::HealthcareV1beta1::TestIamPermissionsRequest::Representation
1162
- command.request_object = test_iam_permissions_request_object
1163
- command.response_representation = Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse::Representation
1164
- command.response_class = Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse
1165
- command.params['resource'] = resource unless resource.nil?
2382
+ def patch_project_location_dataset_consent_store_user_data_mapping(name, user_data_mapping_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2383
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
2384
+ command.request_representation = Google::Apis::HealthcareV1beta1::UserDataMapping::Representation
2385
+ command.request_object = user_data_mapping_object
2386
+ command.response_representation = Google::Apis::HealthcareV1beta1::UserDataMapping::Representation
2387
+ command.response_class = Google::Apis::HealthcareV1beta1::UserDataMapping
2388
+ command.params['name'] = name unless name.nil?
2389
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1166
2390
  command.query['fields'] = fields unless fields.nil?
1167
2391
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1168
2392
  execute_or_queue_command(command, &block)
@@ -1754,11 +2978,13 @@ module Google
1754
2978
  execute_or_queue_command(command, &block)
1755
2979
  end
1756
2980
 
1757
- # DeleteStudy deletes all instances within the given study. Delete requests are
1758
- # equivalent to the GET requests specified in the Retrieve transaction. For
1759
- # samples that show how to call DeleteStudy, see [Deleting a study, series, or
1760
- # instance](https://cloud.google.com/healthcare/docs/how-tos/dicomweb#
1761
- # deleting_a_study_series_or_instance).
2981
+ # DeleteStudyAsync deletes all instances within the given study using an
2982
+ # operation. Delete requests are equivalent to the GET requests specified in the
2983
+ # Retrieve transaction. The method returns an Operation which will be marked
2984
+ # successful when the deletion is complete. Warning: Inserting instances into a
2985
+ # study while a delete operation is running for that study could result in the
2986
+ # new instances not appearing in search results until the deletion operation
2987
+ # finishes.
1762
2988
  # @param [String] parent
1763
2989
  # @param [String] dicom_web_path
1764
2990
  # The path of the DeleteStudy request. For example, `studies/`study_uid``.
@@ -1771,18 +2997,18 @@ module Google
1771
2997
  # Request-specific options
1772
2998
  #
1773
2999
  # @yield [result, err] Result & error if block supplied
1774
- # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object
3000
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Operation] parsed result object
1775
3001
  # @yieldparam err [StandardError] error object if request failed
1776
3002
  #
1777
- # @return [Google::Apis::HealthcareV1beta1::Empty]
3003
+ # @return [Google::Apis::HealthcareV1beta1::Operation]
1778
3004
  #
1779
3005
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1780
3006
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1781
3007
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1782
3008
  def delete_project_location_dataset_dicom_store_study(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
1783
3009
  command = make_simple_command(:delete, 'v1beta1/{+parent}/dicomWeb/{+dicomWebPath}', options)
1784
- command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
1785
- command.response_class = Google::Apis::HealthcareV1beta1::Empty
3010
+ command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation
3011
+ command.response_class = Google::Apis::HealthcareV1beta1::Operation
1786
3012
  command.params['parent'] = parent unless parent.nil?
1787
3013
  command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
1788
3014
  command.query['fields'] = fields unless fields.nil?
@@ -2010,11 +3236,13 @@ module Google
2010
3236
  execute_or_queue_command(command, &block)
2011
3237
  end
2012
3238
 
2013
- # DeleteSeries deletes all instances within the given study and series. Delete
2014
- # requests are equivalent to the GET requests specified in the Retrieve
2015
- # transaction. For samples that show how to call DeleteSeries, see [Deleting a
2016
- # study, series, or instance](https://cloud.google.com/healthcare/docs/how-tos/
2017
- # dicomweb#deleting_a_study_series_or_instance).
3239
+ # DeleteSeriesAsync deletes all instances within the given study and series
3240
+ # using an operation. Delete requests are equivalent to the GET requests
3241
+ # specified in the Retrieve transaction. The method returns an Operation which
3242
+ # will be marked successful when the deletion is complete. Warning: Inserting
3243
+ # instances into a series while a delete operation is running for that series
3244
+ # could result in the new instances not appearing in search results until the
3245
+ # deletion operation finishes.
2018
3246
  # @param [String] parent
2019
3247
  # The name of the DICOM store that is being accessed. For example, `projects/`
2020
3248
  # project_id`/locations/`location_id`/datasets/`dataset_id`/dicomStores/`
@@ -2031,18 +3259,18 @@ module Google
2031
3259
  # Request-specific options
2032
3260
  #
2033
3261
  # @yield [result, err] Result & error if block supplied
2034
- # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object
3262
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::Operation] parsed result object
2035
3263
  # @yieldparam err [StandardError] error object if request failed
2036
3264
  #
2037
- # @return [Google::Apis::HealthcareV1beta1::Empty]
3265
+ # @return [Google::Apis::HealthcareV1beta1::Operation]
2038
3266
  #
2039
3267
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2040
3268
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2041
3269
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2042
3270
  def delete_project_location_dataset_dicom_store_study_series(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
2043
3271
  command = make_simple_command(:delete, 'v1beta1/{+parent}/dicomWeb/{+dicomWebPath}', options)
2044
- command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
2045
- command.response_class = Google::Apis::HealthcareV1beta1::Empty
3272
+ command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation
3273
+ command.response_class = Google::Apis::HealthcareV1beta1::Operation
2046
3274
  command.params['parent'] = parent unless parent.nil?
2047
3275
  command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
2048
3276
  command.query['fields'] = fields unless fields.nil?
@@ -2551,13 +3779,13 @@ module Google
2551
3779
  execute_or_queue_command(command, &block)
2552
3780
  end
2553
3781
 
2554
- # Export resources from the FHIR store to the specified destination. This
2555
- # method returns an Operation that can be used to track the status of the export
2556
- # by calling GetOperation. Immediate fatal errors appear in the error field,
2557
- # errors are also logged to Cloud Logging (see [Viewing logs](/healthcare/docs/
2558
- # how-tos/logging)). Otherwise, when the operation finishes, a detailed response
2559
- # of type ExportResourcesResponse is returned in the response field. The
2560
- # metadata field type for this operation is OperationMetadata.
3782
+ # Export resources from the FHIR store to the specified destination. This method
3783
+ # returns an Operation that can be used to track the status of the export by
3784
+ # calling GetOperation. Immediate fatal errors appear in the error field, errors
3785
+ # are also logged to Cloud Logging (see [Viewing error logs in Cloud Logging](/
3786
+ # healthcare/docs/how-tos/logging)). Otherwise, when the operation finishes, a
3787
+ # detailed response of type ExportResourcesResponse is returned in the response
3788
+ # field. The metadata field type for this operation is OperationMetadata.
2561
3789
  # @param [String] name
2562
3790
  # The name of the FHIR store to export resource from, in the format of `projects/
2563
3791
  # `project_id`/locations/`location_id`/datasets/`dataset_id`/fhirStores/`
@@ -2677,10 +3905,10 @@ module Google
2677
3905
  # considering grouping or ordering, but if the input data contains invalid
2678
3906
  # references or if some resources fail to be imported, the FHIR store might be
2679
3907
  # left in a state that violates referential integrity. The import process does
2680
- # not trigger Cloud Pub/Sub notification or BigQuery streaming update,
2681
- # regardless of how those are configured on the FHIR store. If a resource with
2682
- # the specified ID already exists, the most recent version of the resource is
2683
- # overwritten without creating a new historical version, regardless of the
3908
+ # not trigger Pub/Sub notification or BigQuery streaming update, regardless of
3909
+ # how those are configured on the FHIR store. If a resource with the specified
3910
+ # ID already exists, the most recent version of the resource is overwritten
3911
+ # without creating a new historical version, regardless of the
2684
3912
  # disable_resource_versioning setting on the FHIR store. If transient failures
2685
3913
  # occur during the import, it is possible that successfully imported resources
2686
3914
  # will be overwritten more than once. The import operation is idempotent unless
@@ -2695,22 +3923,22 @@ module Google
2695
3923
  # copy of a resource such as Practitioner that might be referred to by many
2696
3924
  # patients. If some resources fail to import, for example due to parsing errors,
2697
3925
  # successfully imported resources are not rolled back. The location and format
2698
- # of the input data is specified by the parameters below. Note that if no format
2699
- # is specified, this method assumes the `BUNDLE` format. When using the `BUNDLE`
2700
- # format this method ignores the `Bundle.type` field, except that `history`
2701
- # bundles are rejected, and does not apply any of the bundle processing
2702
- # semantics for batch or transaction bundles. Unlike in ExecuteBundle,
2703
- # transaction bundles are not executed as a single transaction and bundle-
2704
- # internal references are not rewritten. The bundle is treated as a collection
2705
- # of resources to be written as provided in `Bundle.entry.resource`, ignoring `
2706
- # Bundle.entry.request`. As an example, this allows the import of `searchset`
2707
- # bundles produced by a FHIR search or Patient-everything operation. This method
2708
- # returns an Operation that can be used to track the status of the import by
2709
- # calling GetOperation. Immediate fatal errors appear in the error field, errors
2710
- # are also logged to Cloud Logging (see [Viewing logs](/healthcare/docs/how-tos/
2711
- # logging)). Otherwise, when the operation finishes, a detailed response of type
2712
- # ImportResourcesResponse is returned in the response field. The metadata field
2713
- # type for this operation is OperationMetadata.
3926
+ # of the input data are specified by the parameters in ImportResourcesRequest.
3927
+ # Note that if no format is specified, this method assumes the `BUNDLE` format.
3928
+ # When using the `BUNDLE` format this method ignores the `Bundle.type` field,
3929
+ # except that `history` bundles are rejected, and does not apply any of the
3930
+ # bundle processing semantics for batch or transaction bundles. Unlike in
3931
+ # ExecuteBundle, transaction bundles are not executed as a single transaction
3932
+ # and bundle-internal references are not rewritten. The bundle is treated as a
3933
+ # collection of resources to be written as provided in `Bundle.entry.resource`,
3934
+ # ignoring `Bundle.entry.request`. As an example, this allows the import of `
3935
+ # searchset` bundles produced by a FHIR search or Patient-everything operation.
3936
+ # This method returns an Operation that can be used to track the status of the
3937
+ # import by calling GetOperation. Immediate fatal errors appear in the error
3938
+ # field, errors are also logged to Cloud Logging (see [Viewing logs](/healthcare/
3939
+ # docs/how-tos/logging)). Otherwise, when the operation finishes, a detailed
3940
+ # response of type ImportResourcesResponse is returned in the response field.
3941
+ # The metadata field type for this operation is OperationMetadata.
2714
3942
  # @param [String] name
2715
3943
  # The name of the FHIR store to import FHIR resources to, in the format of `
2716
3944
  # projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/fhirStores/