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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d774fcdf4479d1b3241df7e0c1d6d5d6f1810d98
4
- data.tar.gz: f5a26d7311983192d61efcd8444897c116b6e35a
3
+ metadata.gz: f5d895806bd8758953233b3df3d065b7f88d2f3d
4
+ data.tar.gz: f4f0621e08b8352ae401e317434c82f8d19c75dc
5
5
  SHA512:
6
- metadata.gz: 1539292484a36c83e692bb12a7941a8eb4f9441308171f8a358fdd568733df7ab7ea158752e07f56bee78511522b15ea7462ee503126fd5f266afcefecc6d269
7
- data.tar.gz: f140bf94f4f1df738f9683a51ef15f495fd8007412ebee90e8d2e67bed9fc99838511c72954fdafe786320c5f55c9e1e9ae1ac498d13f1fe42e08019aeb372e4
6
+ metadata.gz: 148336270670ea5460e7299b382dd15a371f2b3eb9992bab42bd53850b6ebcb2fedbcf42bf379fb4fe7164dcb95b8d8b6ed0ad5e93ddf3586b97cad4e32f57cd
7
+ data.tar.gz: 1248e0f489d5ca15fafd5b582a4d2adeb576b0489fcadd8fff05707769cc31973d7b73cd444764957d8d36f4154fe77177b8c0b7be356380aa75fe7ccd8ae1f1
@@ -1,8 +1,11 @@
1
1
  REM This file runs tests for merges, PRs, and nightlies.
2
- REM There are a few rules for what tests are run:
3
- REM * PRs run all non-acceptance tests for every library.
4
- REM * Merges run all non-acceptance tests for every library, and acceptance tests for all altered libraries.
5
- REM * Nightlies run all acceptance tests for every library.
6
- REM Currently only runs tests on 2.5.1
7
2
 
8
- "C:\Program Files\Git\bin\bash.exe" github/google-api-ruby-client/.kokoro/windows.sh
3
+ SET url="https://raw.githubusercontent.com/googleapis/google-cloud-ruby/master/.kokoro/build.bat"
4
+
5
+ SET "download=powershell -C Invoke-WebRequest -Uri %url% -OutFile master-build.bat"
6
+
7
+ SET EXIT_STATUS=1
8
+
9
+ %download% && master-build.bat && SET EXIT_STATUS=0
10
+
11
+ EXIT %EXIT_STATUS%
@@ -1,34 +1,4 @@
1
1
  #!/bin/bash
2
2
 
3
- # This file runs tests for merges, PRs, and nightlies.
4
- # There are a few rules for what tests are run:
5
- # * PRs run all non-acceptance tests for every library.
6
- # * Merges run all non-acceptance tests for every library, and acceptance tests for all altered libraries.
7
- # * Nightlies run all acceptance tests for every library.
8
-
9
- set -eo pipefail
10
-
11
- # Debug: show build environment
12
- env | grep KOKORO
13
-
14
- cd github/google-api-ruby-client/
15
-
16
- versions=($RUBY_VERSIONS)
17
-
18
- # Temporary workaround for a known bundler+docker issue:
19
- # https://github.com/bundler/bundler/issues/6154
20
- export BUNDLE_GEMFILE=
21
-
22
- # Capture failures
23
- EXIT_STATUS=0 # everything passed
24
- function set_failed_status {
25
- EXIT_STATUS=1
26
- }
27
-
28
- for version in "${versions[@]}"; do
29
- rbenv global "$version"
30
- echo "Using Ruby $version"
31
- (bundle update && bundle exec rake) || set_failed_status
32
- done
33
-
34
- exit $EXIT_STATUS
3
+ script_url="https://raw.githubusercontent.com/googleapis/google-cloud-ruby/master/.kokoro/build.sh"
4
+ curl -o master-build.sh $script_url && source master-build.sh
@@ -17,4 +17,9 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-ruby"
17
17
  env_vars: {
18
18
  key: "JOB_TYPE"
19
19
  value: "continuous"
20
- }
20
+ }
21
+
22
+ env_vars: {
23
+ key: "REPO_DIR"
24
+ value: "github/google-api-ruby-client"
25
+ }
@@ -1,3 +1,19 @@
1
1
  # Format: //devtools/kokoro/config/proto/build.proto
2
2
 
3
- build_file: "google-api-ruby-client/.kokoro/build.bat"
3
+ build_file: "google-api-ruby-client/.kokoro/trampoline.bat"
4
+
5
+ # Configure the docker image for kokoro-trampoline.
6
+ env_vars: {
7
+ key: "TRAMPOLINE_IMAGE"
8
+ value: "gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/windows"
9
+ }
10
+
11
+ env_vars: {
12
+ key: "TRAMPOLINE_BUILD_FILE"
13
+ value: "github/google-api-ruby-client/.kokoro/build.bat"
14
+ }
15
+
16
+ env_vars: {
17
+ key: "REPO_DIR"
18
+ value: "google-api-ruby-client"
19
+ }
@@ -1,35 +1,4 @@
1
1
  #!/bin/bash
2
2
 
3
- # This file runs tests for merges, PRs, and nightlies.
4
- # There are a few rules for what tests are run:
5
- # * PRs run all non-acceptance tests for every library.
6
- # * Merges run all non-acceptance tests for every library, and acceptance tests for all altered libraries.
7
- # * Nightlies run all acceptance tests for every library.
8
- # * Currently only runs tests on 2.5.0
9
-
10
- set -eo pipefail
11
-
12
- # Debug: show build environment
13
- env | grep KOKORO
14
-
15
- cd github/google-api-ruby-client/
16
-
17
- # Print out Ruby version
18
- ruby --version
19
-
20
- # Temporary workaround for a known bundler+docker issue:
21
- # https://github.com/bundler/bundler/issues/6154
22
- export BUNDLE_GEMFILE=
23
-
24
- # Capture failures
25
- EXIT_STATUS=0 # everything passed
26
- function set_failed_status {
27
- EXIT_STATUS=1
28
- }
29
-
30
- gem install bundler --version 1.17.3
31
-
32
-
33
- (bundle update && bundle exec rake) || set_failed_status
34
-
35
- exit $EXIT_STATUS
3
+ script_url="https://raw.githubusercontent.com/googleapis/google-cloud-ruby/master/.kokoro/osx.sh"
4
+ curl -o master-osx.sh $script_url && source master-osx.sh
@@ -16,4 +16,9 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-ruby"
16
16
  env_vars: {
17
17
  key: "JOB_TYPE"
18
18
  value: "presubmit"
19
- }
19
+ }
20
+
21
+ env_vars: {
22
+ key: "REPO_DIR"
23
+ value: "github/google-api-ruby-client"
24
+ }
@@ -1,3 +1,19 @@
1
1
  # Format: //devtools/kokoro/config/proto/build.proto
2
2
 
3
- build_file: "google-api-ruby-client/.kokoro/build.bat"
3
+ build_file: "google-api-ruby-client/.kokoro/trampoline.bat"
4
+
5
+ # Configure the docker image for kokoro-trampoline.
6
+ env_vars: {
7
+ key: "TRAMPOLINE_IMAGE"
8
+ value: "gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/windows"
9
+ }
10
+
11
+ env_vars: {
12
+ key: "TRAMPOLINE_BUILD_FILE"
13
+ value: "github/google-api-ruby-client/.kokoro/build.bat"
14
+ }
15
+
16
+ env_vars: {
17
+ key: "REPO_DIR"
18
+ value: "google-api-ruby-client"
19
+ }
@@ -0,0 +1,10 @@
1
+
2
+ SET url="https://raw.githubusercontent.com/googleapis/google-cloud-ruby/master/.kokoro/trampoline.bat"
3
+
4
+ SET "download=powershell -C Invoke-WebRequest -Uri %url% -OutFile master-trampoline.bat"
5
+
6
+ SET EXIT_STATUS=1
7
+
8
+ %download% && master-trampoline.bat && SET EXIT_STATUS=0
9
+
10
+ EXIT %EXIT_STATUS%
@@ -1,24 +1,4 @@
1
1
  #!/bin/bash
2
- # Copyright 2017 Google Inc.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
- set -eo pipefail
16
- # Always run the cleanup script, regardless of the success of bouncing into
17
- # the container.
18
- function cleanup() {
19
- chmod +x ${KOKORO_GFILE_DIR}/trampoline_cleanup.sh
20
- ${KOKORO_GFILE_DIR}/trampoline_cleanup.sh
21
- echo "cleanup";
22
- }
23
- trap cleanup EXIT
24
- python3 "${KOKORO_GFILE_DIR}/trampoline_v1.py"
2
+
3
+ script_url="https://raw.githubusercontent.com/googleapis/google-cloud-ruby/master/.kokoro/trampoline.sh"
4
+ curl -o master-trampoline.sh $script_url && source master-trampoline.sh
@@ -1,3 +1,141 @@
1
+ # 0.29.0
2
+ * Breaking changes:
3
+ * Deleted `logging_v2beta1`
4
+ * Backwards compatible changes:
5
+ * Added `accessapproval_v1beta1`
6
+ * Added `cloudscheduler_v1`
7
+ * Added `commentanalyzer_v1alpha1`
8
+ * Added `datafusion_v1beta1`
9
+ * Added `healthcare_v1beta1`
10
+ * Added `securitycenter_v1`
11
+ * Added `securitycenter_v1beta1`
12
+ * Updated `adexchangebuyer2_v2beta1`
13
+ * Updated `admin_reports_v1`
14
+ * Updated `alertcenter_v1beta1`
15
+ * Updated `androiddeviceprovisioning_v1`
16
+ * Updated `androidenterprise_v1`
17
+ * Updated `androidmanagement_v1`
18
+ * Updated `androidpublisher_v2`
19
+ * Updated `androidpublisher_v3`
20
+ * Updated `appengine_v1`
21
+ * Updated `appengine_v1beta`
22
+ * Updated `appsactivity_v1`
23
+ * Updated `bigquery_v2`
24
+ * Updated `bigtableadmin_v1`
25
+ * Updated `bigtableadmin_v2`
26
+ * Updated `binaryauthorization_v1beta1`
27
+ * Updated `calendar_v3`
28
+ * Updated `classroom_v1`
29
+ * Updated `cloudasset_v1`
30
+ * Updated `cloudasset_v1beta1`
31
+ * Updated `cloudbilling_v1`
32
+ * Updated `cloudbuild_v1alpha1`
33
+ * Updated `clouderrorreporting_v1beta1`
34
+ * Updated `cloudfunctions_v1`
35
+ * Updated `cloudfunctions_v1beta2`
36
+ * Updated `cloudiot_v1`
37
+ * Updated `cloudkms_v1`
38
+ * Updated `cloudprivatecatalogproducer_v1beta1`
39
+ * Updated `cloudresourcemanager_v1`
40
+ * Updated `cloudresourcemanager_v1beta1`
41
+ * Updated `cloudresourcemanager_v2`
42
+ * Updated `cloudresourcemanager_v2beta1`
43
+ * Updated `cloudscheduler_v1beta1`
44
+ * Updated `cloudsearch_v1`
45
+ * Updated `cloudtasks_v2`
46
+ * Updated `cloudtasks_v2beta2`
47
+ * Updated `cloudtasks_v2beta3`
48
+ * Updated `compute_alpha`
49
+ * Updated `compute_beta`
50
+ * Updated `compute_v1`
51
+ * Updated `container_v1`
52
+ * Updated `container_v1beta1`
53
+ * Updated `containeranalysis_v1alpha1`
54
+ * Updated `containeranalysis_v1beta1`
55
+ * Updated `content_v2`
56
+ * Updated `content_v2_1`
57
+ * Updated `dataflow_v1b3`
58
+ * Updated `dataproc_v1`
59
+ * Updated `dataproc_v1beta2`
60
+ * Updated `datastore_v1`
61
+ * Updated `datastore_v1beta1`
62
+ * Updated `datastore_v1beta3`
63
+ * Updated `dialogflow_v2`
64
+ * Updated `dialogflow_v2beta1`
65
+ * Updated `dlp_v2`
66
+ * Updated `dns_v1`
67
+ * Updated `dns_v1beta2`
68
+ * Updated `dns_v2beta1`
69
+ * Updated `docs_v1`
70
+ * Updated `doubleclickbidmanager_v1`
71
+ * Updated `drive_v2`
72
+ * Updated `drive_v3`
73
+ * Updated `driveactivity_v2`
74
+ * Updated `file_v1`
75
+ * Updated `file_v1beta1`
76
+ * Updated `firebasedynamiclinks_v1`
77
+ * Updated `firebasehosting_v1beta1`
78
+ * Updated `firebaserules_v1`
79
+ * Updated `firestore_v1`
80
+ * Updated `firestore_v1beta1`
81
+ * Updated `firestore_v1beta2`
82
+ * Updated `fitness_v1`
83
+ * Updated `games_v1`
84
+ * Updated `gmail_v1`
85
+ * Updated `iap_v1`
86
+ * Updated `iap_v1beta1`
87
+ * Updated `jobs_v2`
88
+ * Updated `jobs_v3`
89
+ * Updated `jobs_v3p1beta1`
90
+ * Updated `language_v1`
91
+ * Updated `language_v1beta2`
92
+ * Updated `ml_v1`
93
+ * Updated `monitoring_v3`
94
+ * Updated `oauth2_v1`
95
+ * Updated `oauth2_v2`
96
+ * Updated `oslogin_v1`
97
+ * Updated `oslogin_v1alpha`
98
+ * Updated `oslogin_v1beta`
99
+ * Updated `people_v1`
100
+ * Updated `plus_domains_v1`
101
+ * Updated `plus_v1`
102
+ * Updated `poly_v1`
103
+ * Updated `pubsub_v1`
104
+ * Updated `pubsub_v1beta2`
105
+ * Updated `remotebuildexecution_v1`
106
+ * Updated `remotebuildexecution_v1alpha`
107
+ * Updated `remotebuildexecution_v2`
108
+ * Updated `run_v1alpha1`
109
+ * Updated `runtimeconfig_v1beta1`
110
+ * Updated `servicebroker_v1`
111
+ * Updated `servicebroker_v1alpha1`
112
+ * Updated `servicebroker_v1beta1`
113
+ * Updated `serviceconsumermanagement_v1`
114
+ * Updated `servicecontrol_v1`
115
+ * Updated `servicemanagement_v1`
116
+ * Updated `servicenetworking_v1`
117
+ * Updated `servicenetworking_v1beta`
118
+ * Updated `serviceusage_v1`
119
+ * Updated `serviceusage_v1beta1`
120
+ * Updated `sourcerepo_v1`
121
+ * Updated `spanner_v1`
122
+ * Updated `sqladmin_v1beta4`
123
+ * Updated `storage_v1`
124
+ * Updated `storagetransfer_v1`
125
+ * Updated `testing_v1`
126
+ * Updated `texttospeech_v1beta1`
127
+ * Updated `toolresults_v1beta3`
128
+ * Updated `tpu_v1`
129
+ * Updated `tpu_v1alpha1`
130
+ * Updated `vault_v1`
131
+ * Updated `vision_v1`
132
+ * Updated `vision_v1p1beta1`
133
+ * Updated `vision_v1p2beta1`
134
+ * Updated `webmasters_v3`
135
+ * Updated `youtube_partner_v1`
136
+ * Updated `youtube_v3`
137
+ * Updated `youtubereporting_v1`
138
+
1
139
  # 0.28.7
2
140
  * Backwards compatible changes:
3
141
  * Added `run_v1`
data/Rakefile CHANGED
@@ -1,3 +1,34 @@
1
1
  require "bundler/gem_tasks"
2
2
 
3
3
  task default: :spec
4
+
5
+ namespace :kokoro do
6
+ task :load_env_vars do
7
+ service_account = "#{ENV['KOKORO_GFILE_DIR']}/service-account.json"
8
+ ENV["GOOGLE_APPLICATION_CREDENTIALS"] = service_account
9
+ filename = "#{ENV['KOKORO_GFILE_DIR']}/env_vars.json"
10
+ env_vars = JSON.parse File.read(filename)
11
+ env_vars.each { |k, v| ENV[k] = v }
12
+ end
13
+
14
+ task :presubmit do
15
+ Rake::Task["spec"].invoke
16
+ end
17
+
18
+ task :continuous do
19
+ Rake::Task["spec"].invoke
20
+ end
21
+
22
+ task :nightly do
23
+ Rake::Task["spec"].invoke
24
+ end
25
+ end
26
+
27
+ def header str, token = "#"
28
+ line_length = str.length + 8
29
+ puts ""
30
+ puts token * line_length
31
+ puts "#{token * 3} #{str} #{token * 3}"
32
+ puts token * line_length
33
+ puts ""
34
+ end
@@ -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/accessapproval_v1beta1/service.rb'
16
+ require 'google/apis/accessapproval_v1beta1/classes.rb'
17
+ require 'google/apis/accessapproval_v1beta1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Access Approval API
22
+ #
23
+ # An API for controlling access to data by Google personnel.
24
+ #
25
+ # @see https://cloud.google.com/access-approval/docs
26
+ module AccessapprovalV1beta1
27
+ VERSION = 'V1beta1'
28
+ REVISION = '20190412'
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,306 @@
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 AccessapprovalV1beta1
24
+
25
+ # Settings on a Project/Folder/Organization related to Access Approval.
26
+ class AccessApprovalSettings
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # The resource name of the settings. Format is one of:
30
+ # <ol>
31
+ # <li>"projects/`project_id`/accessApprovalSettings"</li>
32
+ # <li>"folders/`folder_id`/accessApprovalSettings"</li>
33
+ # <li>"organizations/`organization_id`/accessApprovalSettings"</li>
34
+ # <ol>
35
+ # Corresponds to the JSON property `name`
36
+ # @return [String]
37
+ attr_accessor :name
38
+
39
+ # A list of email addresses to which notifications relating to approval
40
+ # requests should be sent. Notifications relating to a resource will be sent
41
+ # to all emails in the settings of ancestor resources of that resource.
42
+ # Corresponds to the JSON property `notificationEmails`
43
+ # @return [Array<String>]
44
+ attr_accessor :notification_emails
45
+
46
+ def initialize(**args)
47
+ update!(**args)
48
+ end
49
+
50
+ # Update properties of this object
51
+ def update!(**args)
52
+ @name = args[:name] if args.key?(:name)
53
+ @notification_emails = args[:notification_emails] if args.key?(:notification_emails)
54
+ end
55
+ end
56
+
57
+ # Home office and physical location of the principal.
58
+ class AccessLocations
59
+ include Google::Apis::Core::Hashable
60
+
61
+ # The "home office" location of the principal. A two-letter country code
62
+ # (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some
63
+ # limited situations Google systems may refer refer to a region code instead
64
+ # of a country code.
65
+ # Possible Region Codes:
66
+ # <ol>
67
+ # <li>ASI: Asia</li>
68
+ # <li>EUR: Europe</li>
69
+ # <li>OCE: Oceania</li>
70
+ # <li>AFR: Africa</li>
71
+ # <li>NAM: North America</li>
72
+ # <li>SAM: South America</li>
73
+ # <li>ANT: Antarctica</li>
74
+ # <li>ANY: Any location</li>
75
+ # </ol>
76
+ # Corresponds to the JSON property `principalOfficeCountry`
77
+ # @return [String]
78
+ attr_accessor :principal_office_country
79
+
80
+ # Physical location of the principal at the time of the access. A
81
+ # two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
82
+ # a region code. In some limited situations Google systems may refer refer to
83
+ # a region code instead of a country code.
84
+ # Possible Region Codes:
85
+ # <ol>
86
+ # <li>ASI: Asia</li>
87
+ # <li>EUR: Europe</li>
88
+ # <li>OCE: Oceania</li>
89
+ # <li>AFR: Africa</li>
90
+ # <li>NAM: North America</li>
91
+ # <li>SAM: South America</li>
92
+ # <li>ANT: Antarctica</li>
93
+ # <li>ANY: Any location</li>
94
+ # </ol>
95
+ # Corresponds to the JSON property `principalPhysicalLocationCountry`
96
+ # @return [String]
97
+ attr_accessor :principal_physical_location_country
98
+
99
+ def initialize(**args)
100
+ update!(**args)
101
+ end
102
+
103
+ # Update properties of this object
104
+ def update!(**args)
105
+ @principal_office_country = args[:principal_office_country] if args.key?(:principal_office_country)
106
+ @principal_physical_location_country = args[:principal_physical_location_country] if args.key?(:principal_physical_location_country)
107
+ end
108
+ end
109
+
110
+ #
111
+ class AccessReason
112
+ include Google::Apis::Core::Hashable
113
+
114
+ # More detail about certain reason types. See comments for each type above.
115
+ # Corresponds to the JSON property `detail`
116
+ # @return [String]
117
+ attr_accessor :detail
118
+
119
+ # Type of access justification.
120
+ # Corresponds to the JSON property `type`
121
+ # @return [String]
122
+ attr_accessor :type
123
+
124
+ def initialize(**args)
125
+ update!(**args)
126
+ end
127
+
128
+ # Update properties of this object
129
+ def update!(**args)
130
+ @detail = args[:detail] if args.key?(:detail)
131
+ @type = args[:type] if args.key?(:type)
132
+ end
133
+ end
134
+
135
+ # A request for the customer to approve access to a resource.
136
+ class ApprovalRequest
137
+ include Google::Apis::Core::Hashable
138
+
139
+ # A decision that has been made to approve access to a resource.
140
+ # Corresponds to the JSON property `approve`
141
+ # @return [Google::Apis::AccessapprovalV1beta1::ApproveDecision]
142
+ attr_accessor :approve
143
+
144
+ # A decision that has been made to dismiss an approval request.
145
+ # Corresponds to the JSON property `dismiss`
146
+ # @return [Google::Apis::AccessapprovalV1beta1::DismissDecision]
147
+ attr_accessor :dismiss
148
+
149
+ # The resource name of the request. Format is
150
+ # "`projects|folders|organizations`/`id`/approvalRequests/`approval_request_id`".
151
+ # Corresponds to the JSON property `name`
152
+ # @return [String]
153
+ attr_accessor :name
154
+
155
+ # The time at which approval was requested.
156
+ # Corresponds to the JSON property `requestTime`
157
+ # @return [String]
158
+ attr_accessor :request_time
159
+
160
+ # The requested expiration for the approval. If the request is approved,
161
+ # access will be granted from the time of approval until the expiration time.
162
+ # Corresponds to the JSON property `requestedExpiration`
163
+ # @return [String]
164
+ attr_accessor :requested_expiration
165
+
166
+ # Home office and physical location of the principal.
167
+ # Corresponds to the JSON property `requestedLocations`
168
+ # @return [Google::Apis::AccessapprovalV1beta1::AccessLocations]
169
+ attr_accessor :requested_locations
170
+
171
+ # The justification for which approval is being requested.
172
+ # Corresponds to the JSON property `requestedReason`
173
+ # @return [Google::Apis::AccessapprovalV1beta1::AccessReason]
174
+ attr_accessor :requested_reason
175
+
176
+ # The resource for which approval is being requested. The format of the
177
+ # resource name is defined at
178
+ # https://cloud.google.com/apis/design/resource_names. The resource name here
179
+ # may either be a "full" resource name (e.g.
180
+ # "//library.googleapis.com/shelves/shelf1/books/book2") or a "relative"
181
+ # resource name (e.g. "shelves/shelf1/books/book2") as described in the
182
+ # resource name specification.
183
+ # Corresponds to the JSON property `requestedResourceName`
184
+ # @return [String]
185
+ attr_accessor :requested_resource_name
186
+
187
+ def initialize(**args)
188
+ update!(**args)
189
+ end
190
+
191
+ # Update properties of this object
192
+ def update!(**args)
193
+ @approve = args[:approve] if args.key?(:approve)
194
+ @dismiss = args[:dismiss] if args.key?(:dismiss)
195
+ @name = args[:name] if args.key?(:name)
196
+ @request_time = args[:request_time] if args.key?(:request_time)
197
+ @requested_expiration = args[:requested_expiration] if args.key?(:requested_expiration)
198
+ @requested_locations = args[:requested_locations] if args.key?(:requested_locations)
199
+ @requested_reason = args[:requested_reason] if args.key?(:requested_reason)
200
+ @requested_resource_name = args[:requested_resource_name] if args.key?(:requested_resource_name)
201
+ end
202
+ end
203
+
204
+ # Request to approve an ApprovalRequest.
205
+ class ApproveApprovalRequestMessage
206
+ include Google::Apis::Core::Hashable
207
+
208
+ # The expiration time of this approval.
209
+ # Corresponds to the JSON property `expireTime`
210
+ # @return [String]
211
+ attr_accessor :expire_time
212
+
213
+ def initialize(**args)
214
+ update!(**args)
215
+ end
216
+
217
+ # Update properties of this object
218
+ def update!(**args)
219
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
220
+ end
221
+ end
222
+
223
+ # A decision that has been made to approve access to a resource.
224
+ class ApproveDecision
225
+ include Google::Apis::Core::Hashable
226
+
227
+ # The time at which approval was granted.
228
+ # Corresponds to the JSON property `approveTime`
229
+ # @return [String]
230
+ attr_accessor :approve_time
231
+
232
+ # The time at which the approval expires.
233
+ # Corresponds to the JSON property `expireTime`
234
+ # @return [String]
235
+ attr_accessor :expire_time
236
+
237
+ def initialize(**args)
238
+ update!(**args)
239
+ end
240
+
241
+ # Update properties of this object
242
+ def update!(**args)
243
+ @approve_time = args[:approve_time] if args.key?(:approve_time)
244
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
245
+ end
246
+ end
247
+
248
+ # Request to dismiss an approval request.
249
+ class DismissApprovalRequestMessage
250
+ include Google::Apis::Core::Hashable
251
+
252
+ def initialize(**args)
253
+ update!(**args)
254
+ end
255
+
256
+ # Update properties of this object
257
+ def update!(**args)
258
+ end
259
+ end
260
+
261
+ # A decision that has been made to dismiss an approval request.
262
+ class DismissDecision
263
+ include Google::Apis::Core::Hashable
264
+
265
+ # The time at which the approval request was dismissed.
266
+ # Corresponds to the JSON property `dismissTime`
267
+ # @return [String]
268
+ attr_accessor :dismiss_time
269
+
270
+ def initialize(**args)
271
+ update!(**args)
272
+ end
273
+
274
+ # Update properties of this object
275
+ def update!(**args)
276
+ @dismiss_time = args[:dismiss_time] if args.key?(:dismiss_time)
277
+ end
278
+ end
279
+
280
+ # Response to listing of ApprovalRequest objects.
281
+ class ListApprovalRequestsResponse
282
+ include Google::Apis::Core::Hashable
283
+
284
+ # Approval request details.
285
+ # Corresponds to the JSON property `approvalRequests`
286
+ # @return [Array<Google::Apis::AccessapprovalV1beta1::ApprovalRequest>]
287
+ attr_accessor :approval_requests
288
+
289
+ # Token to retrieve the next page of results, or empty if there are no more.
290
+ # Corresponds to the JSON property `nextPageToken`
291
+ # @return [String]
292
+ attr_accessor :next_page_token
293
+
294
+ def initialize(**args)
295
+ update!(**args)
296
+ end
297
+
298
+ # Update properties of this object
299
+ def update!(**args)
300
+ @approval_requests = args[:approval_requests] if args.key?(:approval_requests)
301
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
302
+ end
303
+ end
304
+ end
305
+ end
306
+ end