google-api-client 0.40.1 → 0.42.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (447) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +280 -0
  3. data/bin/generate-api +1 -3
  4. data/generated/google/apis/accessapproval_v1.rb +1 -1
  5. data/generated/google/apis/accessapproval_v1/service.rb +3 -0
  6. data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
  7. data/generated/google/apis/accessapproval_v1beta1/service.rb +3 -0
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/classes.rb +31 -0
  10. data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
  11. data/generated/google/apis/admin_directory_v1/service.rb +3 -5
  12. data/generated/google/apis/admob_v1.rb +1 -1
  13. data/generated/google/apis/admob_v1/service.rb +1 -1
  14. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  15. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +32 -26
  16. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  17. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  18. data/generated/google/apis/androidmanagement_v1/classes.rb +117 -0
  19. data/generated/google/apis/androidmanagement_v1/representations.rb +39 -0
  20. data/generated/google/apis/androidpublisher_v3.rb +3 -3
  21. data/generated/google/apis/androidpublisher_v3/classes.rb +494 -698
  22. data/generated/google/apis/androidpublisher_v3/representations.rb +18 -167
  23. data/generated/google/apis/androidpublisher_v3/service.rb +564 -748
  24. data/generated/google/apis/apigee_v1.rb +1 -1
  25. data/generated/google/apis/apigee_v1/classes.rb +1492 -112
  26. data/generated/google/apis/apigee_v1/representations.rb +560 -0
  27. data/generated/google/apis/apigee_v1/service.rb +1162 -117
  28. data/generated/google/apis/appsmarket_v2.rb +1 -1
  29. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  30. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +122 -0
  31. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +62 -0
  32. data/generated/google/apis/bigquery_v2.rb +1 -1
  33. data/generated/google/apis/bigquery_v2/classes.rb +51 -13
  34. data/generated/google/apis/bigquery_v2/representations.rb +4 -0
  35. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  36. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +6 -6
  37. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  38. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +4 -4
  39. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  40. data/generated/google/apis/bigqueryreservation_v1/classes.rb +34 -0
  41. data/generated/google/apis/bigqueryreservation_v1/representations.rb +16 -0
  42. data/generated/google/apis/bigqueryreservation_v1/service.rb +60 -0
  43. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  44. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +8 -0
  45. data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +1 -0
  46. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  47. data/generated/google/apis/bigtableadmin_v1/classes.rb +5 -10
  48. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  49. data/generated/google/apis/bigtableadmin_v2/classes.rb +45 -37
  50. data/generated/google/apis/bigtableadmin_v2/service.rb +1 -5
  51. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  52. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +3 -3
  53. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  54. data/generated/google/apis/binaryauthorization_v1/classes.rb +1 -4
  55. data/generated/google/apis/books_v1.rb +1 -1
  56. data/generated/google/apis/books_v1/service.rb +2 -2
  57. data/generated/google/apis/calendar_v3.rb +1 -1
  58. data/generated/google/apis/chat_v1.rb +1 -1
  59. data/generated/google/apis/chat_v1/classes.rb +2 -0
  60. data/generated/google/apis/civicinfo_v2.rb +2 -2
  61. data/generated/google/apis/civicinfo_v2/classes.rb +21 -801
  62. data/generated/google/apis/civicinfo_v2/representations.rb +1 -295
  63. data/generated/google/apis/civicinfo_v2/service.rb +28 -63
  64. data/generated/google/apis/classroom_v1.rb +1 -1
  65. data/generated/google/apis/classroom_v1/service.rb +4 -3
  66. data/generated/google/apis/cloudasset_v1.rb +1 -1
  67. data/generated/google/apis/cloudasset_v1/classes.rb +116 -36
  68. data/generated/google/apis/cloudasset_v1/representations.rb +6 -0
  69. data/generated/google/apis/cloudasset_v1/service.rb +18 -15
  70. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  71. data/generated/google/apis/cloudasset_v1beta1/classes.rb +954 -42
  72. data/generated/google/apis/cloudasset_v1beta1/representations.rb +241 -0
  73. data/generated/google/apis/cloudasset_v1beta1/service.rb +8 -8
  74. data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
  75. data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +6 -6
  76. data/generated/google/apis/cloudasset_v1p1beta1/service.rb +15 -16
  77. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  78. data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +40 -23
  79. data/generated/google/apis/cloudasset_v1p4beta1/service.rb +34 -9
  80. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  81. data/generated/google/apis/cloudbilling_v1/classes.rb +38 -6
  82. data/generated/google/apis/cloudbilling_v1/representations.rb +16 -0
  83. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  84. data/generated/google/apis/cloudbuild_v1/classes.rb +273 -13
  85. data/generated/google/apis/cloudbuild_v1/representations.rb +130 -4
  86. data/generated/google/apis/cloudbuild_v1/service.rb +0 -136
  87. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  88. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +286 -26
  89. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +135 -9
  90. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +0 -47
  91. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  92. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +286 -26
  93. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +135 -9
  94. data/generated/google/apis/cloudbuild_v1alpha2/service.rb +0 -47
  95. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  96. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +1 -1
  97. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +5 -6
  98. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  99. data/generated/google/apis/cloudfunctions_v1/classes.rb +20 -6
  100. data/generated/google/apis/cloudfunctions_v1/representations.rb +2 -0
  101. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  102. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +7 -0
  103. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +1 -0
  104. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  105. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  106. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +7 -1
  107. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +1 -0
  108. data/generated/google/apis/cloudkms_v1.rb +1 -1
  109. data/generated/google/apis/cloudkms_v1/classes.rb +7 -7
  110. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  111. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +22 -18
  112. data/generated/google/apis/cloudresourcemanager_v1/service.rb +21 -14
  113. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  114. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +12 -11
  115. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +8 -8
  116. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  117. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +6 -6
  118. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  119. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +6 -6
  120. data/generated/google/apis/cloudscheduler_v1.rb +1 -1
  121. data/generated/google/apis/cloudscheduler_v1/classes.rb +2 -1
  122. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  123. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -1
  124. data/generated/google/apis/composer_v1beta1.rb +1 -1
  125. data/generated/google/apis/composer_v1beta1/classes.rb +4 -3
  126. data/generated/google/apis/composer_v1beta1/service.rb +13 -0
  127. data/generated/google/apis/compute_alpha.rb +1 -1
  128. data/generated/google/apis/compute_alpha/classes.rb +725 -107
  129. data/generated/google/apis/compute_alpha/representations.rb +206 -0
  130. data/generated/google/apis/compute_alpha/service.rb +888 -139
  131. data/generated/google/apis/compute_beta.rb +1 -1
  132. data/generated/google/apis/compute_beta/classes.rb +439 -105
  133. data/generated/google/apis/compute_beta/representations.rb +94 -0
  134. data/generated/google/apis/compute_beta/service.rb +308 -33
  135. data/generated/google/apis/compute_v1.rb +1 -1
  136. data/generated/google/apis/compute_v1/classes.rb +701 -71
  137. data/generated/google/apis/compute_v1/representations.rb +200 -0
  138. data/generated/google/apis/compute_v1/service.rb +522 -33
  139. data/generated/google/apis/container_v1.rb +1 -1
  140. data/generated/google/apis/container_v1/classes.rb +123 -5
  141. data/generated/google/apis/container_v1/representations.rb +50 -0
  142. data/generated/google/apis/container_v1beta1.rb +1 -1
  143. data/generated/google/apis/container_v1beta1/classes.rb +142 -24
  144. data/generated/google/apis/container_v1beta1/representations.rb +37 -0
  145. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  146. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +1 -1
  147. data/generated/google/apis/content_v2.rb +1 -1
  148. data/generated/google/apis/content_v2/classes.rb +7 -1
  149. data/generated/google/apis/content_v2/representations.rb +1 -0
  150. data/generated/google/apis/content_v2/service.rb +10 -5
  151. data/generated/google/apis/content_v2_1.rb +1 -1
  152. data/generated/google/apis/content_v2_1/classes.rb +265 -7
  153. data/generated/google/apis/content_v2_1/representations.rb +108 -0
  154. data/generated/google/apis/content_v2_1/service.rb +10 -5
  155. data/generated/google/apis/customsearch_v1.rb +1 -1
  156. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  157. data/generated/google/apis/datacatalog_v1beta1/classes.rb +34 -10
  158. data/generated/google/apis/datacatalog_v1beta1/representations.rb +13 -0
  159. data/generated/google/apis/datacatalog_v1beta1/service.rb +37 -0
  160. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  161. data/generated/google/apis/dataflow_v1b3/classes.rb +19 -0
  162. data/generated/google/apis/dataflow_v1b3/representations.rb +3 -0
  163. data/generated/google/apis/datafusion_v1beta1.rb +1 -1
  164. data/generated/google/apis/datafusion_v1beta1/classes.rb +64 -19
  165. data/generated/google/apis/datafusion_v1beta1/representations.rb +16 -0
  166. data/generated/google/apis/datafusion_v1beta1/service.rb +49 -2
  167. data/generated/google/apis/dataproc_v1.rb +1 -1
  168. data/generated/google/apis/dataproc_v1/classes.rb +49 -2
  169. data/generated/google/apis/dataproc_v1/representations.rb +17 -0
  170. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  171. data/generated/google/apis/dataproc_v1beta2/classes.rb +44 -2
  172. data/generated/google/apis/dataproc_v1beta2/representations.rb +5 -0
  173. data/generated/google/apis/dialogflow_v2.rb +1 -1
  174. data/generated/google/apis/dialogflow_v2/classes.rb +268 -28
  175. data/generated/google/apis/dialogflow_v2/representations.rb +93 -0
  176. data/generated/google/apis/dialogflow_v2/service.rb +14 -2
  177. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  178. data/generated/google/apis/dialogflow_v2beta1/classes.rb +272 -30
  179. data/generated/google/apis/dialogflow_v2beta1/representations.rb +93 -0
  180. data/generated/google/apis/dialogflow_v2beta1/service.rb +78 -48
  181. data/generated/google/apis/displayvideo_v1.rb +1 -1
  182. data/generated/google/apis/displayvideo_v1/classes.rb +118 -11
  183. data/generated/google/apis/displayvideo_v1/representations.rb +11 -0
  184. data/generated/google/apis/displayvideo_v1/service.rb +78 -1
  185. data/generated/google/apis/dlp_v2.rb +1 -1
  186. data/generated/google/apis/dlp_v2/classes.rb +8 -6
  187. data/generated/google/apis/dlp_v2/service.rb +170 -64
  188. data/generated/google/apis/dns_v1.rb +4 -4
  189. data/generated/google/apis/dns_v1/classes.rb +313 -162
  190. data/generated/google/apis/dns_v1/service.rb +247 -180
  191. data/generated/google/apis/dns_v1beta2.rb +4 -4
  192. data/generated/google/apis/dns_v1beta2/classes.rb +325 -171
  193. data/generated/google/apis/dns_v1beta2/service.rb +247 -180
  194. data/generated/google/apis/documentai_v1beta2.rb +36 -0
  195. data/generated/google/apis/documentai_v1beta2/classes.rb +3284 -0
  196. data/generated/google/apis/documentai_v1beta2/representations.rb +1344 -0
  197. data/generated/google/apis/documentai_v1beta2/service.rb +269 -0
  198. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  199. data/generated/google/apis/doubleclicksearch_v2.rb +4 -4
  200. data/generated/google/apis/doubleclicksearch_v2/classes.rb +127 -111
  201. data/generated/google/apis/doubleclicksearch_v2/representations.rb +4 -6
  202. data/generated/google/apis/doubleclicksearch_v2/service.rb +47 -78
  203. data/generated/google/apis/drive_v2.rb +1 -1
  204. data/generated/google/apis/drive_v2/classes.rb +9 -0
  205. data/generated/google/apis/drive_v2/representations.rb +1 -0
  206. data/generated/google/apis/drive_v2/service.rb +26 -78
  207. data/generated/google/apis/drive_v3.rb +1 -1
  208. data/generated/google/apis/drive_v3/classes.rb +9 -0
  209. data/generated/google/apis/drive_v3/representations.rb +1 -0
  210. data/generated/google/apis/drive_v3/service.rb +18 -54
  211. data/generated/google/apis/fcm_v1.rb +1 -1
  212. data/generated/google/apis/fcm_v1/classes.rb +6 -0
  213. data/generated/google/apis/file_v1.rb +1 -1
  214. data/generated/google/apis/file_v1beta1.rb +1 -1
  215. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  216. data/generated/google/apis/firebase_v1beta1/classes.rb +7 -6
  217. data/generated/google/apis/firebase_v1beta1/service.rb +53 -49
  218. data/generated/google/apis/{groupsmigration_v1.rb → firebasehosting_v1.rb} +10 -11
  219. data/generated/google/apis/firebasehosting_v1/classes.rb +186 -0
  220. data/generated/google/apis/{androidpublisher_v2 → firebasehosting_v1}/representations.rb +22 -32
  221. data/generated/google/apis/firebasehosting_v1/service.rb +183 -0
  222. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  223. data/generated/google/apis/firebasehosting_v1beta1/service.rb +2 -0
  224. data/generated/google/apis/games_v1.rb +6 -4
  225. data/generated/google/apis/games_v1/classes.rb +354 -2112
  226. data/generated/google/apis/games_v1/representations.rb +12 -647
  227. data/generated/google/apis/games_v1/service.rb +212 -1154
  228. data/generated/google/apis/{androidpublisher_v2.rb → gameservices_v1.rb} +11 -11
  229. data/generated/google/apis/gameservices_v1/classes.rb +2354 -0
  230. data/generated/google/apis/gameservices_v1/representations.rb +971 -0
  231. data/generated/google/apis/gameservices_v1/service.rb +1472 -0
  232. data/generated/google/apis/gameservices_v1beta.rb +1 -1
  233. data/generated/google/apis/gameservices_v1beta/classes.rb +6 -6
  234. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  235. data/generated/google/apis/genomics_v2alpha1/classes.rb +84 -0
  236. data/generated/google/apis/genomics_v2alpha1/representations.rb +28 -0
  237. data/generated/google/apis/genomics_v2alpha1/service.rb +38 -2
  238. data/generated/google/apis/gmail_v1.rb +3 -2
  239. data/generated/google/apis/gmail_v1/classes.rb +263 -200
  240. data/generated/google/apis/gmail_v1/service.rb +551 -743
  241. data/generated/google/apis/{androidpublisher_v1_1.rb → gmailpostmastertools_v1beta1.rb} +11 -12
  242. data/generated/google/apis/gmailpostmastertools_v1beta1/classes.rb +306 -0
  243. data/generated/google/apis/gmailpostmastertools_v1beta1/representations.rb +141 -0
  244. data/generated/google/apis/gmailpostmastertools_v1beta1/service.rb +236 -0
  245. data/generated/google/apis/groupssettings_v1.rb +1 -1
  246. data/generated/google/apis/groupssettings_v1/classes.rb +1 -1
  247. data/generated/google/apis/healthcare_v1.rb +1 -1
  248. data/generated/google/apis/healthcare_v1/classes.rb +6 -6
  249. data/generated/google/apis/healthcare_v1/service.rb +2 -0
  250. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  251. data/generated/google/apis/healthcare_v1beta1/classes.rb +916 -49
  252. data/generated/google/apis/healthcare_v1beta1/representations.rb +404 -0
  253. data/generated/google/apis/healthcare_v1beta1/service.rb +517 -0
  254. data/generated/google/apis/iam_v1.rb +1 -1
  255. data/generated/google/apis/iam_v1/classes.rb +92 -81
  256. data/generated/google/apis/iam_v1/service.rb +167 -148
  257. data/generated/google/apis/iamcredentials_v1.rb +2 -2
  258. data/generated/google/apis/iamcredentials_v1/classes.rb +4 -3
  259. data/generated/google/apis/iamcredentials_v1/service.rb +1 -1
  260. data/generated/google/apis/jobs_v3.rb +1 -1
  261. data/generated/google/apis/jobs_v3/classes.rb +4 -2
  262. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  263. data/generated/google/apis/jobs_v3p1beta1/classes.rb +4 -2
  264. data/generated/google/apis/lifesciences_v2beta.rb +1 -1
  265. data/generated/google/apis/lifesciences_v2beta/classes.rb +10 -0
  266. data/generated/google/apis/lifesciences_v2beta/representations.rb +1 -0
  267. data/generated/google/apis/logging_v2.rb +1 -1
  268. data/generated/google/apis/logging_v2/classes.rb +69 -21
  269. data/generated/google/apis/managedidentities_v1.rb +1 -1
  270. data/generated/google/apis/managedidentities_v1/classes.rb +54 -10
  271. data/generated/google/apis/managedidentities_v1/representations.rb +15 -0
  272. data/generated/google/apis/managedidentities_v1/service.rb +3 -0
  273. data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
  274. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +54 -10
  275. data/generated/google/apis/managedidentities_v1alpha1/representations.rb +15 -0
  276. data/generated/google/apis/managedidentities_v1alpha1/service.rb +3 -0
  277. data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
  278. data/generated/google/apis/managedidentities_v1beta1/classes.rb +54 -10
  279. data/generated/google/apis/managedidentities_v1beta1/representations.rb +15 -0
  280. data/generated/google/apis/managedidentities_v1beta1/service.rb +3 -0
  281. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  282. data/generated/google/apis/memcache_v1beta2/classes.rb +6 -6
  283. data/generated/google/apis/ml_v1.rb +1 -1
  284. data/generated/google/apis/ml_v1/classes.rb +14 -6
  285. data/generated/google/apis/ml_v1/representations.rb +1 -0
  286. data/generated/google/apis/monitoring_v1.rb +1 -1
  287. data/generated/google/apis/monitoring_v1/classes.rb +46 -0
  288. data/generated/google/apis/monitoring_v1/representations.rb +18 -0
  289. data/generated/google/apis/monitoring_v3.rb +1 -1
  290. data/generated/google/apis/monitoring_v3/classes.rb +78 -21
  291. data/generated/google/apis/monitoring_v3/representations.rb +2 -0
  292. data/generated/google/apis/monitoring_v3/service.rb +8 -5
  293. data/generated/google/apis/osconfig_v1.rb +1 -1
  294. data/generated/google/apis/osconfig_v1/classes.rb +2 -2
  295. data/generated/google/apis/osconfig_v1beta.rb +1 -1
  296. data/generated/google/apis/osconfig_v1beta/classes.rb +6 -7
  297. data/generated/google/apis/pagespeedonline_v5.rb +1 -1
  298. data/generated/google/apis/pagespeedonline_v5/classes.rb +7 -0
  299. data/generated/google/apis/pagespeedonline_v5/representations.rb +1 -0
  300. data/generated/google/apis/people_v1.rb +4 -1
  301. data/generated/google/apis/people_v1/classes.rb +122 -6
  302. data/generated/google/apis/people_v1/representations.rb +51 -0
  303. data/generated/google/apis/people_v1/service.rb +339 -69
  304. data/generated/google/apis/{androidpublisher_v1/classes.rb → playablelocations_v3.rb} +11 -6
  305. data/generated/google/apis/playablelocations_v3/classes.rb +633 -0
  306. data/generated/google/apis/playablelocations_v3/representations.rb +273 -0
  307. data/generated/google/apis/playablelocations_v3/service.rb +157 -0
  308. data/generated/google/apis/playcustomapp_v1.rb +3 -3
  309. data/generated/google/apis/playcustomapp_v1/classes.rb +7 -0
  310. data/generated/google/apis/playcustomapp_v1/representations.rb +1 -0
  311. data/generated/google/apis/playcustomapp_v1/service.rb +11 -19
  312. data/generated/google/apis/policytroubleshooter_v1.rb +1 -1
  313. data/generated/google/apis/policytroubleshooter_v1/classes.rb +6 -6
  314. data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
  315. data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +6 -6
  316. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  317. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +92 -0
  318. data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +46 -0
  319. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +477 -0
  320. data/generated/google/apis/pubsub_v1.rb +1 -1
  321. data/generated/google/apis/pubsub_v1/classes.rb +77 -37
  322. data/generated/google/apis/pubsub_v1/representations.rb +16 -0
  323. data/generated/google/apis/pubsub_v1/service.rb +35 -44
  324. data/generated/google/apis/realtimebidding_v1.rb +40 -0
  325. data/generated/google/apis/realtimebidding_v1/classes.rb +1436 -0
  326. data/generated/google/apis/realtimebidding_v1/representations.rb +565 -0
  327. data/generated/google/apis/realtimebidding_v1/service.rb +661 -0
  328. data/generated/google/apis/recommender_v1.rb +1 -1
  329. data/generated/google/apis/recommender_v1/classes.rb +211 -0
  330. data/generated/google/apis/recommender_v1/representations.rb +96 -0
  331. data/generated/google/apis/recommender_v1/service.rb +123 -0
  332. data/generated/google/apis/redis_v1.rb +1 -1
  333. data/generated/google/apis/redis_v1/classes.rb +1 -1
  334. data/generated/google/apis/redis_v1/service.rb +1 -1
  335. data/generated/google/apis/redis_v1beta1.rb +1 -1
  336. data/generated/google/apis/redis_v1beta1/classes.rb +1 -1
  337. data/generated/google/apis/redis_v1beta1/service.rb +1 -1
  338. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  339. data/generated/google/apis/remotebuildexecution_v1/classes.rb +1 -1
  340. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  341. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +1 -1
  342. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  343. data/generated/google/apis/remotebuildexecution_v2/classes.rb +1 -1
  344. data/generated/google/apis/run_v1.rb +1 -1
  345. data/generated/google/apis/run_v1/classes.rb +7 -9
  346. data/generated/google/apis/run_v1alpha1.rb +1 -1
  347. data/generated/google/apis/run_v1alpha1/classes.rb +6 -6
  348. data/generated/google/apis/run_v1beta1.rb +1 -1
  349. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  350. data/generated/google/apis/sasportal_v1alpha1/classes.rb +92 -0
  351. data/generated/google/apis/sasportal_v1alpha1/representations.rb +46 -0
  352. data/generated/google/apis/sasportal_v1alpha1/service.rb +477 -0
  353. data/generated/google/apis/secretmanager_v1.rb +1 -1
  354. data/generated/google/apis/secretmanager_v1/classes.rb +6 -6
  355. data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
  356. data/generated/google/apis/secretmanager_v1beta1/classes.rb +6 -6
  357. data/generated/google/apis/securitycenter_v1.rb +1 -1
  358. data/generated/google/apis/securitycenter_v1/classes.rb +116 -16
  359. data/generated/google/apis/securitycenter_v1/representations.rb +38 -0
  360. data/generated/google/apis/securitycenter_v1/service.rb +14 -15
  361. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  362. data/generated/google/apis/securitycenter_v1beta1/classes.rb +106 -6
  363. data/generated/google/apis/securitycenter_v1beta1/representations.rb +38 -0
  364. data/generated/google/apis/securitycenter_v1p1alpha1.rb +1 -1
  365. data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +100 -0
  366. data/generated/google/apis/securitycenter_v1p1alpha1/representations.rb +38 -0
  367. data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
  368. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +116 -16
  369. data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +38 -0
  370. data/generated/google/apis/securitycenter_v1p1beta1/service.rb +12 -15
  371. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  372. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +126 -43
  373. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +1 -1
  374. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  375. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +132 -43
  376. data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +2 -1
  377. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  378. data/generated/google/apis/servicecontrol_v1/classes.rb +6 -0
  379. data/generated/google/apis/servicecontrol_v1/representations.rb +1 -0
  380. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  381. data/generated/google/apis/servicemanagement_v1/classes.rb +124 -49
  382. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -1
  383. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  384. data/generated/google/apis/servicenetworking_v1/classes.rb +119 -43
  385. data/generated/google/apis/servicenetworking_v1/representations.rb +0 -1
  386. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  387. data/generated/google/apis/servicenetworking_v1beta/classes.rb +119 -43
  388. data/generated/google/apis/servicenetworking_v1beta/representations.rb +0 -1
  389. data/generated/google/apis/serviceusage_v1.rb +1 -1
  390. data/generated/google/apis/serviceusage_v1/classes.rb +133 -44
  391. data/generated/google/apis/serviceusage_v1/representations.rb +2 -1
  392. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  393. data/generated/google/apis/serviceusage_v1beta1/classes.rb +184 -44
  394. data/generated/google/apis/serviceusage_v1beta1/representations.rb +31 -1
  395. data/generated/google/apis/serviceusage_v1beta1/service.rb +71 -0
  396. data/generated/google/apis/sheets_v4.rb +1 -1
  397. data/generated/google/apis/sheets_v4/classes.rb +90 -0
  398. data/generated/google/apis/slides_v1.rb +1 -1
  399. data/generated/google/apis/slides_v1/classes.rb +4 -0
  400. data/generated/google/apis/spanner_v1.rb +1 -1
  401. data/generated/google/apis/spanner_v1/classes.rb +25 -20
  402. data/generated/google/apis/spanner_v1/service.rb +7 -0
  403. data/generated/google/apis/speech_v1.rb +1 -1
  404. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  405. data/generated/google/apis/storage_v1.rb +1 -1
  406. data/generated/google/apis/storage_v1/service.rb +2 -3
  407. data/generated/google/apis/testing_v1.rb +1 -1
  408. data/generated/google/apis/testing_v1/classes.rb +17 -6
  409. data/generated/google/apis/testing_v1/representations.rb +1 -0
  410. data/generated/google/apis/texttospeech_v1.rb +1 -1
  411. data/generated/google/apis/texttospeech_v1/classes.rb +1 -1
  412. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  413. data/generated/google/apis/texttospeech_v1beta1/classes.rb +1 -1
  414. data/generated/google/apis/{androidpublisher_v1.rb → vectortile_v1.rb} +8 -8
  415. data/generated/google/apis/vectortile_v1/classes.rb +881 -0
  416. data/generated/google/apis/vectortile_v1/representations.rb +329 -0
  417. data/generated/google/apis/vectortile_v1/service.rb +268 -0
  418. data/generated/google/apis/vision_v1.rb +1 -1
  419. data/generated/google/apis/vision_v1/classes.rb +18 -0
  420. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  421. data/generated/google/apis/vision_v1p1beta1/classes.rb +18 -0
  422. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  423. data/generated/google/apis/vision_v1p2beta1/classes.rb +18 -0
  424. data/generated/google/apis/webfonts_v1.rb +5 -5
  425. data/generated/google/apis/webfonts_v1/classes.rb +4 -3
  426. data/generated/google/apis/webfonts_v1/representations.rb +1 -2
  427. data/generated/google/apis/webfonts_v1/service.rb +14 -21
  428. data/generated/google/apis/youtube_partner_v1.rb +4 -3
  429. data/generated/google/apis/youtube_partner_v1/classes.rb +1616 -1076
  430. data/generated/google/apis/youtube_partner_v1/representations.rb +357 -256
  431. data/generated/google/apis/youtube_partner_v1/service.rb +942 -1362
  432. data/generated/google/apis/youtube_v3.rb +1 -1
  433. data/generated/google/apis/youtube_v3/classes.rb +592 -0
  434. data/generated/google/apis/youtube_v3/representations.rb +308 -0
  435. data/generated/google/apis/youtube_v3/service.rb +291 -0
  436. data/lib/google/apis/version.rb +1 -1
  437. metadata +31 -19
  438. data/generated/google/apis/androidpublisher_v1/representations.rb +0 -26
  439. data/generated/google/apis/androidpublisher_v1/service.rb +0 -64
  440. data/generated/google/apis/androidpublisher_v1_1/classes.rb +0 -94
  441. data/generated/google/apis/androidpublisher_v1_1/representations.rb +0 -45
  442. data/generated/google/apis/androidpublisher_v1_1/service.rb +0 -104
  443. data/generated/google/apis/androidpublisher_v2/classes.rb +0 -223
  444. data/generated/google/apis/androidpublisher_v2/service.rb +0 -160
  445. data/generated/google/apis/groupsmigration_v1/classes.rb +0 -51
  446. data/generated/google/apis/groupsmigration_v1/representations.rb +0 -40
  447. data/generated/google/apis/groupsmigration_v1/service.rb +0 -107
@@ -0,0 +1,236 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module GmailpostmastertoolsV1beta1
23
+ # Gmail Postmaster Tools API
24
+ #
25
+ # The Gmail Postmaster API is a RESTful API that provides programmatic access to
26
+ # email traffic metrics (like spam reports, delivery errors etc) otherwise
27
+ # available through the Gmail Postmaster Tools UI currently.
28
+ #
29
+ # @example
30
+ # require 'google/apis/gmailpostmastertools_v1beta1'
31
+ #
32
+ # Gmailpostmastertools = Google::Apis::GmailpostmastertoolsV1beta1 # Alias the module
33
+ # service = Gmailpostmastertools::PostmasterToolsService.new
34
+ #
35
+ # @see https://developers.google.com/gmail/postmaster
36
+ class PostmasterToolsService < Google::Apis::Core::BaseService
37
+ # @return [String]
38
+ # API key. Your API key identifies your project and provides you with API access,
39
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
40
+ attr_accessor :key
41
+
42
+ # @return [String]
43
+ # Available to use for quota purposes for server-side applications. Can be any
44
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
45
+ attr_accessor :quota_user
46
+
47
+ def initialize
48
+ super('https://gmailpostmastertools.googleapis.com/', '')
49
+ @batch_path = 'batch'
50
+ end
51
+
52
+ # Gets a specific domain registered by the client.
53
+ # Returns NOT_FOUND if the domain does not exist.
54
+ # @param [String] name
55
+ # The resource name of the domain. It should have the form
56
+ # `domains/`domain_name``, where domain_name is the fully qualified
57
+ # domain name.
58
+ # @param [String] fields
59
+ # Selector specifying which fields to include in a partial response.
60
+ # @param [String] quota_user
61
+ # Available to use for quota purposes for server-side applications. Can be any
62
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
63
+ # @param [Google::Apis::RequestOptions] options
64
+ # Request-specific options
65
+ #
66
+ # @yield [result, err] Result & error if block supplied
67
+ # @yieldparam result [Google::Apis::GmailpostmastertoolsV1beta1::Domain] parsed result object
68
+ # @yieldparam err [StandardError] error object if request failed
69
+ #
70
+ # @return [Google::Apis::GmailpostmastertoolsV1beta1::Domain]
71
+ #
72
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
73
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
74
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
75
+ def get_domain(name, fields: nil, quota_user: nil, options: nil, &block)
76
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
77
+ command.response_representation = Google::Apis::GmailpostmastertoolsV1beta1::Domain::Representation
78
+ command.response_class = Google::Apis::GmailpostmastertoolsV1beta1::Domain
79
+ command.params['name'] = name unless name.nil?
80
+ command.query['fields'] = fields unless fields.nil?
81
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
82
+ execute_or_queue_command(command, &block)
83
+ end
84
+
85
+ # Lists the domains that have been registered by the client. The order of
86
+ # domains in the response is unspecified and non-deterministic. Newly created
87
+ # domains will not necessarily be added to the end of this list.
88
+ # @param [Fixnum] page_size
89
+ # Requested page size. Server may return fewer domains than requested.
90
+ # If unspecified, server will pick an appropriate default.
91
+ # @param [String] page_token
92
+ # The next_page_token value returned from a previous List request, if any.
93
+ # This is the value of
94
+ # ListDomainsResponse.next_page_token
95
+ # returned from the previous call to `ListDomains` method.
96
+ # @param [String] fields
97
+ # Selector specifying which fields to include in a partial response.
98
+ # @param [String] quota_user
99
+ # Available to use for quota purposes for server-side applications. Can be any
100
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
101
+ # @param [Google::Apis::RequestOptions] options
102
+ # Request-specific options
103
+ #
104
+ # @yield [result, err] Result & error if block supplied
105
+ # @yieldparam result [Google::Apis::GmailpostmastertoolsV1beta1::ListDomainsResponse] parsed result object
106
+ # @yieldparam err [StandardError] error object if request failed
107
+ #
108
+ # @return [Google::Apis::GmailpostmastertoolsV1beta1::ListDomainsResponse]
109
+ #
110
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
111
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
112
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
113
+ def list_domains(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
114
+ command = make_simple_command(:get, 'v1beta1/domains', options)
115
+ command.response_representation = Google::Apis::GmailpostmastertoolsV1beta1::ListDomainsResponse::Representation
116
+ command.response_class = Google::Apis::GmailpostmastertoolsV1beta1::ListDomainsResponse
117
+ command.query['pageSize'] = page_size unless page_size.nil?
118
+ command.query['pageToken'] = page_token unless page_token.nil?
119
+ command.query['fields'] = fields unless fields.nil?
120
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
121
+ execute_or_queue_command(command, &block)
122
+ end
123
+
124
+ # Get traffic statistics for a domain on a specific date.
125
+ # Returns PERMISSION_DENIED if user does not have permission to access
126
+ # TrafficStats for the domain.
127
+ # @param [String] name
128
+ # The resource name of the traffic statistics to get.
129
+ # E.g., domains/mymail.mydomain.com/trafficStats/20160807.
130
+ # @param [String] fields
131
+ # Selector specifying which fields to include in a partial response.
132
+ # @param [String] quota_user
133
+ # Available to use for quota purposes for server-side applications. Can be any
134
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
135
+ # @param [Google::Apis::RequestOptions] options
136
+ # Request-specific options
137
+ #
138
+ # @yield [result, err] Result & error if block supplied
139
+ # @yieldparam result [Google::Apis::GmailpostmastertoolsV1beta1::TrafficStats] parsed result object
140
+ # @yieldparam err [StandardError] error object if request failed
141
+ #
142
+ # @return [Google::Apis::GmailpostmastertoolsV1beta1::TrafficStats]
143
+ #
144
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
145
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
146
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
147
+ def get_domain_traffic_stat(name, fields: nil, quota_user: nil, options: nil, &block)
148
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
149
+ command.response_representation = Google::Apis::GmailpostmastertoolsV1beta1::TrafficStats::Representation
150
+ command.response_class = Google::Apis::GmailpostmastertoolsV1beta1::TrafficStats
151
+ command.params['name'] = name unless name.nil?
152
+ command.query['fields'] = fields unless fields.nil?
153
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
154
+ execute_or_queue_command(command, &block)
155
+ end
156
+
157
+ # List traffic statistics for all available days.
158
+ # Returns PERMISSION_DENIED if user does not have permission to access
159
+ # TrafficStats for the domain.
160
+ # @param [String] parent
161
+ # The resource name of the domain whose traffic statistics we'd like to list.
162
+ # It should have the form `domains/`domain_name``, where domain_name is
163
+ # the fully qualified domain name.
164
+ # @param [Fixnum] end_date_day
165
+ # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
166
+ # if specifying a year by itself or a year and month where the day is not
167
+ # significant.
168
+ # @param [Fixnum] end_date_month
169
+ # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
170
+ # month and day.
171
+ # @param [Fixnum] end_date_year
172
+ # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
173
+ # a year.
174
+ # @param [Fixnum] page_size
175
+ # Requested page size. Server may return fewer TrafficStats than
176
+ # requested. If unspecified, server will pick an appropriate default.
177
+ # @param [String] page_token
178
+ # The next_page_token value returned from a previous List request, if any.
179
+ # This is the value of
180
+ # ListTrafficStatsResponse.next_page_token
181
+ # returned from the previous call to `ListTrafficStats` method.
182
+ # @param [Fixnum] start_date_day
183
+ # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
184
+ # if specifying a year by itself or a year and month where the day is not
185
+ # significant.
186
+ # @param [Fixnum] start_date_month
187
+ # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
188
+ # month and day.
189
+ # @param [Fixnum] start_date_year
190
+ # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
191
+ # a year.
192
+ # @param [String] fields
193
+ # Selector specifying which fields to include in a partial response.
194
+ # @param [String] quota_user
195
+ # Available to use for quota purposes for server-side applications. Can be any
196
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
197
+ # @param [Google::Apis::RequestOptions] options
198
+ # Request-specific options
199
+ #
200
+ # @yield [result, err] Result & error if block supplied
201
+ # @yieldparam result [Google::Apis::GmailpostmastertoolsV1beta1::ListTrafficStatsResponse] parsed result object
202
+ # @yieldparam err [StandardError] error object if request failed
203
+ #
204
+ # @return [Google::Apis::GmailpostmastertoolsV1beta1::ListTrafficStatsResponse]
205
+ #
206
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
207
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
208
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
209
+ def list_domain_traffic_stats(parent, end_date_day: nil, end_date_month: nil, end_date_year: nil, page_size: nil, page_token: nil, start_date_day: nil, start_date_month: nil, start_date_year: nil, fields: nil, quota_user: nil, options: nil, &block)
210
+ command = make_simple_command(:get, 'v1beta1/{+parent}/trafficStats', options)
211
+ command.response_representation = Google::Apis::GmailpostmastertoolsV1beta1::ListTrafficStatsResponse::Representation
212
+ command.response_class = Google::Apis::GmailpostmastertoolsV1beta1::ListTrafficStatsResponse
213
+ command.params['parent'] = parent unless parent.nil?
214
+ command.query['endDate.day'] = end_date_day unless end_date_day.nil?
215
+ command.query['endDate.month'] = end_date_month unless end_date_month.nil?
216
+ command.query['endDate.year'] = end_date_year unless end_date_year.nil?
217
+ command.query['pageSize'] = page_size unless page_size.nil?
218
+ command.query['pageToken'] = page_token unless page_token.nil?
219
+ command.query['startDate.day'] = start_date_day unless start_date_day.nil?
220
+ command.query['startDate.month'] = start_date_month unless start_date_month.nil?
221
+ command.query['startDate.year'] = start_date_year unless start_date_year.nil?
222
+ command.query['fields'] = fields unless fields.nil?
223
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
224
+ execute_or_queue_command(command, &block)
225
+ end
226
+
227
+ protected
228
+
229
+ def apply_command_defaults(command)
230
+ command.query['key'] = key unless key.nil?
231
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
232
+ end
233
+ end
234
+ end
235
+ end
236
+ end
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/google-apps/groups-settings/get_started
26
26
  module GroupssettingsV1
27
27
  VERSION = 'V1'
28
- REVISION = '20190725'
28
+ REVISION = '20200617'
29
29
 
30
30
  # View and manage the settings of a G Suite group
31
31
  AUTH_APPS_GROUPS_SETTINGS = 'https://www.googleapis.com/auth/apps.groups.settings'
@@ -213,7 +213,7 @@ module Google
213
213
  # @return [String]
214
214
  attr_accessor :primary_language
215
215
 
216
- # Specifies who should the default reply go to. Possible values are:
216
+ # Specifies who receives the default reply. Possible values are:
217
217
  # - REPLY_TO_CUSTOM: For replies to messages, use the group's custom email
218
218
  # address.
219
219
  # When the group's ReplyTo property is set to REPLY_TO_CUSTOM, the customReplyTo
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/healthcare
26
26
  module HealthcareV1
27
27
  VERSION = 'V1'
28
- REVISION = '20200525'
28
+ REVISION = '20200612'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -34,7 +34,7 @@ module Google
34
34
  # `
35
35
  # "audit_configs": [
36
36
  # `
37
- # "service": "allServices"
37
+ # "service": "allServices",
38
38
  # "audit_log_configs": [
39
39
  # `
40
40
  # "log_type": "DATA_READ",
@@ -43,18 +43,18 @@ module Google
43
43
  # ]
44
44
  # `,
45
45
  # `
46
- # "log_type": "DATA_WRITE",
46
+ # "log_type": "DATA_WRITE"
47
47
  # `,
48
48
  # `
49
- # "log_type": "ADMIN_READ",
49
+ # "log_type": "ADMIN_READ"
50
50
  # `
51
51
  # ]
52
52
  # `,
53
53
  # `
54
- # "service": "sampleservice.googleapis.com"
54
+ # "service": "sampleservice.googleapis.com",
55
55
  # "audit_log_configs": [
56
56
  # `
57
- # "log_type": "DATA_READ",
57
+ # "log_type": "DATA_READ"
58
58
  # `,
59
59
  # `
60
60
  # "log_type": "DATA_WRITE",
@@ -106,7 +106,7 @@ module Google
106
106
  # ]
107
107
  # `,
108
108
  # `
109
- # "log_type": "DATA_WRITE",
109
+ # "log_type": "DATA_WRITE"
110
110
  # `
111
111
  # ]
112
112
  # `
@@ -1384,6 +1384,8 @@ module Google
1384
1384
  # DeleteInstance deletes an instance associated with the given study, series,
1385
1385
  # and SOP Instance UID. Delete requests are equivalent to the GET requests
1386
1386
  # specified in the Retrieve transaction.
1387
+ # Study and series search results can take a few seconds to be updated after
1388
+ # an instance is deleted using DeleteInstance.
1387
1389
  # @param [String] parent
1388
1390
  # The name of the DICOM store that is being accessed. For example,
1389
1391
  # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/healthcare
26
26
  module HealthcareV1beta1
27
27
  VERSION = 'V1beta1'
28
- REVISION = '20200525'
28
+ REVISION = '20200612'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -22,6 +22,151 @@ module Google
22
22
  module Apis
23
23
  module HealthcareV1beta1
24
24
 
25
+ # An annotation record.
26
+ class Annotation
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # AnnotationSource holds the source information of the annotation.
30
+ # Corresponds to the JSON property `annotationSource`
31
+ # @return [Google::Apis::HealthcareV1beta1::AnnotationSource]
32
+ attr_accessor :annotation_source
33
+
34
+ # Additional information for this annotation record, such as annotator and
35
+ # verifier information or study campaign.
36
+ # Corresponds to the JSON property `customData`
37
+ # @return [Hash<String,String>]
38
+ attr_accessor :custom_data
39
+
40
+ # Image annotation.
41
+ # Corresponds to the JSON property `imageAnnotation`
42
+ # @return [Google::Apis::HealthcareV1beta1::ImageAnnotation]
43
+ attr_accessor :image_annotation
44
+
45
+ # Resource name of the Annotation, of the form
46
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
47
+ # annotationStores/`annotation_store_id`/annotations/`annotation_id``.
48
+ # Corresponds to the JSON property `name`
49
+ # @return [String]
50
+ attr_accessor :name
51
+
52
+ # Resource level annotation.
53
+ # Corresponds to the JSON property `resourceAnnotation`
54
+ # @return [Google::Apis::HealthcareV1beta1::ResourceAnnotation]
55
+ attr_accessor :resource_annotation
56
+
57
+ # A TextAnnotation specifies a text range that includes sensitive information.
58
+ # Corresponds to the JSON property `textAnnotation`
59
+ # @return [Google::Apis::HealthcareV1beta1::SensitiveTextAnnotation]
60
+ attr_accessor :text_annotation
61
+
62
+ def initialize(**args)
63
+ update!(**args)
64
+ end
65
+
66
+ # Update properties of this object
67
+ def update!(**args)
68
+ @annotation_source = args[:annotation_source] if args.key?(:annotation_source)
69
+ @custom_data = args[:custom_data] if args.key?(:custom_data)
70
+ @image_annotation = args[:image_annotation] if args.key?(:image_annotation)
71
+ @name = args[:name] if args.key?(:name)
72
+ @resource_annotation = args[:resource_annotation] if args.key?(:resource_annotation)
73
+ @text_annotation = args[:text_annotation] if args.key?(:text_annotation)
74
+ end
75
+ end
76
+
77
+ # Specifies how to store annotations during de-identification operation.
78
+ class AnnotationConfig
79
+ include Google::Apis::Core::Hashable
80
+
81
+ # The name of the annotation store, in the form
82
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
83
+ # annotationStores/`annotation_store_id``).
84
+ # * The destination annotation store must be in the same project as the
85
+ # source data. De-identifying data across multiple projects is not
86
+ # supported.
87
+ # * The destination annotation store must exist when using
88
+ # DeidentifyDicomStore or
89
+ # DeidentifyFhirStore.
90
+ # DeidentifyDataset
91
+ # automatically creates the destination annotation store.
92
+ # Corresponds to the JSON property `annotationStoreName`
93
+ # @return [String]
94
+ attr_accessor :annotation_store_name
95
+
96
+ # If set to true, the sensitive texts are included in
97
+ # SensitiveTextAnnotation
98
+ # of Annotation.
99
+ # Corresponds to the JSON property `storeQuote`
100
+ # @return [Boolean]
101
+ attr_accessor :store_quote
102
+ alias_method :store_quote?, :store_quote
103
+
104
+ def initialize(**args)
105
+ update!(**args)
106
+ end
107
+
108
+ # Update properties of this object
109
+ def update!(**args)
110
+ @annotation_store_name = args[:annotation_store_name] if args.key?(:annotation_store_name)
111
+ @store_quote = args[:store_quote] if args.key?(:store_quote)
112
+ end
113
+ end
114
+
115
+ # AnnotationSource holds the source information of the annotation.
116
+ class AnnotationSource
117
+ include Google::Apis::Core::Hashable
118
+
119
+ # Cloud Healthcare API resource.
120
+ # Corresponds to the JSON property `cloudHealthcareSource`
121
+ # @return [Google::Apis::HealthcareV1beta1::CloudHealthcareSource]
122
+ attr_accessor :cloud_healthcare_source
123
+
124
+ def initialize(**args)
125
+ update!(**args)
126
+ end
127
+
128
+ # Update properties of this object
129
+ def update!(**args)
130
+ @cloud_healthcare_source = args[:cloud_healthcare_source] if args.key?(:cloud_healthcare_source)
131
+ end
132
+ end
133
+
134
+ # An Annotation store that can store annotation resources such as
135
+ # labels and tags for text, image and audio.
136
+ class AnnotationStore
137
+ include Google::Apis::Core::Hashable
138
+
139
+ # Optional. User-supplied key-value pairs used to organize Annotation stores.
140
+ # Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
141
+ # of maximum 128 bytes, and must conform to the
142
+ # following PCRE regular expression:
143
+ # \p`Ll`\p`Lo``0,62`
144
+ # Label values must be between 1 and 63 characters long, have
145
+ # a UTF-8 encoding of maximum 128 bytes, and must conform to the
146
+ # following PCRE regular expression: [\p`Ll`\p`Lo`\p`N`_-]`0,63`
147
+ # No more than 64 labels can be associated with a given store.
148
+ # Corresponds to the JSON property `labels`
149
+ # @return [Hash<String,String>]
150
+ attr_accessor :labels
151
+
152
+ # Resource name of the Annotation store, of the form
153
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
154
+ # annotationStores/`annotation_store_id``.
155
+ # Corresponds to the JSON property `name`
156
+ # @return [String]
157
+ attr_accessor :name
158
+
159
+ def initialize(**args)
160
+ update!(**args)
161
+ end
162
+
163
+ # Update properties of this object
164
+ def update!(**args)
165
+ @labels = args[:labels] if args.key?(:labels)
166
+ @name = args[:name] if args.key?(:name)
167
+ end
168
+ end
169
+
25
170
  # Specifies the audit configuration for a service.
26
171
  # The configuration determines which permission types are logged, and what
27
172
  # identities, if any, are exempted from logging.
@@ -34,7 +179,7 @@ module Google
34
179
  # `
35
180
  # "audit_configs": [
36
181
  # `
37
- # "service": "allServices"
182
+ # "service": "allServices",
38
183
  # "audit_log_configs": [
39
184
  # `
40
185
  # "log_type": "DATA_READ",
@@ -43,18 +188,18 @@ module Google
43
188
  # ]
44
189
  # `,
45
190
  # `
46
- # "log_type": "DATA_WRITE",
191
+ # "log_type": "DATA_WRITE"
47
192
  # `,
48
193
  # `
49
- # "log_type": "ADMIN_READ",
194
+ # "log_type": "ADMIN_READ"
50
195
  # `
51
196
  # ]
52
197
  # `,
53
198
  # `
54
- # "service": "sampleservice.googleapis.com"
199
+ # "service": "sampleservice.googleapis.com",
55
200
  # "audit_log_configs": [
56
201
  # `
57
- # "log_type": "DATA_READ",
202
+ # "log_type": "DATA_READ"
58
203
  # `,
59
204
  # `
60
205
  # "log_type": "DATA_WRITE",
@@ -106,7 +251,7 @@ module Google
106
251
  # ]
107
252
  # `,
108
253
  # `
109
- # "log_type": "DATA_WRITE",
254
+ # "log_type": "DATA_WRITE"
110
255
  # `
111
256
  # ]
112
257
  # `
@@ -221,6 +366,31 @@ module Google
221
366
  end
222
367
  end
223
368
 
369
+ # A bounding polygon for the detected image annotation.
370
+ class BoundingPoly
371
+ include Google::Apis::Core::Hashable
372
+
373
+ # A description of this polygon.
374
+ # Corresponds to the JSON property `label`
375
+ # @return [String]
376
+ attr_accessor :label
377
+
378
+ # List of the vertices of this polygon.
379
+ # Corresponds to the JSON property `vertices`
380
+ # @return [Array<Google::Apis::HealthcareV1beta1::Vertex>]
381
+ attr_accessor :vertices
382
+
383
+ def initialize(**args)
384
+ update!(**args)
385
+ end
386
+
387
+ # Update properties of this object
388
+ def update!(**args)
389
+ @label = args[:label] if args.key?(:label)
390
+ @vertices = args[:vertices] if args.key?(:vertices)
391
+ end
392
+ end
393
+
224
394
  # The request message for Operations.CancelOperation.
225
395
  class CancelOperationRequest
226
396
  include Google::Apis::Core::Hashable
@@ -253,6 +423,25 @@ module Google
253
423
  end
254
424
  end
255
425
 
426
+ # Cloud Healthcare API resource.
427
+ class CloudHealthcareSource
428
+ include Google::Apis::Core::Hashable
429
+
430
+ # Full path of a Cloud Healthcare API resource.
431
+ # Corresponds to the JSON property `name`
432
+ # @return [String]
433
+ attr_accessor :name
434
+
435
+ def initialize(**args)
436
+ update!(**args)
437
+ end
438
+
439
+ # Update properties of this object
440
+ def update!(**args)
441
+ @name = args[:name] if args.key?(:name)
442
+ end
443
+ end
444
+
256
445
  # Creates a new message.
257
446
  class CreateMessageRequest
258
447
  include Google::Apis::Core::Hashable
@@ -362,6 +551,11 @@ module Google
362
551
  class DeidentifyConfig
363
552
  include Google::Apis::Core::Hashable
364
553
 
554
+ # Specifies how to store annotations during de-identification operation.
555
+ # Corresponds to the JSON property `annotation`
556
+ # @return [Google::Apis::HealthcareV1beta1::AnnotationConfig]
557
+ attr_accessor :annotation
558
+
365
559
  # Specifies the parameters needed for de-identification of DICOM stores.
366
560
  # Corresponds to the JSON property `dicom`
367
561
  # @return [Google::Apis::HealthcareV1beta1::DicomConfig]
@@ -389,6 +583,7 @@ module Google
389
583
 
390
584
  # Update properties of this object
391
585
  def update!(**args)
586
+ @annotation = args[:annotation] if args.key?(:annotation)
392
587
  @dicom = args[:dicom] if args.key?(:dicom)
393
588
  @fhir = args[:fhir] if args.key?(:fhir)
394
589
  @image = args[:image] if args.key?(:image)
@@ -585,6 +780,25 @@ module Google
585
780
  end
586
781
  end
587
782
 
783
+ # Contains multiple sensitive information findings for each resource slice.
784
+ class Detail
785
+ include Google::Apis::Core::Hashable
786
+
787
+ #
788
+ # Corresponds to the JSON property `findings`
789
+ # @return [Array<Google::Apis::HealthcareV1beta1::Finding>]
790
+ attr_accessor :findings
791
+
792
+ def initialize(**args)
793
+ update!(**args)
794
+ end
795
+
796
+ # Update properties of this object
797
+ def update!(**args)
798
+ @findings = args[:findings] if args.key?(:findings)
799
+ end
800
+ end
801
+
588
802
  # Specifies the parameters needed for de-identification of DICOM stores.
589
803
  class DicomConfig
590
804
  include Google::Apis::Core::Hashable
@@ -750,6 +964,209 @@ module Google
750
964
  end
751
965
  end
752
966
 
967
+ # Request to evaluate an Annotation store against a
968
+ # ground truth [Annotation store].
969
+ class EvaluateAnnotationStoreRequest
970
+ include Google::Apis::Core::Hashable
971
+
972
+ # The BigQuery table for export.
973
+ # Corresponds to the JSON property `bigqueryDestination`
974
+ # @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination]
975
+ attr_accessor :bigquery_destination
976
+
977
+ # Optional. InfoType mapping for `eval_store`. Different resources can map to
978
+ # the same infoType. For example, `PERSON_NAME`, `PERSON`, `NAME`, and
979
+ # `HUMAN` are different. To map all of these into a single
980
+ # infoType (such as `PERSON_NAME`), specify the following mapping:
981
+ # ```
982
+ # info_type_mapping["PERSON"] = "PERSON_NAME"
983
+ # info_type_mapping["NAME"] = "PERSON_NAME"
984
+ # info_type_mapping["HUMAN"] = "PERSON_NAME"
985
+ # ```
986
+ # Unmentioned infoTypes, such as `DATE`, are treated as identity
987
+ # mapping. For example:
988
+ # ```
989
+ # info_type_mapping["DATE"] = "DATE"
990
+ # ```
991
+ # InfoTypes are case-insensitive.
992
+ # Corresponds to the JSON property `evalInfoTypeMapping`
993
+ # @return [Hash<String,String>]
994
+ attr_accessor :eval_info_type_mapping
995
+
996
+ # Optional. Similar to `eval_info_type_mapping`, infoType mapping for
997
+ # `golden_store`.
998
+ # Corresponds to the JSON property `goldenInfoTypeMapping`
999
+ # @return [Hash<String,String>]
1000
+ attr_accessor :golden_info_type_mapping
1001
+
1002
+ # The Annotation store to use as ground truth, in the format of
1003
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1004
+ # annotationStores/`annotation_store_id``.
1005
+ # Corresponds to the JSON property `goldenStore`
1006
+ # @return [String]
1007
+ attr_accessor :golden_store
1008
+
1009
+ # Specifies how to use infoTypes for evaluation. For example, a user might
1010
+ # only want to evaluate `PERSON`, `LOCATION`, and `AGE`.
1011
+ # Corresponds to the JSON property `infoTypeConfig`
1012
+ # @return [Google::Apis::HealthcareV1beta1::InfoTypeConfig]
1013
+ attr_accessor :info_type_config
1014
+
1015
+ def initialize(**args)
1016
+ update!(**args)
1017
+ end
1018
+
1019
+ # Update properties of this object
1020
+ def update!(**args)
1021
+ @bigquery_destination = args[:bigquery_destination] if args.key?(:bigquery_destination)
1022
+ @eval_info_type_mapping = args[:eval_info_type_mapping] if args.key?(:eval_info_type_mapping)
1023
+ @golden_info_type_mapping = args[:golden_info_type_mapping] if args.key?(:golden_info_type_mapping)
1024
+ @golden_store = args[:golden_store] if args.key?(:golden_store)
1025
+ @info_type_config = args[:info_type_config] if args.key?(:info_type_config)
1026
+ end
1027
+ end
1028
+
1029
+ # Response for successful Annotation store evaluation operations. This
1030
+ # structure is included in the
1031
+ # response upon operation completion.
1032
+ class EvaluateAnnotationStoreResponse
1033
+ include Google::Apis::Core::Hashable
1034
+
1035
+ # The evaluated Annotation store, in the format of
1036
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1037
+ # annotationStores/`annotation_store_id``.
1038
+ # Corresponds to the JSON property `evalStore`
1039
+ # @return [String]
1040
+ attr_accessor :eval_store
1041
+
1042
+ # The number of Annotations in the ground
1043
+ # truth Annotation store successfully
1044
+ # processed.
1045
+ # Corresponds to the JSON property `goldenCount`
1046
+ # @return [Fixnum]
1047
+ attr_accessor :golden_count
1048
+
1049
+ # The ground truth Annotation store, in the format of
1050
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1051
+ # annotationStores/`annotation_store_id``.
1052
+ # Corresponds to the JSON property `goldenStore`
1053
+ # @return [String]
1054
+ attr_accessor :golden_store
1055
+
1056
+ # The number of Annotations
1057
+ # in the eval store that match with corresponding annotations
1058
+ # in the ground truth Annotation store. Two matched
1059
+ # annotations both annotate the same resource defined in
1060
+ # AnnotationSource.
1061
+ # Corresponds to the JSON property `matchedCount`
1062
+ # @return [Fixnum]
1063
+ attr_accessor :matched_count
1064
+
1065
+ def initialize(**args)
1066
+ update!(**args)
1067
+ end
1068
+
1069
+ # Update properties of this object
1070
+ def update!(**args)
1071
+ @eval_store = args[:eval_store] if args.key?(:eval_store)
1072
+ @golden_count = args[:golden_count] if args.key?(:golden_count)
1073
+ @golden_store = args[:golden_store] if args.key?(:golden_store)
1074
+ @matched_count = args[:matched_count] if args.key?(:matched_count)
1075
+ end
1076
+ end
1077
+
1078
+ # Response for failed annotation export operations. This structure is
1079
+ # included in error
1080
+ # details upon operation completion.
1081
+ class ExportAnnotationsErrorDetails
1082
+ include Google::Apis::Core::Hashable
1083
+
1084
+ # The annotation_store used for the export operation, in the format of
1085
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1086
+ # annotationStores/`annotation_store_id``.
1087
+ # Corresponds to the JSON property `annotationStore`
1088
+ # @return [String]
1089
+ attr_accessor :annotation_store
1090
+
1091
+ # The number of annotations that had error.
1092
+ # Corresponds to the JSON property `errorCount`
1093
+ # @return [Fixnum]
1094
+ attr_accessor :error_count
1095
+
1096
+ # The number of annotations successfully exported.
1097
+ # Corresponds to the JSON property `successCount`
1098
+ # @return [Fixnum]
1099
+ attr_accessor :success_count
1100
+
1101
+ def initialize(**args)
1102
+ update!(**args)
1103
+ end
1104
+
1105
+ # Update properties of this object
1106
+ def update!(**args)
1107
+ @annotation_store = args[:annotation_store] if args.key?(:annotation_store)
1108
+ @error_count = args[:error_count] if args.key?(:error_count)
1109
+ @success_count = args[:success_count] if args.key?(:success_count)
1110
+ end
1111
+ end
1112
+
1113
+ # Request to export
1114
+ # Annotations. The
1115
+ # export operation is not atomic. If a
1116
+ # failure occurs, any annotations already exported are not removed.
1117
+ class ExportAnnotationsRequest
1118
+ include Google::Apis::Core::Hashable
1119
+
1120
+ # The BigQuery table for export.
1121
+ # Corresponds to the JSON property `bigqueryDestination`
1122
+ # @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination]
1123
+ attr_accessor :bigquery_destination
1124
+
1125
+ # The Cloud Storage location for export.
1126
+ # Corresponds to the JSON property `gcsDestination`
1127
+ # @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsDestination]
1128
+ attr_accessor :gcs_destination
1129
+
1130
+ def initialize(**args)
1131
+ update!(**args)
1132
+ end
1133
+
1134
+ # Update properties of this object
1135
+ def update!(**args)
1136
+ @bigquery_destination = args[:bigquery_destination] if args.key?(:bigquery_destination)
1137
+ @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
1138
+ end
1139
+ end
1140
+
1141
+ # Response for successful annotation export operations. This structure is
1142
+ # included in response upon operation
1143
+ # completion.
1144
+ class ExportAnnotationsResponse
1145
+ include Google::Apis::Core::Hashable
1146
+
1147
+ # The annotation_store used for the export operation, in the format of
1148
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
1149
+ # annotationStores/`annotation_store_id``.
1150
+ # Corresponds to the JSON property `annotationStore`
1151
+ # @return [String]
1152
+ attr_accessor :annotation_store
1153
+
1154
+ # The total number of annotations successfully exported.
1155
+ # Corresponds to the JSON property `successCount`
1156
+ # @return [Fixnum]
1157
+ attr_accessor :success_count
1158
+
1159
+ def initialize(**args)
1160
+ update!(**args)
1161
+ end
1162
+
1163
+ # Update properties of this object
1164
+ def update!(**args)
1165
+ @annotation_store = args[:annotation_store] if args.key?(:annotation_store)
1166
+ @success_count = args[:success_count] if args.key?(:success_count)
1167
+ end
1168
+ end
1169
+
753
1170
  # Exports data from the specified DICOM store.
754
1171
  # If a given resource, such as a DICOM object with the same SOPInstance UID,
755
1172
  # already exists in the output, it is overwritten with the version
@@ -1064,22 +1481,185 @@ module Google
1064
1481
  # @return [Fixnum]
1065
1482
  attr_accessor :min_occurs
1066
1483
 
1067
- # The name of the field. For example, "PID-1" or just "1".
1068
- # Corresponds to the JSON property `name`
1484
+ # The name of the field. For example, "PID-1" or just "1".
1485
+ # Corresponds to the JSON property `name`
1486
+ # @return [String]
1487
+ attr_accessor :name
1488
+
1489
+ # The HL7v2 table this field refers to. For example, PID-15 (Patient's
1490
+ # Primary Language) usually refers to table "0296".
1491
+ # Corresponds to the JSON property `table`
1492
+ # @return [String]
1493
+ attr_accessor :table
1494
+
1495
+ # The type of this field. A Type with this name must be defined in an
1496
+ # Hl7TypesConfig.
1497
+ # Corresponds to the JSON property `type`
1498
+ # @return [String]
1499
+ attr_accessor :type
1500
+
1501
+ def initialize(**args)
1502
+ update!(**args)
1503
+ end
1504
+
1505
+ # Update properties of this object
1506
+ def update!(**args)
1507
+ @max_occurs = args[:max_occurs] if args.key?(:max_occurs)
1508
+ @min_occurs = args[:min_occurs] if args.key?(:min_occurs)
1509
+ @name = args[:name] if args.key?(:name)
1510
+ @table = args[:table] if args.key?(:table)
1511
+ @type = args[:type] if args.key?(:type)
1512
+ end
1513
+ end
1514
+
1515
+ # Specifies FHIR paths to match, and how to handle de-identification of
1516
+ # matching fields.
1517
+ class FieldMetadata
1518
+ include Google::Apis::Core::Hashable
1519
+
1520
+ # Deidentify action for one field.
1521
+ # Corresponds to the JSON property `action`
1522
+ # @return [String]
1523
+ attr_accessor :action
1524
+
1525
+ # List of paths to FHIR fields to redact. Each path is a
1526
+ # period-separated list where each component is either a field name or
1527
+ # FHIR type name. All types begin with an upper case letter. For example,
1528
+ # the resource field "Patient.Address.city", which uses a string type,
1529
+ # can be matched by "Patient.Address.String". Path also supports partial
1530
+ # matching. For example, "Patient.Address.city" can be matched by
1531
+ # "Address.city" (Patient omitted). Partial matching and type matching
1532
+ # can be combined. For example, "Patient.Address.city" can be matched by
1533
+ # "Address.String". For "choice" types (those defined in the FHIR spec
1534
+ # with the form: field[x]), use two separate components. For example,
1535
+ # "deceasedAge.unit" is matched by "Deceased.Age.unit". Supported types
1536
+ # are: AdministrativeGenderCode, Code, Date, DateTime, Decimal,
1537
+ # HumanName, Id, LanguageCode, Markdown, Oid, String, Uri, Uuid, Xhtml.
1538
+ # The sub-type for HumanName, such as HumanName.given or
1539
+ # HumanName.family, can be omitted.
1540
+ # Corresponds to the JSON property `paths`
1541
+ # @return [Array<String>]
1542
+ attr_accessor :paths
1543
+
1544
+ def initialize(**args)
1545
+ update!(**args)
1546
+ end
1547
+
1548
+ # Update properties of this object
1549
+ def update!(**args)
1550
+ @action = args[:action] if args.key?(:action)
1551
+ @paths = args[:paths] if args.key?(:paths)
1552
+ end
1553
+ end
1554
+
1555
+ # List of infoTypes to be filtered.
1556
+ class FilterList
1557
+ include Google::Apis::Core::Hashable
1558
+
1559
+ # These infoTypes are based on after the `eval_info_type_mapping` and
1560
+ # `golden_info_type_mapping`.
1561
+ # Corresponds to the JSON property `infoTypes`
1562
+ # @return [Array<String>]
1563
+ attr_accessor :info_types
1564
+
1565
+ def initialize(**args)
1566
+ update!(**args)
1567
+ end
1568
+
1569
+ # Update properties of this object
1570
+ def update!(**args)
1571
+ @info_types = args[:info_types] if args.key?(:info_types)
1572
+ end
1573
+ end
1574
+
1575
+ #
1576
+ class Finding
1577
+ include Google::Apis::Core::Hashable
1578
+
1579
+ # Zero-based ending index of the found text, exclusively.
1580
+ # Corresponds to the JSON property `end`
1581
+ # @return [Fixnum]
1582
+ attr_accessor :end
1583
+
1584
+ # The type of information stored in this text range. For example,
1585
+ # HumanName, BirthDate, or Address.
1586
+ # Corresponds to the JSON property `infoType`
1587
+ # @return [String]
1588
+ attr_accessor :info_type
1589
+
1590
+ # The snippet of the sensitive text. This field is only populated during
1591
+ # deidentification if `store_quote` is set to true in DeidentifyConfig.
1592
+ # Corresponds to the JSON property `quote`
1593
+ # @return [String]
1594
+ attr_accessor :quote
1595
+
1596
+ # Zero-based starting index of the found text, inclusively.
1597
+ # Corresponds to the JSON property `start`
1598
+ # @return [Fixnum]
1599
+ attr_accessor :start
1600
+
1601
+ def initialize(**args)
1602
+ update!(**args)
1603
+ end
1604
+
1605
+ # Update properties of this object
1606
+ def update!(**args)
1607
+ @end = args[:end] if args.key?(:end)
1608
+ @info_type = args[:info_type] if args.key?(:info_type)
1609
+ @quote = args[:quote] if args.key?(:quote)
1610
+ @start = args[:start] if args.key?(:start)
1611
+ end
1612
+ end
1613
+
1614
+ # The BigQuery table for export.
1615
+ class GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination
1616
+ include Google::Apis::Core::Hashable
1617
+
1618
+ # If the destination table already exists and this flag is `TRUE`, the table
1619
+ # is overwritten by the contents of the input store. If the flag is not
1620
+ # set and the destination table already exists, the export call returns an
1621
+ # error.
1622
+ # Corresponds to the JSON property `force`
1623
+ # @return [Boolean]
1624
+ attr_accessor :force
1625
+ alias_method :force?, :force
1626
+
1627
+ # Specifies the schema format to export.
1628
+ # Corresponds to the JSON property `schemaType`
1069
1629
  # @return [String]
1070
- attr_accessor :name
1630
+ attr_accessor :schema_type
1071
1631
 
1072
- # The HL7v2 table this field refers to. For example, PID-15 (Patient's
1073
- # Primary Language) usually refers to table "0296".
1074
- # Corresponds to the JSON property `table`
1632
+ # BigQuery URI to a table, up to 2000 characters long, must be of the form
1633
+ # bq://projectId.bqDatasetId.tableId.
1634
+ # Corresponds to the JSON property `tableUri`
1075
1635
  # @return [String]
1076
- attr_accessor :table
1636
+ attr_accessor :table_uri
1077
1637
 
1078
- # The type of this field. A Type with this name must be defined in an
1079
- # Hl7TypesConfig.
1080
- # Corresponds to the JSON property `type`
1638
+ def initialize(**args)
1639
+ update!(**args)
1640
+ end
1641
+
1642
+ # Update properties of this object
1643
+ def update!(**args)
1644
+ @force = args[:force] if args.key?(:force)
1645
+ @schema_type = args[:schema_type] if args.key?(:schema_type)
1646
+ @table_uri = args[:table_uri] if args.key?(:table_uri)
1647
+ end
1648
+ end
1649
+
1650
+ # The Cloud Storage location for export.
1651
+ class GoogleCloudHealthcareV1beta1AnnotationGcsDestination
1652
+ include Google::Apis::Core::Hashable
1653
+
1654
+ # The Cloud Storage destination to export to.
1655
+ # URI for a Cloud Storage directory where the server writes result files, in
1656
+ # the format `gs://`bucket-id`/`path/to/destination/dir``. If there is no
1657
+ # trailing slash, the service appends one when composing the object path.
1658
+ # The user is responsible for creating the Cloud Storage bucket referenced in
1659
+ # `uri_prefix`.
1660
+ # Corresponds to the JSON property `uriPrefix`
1081
1661
  # @return [String]
1082
- attr_accessor :type
1662
+ attr_accessor :uri_prefix
1083
1663
 
1084
1664
  def initialize(**args)
1085
1665
  update!(**args)
@@ -1087,42 +1667,34 @@ module Google
1087
1667
 
1088
1668
  # Update properties of this object
1089
1669
  def update!(**args)
1090
- @max_occurs = args[:max_occurs] if args.key?(:max_occurs)
1091
- @min_occurs = args[:min_occurs] if args.key?(:min_occurs)
1092
- @name = args[:name] if args.key?(:name)
1093
- @table = args[:table] if args.key?(:table)
1094
- @type = args[:type] if args.key?(:type)
1670
+ @uri_prefix = args[:uri_prefix] if args.key?(:uri_prefix)
1095
1671
  end
1096
1672
  end
1097
1673
 
1098
- # Specifies FHIR paths to match, and how to handle de-identification of
1099
- # matching fields.
1100
- class FieldMetadata
1674
+ # Specifies the configuration for importing data from Cloud Storage.
1675
+ class GoogleCloudHealthcareV1beta1AnnotationGcsSource
1101
1676
  include Google::Apis::Core::Hashable
1102
1677
 
1103
- # Deidentify action for one field.
1104
- # Corresponds to the JSON property `action`
1678
+ # Points to a Cloud Storage URI containing file(s) with
1679
+ # content only. The URI must be in the following format:
1680
+ # `gs://`bucket_id`/`object_id``. The URI can include wildcards in
1681
+ # `object_id` and thus identify multiple files. Supported wildcards:
1682
+ # '*' to match 0 or more non-separator characters
1683
+ # '**' to match 0 or more characters (including separators). Must be used
1684
+ # at
1685
+ # the end of a path and with no other wildcards in the
1686
+ # path. Can also be used with a file extension (such as .dcm), which
1687
+ # imports all files with the extension in the specified directory and
1688
+ # its sub-directories. For example,
1689
+ # `gs://my-bucket/my-directory/**.json` imports all files with .json
1690
+ # extensions in `my-directory/` and its sub-directories.
1691
+ # '?' to match 1 character
1692
+ # All other URI formats are invalid.
1693
+ # Files matching the wildcard are expected to contain content only, no
1694
+ # metadata.
1695
+ # Corresponds to the JSON property `uri`
1105
1696
  # @return [String]
1106
- attr_accessor :action
1107
-
1108
- # List of paths to FHIR fields to redact. Each path is a
1109
- # period-separated list where each component is either a field name or
1110
- # FHIR type name. All types begin with an upper case letter. For example,
1111
- # the resource field "Patient.Address.city", which uses a string type,
1112
- # can be matched by "Patient.Address.String". Path also supports partial
1113
- # matching. For example, "Patient.Address.city" can be matched by
1114
- # "Address.city" (Patient omitted). Partial matching and type matching
1115
- # can be combined. For example, "Patient.Address.city" can be matched by
1116
- # "Address.String". For "choice" types (those defined in the FHIR spec
1117
- # with the form: field[x]), use two separate components. For example,
1118
- # "deceasedAge.unit" is matched by "Deceased.Age.unit". Supported types
1119
- # are: AdministrativeGenderCode, Code, Date, DateTime, Decimal,
1120
- # HumanName, Id, LanguageCode, Markdown, Oid, String, Uri, Uuid, Xhtml.
1121
- # The sub-type for HumanName, such as HumanName.given or
1122
- # HumanName.family, can be omitted.
1123
- # Corresponds to the JSON property `paths`
1124
- # @return [Array<String>]
1125
- attr_accessor :paths
1697
+ attr_accessor :uri
1126
1698
 
1127
1699
  def initialize(**args)
1128
1700
  update!(**args)
@@ -1130,8 +1702,7 @@ module Google
1130
1702
 
1131
1703
  # Update properties of this object
1132
1704
  def update!(**args)
1133
- @action = args[:action] if args.key?(:action)
1134
- @paths = args[:paths] if args.key?(:paths)
1705
+ @uri = args[:uri] if args.key?(:uri)
1135
1706
  end
1136
1707
  end
1137
1708
 
@@ -1824,6 +2395,32 @@ module Google
1824
2395
  end
1825
2396
  end
1826
2397
 
2398
+ # Image annotation.
2399
+ class ImageAnnotation
2400
+ include Google::Apis::Core::Hashable
2401
+
2402
+ # The list of polygons outlining the sensitive regions in the image.
2403
+ # Corresponds to the JSON property `boundingPolys`
2404
+ # @return [Array<Google::Apis::HealthcareV1beta1::BoundingPoly>]
2405
+ attr_accessor :bounding_polys
2406
+
2407
+ # 0-based index of the image frame. For example, an image frame in a DICOM
2408
+ # instance.
2409
+ # Corresponds to the JSON property `frameIndex`
2410
+ # @return [Fixnum]
2411
+ attr_accessor :frame_index
2412
+
2413
+ def initialize(**args)
2414
+ update!(**args)
2415
+ end
2416
+
2417
+ # Update properties of this object
2418
+ def update!(**args)
2419
+ @bounding_polys = args[:bounding_polys] if args.key?(:bounding_polys)
2420
+ @frame_index = args[:frame_index] if args.key?(:frame_index)
2421
+ end
2422
+ end
2423
+
1827
2424
  # Specifies how to handle de-identification of image pixels.
1828
2425
  class ImageConfig
1829
2426
  include Google::Apis::Core::Hashable
@@ -1843,6 +2440,101 @@ module Google
1843
2440
  end
1844
2441
  end
1845
2442
 
2443
+ # Final response of importing
2444
+ # Annotations in
2445
+ # partial or total failure case. This structure is included in the
2446
+ # error
2447
+ # details. It is only included when the operation
2448
+ # finishes.
2449
+ class ImportAnnotationsErrorDetails
2450
+ include Google::Apis::Core::Hashable
2451
+
2452
+ # The annotation_store that the annotations were imported to. The name
2453
+ # is in the format
2454
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
2455
+ # annotationStores/`annotation_store_id``.
2456
+ # Corresponds to the JSON property `annotationStore`
2457
+ # @return [String]
2458
+ attr_accessor :annotation_store
2459
+
2460
+ # The number of annotations that had errors.
2461
+ # Corresponds to the JSON property `errorCount`
2462
+ # @return [Fixnum]
2463
+ attr_accessor :error_count
2464
+
2465
+ # The number of annotations that have been imported.
2466
+ # Corresponds to the JSON property `successCount`
2467
+ # @return [Fixnum]
2468
+ attr_accessor :success_count
2469
+
2470
+ def initialize(**args)
2471
+ update!(**args)
2472
+ end
2473
+
2474
+ # Update properties of this object
2475
+ def update!(**args)
2476
+ @annotation_store = args[:annotation_store] if args.key?(:annotation_store)
2477
+ @error_count = args[:error_count] if args.key?(:error_count)
2478
+ @success_count = args[:success_count] if args.key?(:success_count)
2479
+ end
2480
+ end
2481
+
2482
+ # Request to import
2483
+ # Annotations. The
2484
+ # Annotations to be imported must have client-supplied resource names which
2485
+ # indicate the annotation resource. The import operation is not atomic. If a
2486
+ # failure occurs, any annotations already imported are not removed.
2487
+ class ImportAnnotationsRequest
2488
+ include Google::Apis::Core::Hashable
2489
+
2490
+ # Specifies the configuration for importing data from Cloud Storage.
2491
+ # Corresponds to the JSON property `gcsSource`
2492
+ # @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsSource]
2493
+ attr_accessor :gcs_source
2494
+
2495
+ def initialize(**args)
2496
+ update!(**args)
2497
+ end
2498
+
2499
+ # Update properties of this object
2500
+ def update!(**args)
2501
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
2502
+ end
2503
+ end
2504
+
2505
+ # Final response of importing
2506
+ # Annotations in
2507
+ # successful case. This structure is included in the
2508
+ # response. It is only included
2509
+ # when the operation finishes.
2510
+ class ImportAnnotationsResponse
2511
+ include Google::Apis::Core::Hashable
2512
+
2513
+ # The annotation_store that the annotations were imported to. The name
2514
+ # is in the format
2515
+ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
2516
+ # annotationStores/`annotation_store_id``.
2517
+ # Corresponds to the JSON property `annotationStore`
2518
+ # @return [String]
2519
+ attr_accessor :annotation_store
2520
+
2521
+ # The number of the input annotations. All input have been imported
2522
+ # successfully.
2523
+ # Corresponds to the JSON property `successCount`
2524
+ # @return [Fixnum]
2525
+ attr_accessor :success_count
2526
+
2527
+ def initialize(**args)
2528
+ update!(**args)
2529
+ end
2530
+
2531
+ # Update properties of this object
2532
+ def update!(**args)
2533
+ @annotation_store = args[:annotation_store] if args.key?(:annotation_store)
2534
+ @success_count = args[:success_count] if args.key?(:success_count)
2535
+ end
2536
+ end
2537
+
1846
2538
  # Returns the errors encountered during DICOM store import.
1847
2539
  class ImportDicomDataErrorDetails
1848
2540
  include Google::Apis::Core::Hashable
@@ -1925,6 +2617,59 @@ module Google
1925
2617
  end
1926
2618
  end
1927
2619
 
2620
+ # Specifies how to use infoTypes for evaluation. For example, a user might
2621
+ # only want to evaluate `PERSON`, `LOCATION`, and `AGE`.
2622
+ class InfoTypeConfig
2623
+ include Google::Apis::Core::Hashable
2624
+
2625
+ # List of infoTypes to be filtered.
2626
+ # Corresponds to the JSON property `evaluateList`
2627
+ # @return [Google::Apis::HealthcareV1beta1::FilterList]
2628
+ attr_accessor :evaluate_list
2629
+
2630
+ # List of infoTypes to be filtered.
2631
+ # Corresponds to the JSON property `ignoreList`
2632
+ # @return [Google::Apis::HealthcareV1beta1::FilterList]
2633
+ attr_accessor :ignore_list
2634
+
2635
+ # If `TRUE`, infoTypes described by `filter` are used for evaluation.
2636
+ # Otherwise, infoTypes are not considered for evaluation.
2637
+ # For example:
2638
+ # * Annotated text:
2639
+ # "Toronto is a location"
2640
+ # * Finding 1:
2641
+ # ``"infoType": "PERSON", "quote": "Toronto", "start": 0, "end": 7``
2642
+ # * Finding 2:
2643
+ # ``"infoType": "CITY", "quote": "Toronto", "start": 0, "end": 7``
2644
+ # * Finding 3:
2645
+ # ````
2646
+ # * Ground truth:
2647
+ # ``"infoType": "LOCATION", "quote": "Toronto", "start": 0, "end": 7``
2648
+ # When `strict_matching` is `TRUE`:
2649
+ # * Finding 1: 1 false positive
2650
+ # * Finding 2: 1 false positive
2651
+ # * Finding 3: 1 false negative
2652
+ # When `strict_matching` is `FALSE`:
2653
+ # * Finding 1: 1 true positive
2654
+ # * Finding 2: 1 true positive
2655
+ # * Finding 3: 1 false negative
2656
+ # Corresponds to the JSON property `strictMatching`
2657
+ # @return [Boolean]
2658
+ attr_accessor :strict_matching
2659
+ alias_method :strict_matching?, :strict_matching
2660
+
2661
+ def initialize(**args)
2662
+ update!(**args)
2663
+ end
2664
+
2665
+ # Update properties of this object
2666
+ def update!(**args)
2667
+ @evaluate_list = args[:evaluate_list] if args.key?(:evaluate_list)
2668
+ @ignore_list = args[:ignore_list] if args.key?(:ignore_list)
2669
+ @strict_matching = args[:strict_matching] if args.key?(:strict_matching)
2670
+ end
2671
+ end
2672
+
1928
2673
  # A transformation to apply to text that is identified as a specific
1929
2674
  # info_type.
1930
2675
  class InfoTypeTransformation
@@ -2039,6 +2784,63 @@ module Google
2039
2784
  end
2040
2785
  end
2041
2786
 
2787
+ # Lists the Annotation stores
2788
+ # in the given dataset.
2789
+ class ListAnnotationStoresResponse
2790
+ include Google::Apis::Core::Hashable
2791
+
2792
+ # The returned Annotation stores. Won't be more Annotation stores than the
2793
+ # value of page_size in the request.
2794
+ # Corresponds to the JSON property `annotationStores`
2795
+ # @return [Array<Google::Apis::HealthcareV1beta1::AnnotationStore>]
2796
+ attr_accessor :annotation_stores
2797
+
2798
+ # Token to retrieve the next page of results or empty if there are no more
2799
+ # results in the list.
2800
+ # Corresponds to the JSON property `nextPageToken`
2801
+ # @return [String]
2802
+ attr_accessor :next_page_token
2803
+
2804
+ def initialize(**args)
2805
+ update!(**args)
2806
+ end
2807
+
2808
+ # Update properties of this object
2809
+ def update!(**args)
2810
+ @annotation_stores = args[:annotation_stores] if args.key?(:annotation_stores)
2811
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2812
+ end
2813
+ end
2814
+
2815
+ # Lists the Annotations in the specified
2816
+ # Annotation store.
2817
+ class ListAnnotationsResponse
2818
+ include Google::Apis::Core::Hashable
2819
+
2820
+ # The returned Annotations. Won't be more values than the value of
2821
+ # page_size in the request. See `AnnotationView` in the request for
2822
+ # populated fields.
2823
+ # Corresponds to the JSON property `annotations`
2824
+ # @return [Array<Google::Apis::HealthcareV1beta1::Annotation>]
2825
+ attr_accessor :annotations
2826
+
2827
+ # Token to retrieve the next page of results or empty if there are no more
2828
+ # results in the list.
2829
+ # Corresponds to the JSON property `nextPageToken`
2830
+ # @return [String]
2831
+ attr_accessor :next_page_token
2832
+
2833
+ def initialize(**args)
2834
+ update!(**args)
2835
+ end
2836
+
2837
+ # Update properties of this object
2838
+ def update!(**args)
2839
+ @annotations = args[:annotations] if args.key?(:annotations)
2840
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2841
+ end
2842
+ end
2843
+
2042
2844
  # Lists the available datasets.
2043
2845
  class ListDatasetsResponse
2044
2846
  include Google::Apis::Core::Hashable
@@ -2784,6 +3586,25 @@ module Google
2784
3586
  end
2785
3587
  end
2786
3588
 
3589
+ # Resource level annotation.
3590
+ class ResourceAnnotation
3591
+ include Google::Apis::Core::Hashable
3592
+
3593
+ # A description of the annotation record.
3594
+ # Corresponds to the JSON property `label`
3595
+ # @return [String]
3596
+ attr_accessor :label
3597
+
3598
+ def initialize(**args)
3599
+ update!(**args)
3600
+ end
3601
+
3602
+ # Update properties of this object
3603
+ def update!(**args)
3604
+ @label = args[:label] if args.key?(:label)
3605
+ end
3606
+ end
3607
+
2787
3608
  # A list of FHIR resources.
2788
3609
  class Resources
2789
3610
  include Google::Apis::Core::Hashable
@@ -3051,6 +3872,27 @@ module Google
3051
3872
  end
3052
3873
  end
3053
3874
 
3875
+ # A TextAnnotation specifies a text range that includes sensitive information.
3876
+ class SensitiveTextAnnotation
3877
+ include Google::Apis::Core::Hashable
3878
+
3879
+ # Maps from a resource slice. For example, FHIR resource field path to a set
3880
+ # of sensitive text findings. For example,
3881
+ # Appointment.Narrative text1 --> `findings_1, findings_2, findings_3`
3882
+ # Corresponds to the JSON property `details`
3883
+ # @return [Hash<String,Google::Apis::HealthcareV1beta1::Detail>]
3884
+ attr_accessor :details
3885
+
3886
+ def initialize(**args)
3887
+ update!(**args)
3888
+ end
3889
+
3890
+ # Update properties of this object
3891
+ def update!(**args)
3892
+ @details = args[:details] if args.key?(:details)
3893
+ end
3894
+ end
3895
+
3054
3896
  # Request message for `SetIamPolicy` method.
3055
3897
  class SetIamPolicyRequest
3056
3898
  include Google::Apis::Core::Hashable
@@ -3349,6 +4191,31 @@ module Google
3349
4191
  @value = args[:value] if args.key?(:value)
3350
4192
  end
3351
4193
  end
4194
+
4195
+ # A 2D coordinate in an image. The origin is the top-left.
4196
+ class Vertex
4197
+ include Google::Apis::Core::Hashable
4198
+
4199
+ # X coordinate.
4200
+ # Corresponds to the JSON property `x`
4201
+ # @return [Float]
4202
+ attr_accessor :x
4203
+
4204
+ # Y coordinate.
4205
+ # Corresponds to the JSON property `y`
4206
+ # @return [Float]
4207
+ attr_accessor :y
4208
+
4209
+ def initialize(**args)
4210
+ update!(**args)
4211
+ end
4212
+
4213
+ # Update properties of this object
4214
+ def update!(**args)
4215
+ @x = args[:x] if args.key?(:x)
4216
+ @y = args[:y] if args.key?(:y)
4217
+ end
4218
+ end
3352
4219
  end
3353
4220
  end
3354
4221
  end