google-api-client 0.28.7 → 0.29.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (358) hide show
  1. checksums.yaml +4 -4
  2. data/.kokoro/build.bat +9 -6
  3. data/.kokoro/build.sh +2 -32
  4. data/.kokoro/continuous/common.cfg +6 -1
  5. data/.kokoro/continuous/windows.cfg +17 -1
  6. data/.kokoro/osx.sh +2 -33
  7. data/.kokoro/presubmit/common.cfg +6 -1
  8. data/.kokoro/presubmit/windows.cfg +17 -1
  9. data/.kokoro/trampoline.bat +10 -0
  10. data/.kokoro/trampoline.sh +3 -23
  11. data/CHANGELOG.md +138 -0
  12. data/Rakefile +31 -0
  13. data/generated/google/apis/accessapproval_v1beta1.rb +34 -0
  14. data/generated/google/apis/accessapproval_v1beta1/classes.rb +306 -0
  15. data/generated/google/apis/accessapproval_v1beta1/representations.rb +159 -0
  16. data/generated/google/apis/accessapproval_v1beta1/service.rb +728 -0
  17. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  18. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +96 -131
  19. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +2 -42
  20. data/generated/google/apis/admin_reports_v1.rb +1 -1
  21. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  22. data/generated/google/apis/alertcenter_v1beta1/classes.rb +98 -0
  23. data/generated/google/apis/alertcenter_v1beta1/representations.rb +25 -0
  24. data/generated/google/apis/alertcenter_v1beta1/service.rb +2 -1
  25. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  26. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +40 -0
  27. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +6 -0
  28. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  29. data/generated/google/apis/androidenterprise_v1/classes.rb +0 -26
  30. data/generated/google/apis/androidenterprise_v1/representations.rb +0 -14
  31. data/generated/google/apis/androidenterprise_v1/service.rb +0 -36
  32. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  33. data/generated/google/apis/androidmanagement_v1/classes.rb +188 -0
  34. data/generated/google/apis/androidmanagement_v1/representations.rb +82 -0
  35. data/generated/google/apis/androidmanagement_v1/service.rb +170 -0
  36. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  37. data/generated/google/apis/androidpublisher_v2/service.rb +6 -12
  38. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  39. data/generated/google/apis/androidpublisher_v3/service.rb +6 -12
  40. data/generated/google/apis/appengine_v1.rb +1 -1
  41. data/generated/google/apis/appengine_v1/service.rb +7 -1
  42. data/generated/google/apis/appengine_v1beta.rb +1 -1
  43. data/generated/google/apis/appengine_v1beta/classes.rb +2 -1
  44. data/generated/google/apis/appengine_v1beta/service.rb +7 -1
  45. data/generated/google/apis/appsactivity_v1.rb +1 -1
  46. data/generated/google/apis/appsactivity_v1/service.rb +4 -3
  47. data/generated/google/apis/bigquery_v2.rb +1 -1
  48. data/generated/google/apis/bigquery_v2/classes.rb +28 -4
  49. data/generated/google/apis/bigquery_v2/representations.rb +13 -0
  50. data/generated/google/apis/bigtableadmin_v1.rb +2 -2
  51. data/generated/google/apis/bigtableadmin_v1/service.rb +1 -1
  52. data/generated/google/apis/bigtableadmin_v2.rb +2 -2
  53. data/generated/google/apis/bigtableadmin_v2/classes.rb +10 -10
  54. data/generated/google/apis/bigtableadmin_v2/service.rb +111 -2
  55. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  56. data/generated/google/apis/calendar_v3.rb +1 -1
  57. data/generated/google/apis/calendar_v3/service.rb +16 -16
  58. data/generated/google/apis/classroom_v1.rb +7 -1
  59. data/generated/google/apis/classroom_v1/classes.rb +77 -0
  60. data/generated/google/apis/classroom_v1/representations.rb +32 -0
  61. data/generated/google/apis/classroom_v1/service.rb +224 -0
  62. data/generated/google/apis/cloudasset_v1.rb +1 -1
  63. data/generated/google/apis/cloudasset_v1/classes.rb +15 -2
  64. data/generated/google/apis/cloudasset_v1/representations.rb +1 -0
  65. data/generated/google/apis/cloudasset_v1/service.rb +3 -2
  66. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  67. data/generated/google/apis/cloudasset_v1beta1/classes.rb +13 -0
  68. data/generated/google/apis/cloudasset_v1beta1/representations.rb +1 -0
  69. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  70. data/generated/google/apis/cloudbilling_v1/service.rb +2 -2
  71. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  72. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +1 -1
  73. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  74. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +19 -16
  75. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +6 -5
  76. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  77. data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -10
  78. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  79. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +7 -4
  80. data/generated/google/apis/cloudiot_v1.rb +1 -1
  81. data/generated/google/apis/cloudkms_v1.rb +1 -1
  82. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
  83. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  84. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +6 -5
  85. data/generated/google/apis/cloudresourcemanager_v1/service.rb +30 -21
  86. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  87. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +37 -26
  88. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  89. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  90. data/generated/google/apis/cloudscheduler_v1.rb +34 -0
  91. data/generated/google/apis/cloudscheduler_v1/classes.rb +994 -0
  92. data/generated/google/apis/cloudscheduler_v1/representations.rb +297 -0
  93. data/generated/google/apis/cloudscheduler_v1/service.rb +448 -0
  94. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  95. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -2
  96. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  97. data/generated/google/apis/cloudsearch_v1/classes.rb +25 -11
  98. data/generated/google/apis/cloudsearch_v1/service.rb +36 -32
  99. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  100. data/generated/google/apis/cloudtasks_v2/service.rb +13 -13
  101. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  102. data/generated/google/apis/cloudtasks_v2beta2/service.rb +13 -13
  103. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  104. data/generated/google/apis/cloudtasks_v2beta3/service.rb +13 -13
  105. data/generated/google/apis/commentanalyzer_v1alpha1.rb +39 -0
  106. data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +484 -0
  107. data/generated/google/apis/commentanalyzer_v1alpha1/representations.rb +210 -0
  108. data/generated/google/apis/commentanalyzer_v1alpha1/service.rb +124 -0
  109. data/generated/google/apis/compute_alpha.rb +1 -1
  110. data/generated/google/apis/compute_alpha/classes.rb +328 -25
  111. data/generated/google/apis/compute_alpha/representations.rb +134 -0
  112. data/generated/google/apis/compute_alpha/service.rb +465 -0
  113. data/generated/google/apis/compute_beta.rb +1 -1
  114. data/generated/google/apis/compute_beta/classes.rb +86 -20
  115. data/generated/google/apis/compute_beta/representations.rb +7 -0
  116. data/generated/google/apis/compute_v1.rb +1 -1
  117. data/generated/google/apis/compute_v1/classes.rb +994 -103
  118. data/generated/google/apis/compute_v1/representations.rb +346 -0
  119. data/generated/google/apis/compute_v1/service.rb +533 -0
  120. data/generated/google/apis/container_v1.rb +1 -1
  121. data/generated/google/apis/container_v1/classes.rb +167 -21
  122. data/generated/google/apis/container_v1/representations.rb +66 -0
  123. data/generated/google/apis/container_v1/service.rb +85 -36
  124. data/generated/google/apis/container_v1beta1.rb +1 -1
  125. data/generated/google/apis/container_v1beta1/classes.rb +86 -21
  126. data/generated/google/apis/container_v1beta1/representations.rb +32 -0
  127. data/generated/google/apis/container_v1beta1/service.rb +38 -38
  128. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  129. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  130. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +95 -6
  131. data/generated/google/apis/containeranalysis_v1beta1/representations.rb +25 -0
  132. data/generated/google/apis/content_v2.rb +1 -1
  133. data/generated/google/apis/content_v2/classes.rb +5 -5
  134. data/generated/google/apis/content_v2/service.rb +6 -6
  135. data/generated/google/apis/content_v2_1.rb +1 -1
  136. data/generated/google/apis/content_v2_1/classes.rb +18 -4
  137. data/generated/google/apis/content_v2_1/representations.rb +2 -0
  138. data/generated/google/apis/content_v2_1/service.rb +6 -6
  139. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  140. data/generated/google/apis/dataflow_v1b3/classes.rb +56 -1
  141. data/generated/google/apis/dataflow_v1b3/representations.rb +39 -0
  142. data/generated/google/apis/dataflow_v1b3/service.rb +251 -0
  143. data/generated/google/apis/datafusion_v1beta1.rb +43 -0
  144. data/generated/google/apis/datafusion_v1beta1/classes.rb +1304 -0
  145. data/generated/google/apis/datafusion_v1beta1/representations.rb +469 -0
  146. data/generated/google/apis/datafusion_v1beta1/service.rb +657 -0
  147. data/generated/google/apis/dataproc_v1.rb +1 -1
  148. data/generated/google/apis/dataproc_v1/classes.rb +5 -5
  149. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  150. data/generated/google/apis/dataproc_v1beta2/classes.rb +37 -24
  151. data/generated/google/apis/datastore_v1.rb +1 -1
  152. data/generated/google/apis/datastore_v1/classes.rb +20 -16
  153. data/generated/google/apis/datastore_v1beta1.rb +1 -1
  154. data/generated/google/apis/datastore_v1beta1/classes.rb +10 -10
  155. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  156. data/generated/google/apis/datastore_v1beta3/classes.rb +10 -6
  157. data/generated/google/apis/dialogflow_v2.rb +1 -1
  158. data/generated/google/apis/dialogflow_v2/classes.rb +236 -0
  159. data/generated/google/apis/dialogflow_v2/representations.rb +99 -0
  160. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  161. data/generated/google/apis/dialogflow_v2beta1/classes.rb +64 -2
  162. data/generated/google/apis/dialogflow_v2beta1/representations.rb +31 -0
  163. data/generated/google/apis/dlp_v2.rb +1 -1
  164. data/generated/google/apis/dlp_v2/classes.rb +19 -2
  165. data/generated/google/apis/dns_v1.rb +1 -1
  166. data/generated/google/apis/dns_v1/classes.rb +202 -93
  167. data/generated/google/apis/dns_v1/service.rb +110 -15
  168. data/generated/google/apis/dns_v1beta2.rb +1 -1
  169. data/generated/google/apis/dns_v1beta2/classes.rb +262 -122
  170. data/generated/google/apis/dns_v1beta2/service.rb +141 -21
  171. data/generated/google/apis/dns_v2beta1.rb +1 -1
  172. data/generated/google/apis/dns_v2beta1/classes.rb +202 -93
  173. data/generated/google/apis/dns_v2beta1/service.rb +110 -15
  174. data/generated/google/apis/docs_v1.rb +1 -1
  175. data/generated/google/apis/docs_v1/classes.rb +10 -0
  176. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  177. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +6 -4
  178. data/generated/google/apis/drive_v2.rb +1 -1
  179. data/generated/google/apis/drive_v2/classes.rb +601 -69
  180. data/generated/google/apis/drive_v2/representations.rb +152 -0
  181. data/generated/google/apis/drive_v2/service.rb +452 -96
  182. data/generated/google/apis/drive_v3.rb +1 -1
  183. data/generated/google/apis/drive_v3/classes.rb +591 -64
  184. data/generated/google/apis/drive_v3/representations.rb +151 -0
  185. data/generated/google/apis/drive_v3/service.rb +407 -77
  186. data/generated/google/apis/driveactivity_v2.rb +1 -1
  187. data/generated/google/apis/driveactivity_v2/classes.rb +149 -17
  188. data/generated/google/apis/driveactivity_v2/representations.rb +69 -0
  189. data/generated/google/apis/file_v1.rb +1 -1
  190. data/generated/google/apis/file_v1/classes.rb +399 -8
  191. data/generated/google/apis/file_v1/representations.rb +121 -0
  192. data/generated/google/apis/file_v1beta1.rb +1 -1
  193. data/generated/google/apis/file_v1beta1/classes.rb +399 -8
  194. data/generated/google/apis/file_v1beta1/representations.rb +121 -0
  195. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  196. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +28 -4
  197. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +4 -0
  198. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  199. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +13 -13
  200. data/generated/google/apis/firebaserules_v1.rb +1 -1
  201. data/generated/google/apis/firebaserules_v1/classes.rb +10 -2
  202. data/generated/google/apis/firestore_v1.rb +1 -1
  203. data/generated/google/apis/firestore_v1/classes.rb +15 -15
  204. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  205. data/generated/google/apis/firestore_v1beta1/classes.rb +15 -15
  206. data/generated/google/apis/firestore_v1beta2.rb +1 -1
  207. data/generated/google/apis/firestore_v1beta2/classes.rb +10 -10
  208. data/generated/google/apis/fitness_v1.rb +1 -1
  209. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  210. data/generated/google/apis/games_v1.rb +2 -2
  211. data/generated/google/apis/gmail_v1.rb +1 -1
  212. data/generated/google/apis/gmail_v1/classes.rb +29 -0
  213. data/generated/google/apis/gmail_v1/representations.rb +13 -0
  214. data/generated/google/apis/gmail_v1/service.rb +76 -0
  215. data/generated/google/apis/healthcare_v1beta1.rb +34 -0
  216. data/generated/google/apis/healthcare_v1beta1/classes.rb +2462 -0
  217. data/generated/google/apis/healthcare_v1beta1/representations.rb +1042 -0
  218. data/generated/google/apis/healthcare_v1beta1/service.rb +3403 -0
  219. data/generated/google/apis/iap_v1.rb +1 -1
  220. data/generated/google/apis/iap_v1beta1.rb +1 -1
  221. data/generated/google/apis/jobs_v2.rb +1 -1
  222. data/generated/google/apis/jobs_v2/classes.rb +9 -8
  223. data/generated/google/apis/jobs_v3.rb +1 -1
  224. data/generated/google/apis/jobs_v3/classes.rb +13 -7
  225. data/generated/google/apis/jobs_v3/service.rb +1 -2
  226. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  227. data/generated/google/apis/jobs_v3p1beta1/classes.rb +13 -7
  228. data/generated/google/apis/jobs_v3p1beta1/service.rb +1 -2
  229. data/generated/google/apis/language_v1.rb +1 -1
  230. data/generated/google/apis/language_v1/classes.rb +3 -2
  231. data/generated/google/apis/language_v1beta2.rb +1 -1
  232. data/generated/google/apis/language_v1beta2/classes.rb +3 -2
  233. data/generated/google/apis/ml_v1.rb +1 -1
  234. data/generated/google/apis/ml_v1/classes.rb +64 -16
  235. data/generated/google/apis/ml_v1/representations.rb +2 -0
  236. data/generated/google/apis/ml_v1/service.rb +5 -5
  237. data/generated/google/apis/monitoring_v3.rb +1 -1
  238. data/generated/google/apis/monitoring_v3/classes.rb +0 -10
  239. data/generated/google/apis/monitoring_v3/representations.rb +0 -1
  240. data/generated/google/apis/oauth2_v1.rb +1 -1
  241. data/generated/google/apis/oauth2_v2.rb +1 -1
  242. data/generated/google/apis/oslogin_v1.rb +3 -2
  243. data/generated/google/apis/oslogin_v1/service.rb +2 -1
  244. data/generated/google/apis/oslogin_v1alpha.rb +3 -2
  245. data/generated/google/apis/oslogin_v1alpha/service.rb +2 -1
  246. data/generated/google/apis/oslogin_v1beta.rb +3 -2
  247. data/generated/google/apis/oslogin_v1beta/service.rb +2 -1
  248. data/generated/google/apis/people_v1.rb +1 -4
  249. data/generated/google/apis/people_v1/classes.rb +19 -11
  250. data/generated/google/apis/people_v1/representations.rb +1 -0
  251. data/generated/google/apis/people_v1/service.rb +1 -0
  252. data/generated/google/apis/plus_domains_v1.rb +2 -5
  253. data/generated/google/apis/plus_domains_v1/service.rb +8 -90
  254. data/generated/google/apis/plus_v1.rb +2 -2
  255. data/generated/google/apis/plus_v1/service.rb +7 -7
  256. data/generated/google/apis/poly_v1.rb +1 -1
  257. data/generated/google/apis/poly_v1/classes.rb +3 -2
  258. data/generated/google/apis/poly_v1/service.rb +11 -8
  259. data/generated/google/apis/pubsub_v1.rb +1 -1
  260. data/generated/google/apis/pubsub_v1/classes.rb +2 -1
  261. data/generated/google/apis/pubsub_v1/service.rb +8 -8
  262. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  263. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  264. data/generated/google/apis/remotebuildexecution_v1/classes.rb +7 -6
  265. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  266. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +5 -4
  267. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  268. data/generated/google/apis/remotebuildexecution_v2/classes.rb +5 -4
  269. data/generated/google/apis/run_v1alpha1.rb +1 -1
  270. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  271. data/generated/google/apis/securitycenter_v1.rb +35 -0
  272. data/generated/google/apis/securitycenter_v1/classes.rb +1627 -0
  273. data/generated/google/apis/securitycenter_v1/representations.rb +569 -0
  274. data/generated/google/apis/securitycenter_v1/service.rb +1110 -0
  275. data/generated/google/apis/securitycenter_v1beta1.rb +35 -0
  276. data/generated/google/apis/securitycenter_v1beta1/classes.rb +1514 -0
  277. data/generated/google/apis/securitycenter_v1beta1/representations.rb +548 -0
  278. data/generated/google/apis/securitycenter_v1beta1/service.rb +1035 -0
  279. data/generated/google/apis/servicebroker_v1.rb +1 -1
  280. data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
  281. data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
  282. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  283. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +324 -13
  284. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +174 -0
  285. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +5 -0
  286. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  287. data/generated/google/apis/servicecontrol_v1/classes.rb +2 -1
  288. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  289. data/generated/google/apis/servicemanagement_v1/classes.rb +101 -20
  290. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  291. data/generated/google/apis/servicenetworking_v1/classes.rb +16 -13
  292. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  293. data/generated/google/apis/servicenetworking_v1beta/classes.rb +16 -13
  294. data/generated/google/apis/serviceusage_v1.rb +1 -1
  295. data/generated/google/apis/serviceusage_v1/classes.rb +110 -13
  296. data/generated/google/apis/serviceusage_v1/representations.rb +43 -0
  297. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  298. data/generated/google/apis/serviceusage_v1beta1/classes.rb +110 -13
  299. data/generated/google/apis/serviceusage_v1beta1/representations.rb +43 -0
  300. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  301. data/generated/google/apis/sourcerepo_v1/classes.rb +182 -0
  302. data/generated/google/apis/sourcerepo_v1/representations.rb +45 -0
  303. data/generated/google/apis/sourcerepo_v1/service.rb +35 -0
  304. data/generated/google/apis/spanner_v1.rb +1 -1
  305. data/generated/google/apis/spanner_v1/classes.rb +20 -19
  306. data/generated/google/apis/spanner_v1/service.rb +1 -1
  307. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  308. data/generated/google/apis/sqladmin_v1beta4/classes.rb +9 -2
  309. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  310. data/generated/google/apis/storage_v1.rb +1 -1
  311. data/generated/google/apis/storage_v1/classes.rb +144 -0
  312. data/generated/google/apis/storage_v1/representations.rb +56 -0
  313. data/generated/google/apis/storage_v1/service.rb +441 -46
  314. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  315. data/generated/google/apis/storagetransfer_v1/classes.rb +3 -3
  316. data/generated/google/apis/testing_v1.rb +1 -1
  317. data/generated/google/apis/testing_v1/classes.rb +6 -0
  318. data/generated/google/apis/testing_v1/representations.rb +1 -0
  319. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  320. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  321. data/generated/google/apis/toolresults_v1beta3/classes.rb +240 -0
  322. data/generated/google/apis/toolresults_v1beta3/representations.rb +43 -0
  323. data/generated/google/apis/toolresults_v1beta3/service.rb +116 -0
  324. data/generated/google/apis/tpu_v1.rb +1 -1
  325. data/generated/google/apis/tpu_v1/classes.rb +10 -4
  326. data/generated/google/apis/tpu_v1/representations.rb +1 -0
  327. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  328. data/generated/google/apis/tpu_v1alpha1/classes.rb +10 -4
  329. data/generated/google/apis/tpu_v1alpha1/representations.rb +1 -0
  330. data/generated/google/apis/vault_v1.rb +1 -1
  331. data/generated/google/apis/vault_v1/classes.rb +37 -18
  332. data/generated/google/apis/vault_v1/representations.rb +3 -0
  333. data/generated/google/apis/vision_v1.rb +1 -1
  334. data/generated/google/apis/vision_v1/classes.rb +84 -47
  335. data/generated/google/apis/vision_v1/service.rb +68 -4
  336. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  337. data/generated/google/apis/vision_v1p1beta1/classes.rb +84 -47
  338. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  339. data/generated/google/apis/vision_v1p2beta1/classes.rb +84 -47
  340. data/generated/google/apis/webmasters_v3.rb +1 -1
  341. data/generated/google/apis/webmasters_v3/classes.rb +0 -166
  342. data/generated/google/apis/webmasters_v3/representations.rb +0 -93
  343. data/generated/google/apis/webmasters_v3/service.rb +0 -171
  344. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  345. data/generated/google/apis/youtube_partner_v1/classes.rb +15 -34
  346. data/generated/google/apis/youtube_partner_v1/representations.rb +4 -17
  347. data/generated/google/apis/youtube_v3.rb +1 -1
  348. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  349. data/generated/google/apis/youtubereporting_v1/classes.rb +2 -2
  350. data/google-api-client.gemspec +1 -1
  351. data/lib/google/apis/version.rb +1 -1
  352. metadata +31 -9
  353. data/.kokoro/common.cfg +0 -22
  354. data/.kokoro/windows.sh +0 -32
  355. data/generated/google/apis/logging_v2beta1.rb +0 -46
  356. data/generated/google/apis/logging_v2beta1/classes.rb +0 -1764
  357. data/generated/google/apis/logging_v2beta1/representations.rb +0 -537
  358. data/generated/google/apis/logging_v2beta1/service.rb +0 -570
@@ -124,6 +124,12 @@ module Google
124
124
  include Google::Apis::Core::JsonObjectSupport
125
125
  end
126
126
 
127
+ class LanguageSettings
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
127
133
  class ListDelegatesResponse
128
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
135
 
@@ -445,6 +451,13 @@ module Google
445
451
  end
446
452
  end
447
453
 
454
+ class LanguageSettings
455
+ # @private
456
+ class Representation < Google::Apis::Core::JsonRepresentation
457
+ property :display_language, as: 'displayLanguage'
458
+ end
459
+ end
460
+
448
461
  class ListDelegatesResponse
449
462
  # @private
450
463
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1296,6 +1296,40 @@ module Google
1296
1296
  execute_or_queue_command(command, &block)
1297
1297
  end
1298
1298
 
1299
+ # Gets language settings.
1300
+ # @param [String] user_id
1301
+ # User's email address. The special value "me" can be used to indicate the
1302
+ # authenticated user.
1303
+ # @param [String] fields
1304
+ # Selector specifying which fields to include in a partial response.
1305
+ # @param [String] quota_user
1306
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1307
+ # characters.
1308
+ # @param [String] user_ip
1309
+ # Deprecated. Please use quotaUser instead.
1310
+ # @param [Google::Apis::RequestOptions] options
1311
+ # Request-specific options
1312
+ #
1313
+ # @yield [result, err] Result & error if block supplied
1314
+ # @yieldparam result [Google::Apis::GmailV1::LanguageSettings] parsed result object
1315
+ # @yieldparam err [StandardError] error object if request failed
1316
+ #
1317
+ # @return [Google::Apis::GmailV1::LanguageSettings]
1318
+ #
1319
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1320
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1321
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1322
+ def get_user_setting_language(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1323
+ command = make_simple_command(:get, '{userId}/settings/language', options)
1324
+ command.response_representation = Google::Apis::GmailV1::LanguageSettings::Representation
1325
+ command.response_class = Google::Apis::GmailV1::LanguageSettings
1326
+ command.params['userId'] = user_id unless user_id.nil?
1327
+ command.query['fields'] = fields unless fields.nil?
1328
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1329
+ command.query['userIp'] = user_ip unless user_ip.nil?
1330
+ execute_or_queue_command(command, &block)
1331
+ end
1332
+
1299
1333
  # Gets POP settings.
1300
1334
  # @param [String] user_id
1301
1335
  # User's email address. The special value "me" can be used to indicate the
@@ -1441,6 +1475,48 @@ module Google
1441
1475
  execute_or_queue_command(command, &block)
1442
1476
  end
1443
1477
 
1478
+ # Updates language settings.
1479
+ # If successful, the return object contains the displayLanguage that was saved
1480
+ # for the user, which may differ from the value passed into the request. This is
1481
+ # because the requested displayLanguage may not be directly supported by Gmail
1482
+ # but have a close variant that is, and so the variant may be chosen and saved
1483
+ # instead.
1484
+ # @param [String] user_id
1485
+ # User's email address. The special value "me" can be used to indicate the
1486
+ # authenticated user.
1487
+ # @param [Google::Apis::GmailV1::LanguageSettings] language_settings_object
1488
+ # @param [String] fields
1489
+ # Selector specifying which fields to include in a partial response.
1490
+ # @param [String] quota_user
1491
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1492
+ # characters.
1493
+ # @param [String] user_ip
1494
+ # Deprecated. Please use quotaUser instead.
1495
+ # @param [Google::Apis::RequestOptions] options
1496
+ # Request-specific options
1497
+ #
1498
+ # @yield [result, err] Result & error if block supplied
1499
+ # @yieldparam result [Google::Apis::GmailV1::LanguageSettings] parsed result object
1500
+ # @yieldparam err [StandardError] error object if request failed
1501
+ #
1502
+ # @return [Google::Apis::GmailV1::LanguageSettings]
1503
+ #
1504
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1505
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1506
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1507
+ def update_user_setting_language(user_id, language_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1508
+ command = make_simple_command(:put, '{userId}/settings/language', options)
1509
+ command.request_representation = Google::Apis::GmailV1::LanguageSettings::Representation
1510
+ command.request_object = language_settings_object
1511
+ command.response_representation = Google::Apis::GmailV1::LanguageSettings::Representation
1512
+ command.response_class = Google::Apis::GmailV1::LanguageSettings
1513
+ command.params['userId'] = user_id unless user_id.nil?
1514
+ command.query['fields'] = fields unless fields.nil?
1515
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1516
+ command.query['userIp'] = user_ip unless user_ip.nil?
1517
+ execute_or_queue_command(command, &block)
1518
+ end
1519
+
1444
1520
  # Updates POP settings.
1445
1521
  # @param [String] user_id
1446
1522
  # User's email address. The special value "me" can be used to indicate the
@@ -0,0 +1,34 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/healthcare_v1beta1/service.rb'
16
+ require 'google/apis/healthcare_v1beta1/classes.rb'
17
+ require 'google/apis/healthcare_v1beta1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Cloud Healthcare API
22
+ #
23
+ # Manage, store, and access healthcare data in Google Cloud Platform.
24
+ #
25
+ # @see https://cloud.google.com/healthcare
26
+ module HealthcareV1beta1
27
+ VERSION = 'V1beta1'
28
+ REVISION = '20190427'
29
+
30
+ # View and manage your data across Google Cloud Platform services
31
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,2462 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module HealthcareV1beta1
24
+
25
+ # Specifies the audit configuration for a service.
26
+ # The configuration determines which permission types are logged, and what
27
+ # identities, if any, are exempted from logging.
28
+ # An AuditConfig must have one or more AuditLogConfigs.
29
+ # If there are AuditConfigs for both `allServices` and a specific service,
30
+ # the union of the two AuditConfigs is used for that service: the log_types
31
+ # specified in each AuditConfig are enabled, and the exempted_members in each
32
+ # AuditLogConfig are exempted.
33
+ # Example Policy with multiple AuditConfigs:
34
+ # `
35
+ # "audit_configs": [
36
+ # `
37
+ # "service": "allServices"
38
+ # "audit_log_configs": [
39
+ # `
40
+ # "log_type": "DATA_READ",
41
+ # "exempted_members": [
42
+ # "user:foo@gmail.com"
43
+ # ]
44
+ # `,
45
+ # `
46
+ # "log_type": "DATA_WRITE",
47
+ # `,
48
+ # `
49
+ # "log_type": "ADMIN_READ",
50
+ # `
51
+ # ]
52
+ # `,
53
+ # `
54
+ # "service": "fooservice.googleapis.com"
55
+ # "audit_log_configs": [
56
+ # `
57
+ # "log_type": "DATA_READ",
58
+ # `,
59
+ # `
60
+ # "log_type": "DATA_WRITE",
61
+ # "exempted_members": [
62
+ # "user:bar@gmail.com"
63
+ # ]
64
+ # `
65
+ # ]
66
+ # `
67
+ # ]
68
+ # `
69
+ # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
70
+ # logging. It also exempts foo@gmail.com from DATA_READ logging, and
71
+ # bar@gmail.com from DATA_WRITE logging.
72
+ class AuditConfig
73
+ include Google::Apis::Core::Hashable
74
+
75
+ # The configuration for logging of each type of permission.
76
+ # Corresponds to the JSON property `auditLogConfigs`
77
+ # @return [Array<Google::Apis::HealthcareV1beta1::AuditLogConfig>]
78
+ attr_accessor :audit_log_configs
79
+
80
+ # Specifies a service that will be enabled for audit logging.
81
+ # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
82
+ # `allServices` is a special value that covers all services.
83
+ # Corresponds to the JSON property `service`
84
+ # @return [String]
85
+ attr_accessor :service
86
+
87
+ def initialize(**args)
88
+ update!(**args)
89
+ end
90
+
91
+ # Update properties of this object
92
+ def update!(**args)
93
+ @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
94
+ @service = args[:service] if args.key?(:service)
95
+ end
96
+ end
97
+
98
+ # Provides the configuration for logging a type of permissions.
99
+ # Example:
100
+ # `
101
+ # "audit_log_configs": [
102
+ # `
103
+ # "log_type": "DATA_READ",
104
+ # "exempted_members": [
105
+ # "user:foo@gmail.com"
106
+ # ]
107
+ # `,
108
+ # `
109
+ # "log_type": "DATA_WRITE",
110
+ # `
111
+ # ]
112
+ # `
113
+ # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
114
+ # foo@gmail.com from DATA_READ logging.
115
+ class AuditLogConfig
116
+ include Google::Apis::Core::Hashable
117
+
118
+ # Specifies the identities that do not cause logging for this type of
119
+ # permission.
120
+ # Follows the same format of Binding.members.
121
+ # Corresponds to the JSON property `exemptedMembers`
122
+ # @return [Array<String>]
123
+ attr_accessor :exempted_members
124
+
125
+ # The log type that this config enables.
126
+ # Corresponds to the JSON property `logType`
127
+ # @return [String]
128
+ attr_accessor :log_type
129
+
130
+ def initialize(**args)
131
+ update!(**args)
132
+ end
133
+
134
+ # Update properties of this object
135
+ def update!(**args)
136
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
137
+ @log_type = args[:log_type] if args.key?(:log_type)
138
+ end
139
+ end
140
+
141
+ # Associates `members` with a `role`.
142
+ class Binding
143
+ include Google::Apis::Core::Hashable
144
+
145
+ # Represents an expression text. Example:
146
+ # title: "User account presence"
147
+ # description: "Determines whether the request has a user account"
148
+ # expression: "size(request.user) > 0"
149
+ # Corresponds to the JSON property `condition`
150
+ # @return [Google::Apis::HealthcareV1beta1::Expr]
151
+ attr_accessor :condition
152
+
153
+ # Specifies the identities requesting access for a Cloud Platform resource.
154
+ # `members` can have the following values:
155
+ # * `allUsers`: A special identifier that represents anyone who is
156
+ # on the internet; with or without a Google account.
157
+ # * `allAuthenticatedUsers`: A special identifier that represents anyone
158
+ # who is authenticated with a Google account or a service account.
159
+ # * `user:`emailid``: An email address that represents a specific Google
160
+ # account. For example, `alice@gmail.com` .
161
+ # * `serviceAccount:`emailid``: An email address that represents a service
162
+ # account. For example, `my-other-app@appspot.gserviceaccount.com`.
163
+ # * `group:`emailid``: An email address that represents a Google group.
164
+ # For example, `admins@example.com`.
165
+ # * `domain:`domain``: The G Suite domain (primary) that represents all the
166
+ # users of that domain. For example, `google.com` or `example.com`.
167
+ # Corresponds to the JSON property `members`
168
+ # @return [Array<String>]
169
+ attr_accessor :members
170
+
171
+ # Role that is assigned to `members`.
172
+ # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
173
+ # Corresponds to the JSON property `role`
174
+ # @return [String]
175
+ attr_accessor :role
176
+
177
+ def initialize(**args)
178
+ update!(**args)
179
+ end
180
+
181
+ # Update properties of this object
182
+ def update!(**args)
183
+ @condition = args[:condition] if args.key?(:condition)
184
+ @members = args[:members] if args.key?(:members)
185
+ @role = args[:role] if args.key?(:role)
186
+ end
187
+ end
188
+
189
+ # Mask a string by replacing its characters with a fixed character.
190
+ class CharacterMaskConfig
191
+ include Google::Apis::Core::Hashable
192
+
193
+ # Character to mask the sensitive values. If not supplied, defaults to "*".
194
+ # Corresponds to the JSON property `maskingCharacter`
195
+ # @return [String]
196
+ attr_accessor :masking_character
197
+
198
+ def initialize(**args)
199
+ update!(**args)
200
+ end
201
+
202
+ # Update properties of this object
203
+ def update!(**args)
204
+ @masking_character = args[:masking_character] if args.key?(:masking_character)
205
+ end
206
+ end
207
+
208
+ # Creates a new message.
209
+ class CreateMessageRequest
210
+ include Google::Apis::Core::Hashable
211
+
212
+ # A complete HL7v2 message.
213
+ # See http://www.hl7.org/implement/standards/index.cfm?ref=common for details
214
+ # on the standard.
215
+ # Corresponds to the JSON property `message`
216
+ # @return [Google::Apis::HealthcareV1beta1::Message]
217
+ attr_accessor :message
218
+
219
+ def initialize(**args)
220
+ update!(**args)
221
+ end
222
+
223
+ # Update properties of this object
224
+ def update!(**args)
225
+ @message = args[:message] if args.key?(:message)
226
+ end
227
+ end
228
+
229
+ # Pseudonymization method that generates surrogates via cryptographic hashing.
230
+ # Uses SHA-256.
231
+ # Outputs a base64-encoded representation of the hashed output
232
+ # (for example, `L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=`).
233
+ class CryptoHashConfig
234
+ include Google::Apis::Core::Hashable
235
+
236
+ # An AES 128/192/256 bit key. Causes the hash to be computed based on this
237
+ # key. A default key is generated for each DeidentifyDataset operation and is
238
+ # used wherever crypto_key is not specified.
239
+ # Corresponds to the JSON property `cryptoKey`
240
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
241
+ # @return [String]
242
+ attr_accessor :crypto_key
243
+
244
+ def initialize(**args)
245
+ update!(**args)
246
+ end
247
+
248
+ # Update properties of this object
249
+ def update!(**args)
250
+ @crypto_key = args[:crypto_key] if args.key?(:crypto_key)
251
+ end
252
+ end
253
+
254
+ # A message representing a health dataset.
255
+ # A health dataset represents a collection of healthcare data pertaining to one
256
+ # or more patients. This may include multiple modalities of healthcare data,
257
+ # such as electronic medical records or medical imaging data.
258
+ class Dataset
259
+ include Google::Apis::Core::Hashable
260
+
261
+ # Output only. Resource name of the dataset, of the form
262
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id``.
263
+ # Corresponds to the JSON property `name`
264
+ # @return [String]
265
+ attr_accessor :name
266
+
267
+ # The default timezone used by this dataset. Must be a either a valid IANA
268
+ # time zone name such as "America/New_York" or empty, which defaults to UTC.
269
+ # This is used for parsing times in resources (e.g., HL7 messages) where no
270
+ # explicit timezone is specified.
271
+ # Corresponds to the JSON property `timeZone`
272
+ # @return [String]
273
+ attr_accessor :time_zone
274
+
275
+ def initialize(**args)
276
+ update!(**args)
277
+ end
278
+
279
+ # Update properties of this object
280
+ def update!(**args)
281
+ @name = args[:name] if args.key?(:name)
282
+ @time_zone = args[:time_zone] if args.key?(:time_zone)
283
+ end
284
+ end
285
+
286
+ # Shift a date forward or backward in time by a random amount which is
287
+ # consistent for a given patient and crypto key combination.
288
+ class DateShiftConfig
289
+ include Google::Apis::Core::Hashable
290
+
291
+ # An AES 128/192/256 bit key. Causes the shift to be computed based on this
292
+ # key and the patient ID. A default key is generated for each
293
+ # DeidentifyDataset operation and is used wherever crypto_key is not
294
+ # specified.
295
+ # Corresponds to the JSON property `cryptoKey`
296
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
297
+ # @return [String]
298
+ attr_accessor :crypto_key
299
+
300
+ def initialize(**args)
301
+ update!(**args)
302
+ end
303
+
304
+ # Update properties of this object
305
+ def update!(**args)
306
+ @crypto_key = args[:crypto_key] if args.key?(:crypto_key)
307
+ end
308
+ end
309
+
310
+ # Configures de-id options specific to different types of content.
311
+ # Each submessage customizes the handling of an
312
+ # https://tools.ietf.org/html/rfc6838 media type or subtype. Configs are
313
+ # applied in a nested manner at runtime.
314
+ class DeidentifyConfig
315
+ include Google::Apis::Core::Hashable
316
+
317
+ # Specifies the parameters needed for de-identification of DICOM stores.
318
+ # Corresponds to the JSON property `dicom`
319
+ # @return [Google::Apis::HealthcareV1beta1::DicomConfig]
320
+ attr_accessor :dicom
321
+
322
+ # Specifies how de-identification of a FHIR store should be handled.
323
+ # Corresponds to the JSON property `fhir`
324
+ # @return [Google::Apis::HealthcareV1beta1::FhirConfig]
325
+ attr_accessor :fhir
326
+
327
+ # Specifies how de-identification of image pixel should be handled.
328
+ # Corresponds to the JSON property `image`
329
+ # @return [Google::Apis::HealthcareV1beta1::ImageConfig]
330
+ attr_accessor :image
331
+
332
+ # Configures de-identification of text wherever it is found in the
333
+ # source_dataset.
334
+ # Corresponds to the JSON property `text`
335
+ # @return [Google::Apis::HealthcareV1beta1::TextConfig]
336
+ attr_accessor :text
337
+
338
+ def initialize(**args)
339
+ update!(**args)
340
+ end
341
+
342
+ # Update properties of this object
343
+ def update!(**args)
344
+ @dicom = args[:dicom] if args.key?(:dicom)
345
+ @fhir = args[:fhir] if args.key?(:fhir)
346
+ @image = args[:image] if args.key?(:image)
347
+ @text = args[:text] if args.key?(:text)
348
+ end
349
+ end
350
+
351
+ # Redacts identifying information from the specified dataset.
352
+ class DeidentifyDatasetRequest
353
+ include Google::Apis::Core::Hashable
354
+
355
+ # Configures de-id options specific to different types of content.
356
+ # Each submessage customizes the handling of an
357
+ # https://tools.ietf.org/html/rfc6838 media type or subtype. Configs are
358
+ # applied in a nested manner at runtime.
359
+ # Corresponds to the JSON property `config`
360
+ # @return [Google::Apis::HealthcareV1beta1::DeidentifyConfig]
361
+ attr_accessor :config
362
+
363
+ # The name of the dataset resource to create and write the redacted data to
364
+ # (e.g.,
365
+ # * The destination dataset must not exist.
366
+ # * The destination dataset must be in the same project as the source
367
+ # dataset. De-identifying data across multiple projects is not supported.
368
+ # Corresponds to the JSON property `destinationDataset`
369
+ # @return [String]
370
+ attr_accessor :destination_dataset
371
+
372
+ def initialize(**args)
373
+ update!(**args)
374
+ end
375
+
376
+ # Update properties of this object
377
+ def update!(**args)
378
+ @config = args[:config] if args.key?(:config)
379
+ @destination_dataset = args[:destination_dataset] if args.key?(:destination_dataset)
380
+ end
381
+ end
382
+
383
+ # Contains the status of the Deidentify operation.
384
+ class DeidentifyErrorDetails
385
+ include Google::Apis::Core::Hashable
386
+
387
+ # Number of resources failed to process.
388
+ # Corresponds to the JSON property `failureResourceCount`
389
+ # @return [Fixnum]
390
+ attr_accessor :failure_resource_count
391
+
392
+ # Number of stores failed to process.
393
+ # Corresponds to the JSON property `failureStoreCount`
394
+ # @return [Fixnum]
395
+ attr_accessor :failure_store_count
396
+
397
+ # Number of resources successfully processed.
398
+ # Corresponds to the JSON property `successResourceCount`
399
+ # @return [Fixnum]
400
+ attr_accessor :success_resource_count
401
+
402
+ # Number of stores successfully processed.
403
+ # Corresponds to the JSON property `successStoreCount`
404
+ # @return [Fixnum]
405
+ attr_accessor :success_store_count
406
+
407
+ def initialize(**args)
408
+ update!(**args)
409
+ end
410
+
411
+ # Update properties of this object
412
+ def update!(**args)
413
+ @failure_resource_count = args[:failure_resource_count] if args.key?(:failure_resource_count)
414
+ @failure_store_count = args[:failure_store_count] if args.key?(:failure_store_count)
415
+ @success_resource_count = args[:success_resource_count] if args.key?(:success_resource_count)
416
+ @success_store_count = args[:success_store_count] if args.key?(:success_store_count)
417
+ end
418
+ end
419
+
420
+ # Contains a detailed summary of the Deidentify operation.
421
+ class DeidentifySummary
422
+ include Google::Apis::Core::Hashable
423
+
424
+ # Number of resources successfully processed.
425
+ # Corresponds to the JSON property `successResourceCount`
426
+ # @return [Fixnum]
427
+ attr_accessor :success_resource_count
428
+
429
+ # Number of stores successfully processed.
430
+ # Corresponds to the JSON property `successStoreCount`
431
+ # @return [Fixnum]
432
+ attr_accessor :success_store_count
433
+
434
+ def initialize(**args)
435
+ update!(**args)
436
+ end
437
+
438
+ # Update properties of this object
439
+ def update!(**args)
440
+ @success_resource_count = args[:success_resource_count] if args.key?(:success_resource_count)
441
+ @success_store_count = args[:success_store_count] if args.key?(:success_store_count)
442
+ end
443
+ end
444
+
445
+ # Specifies the parameters needed for de-identification of DICOM stores.
446
+ class DicomConfig
447
+ include Google::Apis::Core::Hashable
448
+
449
+ # Tag filtering profile that determines which tags to keep/remove.
450
+ # Corresponds to the JSON property `filterProfile`
451
+ # @return [String]
452
+ attr_accessor :filter_profile
453
+
454
+ # List of tags to be filtered.
455
+ # Corresponds to the JSON property `keepList`
456
+ # @return [Google::Apis::HealthcareV1beta1::TagFilterList]
457
+ attr_accessor :keep_list
458
+
459
+ # List of tags to be filtered.
460
+ # Corresponds to the JSON property `removeList`
461
+ # @return [Google::Apis::HealthcareV1beta1::TagFilterList]
462
+ attr_accessor :remove_list
463
+
464
+ def initialize(**args)
465
+ update!(**args)
466
+ end
467
+
468
+ # Update properties of this object
469
+ def update!(**args)
470
+ @filter_profile = args[:filter_profile] if args.key?(:filter_profile)
471
+ @keep_list = args[:keep_list] if args.key?(:keep_list)
472
+ @remove_list = args[:remove_list] if args.key?(:remove_list)
473
+ end
474
+ end
475
+
476
+ # Represents a DICOM store.
477
+ class DicomStore
478
+ include Google::Apis::Core::Hashable
479
+
480
+ # User-supplied key-value pairs used to organize DICOM stores.
481
+ # Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
482
+ # of maximum 128 bytes, and must conform to the
483
+ # following PCRE regular expression:
484
+ # \p`Ll`\p`Lo``0,62`
485
+ # Label values are optional, must be between 1 and 63 characters long, have
486
+ # a UTF-8 encoding of maximum 128 bytes, and must conform to the
487
+ # following PCRE regular expression: [\p`Ll`\p`Lo`\p`N`_-]`0,63`
488
+ # No more than 64 labels can be associated with a given store.
489
+ # Corresponds to the JSON property `labels`
490
+ # @return [Hash<String,String>]
491
+ attr_accessor :labels
492
+
493
+ # Output only. Resource name of the DICOM store, of the form
494
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
495
+ # dicomStores/`dicom_store_id``.
496
+ # Corresponds to the JSON property `name`
497
+ # @return [String]
498
+ attr_accessor :name
499
+
500
+ # Specifies where notifications should be sent upon changes to a data store.
501
+ # Corresponds to the JSON property `notificationConfig`
502
+ # @return [Google::Apis::HealthcareV1beta1::NotificationConfig]
503
+ attr_accessor :notification_config
504
+
505
+ def initialize(**args)
506
+ update!(**args)
507
+ end
508
+
509
+ # Update properties of this object
510
+ def update!(**args)
511
+ @labels = args[:labels] if args.key?(:labels)
512
+ @name = args[:name] if args.key?(:name)
513
+ @notification_config = args[:notification_config] if args.key?(:notification_config)
514
+ end
515
+ end
516
+
517
+ # A generic empty message that you can re-use to avoid defining duplicated
518
+ # empty messages in your APIs. A typical example is to use it as the request
519
+ # or the response type of an API method. For instance:
520
+ # service Foo `
521
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
522
+ # `
523
+ # The JSON representation for `Empty` is empty JSON object ````.
524
+ class Empty
525
+ include Google::Apis::Core::Hashable
526
+
527
+ def initialize(**args)
528
+ update!(**args)
529
+ end
530
+
531
+ # Update properties of this object
532
+ def update!(**args)
533
+ end
534
+ end
535
+
536
+ # Structure to describe the error encountered during batch operation on one
537
+ # resource. This is used both for sample errors in operation response, and
538
+ # for format of errors in error reports.
539
+ class ErrorDetail
540
+ include Google::Apis::Core::Hashable
541
+
542
+ # The `Status` type defines a logical error model that is suitable for
543
+ # different programming environments, including REST APIs and RPC APIs. It is
544
+ # used by [gRPC](https://github.com/grpc). The error model is designed to be:
545
+ # - Simple to use and understand for most users
546
+ # - Flexible enough to meet unexpected needs
547
+ # # Overview
548
+ # The `Status` message contains three pieces of data: error code, error
549
+ # message, and error details. The error code should be an enum value of
550
+ # google.rpc.Code, but it may accept additional error codes if needed. The
551
+ # error message should be a developer-facing English message that helps
552
+ # developers *understand* and *resolve* the error. If a localized user-facing
553
+ # error message is needed, put the localized message in the error details or
554
+ # localize it in the client. The optional error details may contain arbitrary
555
+ # information about the error. There is a predefined set of error detail types
556
+ # in the package `google.rpc` that can be used for common error conditions.
557
+ # # Language mapping
558
+ # The `Status` message is the logical representation of the error model, but it
559
+ # is not necessarily the actual wire format. When the `Status` message is
560
+ # exposed in different client libraries and different wire protocols, it can be
561
+ # mapped differently. For example, it will likely be mapped to some exceptions
562
+ # in Java, but more likely mapped to some error codes in C.
563
+ # # Other uses
564
+ # The error model and the `Status` message can be used in a variety of
565
+ # environments, either with or without APIs, to provide a
566
+ # consistent developer experience across different environments.
567
+ # Example uses of this error model include:
568
+ # - Partial errors. If a service needs to return partial errors to the client,
569
+ # it may embed the `Status` in the normal response to indicate the partial
570
+ # errors.
571
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
572
+ # have a `Status` message for error reporting.
573
+ # - Batch operations. If a client uses batch request and batch response, the
574
+ # `Status` message should be used directly inside batch response, one for
575
+ # each error sub-response.
576
+ # - Asynchronous operations. If an API call embeds asynchronous operation
577
+ # results in its response, the status of those operations should be
578
+ # represented directly using the `Status` message.
579
+ # - Logging. If some API errors are stored in logs, the message `Status` could
580
+ # be used directly after any stripping needed for security/privacy reasons.
581
+ # Corresponds to the JSON property `error`
582
+ # @return [Google::Apis::HealthcareV1beta1::Status]
583
+ attr_accessor :error
584
+
585
+ # The identifier of the resource.
586
+ # Corresponds to the JSON property `resource`
587
+ # @return [String]
588
+ attr_accessor :resource
589
+
590
+ def initialize(**args)
591
+ update!(**args)
592
+ end
593
+
594
+ # Update properties of this object
595
+ def update!(**args)
596
+ @error = args[:error] if args.key?(:error)
597
+ @resource = args[:resource] if args.key?(:resource)
598
+ end
599
+ end
600
+
601
+ # Exports data from the specified DICOM store.
602
+ # If a given resource (e.g., a DICOM object with the same SOPInstance UID)
603
+ # already exists in the output, it is overwritten with the version
604
+ # in the source dataset.
605
+ # Exported DICOM data will persist when the DICOM store from which it was
606
+ # exported is deleted.
607
+ class ExportDicomDataRequest
608
+ include Google::Apis::Core::Hashable
609
+
610
+ # The BigQuery table where the output should be written.
611
+ # Corresponds to the JSON property `bigqueryDestination`
612
+ # @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1DicomBigQueryDestination]
613
+ attr_accessor :bigquery_destination
614
+
615
+ # The Cloud Storage location where the output should be written, and the export
616
+ # configuration.
617
+ # Corresponds to the JSON property `gcsDestination`
618
+ # @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1DicomGcsDestination]
619
+ attr_accessor :gcs_destination
620
+
621
+ def initialize(**args)
622
+ update!(**args)
623
+ end
624
+
625
+ # Update properties of this object
626
+ def update!(**args)
627
+ @bigquery_destination = args[:bigquery_destination] if args.key?(:bigquery_destination)
628
+ @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
629
+ end
630
+ end
631
+
632
+ # Request to export resources.
633
+ class ExportResourcesRequest
634
+ include Google::Apis::Core::Hashable
635
+
636
+ # The configuration for exporting to BigQuery.
637
+ # Corresponds to the JSON property `bigqueryDestination`
638
+ # @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirBigQueryDestination]
639
+ attr_accessor :bigquery_destination
640
+
641
+ # The configuration for exporting to Cloud Storage.
642
+ # Corresponds to the JSON property `gcsDestination`
643
+ # @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirRestGcsDestination]
644
+ attr_accessor :gcs_destination
645
+
646
+ def initialize(**args)
647
+ update!(**args)
648
+ end
649
+
650
+ # Update properties of this object
651
+ def update!(**args)
652
+ @bigquery_destination = args[:bigquery_destination] if args.key?(:bigquery_destination)
653
+ @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
654
+ end
655
+ end
656
+
657
+ # Represents an expression text. Example:
658
+ # title: "User account presence"
659
+ # description: "Determines whether the request has a user account"
660
+ # expression: "size(request.user) > 0"
661
+ class Expr
662
+ include Google::Apis::Core::Hashable
663
+
664
+ # An optional description of the expression. This is a longer text which
665
+ # describes the expression, e.g. when hovered over it in a UI.
666
+ # Corresponds to the JSON property `description`
667
+ # @return [String]
668
+ attr_accessor :description
669
+
670
+ # Textual representation of an expression in
671
+ # Common Expression Language syntax.
672
+ # The application context of the containing message determines which
673
+ # well-known feature set of CEL is supported.
674
+ # Corresponds to the JSON property `expression`
675
+ # @return [String]
676
+ attr_accessor :expression
677
+
678
+ # An optional string indicating the location of the expression for error
679
+ # reporting, e.g. a file name and a position in the file.
680
+ # Corresponds to the JSON property `location`
681
+ # @return [String]
682
+ attr_accessor :location
683
+
684
+ # An optional title for the expression, i.e. a short string describing
685
+ # its purpose. This can be used e.g. in UIs which allow to enter the
686
+ # expression.
687
+ # Corresponds to the JSON property `title`
688
+ # @return [String]
689
+ attr_accessor :title
690
+
691
+ def initialize(**args)
692
+ update!(**args)
693
+ end
694
+
695
+ # Update properties of this object
696
+ def update!(**args)
697
+ @description = args[:description] if args.key?(:description)
698
+ @expression = args[:expression] if args.key?(:expression)
699
+ @location = args[:location] if args.key?(:location)
700
+ @title = args[:title] if args.key?(:title)
701
+ end
702
+ end
703
+
704
+ # Specifies how de-identification of a FHIR store should be handled.
705
+ class FhirConfig
706
+ include Google::Apis::Core::Hashable
707
+
708
+ # Specifies FHIR paths to match and how to transform them. Any field that
709
+ # is not matched by a FieldMetadata will be passed through to the output
710
+ # dataset unmodified. All extensions are removed in the output.
711
+ # Corresponds to the JSON property `fieldMetadataList`
712
+ # @return [Array<Google::Apis::HealthcareV1beta1::FieldMetadata>]
713
+ attr_accessor :field_metadata_list
714
+
715
+ def initialize(**args)
716
+ update!(**args)
717
+ end
718
+
719
+ # Update properties of this object
720
+ def update!(**args)
721
+ @field_metadata_list = args[:field_metadata_list] if args.key?(:field_metadata_list)
722
+ end
723
+ end
724
+
725
+ # Represents a FHIR store.
726
+ class FhirStore
727
+ include Google::Apis::Core::Hashable
728
+
729
+ # Whether to disable referential integrity in this FHIR store. This field is
730
+ # immutable after FHIR store creation.
731
+ # The default value is false, meaning that the API will enforce referential
732
+ # integrity and fail the requests that will result in inconsistent state in
733
+ # the FHIR store.
734
+ # When this field is set to true, the API will skip referential integrity
735
+ # check. Consequently, operations that rely on references, such as
736
+ # GetPatientEverything, will not return all the results if broken references
737
+ # exist.
738
+ # Corresponds to the JSON property `disableReferentialIntegrity`
739
+ # @return [Boolean]
740
+ attr_accessor :disable_referential_integrity
741
+ alias_method :disable_referential_integrity?, :disable_referential_integrity
742
+
743
+ # Whether to disable resource versioning for this FHIR store. This field can
744
+ # not be changed after the creation of FHIR store.
745
+ # If set to false, which is the default behavior, all write operations will
746
+ # cause historical versions to be recorded automatically. The historical
747
+ # versions can be fetched through the history APIs, but cannot be updated.
748
+ # If set to true, no historical versions will be kept. The server will send
749
+ # back errors for attempts to read the historical versions.
750
+ # Corresponds to the JSON property `disableResourceVersioning`
751
+ # @return [Boolean]
752
+ attr_accessor :disable_resource_versioning
753
+ alias_method :disable_resource_versioning?, :disable_resource_versioning
754
+
755
+ # Whether to allow the bulk import API to accept history bundles and directly
756
+ # insert historical resource versions into the FHIR store. Importing resource
757
+ # histories creates resource interactions that appear to have occurred in the
758
+ # past, which clients may not want to allow. If set to false, history bundles
759
+ # within an import will fail with an error.
760
+ # Corresponds to the JSON property `enableHistoryImport`
761
+ # @return [Boolean]
762
+ attr_accessor :enable_history_import
763
+ alias_method :enable_history_import?, :enable_history_import
764
+
765
+ # Whether this FHIR store has the [updateCreate
766
+ # capability](https://www.hl7.org/fhir/capabilitystatement-definitions.html#
767
+ # CapabilityStatement.rest.resource.updateCreate).
768
+ # This determines if the client can use an Update operation to create a new
769
+ # resource with a client-specified ID. If false, all IDs are server-assigned
770
+ # through the Create operation and attempts to Update a non-existent resource
771
+ # will return errors. Please treat the audit logs with appropriate levels of
772
+ # care if client-specified resource IDs contain sensitive data such as
773
+ # patient identifiers, those IDs will be part of the FHIR resource path
774
+ # recorded in Cloud audit logs and Cloud Pub/Sub notifications.
775
+ # Corresponds to the JSON property `enableUpdateCreate`
776
+ # @return [Boolean]
777
+ attr_accessor :enable_update_create
778
+ alias_method :enable_update_create?, :enable_update_create
779
+
780
+ # User-supplied key-value pairs used to organize FHIR stores.
781
+ # Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
782
+ # of maximum 128 bytes, and must conform to the
783
+ # following PCRE regular expression:
784
+ # \p`Ll`\p`Lo``0,62`
785
+ # Label values are optional, must be between 1 and 63 characters long, have
786
+ # a UTF-8 encoding of maximum 128 bytes, and must conform to the
787
+ # following PCRE regular expression: [\p`Ll`\p`Lo`\p`N`_-]`0,63`
788
+ # No more than 64 labels can be associated with a given store.
789
+ # Corresponds to the JSON property `labels`
790
+ # @return [Hash<String,String>]
791
+ attr_accessor :labels
792
+
793
+ # Output only. Resource name of the FHIR store, of the form
794
+ # `projects/`project_id`/datasets/`dataset_id`/fhirStores/`fhir_store_id``.
795
+ # Corresponds to the JSON property `name`
796
+ # @return [String]
797
+ attr_accessor :name
798
+
799
+ # Specifies where notifications should be sent upon changes to a data store.
800
+ # Corresponds to the JSON property `notificationConfig`
801
+ # @return [Google::Apis::HealthcareV1beta1::NotificationConfig]
802
+ attr_accessor :notification_config
803
+
804
+ def initialize(**args)
805
+ update!(**args)
806
+ end
807
+
808
+ # Update properties of this object
809
+ def update!(**args)
810
+ @disable_referential_integrity = args[:disable_referential_integrity] if args.key?(:disable_referential_integrity)
811
+ @disable_resource_versioning = args[:disable_resource_versioning] if args.key?(:disable_resource_versioning)
812
+ @enable_history_import = args[:enable_history_import] if args.key?(:enable_history_import)
813
+ @enable_update_create = args[:enable_update_create] if args.key?(:enable_update_create)
814
+ @labels = args[:labels] if args.key?(:labels)
815
+ @name = args[:name] if args.key?(:name)
816
+ @notification_config = args[:notification_config] if args.key?(:notification_config)
817
+ end
818
+ end
819
+
820
+ # Specifies FHIR paths to match, and how to handle de-identification of
821
+ # matching fields.
822
+ class FieldMetadata
823
+ include Google::Apis::Core::Hashable
824
+
825
+ # Deidentify action for one field.
826
+ # Corresponds to the JSON property `action`
827
+ # @return [String]
828
+ attr_accessor :action
829
+
830
+ # List of paths to FHIR fields to be redacted. Each path is a
831
+ # period-separated list where each component is either a field name or
832
+ # FHIR type name, for example: Patient, HumanName.
833
+ # For "choice" types (those defined in the FHIR spec with the form:
834
+ # field[x]) we use two separate components. e.g. "deceasedAge.unit" is
835
+ # matched by "Deceased.Age.unit".
836
+ # Supported types are: AdministrativeGenderCode, Code, Date, DateTime,
837
+ # Decimal, HumanName, Id, LanguageCode, Markdown, MimeTypeCode, Oid,
838
+ # String, Uri, Uuid, Xhtml.
839
+ # Corresponds to the JSON property `paths`
840
+ # @return [Array<String>]
841
+ attr_accessor :paths
842
+
843
+ def initialize(**args)
844
+ update!(**args)
845
+ end
846
+
847
+ # Update properties of this object
848
+ def update!(**args)
849
+ @action = args[:action] if args.key?(:action)
850
+ @paths = args[:paths] if args.key?(:paths)
851
+ end
852
+ end
853
+
854
+ # The BigQuery table where the output should be written.
855
+ class GoogleCloudHealthcareV1beta1DicomBigQueryDestination
856
+ include Google::Apis::Core::Hashable
857
+
858
+ # If the destination table already exists and this flag is `TRUE`, the table
859
+ # will be overwritten by the contents of the DICOM store. If the flag is not
860
+ # set and the destination table already exists, the export call returns an
861
+ # error.
862
+ # Corresponds to the JSON property `force`
863
+ # @return [Boolean]
864
+ attr_accessor :force
865
+ alias_method :force?, :force
866
+
867
+ # BigQuery URI to a table, up to 2000 characters long, in the format
868
+ # `bq://projectId.bqDatasetId.tableId`
869
+ # Corresponds to the JSON property `tableUri`
870
+ # @return [String]
871
+ attr_accessor :table_uri
872
+
873
+ def initialize(**args)
874
+ update!(**args)
875
+ end
876
+
877
+ # Update properties of this object
878
+ def update!(**args)
879
+ @force = args[:force] if args.key?(:force)
880
+ @table_uri = args[:table_uri] if args.key?(:table_uri)
881
+ end
882
+ end
883
+
884
+ # The Cloud Storage location where the output should be written, and the export
885
+ # configuration.
886
+ class GoogleCloudHealthcareV1beta1DicomGcsDestination
887
+ include Google::Apis::Core::Hashable
888
+
889
+ # MIME types supported by DICOM spec.
890
+ # Each file will be written in the following format:
891
+ # `.../`study_id`/`series_id`/`instance_id`[/`frame_number`].`extension``
892
+ # The frame_number component will exist only for multi-frame instances.
893
+ # Refer to the DICOM conformance statement for permissible MIME types:
894
+ # https://cloud.google.com/healthcare/docs/dicom#wado-rs
895
+ # The following extensions will be used for output files:
896
+ # application/dicom -> .dcm
897
+ # image/jpeg -> .jpg
898
+ # image/png -> .png
899
+ # If unspecified, the instances will be exported in their original
900
+ # DICOM format.
901
+ # Corresponds to the JSON property `mimeType`
902
+ # @return [String]
903
+ attr_accessor :mime_type
904
+
905
+ # The Cloud Storage destination to export to.
906
+ # URI for a Cloud Storage directory where result files should be written (in
907
+ # the format `gs://`bucket-id`/`path/to/destination/dir``). If there is no
908
+ # trailing slash, the service will append one when composing the object path.
909
+ # The user is responsible for creating the Cloud Storage bucket referenced in
910
+ # `uri_prefix`.
911
+ # Corresponds to the JSON property `uriPrefix`
912
+ # @return [String]
913
+ attr_accessor :uri_prefix
914
+
915
+ def initialize(**args)
916
+ update!(**args)
917
+ end
918
+
919
+ # Update properties of this object
920
+ def update!(**args)
921
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
922
+ @uri_prefix = args[:uri_prefix] if args.key?(:uri_prefix)
923
+ end
924
+ end
925
+
926
+ # Specifies the configuration for importing data from Cloud Storage.
927
+ class GoogleCloudHealthcareV1beta1DicomGcsSource
928
+ include Google::Apis::Core::Hashable
929
+
930
+ # Points to a Cloud Storage URI containing file(s) with
931
+ # content only. The URI must be in the following format:
932
+ # `gs://`bucket_id`/`object_id``. The URI can include wildcards in
933
+ # `object_id` and thus identify multiple files. Supported wildcards:
934
+ # '*' to match 0 or more non-separator characters
935
+ # '**' to match 0 or more characters (including separators). Must be used at
936
+ # the end of a path and with no other wildcards in the
937
+ # path. Can also be used with a file extension (such as .dcm), which
938
+ # imports all files with the extension in the specified directory and
939
+ # its sub-directories. For example,
940
+ # `gs://my-bucket/my-directory/**.dcm` imports all files with .dcm
941
+ # extensions in `my-directory/` and its sub-directories.
942
+ # '?' to match 1 character
943
+ # All other URI formats are invalid.
944
+ # Files matching the wildcard are expected to contain content only, no
945
+ # metadata.
946
+ # Corresponds to the JSON property `uri`
947
+ # @return [String]
948
+ attr_accessor :uri
949
+
950
+ def initialize(**args)
951
+ update!(**args)
952
+ end
953
+
954
+ # Update properties of this object
955
+ def update!(**args)
956
+ @uri = args[:uri] if args.key?(:uri)
957
+ end
958
+ end
959
+
960
+ # The configuration for exporting to BigQuery.
961
+ class GoogleCloudHealthcareV1beta1FhirBigQueryDestination
962
+ include Google::Apis::Core::Hashable
963
+
964
+ # BigQuery URI to a dataset, up to 2000 characters long, in the format
965
+ # `bq://projectId.bqDatasetId`
966
+ # Corresponds to the JSON property `datasetUri`
967
+ # @return [String]
968
+ attr_accessor :dataset_uri
969
+
970
+ # Configuration for the FHIR BigQuery schema. Determines how the server
971
+ # generates the schema.
972
+ # Corresponds to the JSON property `schemaConfig`
973
+ # @return [Google::Apis::HealthcareV1beta1::SchemaConfig]
974
+ attr_accessor :schema_config
975
+
976
+ def initialize(**args)
977
+ update!(**args)
978
+ end
979
+
980
+ # Update properties of this object
981
+ def update!(**args)
982
+ @dataset_uri = args[:dataset_uri] if args.key?(:dataset_uri)
983
+ @schema_config = args[:schema_config] if args.key?(:schema_config)
984
+ end
985
+ end
986
+
987
+ # Final response of exporting resources.
988
+ # This structure will be included in the
989
+ # response to describe the detailed
990
+ # outcome. It will only be included when the operation finishes.
991
+ class GoogleCloudHealthcareV1beta1FhirRestExportResourcesResponse
992
+ include Google::Apis::Core::Hashable
993
+
994
+ # The name of the FHIR store where resources have been exported, in the
995
+ # format
996
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
997
+ # fhirStores/`fhir_store_id``.
998
+ # Corresponds to the JSON property `fhirStore`
999
+ # @return [String]
1000
+ attr_accessor :fhir_store
1001
+
1002
+ # The total number of resources exported from the requested FHIR store.
1003
+ # Corresponds to the JSON property `resourceCount`
1004
+ # @return [Fixnum]
1005
+ attr_accessor :resource_count
1006
+
1007
+ def initialize(**args)
1008
+ update!(**args)
1009
+ end
1010
+
1011
+ # Update properties of this object
1012
+ def update!(**args)
1013
+ @fhir_store = args[:fhir_store] if args.key?(:fhir_store)
1014
+ @resource_count = args[:resource_count] if args.key?(:resource_count)
1015
+ end
1016
+ end
1017
+
1018
+ # The configuration for exporting to Cloud Storage.
1019
+ class GoogleCloudHealthcareV1beta1FhirRestGcsDestination
1020
+ include Google::Apis::Core::Hashable
1021
+
1022
+ # URI for a Cloud Storage directory where result files should be written (in
1023
+ # the format `gs://`bucket-id`/`path/to/destination/dir``). If there is no
1024
+ # trailing slash, the service will append one when composing the object path.
1025
+ # The user is responsible for creating the Cloud Storage bucket referenced in
1026
+ # `uri_prefix`.
1027
+ # Corresponds to the JSON property `uriPrefix`
1028
+ # @return [String]
1029
+ attr_accessor :uri_prefix
1030
+
1031
+ def initialize(**args)
1032
+ update!(**args)
1033
+ end
1034
+
1035
+ # Update properties of this object
1036
+ def update!(**args)
1037
+ @uri_prefix = args[:uri_prefix] if args.key?(:uri_prefix)
1038
+ end
1039
+ end
1040
+
1041
+ # Specifies the configuration for importing data from Cloud Storage.
1042
+ class GoogleCloudHealthcareV1beta1FhirRestGcsSource
1043
+ include Google::Apis::Core::Hashable
1044
+
1045
+ # Points to a Cloud Storage URI containing file(s) to import.
1046
+ # The URI must be in the following format: `gs://`bucket_id`/`object_id``.
1047
+ # The URI can include wildcards in `object_id` and thus identify multiple
1048
+ # files. Supported wildcards:
1049
+ # * `*` to match 0 or more non-separator characters
1050
+ # * `**` to match 0 or more characters (including separators). Must be used
1051
+ # at the end of a path and with no other wildcards in the
1052
+ # path. Can also be used with a file extension (such as .ndjson), which
1053
+ # imports all files with the extension in the specified directory and
1054
+ # its sub-directories. For example, `gs://my-bucket/my-directory/**.ndjson`
1055
+ # imports all files with `.ndjson` extensions in `my-directory/` and its
1056
+ # sub-directories.
1057
+ # * `?` to match 1 character
1058
+ # Files matching the wildcard are expected to contain content only, no
1059
+ # metadata.
1060
+ # Corresponds to the JSON property `uri`
1061
+ # @return [String]
1062
+ attr_accessor :uri
1063
+
1064
+ def initialize(**args)
1065
+ update!(**args)
1066
+ end
1067
+
1068
+ # Update properties of this object
1069
+ def update!(**args)
1070
+ @uri = args[:uri] if args.key?(:uri)
1071
+ end
1072
+ end
1073
+
1074
+ # Error response of importing resources.
1075
+ # This structure will be included in the
1076
+ # error details to describe the
1077
+ # detailed error. It will only be included when the operation finishes with
1078
+ # some failure.
1079
+ class GoogleCloudHealthcareV1beta1FhirRestImportResourcesErrorDetails
1080
+ include Google::Apis::Core::Hashable
1081
+
1082
+ # The number of resources that had errors.
1083
+ # Corresponds to the JSON property `errorCount`
1084
+ # @return [Fixnum]
1085
+ attr_accessor :error_count
1086
+
1087
+ # The name of the FHIR store where resources have been imported, in the
1088
+ # format
1089
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1090
+ # fhirStores/`fhir_store_id``.
1091
+ # Corresponds to the JSON property `fhirStore`
1092
+ # @return [String]
1093
+ attr_accessor :fhir_store
1094
+
1095
+ # The total number of resources included in the source data. This is the sum
1096
+ # of the success and error counts.
1097
+ # Corresponds to the JSON property `inputSize`
1098
+ # @return [Fixnum]
1099
+ attr_accessor :input_size
1100
+
1101
+ # The number of resources that have been imported.
1102
+ # Corresponds to the JSON property `successCount`
1103
+ # @return [Fixnum]
1104
+ attr_accessor :success_count
1105
+
1106
+ def initialize(**args)
1107
+ update!(**args)
1108
+ end
1109
+
1110
+ # Update properties of this object
1111
+ def update!(**args)
1112
+ @error_count = args[:error_count] if args.key?(:error_count)
1113
+ @fhir_store = args[:fhir_store] if args.key?(:fhir_store)
1114
+ @input_size = args[:input_size] if args.key?(:input_size)
1115
+ @success_count = args[:success_count] if args.key?(:success_count)
1116
+ end
1117
+ end
1118
+
1119
+ # Final response of importing resources.
1120
+ # This structure will be included in the
1121
+ # response to describe the detailed
1122
+ # outcome. It will only be included when the operation finishes successfully.
1123
+ class GoogleCloudHealthcareV1beta1FhirRestImportResourcesResponse
1124
+ include Google::Apis::Core::Hashable
1125
+
1126
+ # The name of the FHIR store where the resources have been imported, in the
1127
+ # format
1128
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1129
+ # fhirStores/`fhir_store_id``.
1130
+ # Corresponds to the JSON property `fhirStore`
1131
+ # @return [String]
1132
+ attr_accessor :fhir_store
1133
+
1134
+ # The total number of resources included in the source data.
1135
+ # Corresponds to the JSON property `inputSize`
1136
+ # @return [Fixnum]
1137
+ attr_accessor :input_size
1138
+
1139
+ def initialize(**args)
1140
+ update!(**args)
1141
+ end
1142
+
1143
+ # Update properties of this object
1144
+ def update!(**args)
1145
+ @fhir_store = args[:fhir_store] if args.key?(:fhir_store)
1146
+ @input_size = args[:input_size] if args.key?(:input_size)
1147
+ end
1148
+ end
1149
+
1150
+ # Represents an HL7v2 store.
1151
+ class Hl7V2Store
1152
+ include Google::Apis::Core::Hashable
1153
+
1154
+ # User-supplied key-value pairs used to organize HL7v2 stores.
1155
+ # Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
1156
+ # of maximum 128 bytes, and must conform to the
1157
+ # following PCRE regular expression:
1158
+ # \p`Ll`\p`Lo``0,62`
1159
+ # Label values are optional, must be between 1 and 63 characters long, have
1160
+ # a UTF-8 encoding of maximum 128 bytes, and must conform to the
1161
+ # following PCRE regular expression: [\p`Ll`\p`Lo`\p`N`_-]`0,63`
1162
+ # No more than 64 labels can be associated with a given store.
1163
+ # Corresponds to the JSON property `labels`
1164
+ # @return [Hash<String,String>]
1165
+ attr_accessor :labels
1166
+
1167
+ # Output only. Resource name of the HL7v2 store, of the form
1168
+ # `projects/`project_id`/datasets/`dataset_id`/hl7V2Stores/`hl7v2_store_id``.
1169
+ # Corresponds to the JSON property `name`
1170
+ # @return [String]
1171
+ attr_accessor :name
1172
+
1173
+ # Specifies where notifications should be sent upon changes to a data store.
1174
+ # Corresponds to the JSON property `notificationConfig`
1175
+ # @return [Google::Apis::HealthcareV1beta1::NotificationConfig]
1176
+ attr_accessor :notification_config
1177
+
1178
+ # The configuration for the parser. It determines how the server parses the
1179
+ # messages.
1180
+ # Corresponds to the JSON property `parserConfig`
1181
+ # @return [Google::Apis::HealthcareV1beta1::ParserConfig]
1182
+ attr_accessor :parser_config
1183
+
1184
+ def initialize(**args)
1185
+ update!(**args)
1186
+ end
1187
+
1188
+ # Update properties of this object
1189
+ def update!(**args)
1190
+ @labels = args[:labels] if args.key?(:labels)
1191
+ @name = args[:name] if args.key?(:name)
1192
+ @notification_config = args[:notification_config] if args.key?(:notification_config)
1193
+ @parser_config = args[:parser_config] if args.key?(:parser_config)
1194
+ end
1195
+ end
1196
+
1197
+ # Message that represents an arbitrary HTTP body. It should only be used for
1198
+ # payload formats that can't be represented as JSON, such as raw binary or
1199
+ # an HTML page.
1200
+ # This message can be used both in streaming and non-streaming API methods in
1201
+ # the request as well as the response.
1202
+ # It can be used as a top-level request field, which is convenient if one
1203
+ # wants to extract parameters from either the URL or HTTP template into the
1204
+ # request fields and also want access to the raw HTTP body.
1205
+ # Example:
1206
+ # message GetResourceRequest `
1207
+ # // A unique request id.
1208
+ # string request_id = 1;
1209
+ # // The raw HTTP body is bound to this field.
1210
+ # google.api.HttpBody http_body = 2;
1211
+ # `
1212
+ # service ResourceService `
1213
+ # rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
1214
+ # rpc UpdateResource(google.api.HttpBody) returns
1215
+ # (google.protobuf.Empty);
1216
+ # `
1217
+ # Example with streaming methods:
1218
+ # service CaldavService `
1219
+ # rpc GetCalendar(stream google.api.HttpBody)
1220
+ # returns (stream google.api.HttpBody);
1221
+ # rpc UpdateCalendar(stream google.api.HttpBody)
1222
+ # returns (stream google.api.HttpBody);
1223
+ # `
1224
+ # Use of this type only changes how the request and response bodies are
1225
+ # handled, all other features will continue to work unchanged.
1226
+ class HttpBody
1227
+ include Google::Apis::Core::Hashable
1228
+
1229
+ # The HTTP Content-Type header value specifying the content type of the body.
1230
+ # Corresponds to the JSON property `contentType`
1231
+ # @return [String]
1232
+ attr_accessor :content_type
1233
+
1234
+ # The HTTP request/response body as raw binary.
1235
+ # Corresponds to the JSON property `data`
1236
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1237
+ # @return [String]
1238
+ attr_accessor :data
1239
+
1240
+ # Application specific response metadata. Must be set in the first response
1241
+ # for streaming APIs.
1242
+ # Corresponds to the JSON property `extensions`
1243
+ # @return [Array<Hash<String,Object>>]
1244
+ attr_accessor :extensions
1245
+
1246
+ def initialize(**args)
1247
+ update!(**args)
1248
+ end
1249
+
1250
+ # Update properties of this object
1251
+ def update!(**args)
1252
+ @content_type = args[:content_type] if args.key?(:content_type)
1253
+ @data = args[:data] if args.key?(:data)
1254
+ @extensions = args[:extensions] if args.key?(:extensions)
1255
+ end
1256
+ end
1257
+
1258
+ # Specifies how de-identification of image pixel should be handled.
1259
+ class ImageConfig
1260
+ include Google::Apis::Core::Hashable
1261
+
1262
+ # Determines how to redact text from image.
1263
+ # Corresponds to the JSON property `textRedactionMode`
1264
+ # @return [String]
1265
+ attr_accessor :text_redaction_mode
1266
+
1267
+ def initialize(**args)
1268
+ update!(**args)
1269
+ end
1270
+
1271
+ # Update properties of this object
1272
+ def update!(**args)
1273
+ @text_redaction_mode = args[:text_redaction_mode] if args.key?(:text_redaction_mode)
1274
+ end
1275
+ end
1276
+
1277
+ # Returns the errors encountered during DICOM store import.
1278
+ class ImportDicomDataErrorDetails
1279
+ include Google::Apis::Core::Hashable
1280
+
1281
+ # Deprecated. Use only for debugging purposes.
1282
+ # Contains sample errors encountered in imports of individual resources
1283
+ # (for example, a Cloud Storage object).
1284
+ # Corresponds to the JSON property `sampleErrors`
1285
+ # @return [Array<Google::Apis::HealthcareV1beta1::ErrorDetail>]
1286
+ attr_accessor :sample_errors
1287
+
1288
+ def initialize(**args)
1289
+ update!(**args)
1290
+ end
1291
+
1292
+ # Update properties of this object
1293
+ def update!(**args)
1294
+ @sample_errors = args[:sample_errors] if args.key?(:sample_errors)
1295
+ end
1296
+ end
1297
+
1298
+ # Imports data into the specified DICOM store.
1299
+ # Returns an error if any of the files to import are not DICOM files. This
1300
+ # API will accept duplicate DICOM instances, by simply ignoring the newly
1301
+ # pushed instance (it will not overwrite).
1302
+ class ImportDicomDataRequest
1303
+ include Google::Apis::Core::Hashable
1304
+
1305
+ # Specifies the configuration for importing data from Cloud Storage.
1306
+ # Corresponds to the JSON property `gcsSource`
1307
+ # @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1DicomGcsSource]
1308
+ attr_accessor :gcs_source
1309
+
1310
+ def initialize(**args)
1311
+ update!(**args)
1312
+ end
1313
+
1314
+ # Update properties of this object
1315
+ def update!(**args)
1316
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
1317
+ end
1318
+ end
1319
+
1320
+ # Request to import resources.
1321
+ class ImportResourcesRequest
1322
+ include Google::Apis::Core::Hashable
1323
+
1324
+ # The content structure in the source location. The default is
1325
+ # BUNDLE.
1326
+ # Corresponds to the JSON property `contentStructure`
1327
+ # @return [String]
1328
+ attr_accessor :content_structure
1329
+
1330
+ # Specifies the configuration for importing data from Cloud Storage.
1331
+ # Corresponds to the JSON property `gcsSource`
1332
+ # @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirRestGcsSource]
1333
+ attr_accessor :gcs_source
1334
+
1335
+ def initialize(**args)
1336
+ update!(**args)
1337
+ end
1338
+
1339
+ # Update properties of this object
1340
+ def update!(**args)
1341
+ @content_structure = args[:content_structure] if args.key?(:content_structure)
1342
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
1343
+ end
1344
+ end
1345
+
1346
+ # A transformation to apply to text that is identified as a specific
1347
+ # info_type.
1348
+ class InfoTypeTransformation
1349
+ include Google::Apis::Core::Hashable
1350
+
1351
+ # Mask a string by replacing its characters with a fixed character.
1352
+ # Corresponds to the JSON property `characterMaskConfig`
1353
+ # @return [Google::Apis::HealthcareV1beta1::CharacterMaskConfig]
1354
+ attr_accessor :character_mask_config
1355
+
1356
+ # Pseudonymization method that generates surrogates via cryptographic hashing.
1357
+ # Uses SHA-256.
1358
+ # Outputs a base64-encoded representation of the hashed output
1359
+ # (for example, `L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=`).
1360
+ # Corresponds to the JSON property `cryptoHashConfig`
1361
+ # @return [Google::Apis::HealthcareV1beta1::CryptoHashConfig]
1362
+ attr_accessor :crypto_hash_config
1363
+
1364
+ # Shift a date forward or backward in time by a random amount which is
1365
+ # consistent for a given patient and crypto key combination.
1366
+ # Corresponds to the JSON property `dateShiftConfig`
1367
+ # @return [Google::Apis::HealthcareV1beta1::DateShiftConfig]
1368
+ attr_accessor :date_shift_config
1369
+
1370
+ # InfoTypes to apply this transformation to. If this is not specified, the
1371
+ # transformation applies to any info_type.
1372
+ # Corresponds to the JSON property `infoTypes`
1373
+ # @return [Array<String>]
1374
+ attr_accessor :info_types
1375
+
1376
+ # Define how to redact sensitive values. Default behaviour is erase,
1377
+ # e.g. "My name is Jake." becomes "My name is ."
1378
+ # Corresponds to the JSON property `redactConfig`
1379
+ # @return [Google::Apis::HealthcareV1beta1::RedactConfig]
1380
+ attr_accessor :redact_config
1381
+
1382
+ # When using the INSPECT_AND_TRANSFORM action, each match is replaced with
1383
+ # the name of the info_type. For example, "My name is Jake" becomes "My name is
1384
+ # [PERSON_NAME]." The TRANSFORM action is equivalent to redacting.
1385
+ # Corresponds to the JSON property `replaceWithInfoTypeConfig`
1386
+ # @return [Google::Apis::HealthcareV1beta1::ReplaceWithInfoTypeConfig]
1387
+ attr_accessor :replace_with_info_type_config
1388
+
1389
+ def initialize(**args)
1390
+ update!(**args)
1391
+ end
1392
+
1393
+ # Update properties of this object
1394
+ def update!(**args)
1395
+ @character_mask_config = args[:character_mask_config] if args.key?(:character_mask_config)
1396
+ @crypto_hash_config = args[:crypto_hash_config] if args.key?(:crypto_hash_config)
1397
+ @date_shift_config = args[:date_shift_config] if args.key?(:date_shift_config)
1398
+ @info_types = args[:info_types] if args.key?(:info_types)
1399
+ @redact_config = args[:redact_config] if args.key?(:redact_config)
1400
+ @replace_with_info_type_config = args[:replace_with_info_type_config] if args.key?(:replace_with_info_type_config)
1401
+ end
1402
+ end
1403
+
1404
+ # Ingests a message into the specified HL7v2 store.
1405
+ class IngestMessageRequest
1406
+ include Google::Apis::Core::Hashable
1407
+
1408
+ # A complete HL7v2 message.
1409
+ # See http://www.hl7.org/implement/standards/index.cfm?ref=common for details
1410
+ # on the standard.
1411
+ # Corresponds to the JSON property `message`
1412
+ # @return [Google::Apis::HealthcareV1beta1::Message]
1413
+ attr_accessor :message
1414
+
1415
+ def initialize(**args)
1416
+ update!(**args)
1417
+ end
1418
+
1419
+ # Update properties of this object
1420
+ def update!(**args)
1421
+ @message = args[:message] if args.key?(:message)
1422
+ end
1423
+ end
1424
+
1425
+ # Acknowledges that a message has been ingested into the specified
1426
+ # HL7v2 store.
1427
+ class IngestMessageResponse
1428
+ include Google::Apis::Core::Hashable
1429
+
1430
+ # HL7v2 ACK message.
1431
+ # Corresponds to the JSON property `hl7Ack`
1432
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1433
+ # @return [String]
1434
+ attr_accessor :hl7_ack
1435
+
1436
+ # A complete HL7v2 message.
1437
+ # See http://www.hl7.org/implement/standards/index.cfm?ref=common for details
1438
+ # on the standard.
1439
+ # Corresponds to the JSON property `message`
1440
+ # @return [Google::Apis::HealthcareV1beta1::Message]
1441
+ attr_accessor :message
1442
+
1443
+ def initialize(**args)
1444
+ update!(**args)
1445
+ end
1446
+
1447
+ # Update properties of this object
1448
+ def update!(**args)
1449
+ @hl7_ack = args[:hl7_ack] if args.key?(:hl7_ack)
1450
+ @message = args[:message] if args.key?(:message)
1451
+ end
1452
+ end
1453
+
1454
+ # Lists the available datasets.
1455
+ class ListDatasetsResponse
1456
+ include Google::Apis::Core::Hashable
1457
+
1458
+ # The first page of datasets.
1459
+ # Corresponds to the JSON property `datasets`
1460
+ # @return [Array<Google::Apis::HealthcareV1beta1::Dataset>]
1461
+ attr_accessor :datasets
1462
+
1463
+ # Token to retrieve the next page of results, or empty if there are no
1464
+ # more results in the list.
1465
+ # Corresponds to the JSON property `nextPageToken`
1466
+ # @return [String]
1467
+ attr_accessor :next_page_token
1468
+
1469
+ def initialize(**args)
1470
+ update!(**args)
1471
+ end
1472
+
1473
+ # Update properties of this object
1474
+ def update!(**args)
1475
+ @datasets = args[:datasets] if args.key?(:datasets)
1476
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1477
+ end
1478
+ end
1479
+
1480
+ # Lists the DICOM stores in the given dataset.
1481
+ class ListDicomStoresResponse
1482
+ include Google::Apis::Core::Hashable
1483
+
1484
+ # The returned DICOM stores. Won't be more DICOM stores than the value of
1485
+ # page_size in the request.
1486
+ # Corresponds to the JSON property `dicomStores`
1487
+ # @return [Array<Google::Apis::HealthcareV1beta1::DicomStore>]
1488
+ attr_accessor :dicom_stores
1489
+
1490
+ # Token to retrieve the next page of results or empty if there are no more
1491
+ # results in the list.
1492
+ # Corresponds to the JSON property `nextPageToken`
1493
+ # @return [String]
1494
+ attr_accessor :next_page_token
1495
+
1496
+ def initialize(**args)
1497
+ update!(**args)
1498
+ end
1499
+
1500
+ # Update properties of this object
1501
+ def update!(**args)
1502
+ @dicom_stores = args[:dicom_stores] if args.key?(:dicom_stores)
1503
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1504
+ end
1505
+ end
1506
+
1507
+ # Lists the FHIR stores in the given dataset.
1508
+ class ListFhirStoresResponse
1509
+ include Google::Apis::Core::Hashable
1510
+
1511
+ # The returned FHIR stores. Won't be more FHIR stores than the value of
1512
+ # page_size in the request.
1513
+ # Corresponds to the JSON property `fhirStores`
1514
+ # @return [Array<Google::Apis::HealthcareV1beta1::FhirStore>]
1515
+ attr_accessor :fhir_stores
1516
+
1517
+ # Token to retrieve the next page of results or empty if there are no more
1518
+ # results in the list.
1519
+ # Corresponds to the JSON property `nextPageToken`
1520
+ # @return [String]
1521
+ attr_accessor :next_page_token
1522
+
1523
+ def initialize(**args)
1524
+ update!(**args)
1525
+ end
1526
+
1527
+ # Update properties of this object
1528
+ def update!(**args)
1529
+ @fhir_stores = args[:fhir_stores] if args.key?(:fhir_stores)
1530
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1531
+ end
1532
+ end
1533
+
1534
+ # Lists the HL7v2 stores in the given dataset.
1535
+ class ListHl7V2StoresResponse
1536
+ include Google::Apis::Core::Hashable
1537
+
1538
+ # The returned HL7v2 stores. Won't be more HL7v2 stores than the value of
1539
+ # page_size in the request.
1540
+ # Corresponds to the JSON property `hl7V2Stores`
1541
+ # @return [Array<Google::Apis::HealthcareV1beta1::Hl7V2Store>]
1542
+ attr_accessor :hl7_v2_stores
1543
+
1544
+ # Token to retrieve the next page of results or empty if there are no more
1545
+ # results in the list.
1546
+ # Corresponds to the JSON property `nextPageToken`
1547
+ # @return [String]
1548
+ attr_accessor :next_page_token
1549
+
1550
+ def initialize(**args)
1551
+ update!(**args)
1552
+ end
1553
+
1554
+ # Update properties of this object
1555
+ def update!(**args)
1556
+ @hl7_v2_stores = args[:hl7_v2_stores] if args.key?(:hl7_v2_stores)
1557
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1558
+ end
1559
+ end
1560
+
1561
+ # The response message for Locations.ListLocations.
1562
+ class ListLocationsResponse
1563
+ include Google::Apis::Core::Hashable
1564
+
1565
+ # A list of locations that matches the specified filter in the request.
1566
+ # Corresponds to the JSON property `locations`
1567
+ # @return [Array<Google::Apis::HealthcareV1beta1::Location>]
1568
+ attr_accessor :locations
1569
+
1570
+ # The standard List next-page token.
1571
+ # Corresponds to the JSON property `nextPageToken`
1572
+ # @return [String]
1573
+ attr_accessor :next_page_token
1574
+
1575
+ def initialize(**args)
1576
+ update!(**args)
1577
+ end
1578
+
1579
+ # Update properties of this object
1580
+ def update!(**args)
1581
+ @locations = args[:locations] if args.key?(:locations)
1582
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1583
+ end
1584
+ end
1585
+
1586
+ # Lists the messages in the specified HL7v2 store.
1587
+ class ListMessagesResponse
1588
+ include Google::Apis::Core::Hashable
1589
+
1590
+ # The returned message names. Won't be more values than the value of
1591
+ # page_size in the request.
1592
+ # Corresponds to the JSON property `messages`
1593
+ # @return [Array<String>]
1594
+ attr_accessor :messages
1595
+
1596
+ # Token to retrieve the next page of results or empty if there are no more
1597
+ # results in the list.
1598
+ # Corresponds to the JSON property `nextPageToken`
1599
+ # @return [String]
1600
+ attr_accessor :next_page_token
1601
+
1602
+ def initialize(**args)
1603
+ update!(**args)
1604
+ end
1605
+
1606
+ # Update properties of this object
1607
+ def update!(**args)
1608
+ @messages = args[:messages] if args.key?(:messages)
1609
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1610
+ end
1611
+ end
1612
+
1613
+ # The response message for Operations.ListOperations.
1614
+ class ListOperationsResponse
1615
+ include Google::Apis::Core::Hashable
1616
+
1617
+ # The standard List next-page token.
1618
+ # Corresponds to the JSON property `nextPageToken`
1619
+ # @return [String]
1620
+ attr_accessor :next_page_token
1621
+
1622
+ # A list of operations that matches the specified filter in the request.
1623
+ # Corresponds to the JSON property `operations`
1624
+ # @return [Array<Google::Apis::HealthcareV1beta1::Operation>]
1625
+ attr_accessor :operations
1626
+
1627
+ def initialize(**args)
1628
+ update!(**args)
1629
+ end
1630
+
1631
+ # Update properties of this object
1632
+ def update!(**args)
1633
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1634
+ @operations = args[:operations] if args.key?(:operations)
1635
+ end
1636
+ end
1637
+
1638
+ # A resource that represents Google Cloud Platform location.
1639
+ class Location
1640
+ include Google::Apis::Core::Hashable
1641
+
1642
+ # The friendly name for this location, typically a nearby city name.
1643
+ # For example, "Tokyo".
1644
+ # Corresponds to the JSON property `displayName`
1645
+ # @return [String]
1646
+ attr_accessor :display_name
1647
+
1648
+ # Cross-service attributes for the location. For example
1649
+ # `"cloud.googleapis.com/region": "us-east1"`
1650
+ # Corresponds to the JSON property `labels`
1651
+ # @return [Hash<String,String>]
1652
+ attr_accessor :labels
1653
+
1654
+ # The canonical id for this location. For example: `"us-east1"`.
1655
+ # Corresponds to the JSON property `locationId`
1656
+ # @return [String]
1657
+ attr_accessor :location_id
1658
+
1659
+ # Service-specific metadata. For example the available capacity at the given
1660
+ # location.
1661
+ # Corresponds to the JSON property `metadata`
1662
+ # @return [Hash<String,Object>]
1663
+ attr_accessor :metadata
1664
+
1665
+ # Resource name for the location, which may vary between implementations.
1666
+ # For example: `"projects/example-project/locations/us-east1"`
1667
+ # Corresponds to the JSON property `name`
1668
+ # @return [String]
1669
+ attr_accessor :name
1670
+
1671
+ def initialize(**args)
1672
+ update!(**args)
1673
+ end
1674
+
1675
+ # Update properties of this object
1676
+ def update!(**args)
1677
+ @display_name = args[:display_name] if args.key?(:display_name)
1678
+ @labels = args[:labels] if args.key?(:labels)
1679
+ @location_id = args[:location_id] if args.key?(:location_id)
1680
+ @metadata = args[:metadata] if args.key?(:metadata)
1681
+ @name = args[:name] if args.key?(:name)
1682
+ end
1683
+ end
1684
+
1685
+ # A complete HL7v2 message.
1686
+ # See http://www.hl7.org/implement/standards/index.cfm?ref=common for details
1687
+ # on the standard.
1688
+ class Message
1689
+ include Google::Apis::Core::Hashable
1690
+
1691
+ # The datetime when the message was created. Set by the server.
1692
+ # Corresponds to the JSON property `createTime`
1693
+ # @return [String]
1694
+ attr_accessor :create_time
1695
+
1696
+ # Raw message bytes.
1697
+ # Corresponds to the JSON property `data`
1698
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1699
+ # @return [String]
1700
+ attr_accessor :data
1701
+
1702
+ # User-supplied key-value pairs used to organize HL7v2 stores.
1703
+ # Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
1704
+ # of maximum 128 bytes, and must conform to the
1705
+ # following PCRE regular expression:
1706
+ # \p`Ll`\p`Lo``0,62`
1707
+ # Label values are optional, must be between 1 and 63 characters long, have
1708
+ # a UTF-8 encoding of maximum 128 bytes, and must conform to the
1709
+ # following PCRE regular expression: [\p`Ll`\p`Lo`\p`N`_-]`0,63`
1710
+ # No more than 64 labels can be associated with a given store.
1711
+ # Corresponds to the JSON property `labels`
1712
+ # @return [Hash<String,String>]
1713
+ attr_accessor :labels
1714
+
1715
+ # The message type and trigger event for this message. MSH-9.
1716
+ # Corresponds to the JSON property `messageType`
1717
+ # @return [String]
1718
+ attr_accessor :message_type
1719
+
1720
+ # Resource name of the Message, of the form
1721
+ # `projects/`project_id`/datasets/`dataset_id`/hl7V2Stores/`hl7_v2_store_id`/
1722
+ # messages/`message_id``.
1723
+ # Assigned by the server.
1724
+ # Corresponds to the JSON property `name`
1725
+ # @return [String]
1726
+ attr_accessor :name
1727
+
1728
+ # The content of a HL7v2 message in a structured format.
1729
+ # Corresponds to the JSON property `parsedData`
1730
+ # @return [Google::Apis::HealthcareV1beta1::ParsedData]
1731
+ attr_accessor :parsed_data
1732
+
1733
+ # All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this
1734
+ # message.
1735
+ # Corresponds to the JSON property `patientIds`
1736
+ # @return [Array<Google::Apis::HealthcareV1beta1::PatientId>]
1737
+ attr_accessor :patient_ids
1738
+
1739
+ # The hospital that this message came from. MSH-4.
1740
+ # Corresponds to the JSON property `sendFacility`
1741
+ # @return [String]
1742
+ attr_accessor :send_facility
1743
+
1744
+ # The datetime the sending application sent this message. MSH-7.
1745
+ # Corresponds to the JSON property `sendTime`
1746
+ # @return [String]
1747
+ attr_accessor :send_time
1748
+
1749
+ def initialize(**args)
1750
+ update!(**args)
1751
+ end
1752
+
1753
+ # Update properties of this object
1754
+ def update!(**args)
1755
+ @create_time = args[:create_time] if args.key?(:create_time)
1756
+ @data = args[:data] if args.key?(:data)
1757
+ @labels = args[:labels] if args.key?(:labels)
1758
+ @message_type = args[:message_type] if args.key?(:message_type)
1759
+ @name = args[:name] if args.key?(:name)
1760
+ @parsed_data = args[:parsed_data] if args.key?(:parsed_data)
1761
+ @patient_ids = args[:patient_ids] if args.key?(:patient_ids)
1762
+ @send_facility = args[:send_facility] if args.key?(:send_facility)
1763
+ @send_time = args[:send_time] if args.key?(:send_time)
1764
+ end
1765
+ end
1766
+
1767
+ # Specifies where notifications should be sent upon changes to a data store.
1768
+ class NotificationConfig
1769
+ include Google::Apis::Core::Hashable
1770
+
1771
+ # The [Cloud Pub/Sub](https://cloud.google.com/pubsub/docs/) topic that
1772
+ # notifications of changes are published on. Supplied by the client.
1773
+ # PubsubMessage.Data will contain the resource name.
1774
+ # PubsubMessage.MessageId is the ID of this message. It is guaranteed to be
1775
+ # unique within the topic.
1776
+ # PubsubMessage.PublishTime is the time at which the message was published.
1777
+ # Notifications are only sent if the topic is
1778
+ # non-empty. [Topic
1779
+ # names](https://cloud.google.com/pubsub/docs/overview#names) must be scoped
1780
+ # to a project. cloud-healthcare@system.gserviceaccount.com must have
1781
+ # publisher permissions on the given Cloud Pub/Sub topic. Not having adequate
1782
+ # permissions will cause the calls that send notifications to fail.
1783
+ # Corresponds to the JSON property `pubsubTopic`
1784
+ # @return [String]
1785
+ attr_accessor :pubsub_topic
1786
+
1787
+ def initialize(**args)
1788
+ update!(**args)
1789
+ end
1790
+
1791
+ # Update properties of this object
1792
+ def update!(**args)
1793
+ @pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic)
1794
+ end
1795
+ end
1796
+
1797
+ # This resource represents a long-running operation that is the result of a
1798
+ # network API call.
1799
+ class Operation
1800
+ include Google::Apis::Core::Hashable
1801
+
1802
+ # If the value is `false`, it means the operation is still in progress.
1803
+ # If `true`, the operation is completed, and either `error` or `response` is
1804
+ # available.
1805
+ # Corresponds to the JSON property `done`
1806
+ # @return [Boolean]
1807
+ attr_accessor :done
1808
+ alias_method :done?, :done
1809
+
1810
+ # The `Status` type defines a logical error model that is suitable for
1811
+ # different programming environments, including REST APIs and RPC APIs. It is
1812
+ # used by [gRPC](https://github.com/grpc). The error model is designed to be:
1813
+ # - Simple to use and understand for most users
1814
+ # - Flexible enough to meet unexpected needs
1815
+ # # Overview
1816
+ # The `Status` message contains three pieces of data: error code, error
1817
+ # message, and error details. The error code should be an enum value of
1818
+ # google.rpc.Code, but it may accept additional error codes if needed. The
1819
+ # error message should be a developer-facing English message that helps
1820
+ # developers *understand* and *resolve* the error. If a localized user-facing
1821
+ # error message is needed, put the localized message in the error details or
1822
+ # localize it in the client. The optional error details may contain arbitrary
1823
+ # information about the error. There is a predefined set of error detail types
1824
+ # in the package `google.rpc` that can be used for common error conditions.
1825
+ # # Language mapping
1826
+ # The `Status` message is the logical representation of the error model, but it
1827
+ # is not necessarily the actual wire format. When the `Status` message is
1828
+ # exposed in different client libraries and different wire protocols, it can be
1829
+ # mapped differently. For example, it will likely be mapped to some exceptions
1830
+ # in Java, but more likely mapped to some error codes in C.
1831
+ # # Other uses
1832
+ # The error model and the `Status` message can be used in a variety of
1833
+ # environments, either with or without APIs, to provide a
1834
+ # consistent developer experience across different environments.
1835
+ # Example uses of this error model include:
1836
+ # - Partial errors. If a service needs to return partial errors to the client,
1837
+ # it may embed the `Status` in the normal response to indicate the partial
1838
+ # errors.
1839
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
1840
+ # have a `Status` message for error reporting.
1841
+ # - Batch operations. If a client uses batch request and batch response, the
1842
+ # `Status` message should be used directly inside batch response, one for
1843
+ # each error sub-response.
1844
+ # - Asynchronous operations. If an API call embeds asynchronous operation
1845
+ # results in its response, the status of those operations should be
1846
+ # represented directly using the `Status` message.
1847
+ # - Logging. If some API errors are stored in logs, the message `Status` could
1848
+ # be used directly after any stripping needed for security/privacy reasons.
1849
+ # Corresponds to the JSON property `error`
1850
+ # @return [Google::Apis::HealthcareV1beta1::Status]
1851
+ attr_accessor :error
1852
+
1853
+ # Service-specific metadata associated with the operation. It typically
1854
+ # contains progress information and common metadata such as create time.
1855
+ # Some services might not provide such metadata. Any method that returns a
1856
+ # long-running operation should document the metadata type, if any.
1857
+ # Corresponds to the JSON property `metadata`
1858
+ # @return [Hash<String,Object>]
1859
+ attr_accessor :metadata
1860
+
1861
+ # The server-assigned name, which is only unique within the same service that
1862
+ # originally returns it. If you use the default HTTP mapping, the
1863
+ # `name` should have the format of `operations/some/unique/name`.
1864
+ # Corresponds to the JSON property `name`
1865
+ # @return [String]
1866
+ attr_accessor :name
1867
+
1868
+ # The normal response of the operation in case of success. If the original
1869
+ # method returns no data on success, such as `Delete`, the response is
1870
+ # `google.protobuf.Empty`. If the original method is standard
1871
+ # `Get`/`Create`/`Update`, the response should be the resource. For other
1872
+ # methods, the response should have the type `XxxResponse`, where `Xxx`
1873
+ # is the original method name. For example, if the original method name
1874
+ # is `TakeSnapshot()`, the inferred response type is
1875
+ # `TakeSnapshotResponse`.
1876
+ # Corresponds to the JSON property `response`
1877
+ # @return [Hash<String,Object>]
1878
+ attr_accessor :response
1879
+
1880
+ def initialize(**args)
1881
+ update!(**args)
1882
+ end
1883
+
1884
+ # Update properties of this object
1885
+ def update!(**args)
1886
+ @done = args[:done] if args.key?(:done)
1887
+ @error = args[:error] if args.key?(:error)
1888
+ @metadata = args[:metadata] if args.key?(:metadata)
1889
+ @name = args[:name] if args.key?(:name)
1890
+ @response = args[:response] if args.key?(:response)
1891
+ end
1892
+ end
1893
+
1894
+ # OperationMetadata provides information about the operation execution.
1895
+ # Returned in the long-running operation's metadata field.
1896
+ class OperationMetadata
1897
+ include Google::Apis::Core::Hashable
1898
+
1899
+ # The name of the API method that initiated the operation.
1900
+ # Corresponds to the JSON property `apiMethodName`
1901
+ # @return [String]
1902
+ attr_accessor :api_method_name
1903
+
1904
+ # ProgressCounter provides counters to describe an operation's progress.
1905
+ # Corresponds to the JSON property `counter`
1906
+ # @return [Google::Apis::HealthcareV1beta1::ProgressCounter]
1907
+ attr_accessor :counter
1908
+
1909
+ # The time at which the operation was created by the API.
1910
+ # Corresponds to the JSON property `createTime`
1911
+ # @return [String]
1912
+ attr_accessor :create_time
1913
+
1914
+ # The time at which execution was completed.
1915
+ # Corresponds to the JSON property `endTime`
1916
+ # @return [String]
1917
+ attr_accessor :end_time
1918
+
1919
+ def initialize(**args)
1920
+ update!(**args)
1921
+ end
1922
+
1923
+ # Update properties of this object
1924
+ def update!(**args)
1925
+ @api_method_name = args[:api_method_name] if args.key?(:api_method_name)
1926
+ @counter = args[:counter] if args.key?(:counter)
1927
+ @create_time = args[:create_time] if args.key?(:create_time)
1928
+ @end_time = args[:end_time] if args.key?(:end_time)
1929
+ end
1930
+ end
1931
+
1932
+ # The content of a HL7v2 message in a structured format.
1933
+ class ParsedData
1934
+ include Google::Apis::Core::Hashable
1935
+
1936
+ #
1937
+ # Corresponds to the JSON property `segments`
1938
+ # @return [Array<Google::Apis::HealthcareV1beta1::Segment>]
1939
+ attr_accessor :segments
1940
+
1941
+ def initialize(**args)
1942
+ update!(**args)
1943
+ end
1944
+
1945
+ # Update properties of this object
1946
+ def update!(**args)
1947
+ @segments = args[:segments] if args.key?(:segments)
1948
+ end
1949
+ end
1950
+
1951
+ # The configuration for the parser. It determines how the server parses the
1952
+ # messages.
1953
+ class ParserConfig
1954
+ include Google::Apis::Core::Hashable
1955
+
1956
+ # Determines whether messages with no header are allowed.
1957
+ # Corresponds to the JSON property `allowNullHeader`
1958
+ # @return [Boolean]
1959
+ attr_accessor :allow_null_header
1960
+ alias_method :allow_null_header?, :allow_null_header
1961
+
1962
+ # Byte(s) to be used as the segment terminator. If this is unset, '\r' will
1963
+ # be used as segment terminator.
1964
+ # Corresponds to the JSON property `segmentTerminator`
1965
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1966
+ # @return [String]
1967
+ attr_accessor :segment_terminator
1968
+
1969
+ def initialize(**args)
1970
+ update!(**args)
1971
+ end
1972
+
1973
+ # Update properties of this object
1974
+ def update!(**args)
1975
+ @allow_null_header = args[:allow_null_header] if args.key?(:allow_null_header)
1976
+ @segment_terminator = args[:segment_terminator] if args.key?(:segment_terminator)
1977
+ end
1978
+ end
1979
+
1980
+ # A patient identifier and associated type.
1981
+ class PatientId
1982
+ include Google::Apis::Core::Hashable
1983
+
1984
+ # ID type, e.g. MRN or NHS.
1985
+ # Corresponds to the JSON property `type`
1986
+ # @return [String]
1987
+ attr_accessor :type
1988
+
1989
+ # The patient's unique identifier.
1990
+ # Corresponds to the JSON property `value`
1991
+ # @return [String]
1992
+ attr_accessor :value
1993
+
1994
+ def initialize(**args)
1995
+ update!(**args)
1996
+ end
1997
+
1998
+ # Update properties of this object
1999
+ def update!(**args)
2000
+ @type = args[:type] if args.key?(:type)
2001
+ @value = args[:value] if args.key?(:value)
2002
+ end
2003
+ end
2004
+
2005
+ # Defines an Identity and Access Management (IAM) policy. It is used to
2006
+ # specify access control policies for Cloud Platform resources.
2007
+ # A `Policy` consists of a list of `bindings`. A `binding` binds a list of
2008
+ # `members` to a `role`, where the members can be user accounts, Google groups,
2009
+ # Google domains, and service accounts. A `role` is a named list of permissions
2010
+ # defined by IAM.
2011
+ # **JSON Example**
2012
+ # `
2013
+ # "bindings": [
2014
+ # `
2015
+ # "role": "roles/owner",
2016
+ # "members": [
2017
+ # "user:mike@example.com",
2018
+ # "group:admins@example.com",
2019
+ # "domain:google.com",
2020
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com"
2021
+ # ]
2022
+ # `,
2023
+ # `
2024
+ # "role": "roles/viewer",
2025
+ # "members": ["user:sean@example.com"]
2026
+ # `
2027
+ # ]
2028
+ # `
2029
+ # **YAML Example**
2030
+ # bindings:
2031
+ # - members:
2032
+ # - user:mike@example.com
2033
+ # - group:admins@example.com
2034
+ # - domain:google.com
2035
+ # - serviceAccount:my-other-app@appspot.gserviceaccount.com
2036
+ # role: roles/owner
2037
+ # - members:
2038
+ # - user:sean@example.com
2039
+ # role: roles/viewer
2040
+ # For a description of IAM and its features, see the
2041
+ # [IAM developer's guide](https://cloud.google.com/iam/docs).
2042
+ class Policy
2043
+ include Google::Apis::Core::Hashable
2044
+
2045
+ # Specifies cloud audit logging configuration for this policy.
2046
+ # Corresponds to the JSON property `auditConfigs`
2047
+ # @return [Array<Google::Apis::HealthcareV1beta1::AuditConfig>]
2048
+ attr_accessor :audit_configs
2049
+
2050
+ # Associates a list of `members` to a `role`.
2051
+ # `bindings` with no members will result in an error.
2052
+ # Corresponds to the JSON property `bindings`
2053
+ # @return [Array<Google::Apis::HealthcareV1beta1::Binding>]
2054
+ attr_accessor :bindings
2055
+
2056
+ # `etag` is used for optimistic concurrency control as a way to help
2057
+ # prevent simultaneous updates of a policy from overwriting each other.
2058
+ # It is strongly suggested that systems make use of the `etag` in the
2059
+ # read-modify-write cycle to perform policy updates in order to avoid race
2060
+ # conditions: An `etag` is returned in the response to `getIamPolicy`, and
2061
+ # systems are expected to put that etag in the request to `setIamPolicy` to
2062
+ # ensure that their change will be applied to the same version of the policy.
2063
+ # If no `etag` is provided in the call to `setIamPolicy`, then the existing
2064
+ # policy is overwritten blindly.
2065
+ # Corresponds to the JSON property `etag`
2066
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
2067
+ # @return [String]
2068
+ attr_accessor :etag
2069
+
2070
+ # Deprecated.
2071
+ # Corresponds to the JSON property `version`
2072
+ # @return [Fixnum]
2073
+ attr_accessor :version
2074
+
2075
+ def initialize(**args)
2076
+ update!(**args)
2077
+ end
2078
+
2079
+ # Update properties of this object
2080
+ def update!(**args)
2081
+ @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
2082
+ @bindings = args[:bindings] if args.key?(:bindings)
2083
+ @etag = args[:etag] if args.key?(:etag)
2084
+ @version = args[:version] if args.key?(:version)
2085
+ end
2086
+ end
2087
+
2088
+ # ProgressCounter provides counters to describe an operation's progress.
2089
+ class ProgressCounter
2090
+ include Google::Apis::Core::Hashable
2091
+
2092
+ # The number of units that failed in the operation.
2093
+ # Corresponds to the JSON property `failure`
2094
+ # @return [Fixnum]
2095
+ attr_accessor :failure
2096
+
2097
+ # The number of units that are pending in the operation.
2098
+ # Corresponds to the JSON property `pending`
2099
+ # @return [Fixnum]
2100
+ attr_accessor :pending
2101
+
2102
+ # The number of units that succeeded in the operation.
2103
+ # Corresponds to the JSON property `success`
2104
+ # @return [Fixnum]
2105
+ attr_accessor :success
2106
+
2107
+ def initialize(**args)
2108
+ update!(**args)
2109
+ end
2110
+
2111
+ # Update properties of this object
2112
+ def update!(**args)
2113
+ @failure = args[:failure] if args.key?(:failure)
2114
+ @pending = args[:pending] if args.key?(:pending)
2115
+ @success = args[:success] if args.key?(:success)
2116
+ end
2117
+ end
2118
+
2119
+ # Define how to redact sensitive values. Default behaviour is erase,
2120
+ # e.g. "My name is Jake." becomes "My name is ."
2121
+ class RedactConfig
2122
+ include Google::Apis::Core::Hashable
2123
+
2124
+ def initialize(**args)
2125
+ update!(**args)
2126
+ end
2127
+
2128
+ # Update properties of this object
2129
+ def update!(**args)
2130
+ end
2131
+ end
2132
+
2133
+ # When using the INSPECT_AND_TRANSFORM action, each match is replaced with
2134
+ # the name of the info_type. For example, "My name is Jake" becomes "My name is
2135
+ # [PERSON_NAME]." The TRANSFORM action is equivalent to redacting.
2136
+ class ReplaceWithInfoTypeConfig
2137
+ include Google::Apis::Core::Hashable
2138
+
2139
+ def initialize(**args)
2140
+ update!(**args)
2141
+ end
2142
+
2143
+ # Update properties of this object
2144
+ def update!(**args)
2145
+ end
2146
+ end
2147
+
2148
+ # Configuration for the FHIR BigQuery schema. Determines how the server
2149
+ # generates the schema.
2150
+ class SchemaConfig
2151
+ include Google::Apis::Core::Hashable
2152
+
2153
+ # The depth for all recursive structures in the output analytics
2154
+ # schema. For example, `concept` in the CodeSystem resource is a recursive
2155
+ # structure; when the depth is 2, the CodeSystem table will have a column
2156
+ # called `concept.concept` but not `concept.concept.concept`. If not
2157
+ # specified or set to 0, the server will use the default value 2.
2158
+ # Corresponds to the JSON property `recursiveStructureDepth`
2159
+ # @return [Fixnum]
2160
+ attr_accessor :recursive_structure_depth
2161
+
2162
+ # Specifies the output schema type. If unspecified, the default is
2163
+ # `LOSSLESS`.
2164
+ # Corresponds to the JSON property `schemaType`
2165
+ # @return [String]
2166
+ attr_accessor :schema_type
2167
+
2168
+ def initialize(**args)
2169
+ update!(**args)
2170
+ end
2171
+
2172
+ # Update properties of this object
2173
+ def update!(**args)
2174
+ @recursive_structure_depth = args[:recursive_structure_depth] if args.key?(:recursive_structure_depth)
2175
+ @schema_type = args[:schema_type] if args.key?(:schema_type)
2176
+ end
2177
+ end
2178
+
2179
+ # Request to search the resources in the specified FHIR store.
2180
+ class SearchResourcesRequest
2181
+ include Google::Apis::Core::Hashable
2182
+
2183
+ # The type of the resource to search.
2184
+ # Corresponds to the JSON property `resourceType`
2185
+ # @return [String]
2186
+ attr_accessor :resource_type
2187
+
2188
+ def initialize(**args)
2189
+ update!(**args)
2190
+ end
2191
+
2192
+ # Update properties of this object
2193
+ def update!(**args)
2194
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
2195
+ end
2196
+ end
2197
+
2198
+ # A segment in a structured format.
2199
+ class Segment
2200
+ include Google::Apis::Core::Hashable
2201
+
2202
+ # A mapping from the positional location to the value.
2203
+ # The key string uses zero-based indexes separated by dots to identify
2204
+ # Fields, components and sub-components. A bracket notation is also used to
2205
+ # identify different instances of a repeated field.
2206
+ # Regex for key: (\d+)(\[\d+\])?(.\d+)?(.\d+)?
2207
+ # Examples of (key, value) pairs:
2208
+ # - (0.1, "foo"): Component 1 of Field 0 has the value "foo".
2209
+ # - (1.1.2, "bar"): Sub-component 2 of Component 1 of field 1 has the value
2210
+ # "bar".
2211
+ # - (1[2].1, "baz"): Component 1 of Instance 2 of Field 1, which is repeated,
2212
+ # has the value "baz".
2213
+ # Corresponds to the JSON property `fields`
2214
+ # @return [Hash<String,String>]
2215
+ attr_accessor :fields
2216
+
2217
+ # A string that indicates the type of segment, e.g., EVN, PID.
2218
+ # Corresponds to the JSON property `segmentId`
2219
+ # @return [String]
2220
+ attr_accessor :segment_id
2221
+
2222
+ # Set ID for segments that can be in a set. This can be empty if it is
2223
+ # missing or it is not applicable.
2224
+ # Corresponds to the JSON property `setId`
2225
+ # @return [String]
2226
+ attr_accessor :set_id
2227
+
2228
+ def initialize(**args)
2229
+ update!(**args)
2230
+ end
2231
+
2232
+ # Update properties of this object
2233
+ def update!(**args)
2234
+ @fields = args[:fields] if args.key?(:fields)
2235
+ @segment_id = args[:segment_id] if args.key?(:segment_id)
2236
+ @set_id = args[:set_id] if args.key?(:set_id)
2237
+ end
2238
+ end
2239
+
2240
+ # Request message for `SetIamPolicy` method.
2241
+ class SetIamPolicyRequest
2242
+ include Google::Apis::Core::Hashable
2243
+
2244
+ # Defines an Identity and Access Management (IAM) policy. It is used to
2245
+ # specify access control policies for Cloud Platform resources.
2246
+ # A `Policy` consists of a list of `bindings`. A `binding` binds a list of
2247
+ # `members` to a `role`, where the members can be user accounts, Google groups,
2248
+ # Google domains, and service accounts. A `role` is a named list of permissions
2249
+ # defined by IAM.
2250
+ # **JSON Example**
2251
+ # `
2252
+ # "bindings": [
2253
+ # `
2254
+ # "role": "roles/owner",
2255
+ # "members": [
2256
+ # "user:mike@example.com",
2257
+ # "group:admins@example.com",
2258
+ # "domain:google.com",
2259
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com"
2260
+ # ]
2261
+ # `,
2262
+ # `
2263
+ # "role": "roles/viewer",
2264
+ # "members": ["user:sean@example.com"]
2265
+ # `
2266
+ # ]
2267
+ # `
2268
+ # **YAML Example**
2269
+ # bindings:
2270
+ # - members:
2271
+ # - user:mike@example.com
2272
+ # - group:admins@example.com
2273
+ # - domain:google.com
2274
+ # - serviceAccount:my-other-app@appspot.gserviceaccount.com
2275
+ # role: roles/owner
2276
+ # - members:
2277
+ # - user:sean@example.com
2278
+ # role: roles/viewer
2279
+ # For a description of IAM and its features, see the
2280
+ # [IAM developer's guide](https://cloud.google.com/iam/docs).
2281
+ # Corresponds to the JSON property `policy`
2282
+ # @return [Google::Apis::HealthcareV1beta1::Policy]
2283
+ attr_accessor :policy
2284
+
2285
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
2286
+ # the fields in the mask will be modified. If no mask is provided, the
2287
+ # following default mask is used:
2288
+ # paths: "bindings, etag"
2289
+ # This field is only used by Cloud IAM.
2290
+ # Corresponds to the JSON property `updateMask`
2291
+ # @return [String]
2292
+ attr_accessor :update_mask
2293
+
2294
+ def initialize(**args)
2295
+ update!(**args)
2296
+ end
2297
+
2298
+ # Update properties of this object
2299
+ def update!(**args)
2300
+ @policy = args[:policy] if args.key?(:policy)
2301
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
2302
+ end
2303
+ end
2304
+
2305
+ # The `Status` type defines a logical error model that is suitable for
2306
+ # different programming environments, including REST APIs and RPC APIs. It is
2307
+ # used by [gRPC](https://github.com/grpc). The error model is designed to be:
2308
+ # - Simple to use and understand for most users
2309
+ # - Flexible enough to meet unexpected needs
2310
+ # # Overview
2311
+ # The `Status` message contains three pieces of data: error code, error
2312
+ # message, and error details. The error code should be an enum value of
2313
+ # google.rpc.Code, but it may accept additional error codes if needed. The
2314
+ # error message should be a developer-facing English message that helps
2315
+ # developers *understand* and *resolve* the error. If a localized user-facing
2316
+ # error message is needed, put the localized message in the error details or
2317
+ # localize it in the client. The optional error details may contain arbitrary
2318
+ # information about the error. There is a predefined set of error detail types
2319
+ # in the package `google.rpc` that can be used for common error conditions.
2320
+ # # Language mapping
2321
+ # The `Status` message is the logical representation of the error model, but it
2322
+ # is not necessarily the actual wire format. When the `Status` message is
2323
+ # exposed in different client libraries and different wire protocols, it can be
2324
+ # mapped differently. For example, it will likely be mapped to some exceptions
2325
+ # in Java, but more likely mapped to some error codes in C.
2326
+ # # Other uses
2327
+ # The error model and the `Status` message can be used in a variety of
2328
+ # environments, either with or without APIs, to provide a
2329
+ # consistent developer experience across different environments.
2330
+ # Example uses of this error model include:
2331
+ # - Partial errors. If a service needs to return partial errors to the client,
2332
+ # it may embed the `Status` in the normal response to indicate the partial
2333
+ # errors.
2334
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
2335
+ # have a `Status` message for error reporting.
2336
+ # - Batch operations. If a client uses batch request and batch response, the
2337
+ # `Status` message should be used directly inside batch response, one for
2338
+ # each error sub-response.
2339
+ # - Asynchronous operations. If an API call embeds asynchronous operation
2340
+ # results in its response, the status of those operations should be
2341
+ # represented directly using the `Status` message.
2342
+ # - Logging. If some API errors are stored in logs, the message `Status` could
2343
+ # be used directly after any stripping needed for security/privacy reasons.
2344
+ class Status
2345
+ include Google::Apis::Core::Hashable
2346
+
2347
+ # The status code, which should be an enum value of google.rpc.Code.
2348
+ # Corresponds to the JSON property `code`
2349
+ # @return [Fixnum]
2350
+ attr_accessor :code
2351
+
2352
+ # A list of messages that carry the error details. There is a common set of
2353
+ # message types for APIs to use.
2354
+ # Corresponds to the JSON property `details`
2355
+ # @return [Array<Hash<String,Object>>]
2356
+ attr_accessor :details
2357
+
2358
+ # A developer-facing error message, which should be in English. Any
2359
+ # user-facing error message should be localized and sent in the
2360
+ # google.rpc.Status.details field, or localized by the client.
2361
+ # Corresponds to the JSON property `message`
2362
+ # @return [String]
2363
+ attr_accessor :message
2364
+
2365
+ def initialize(**args)
2366
+ update!(**args)
2367
+ end
2368
+
2369
+ # Update properties of this object
2370
+ def update!(**args)
2371
+ @code = args[:code] if args.key?(:code)
2372
+ @details = args[:details] if args.key?(:details)
2373
+ @message = args[:message] if args.key?(:message)
2374
+ end
2375
+ end
2376
+
2377
+ # List of tags to be filtered.
2378
+ class TagFilterList
2379
+ include Google::Apis::Core::Hashable
2380
+
2381
+ # Tags to be filtered. Tags must be DICOM Data Elements, File Meta
2382
+ # Elements, or Directory Structuring Elements, as defined at:
2383
+ # http://dicom.nema.org/medical/dicom/current/output/html/part06.html#table_6-1,.
2384
+ # They may be provided by "Keyword" or "Tag". For example "PatientID",
2385
+ # "00100010".
2386
+ # Corresponds to the JSON property `tags`
2387
+ # @return [Array<String>]
2388
+ attr_accessor :tags
2389
+
2390
+ def initialize(**args)
2391
+ update!(**args)
2392
+ end
2393
+
2394
+ # Update properties of this object
2395
+ def update!(**args)
2396
+ @tags = args[:tags] if args.key?(:tags)
2397
+ end
2398
+ end
2399
+
2400
+ # Request message for `TestIamPermissions` method.
2401
+ class TestIamPermissionsRequest
2402
+ include Google::Apis::Core::Hashable
2403
+
2404
+ # The set of permissions to check for the `resource`. Permissions with
2405
+ # wildcards (such as '*' or 'storage.*') are not allowed. For more
2406
+ # information see
2407
+ # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
2408
+ # Corresponds to the JSON property `permissions`
2409
+ # @return [Array<String>]
2410
+ attr_accessor :permissions
2411
+
2412
+ def initialize(**args)
2413
+ update!(**args)
2414
+ end
2415
+
2416
+ # Update properties of this object
2417
+ def update!(**args)
2418
+ @permissions = args[:permissions] if args.key?(:permissions)
2419
+ end
2420
+ end
2421
+
2422
+ # Response message for `TestIamPermissions` method.
2423
+ class TestIamPermissionsResponse
2424
+ include Google::Apis::Core::Hashable
2425
+
2426
+ # A subset of `TestPermissionsRequest.permissions` that the caller is
2427
+ # allowed.
2428
+ # Corresponds to the JSON property `permissions`
2429
+ # @return [Array<String>]
2430
+ attr_accessor :permissions
2431
+
2432
+ def initialize(**args)
2433
+ update!(**args)
2434
+ end
2435
+
2436
+ # Update properties of this object
2437
+ def update!(**args)
2438
+ @permissions = args[:permissions] if args.key?(:permissions)
2439
+ end
2440
+ end
2441
+
2442
+ #
2443
+ class TextConfig
2444
+ include Google::Apis::Core::Hashable
2445
+
2446
+ # The transformations to apply to the detected data.
2447
+ # Corresponds to the JSON property `transformations`
2448
+ # @return [Array<Google::Apis::HealthcareV1beta1::InfoTypeTransformation>]
2449
+ attr_accessor :transformations
2450
+
2451
+ def initialize(**args)
2452
+ update!(**args)
2453
+ end
2454
+
2455
+ # Update properties of this object
2456
+ def update!(**args)
2457
+ @transformations = args[:transformations] if args.key?(:transformations)
2458
+ end
2459
+ end
2460
+ end
2461
+ end
2462
+ end