google-api-client 0.19.8 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (355) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +7 -4
  3. data/CHANGELOG.md +106 -0
  4. data/MIGRATING.md +3 -3
  5. data/README.md +6 -9
  6. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1 -7
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +0 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +2 -8
  10. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +84 -9
  12. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +33 -0
  13. data/generated/google/apis/admin_directory_v1.rb +1 -1
  14. data/generated/google/apis/admin_directory_v1/classes.rb +11 -10
  15. data/generated/google/apis/admin_directory_v1/service.rb +21 -7
  16. data/generated/google/apis/analytics_v3.rb +1 -1
  17. data/generated/google/apis/analytics_v3/service.rb +1 -1
  18. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  19. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +52 -35
  20. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +33 -20
  21. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  22. data/generated/google/apis/androidenterprise_v1/classes.rb +44 -0
  23. data/generated/google/apis/androidenterprise_v1/representations.rb +17 -0
  24. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  25. data/generated/google/apis/androidmanagement_v1/classes.rb +66 -0
  26. data/generated/google/apis/androidmanagement_v1/representations.rb +10 -0
  27. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  28. data/generated/google/apis/androidpublisher_v2/classes.rb +37 -72
  29. data/generated/google/apis/androidpublisher_v2/representations.rb +5 -34
  30. data/generated/google/apis/androidpublisher_v2/service.rb +6 -52
  31. data/generated/google/apis/appengine_v1.rb +2 -2
  32. data/generated/google/apis/appengine_v1/classes.rb +82 -7
  33. data/generated/google/apis/appengine_v1/representations.rb +32 -0
  34. data/generated/google/apis/appengine_v1/service.rb +2 -2
  35. data/generated/google/apis/appengine_v1alpha.rb +2 -2
  36. data/generated/google/apis/appengine_v1alpha/classes.rb +35 -0
  37. data/generated/google/apis/appengine_v1alpha/representations.rb +16 -0
  38. data/generated/google/apis/appengine_v1alpha/service.rb +2 -2
  39. data/generated/google/apis/appengine_v1beta.rb +2 -2
  40. data/generated/google/apis/appengine_v1beta/classes.rb +51 -7
  41. data/generated/google/apis/appengine_v1beta/representations.rb +17 -0
  42. data/generated/google/apis/appengine_v1beta/service.rb +2 -2
  43. data/generated/google/apis/appengine_v1beta4.rb +2 -2
  44. data/generated/google/apis/appengine_v1beta4/classes.rb +50 -6
  45. data/generated/google/apis/appengine_v1beta4/representations.rb +17 -0
  46. data/generated/google/apis/appengine_v1beta4/service.rb +2 -2
  47. data/generated/google/apis/appengine_v1beta5.rb +2 -2
  48. data/generated/google/apis/appengine_v1beta5/classes.rb +50 -6
  49. data/generated/google/apis/appengine_v1beta5/representations.rb +17 -0
  50. data/generated/google/apis/appengine_v1beta5/service.rb +2 -2
  51. data/generated/google/apis/bigquery_v2.rb +1 -1
  52. data/generated/google/apis/bigquery_v2/classes.rb +19 -11
  53. data/generated/google/apis/bigquery_v2/representations.rb +4 -3
  54. data/generated/google/apis/bigquery_v2/service.rb +9 -1
  55. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  56. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +9 -6
  57. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +1 -0
  58. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1 -1
  59. data/generated/google/apis/calendar_v3.rb +1 -1
  60. data/generated/google/apis/calendar_v3/classes.rb +3 -1
  61. data/generated/google/apis/{firebaseremoteconfig_v1.rb → chat_v1.rb} +8 -9
  62. data/generated/google/apis/chat_v1/classes.rb +890 -0
  63. data/generated/google/apis/chat_v1/representations.rb +445 -0
  64. data/generated/google/apis/chat_v1/service.rb +344 -0
  65. data/generated/google/apis/cloudbilling_v1.rb +2 -2
  66. data/generated/google/apis/cloudbilling_v1/classes.rb +341 -5
  67. data/generated/google/apis/cloudbilling_v1/representations.rb +103 -0
  68. data/generated/google/apis/cloudbilling_v1/service.rb +217 -10
  69. data/generated/google/apis/cloudbuild_v1.rb +2 -2
  70. data/generated/google/apis/cloudbuild_v1/classes.rb +180 -84
  71. data/generated/google/apis/cloudbuild_v1/representations.rb +35 -0
  72. data/generated/google/apis/cloudbuild_v1/service.rb +25 -25
  73. data/generated/google/apis/cloudiot_v1.rb +2 -2
  74. data/generated/google/apis/cloudiot_v1/classes.rb +13 -142
  75. data/generated/google/apis/cloudiot_v1/representations.rb +0 -32
  76. data/generated/google/apis/cloudiot_v1/service.rb +2 -2
  77. data/generated/google/apis/cloudkms_v1.rb +1 -1
  78. data/generated/google/apis/cloudkms_v1/classes.rb +7 -1
  79. data/generated/google/apis/cloudkms_v1/representations.rb +1 -0
  80. data/generated/google/apis/cloudkms_v1/service.rb +1 -1
  81. data/generated/google/apis/cloudresourcemanager_v1.rb +2 -2
  82. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +2 -2
  83. data/generated/google/apis/cloudresourcemanager_v1/service.rb +4 -5
  84. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +2 -2
  85. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1 -1
  86. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +6 -6
  87. data/generated/google/apis/{clouduseraccounts_beta.rb → cloudresourcemanager_v2.rb} +10 -16
  88. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +821 -0
  89. data/generated/google/apis/cloudresourcemanager_v2/representations.rb +304 -0
  90. data/generated/google/apis/cloudresourcemanager_v2/service.rb +534 -0
  91. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +2 -2
  92. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +1 -1
  93. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  94. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +7 -0
  95. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +1 -0
  96. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  97. data/generated/google/apis/cloudtrace_v1/classes.rb +2 -0
  98. data/generated/google/apis/compute_alpha.rb +1 -1
  99. data/generated/google/apis/compute_alpha/classes.rb +216 -120
  100. data/generated/google/apis/compute_alpha/representations.rb +25 -1
  101. data/generated/google/apis/compute_alpha/service.rb +1354 -1621
  102. data/generated/google/apis/compute_beta.rb +1 -1
  103. data/generated/google/apis/compute_beta/classes.rb +548 -85
  104. data/generated/google/apis/compute_beta/representations.rb +159 -0
  105. data/generated/google/apis/compute_beta/service.rb +1971 -1460
  106. data/generated/google/apis/compute_v1.rb +1 -1
  107. data/generated/google/apis/compute_v1/classes.rb +206 -70
  108. data/generated/google/apis/compute_v1/representations.rb +32 -0
  109. data/generated/google/apis/compute_v1/service.rb +1184 -1278
  110. data/generated/google/apis/container_v1.rb +1 -1
  111. data/generated/google/apis/container_v1/classes.rb +742 -9
  112. data/generated/google/apis/container_v1/representations.rb +90 -0
  113. data/generated/google/apis/container_v1/service.rb +1380 -100
  114. data/generated/google/apis/container_v1beta1.rb +1 -1
  115. data/generated/google/apis/container_v1beta1/classes.rb +191 -138
  116. data/generated/google/apis/container_v1beta1/representations.rb +2 -0
  117. data/generated/google/apis/container_v1beta1/service.rb +236 -231
  118. data/generated/google/apis/content_v2.rb +1 -1
  119. data/generated/google/apis/content_v2/classes.rb +2690 -1540
  120. data/generated/google/apis/content_v2/representations.rb +491 -0
  121. data/generated/google/apis/content_v2/service.rb +684 -0
  122. data/generated/google/apis/content_v2sandbox.rb +1 -1
  123. data/generated/google/apis/content_v2sandbox/classes.rb +2 -1
  124. data/generated/google/apis/dataflow_v1b3.rb +2 -2
  125. data/generated/google/apis/dataflow_v1b3/classes.rb +95 -0
  126. data/generated/google/apis/dataflow_v1b3/representations.rb +36 -0
  127. data/generated/google/apis/dataflow_v1b3/service.rb +1 -1
  128. data/generated/google/apis/dataproc_v1.rb +1 -1
  129. data/generated/google/apis/dataproc_v1/classes.rb +56 -45
  130. data/generated/google/apis/dataproc_v1/representations.rb +1 -0
  131. data/generated/google/apis/dataproc_v1/service.rb +30 -3
  132. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  133. data/generated/google/apis/dataproc_v1beta2/classes.rb +77 -53
  134. data/generated/google/apis/dataproc_v1beta2/representations.rb +2 -0
  135. data/generated/google/apis/dataproc_v1beta2/service.rb +484 -18
  136. data/generated/google/apis/datastore_v1.rb +1 -1
  137. data/generated/google/apis/datastore_v1/classes.rb +372 -0
  138. data/generated/google/apis/datastore_v1/representations.rb +132 -0
  139. data/generated/google/apis/datastore_v1/service.rb +77 -0
  140. data/generated/google/apis/datastore_v1beta1.rb +1 -1
  141. data/generated/google/apis/datastore_v1beta1/classes.rb +255 -0
  142. data/generated/google/apis/datastore_v1beta1/representations.rb +100 -0
  143. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  144. data/generated/google/apis/datastore_v1beta3/classes.rb +255 -0
  145. data/generated/google/apis/datastore_v1beta3/representations.rb +100 -0
  146. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  147. data/generated/google/apis/deploymentmanager_alpha/classes.rb +6 -1
  148. data/generated/google/apis/deploymentmanager_alpha/service.rb +121 -145
  149. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  150. data/generated/google/apis/deploymentmanager_v2/service.rb +79 -91
  151. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  152. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +6 -1
  153. data/generated/google/apis/deploymentmanager_v2beta/service.rb +121 -145
  154. data/generated/google/apis/dialogflow_v2.rb +35 -0
  155. data/generated/google/apis/dialogflow_v2/classes.rb +3994 -0
  156. data/generated/google/apis/dialogflow_v2/representations.rb +1670 -0
  157. data/generated/google/apis/dialogflow_v2/service.rb +1397 -0
  158. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  159. data/generated/google/apis/dialogflow_v2beta1/classes.rb +39 -11
  160. data/generated/google/apis/dialogflow_v2beta1/representations.rb +1 -0
  161. data/generated/google/apis/dialogflow_v2beta1/service.rb +559 -16
  162. data/generated/google/apis/dlp_v2.rb +36 -0
  163. data/generated/google/apis/dlp_v2/classes.rb +6431 -0
  164. data/generated/google/apis/dlp_v2/representations.rb +3116 -0
  165. data/generated/google/apis/dlp_v2/service.rb +1300 -0
  166. data/generated/google/apis/dlp_v2beta1.rb +4 -4
  167. data/generated/google/apis/dlp_v2beta1/classes.rb +38 -0
  168. data/generated/google/apis/dlp_v2beta1/representations.rb +17 -0
  169. data/generated/google/apis/dlp_v2beta1/service.rb +3 -3
  170. data/generated/google/apis/dlp_v2beta2.rb +4 -4
  171. data/generated/google/apis/dlp_v2beta2/classes.rb +229 -1
  172. data/generated/google/apis/dlp_v2beta2/representations.rb +91 -0
  173. data/generated/google/apis/dlp_v2beta2/service.rb +3 -3
  174. data/generated/google/apis/dns_v1.rb +1 -1
  175. data/generated/google/apis/dns_v1/classes.rb +496 -0
  176. data/generated/google/apis/dns_v1/representations.rb +188 -0
  177. data/generated/google/apis/dns_v1/service.rb +319 -6
  178. data/generated/google/apis/dns_v1beta2.rb +1 -1
  179. data/generated/google/apis/dns_v1beta2/classes.rb +0 -19
  180. data/generated/google/apis/dns_v1beta2/representations.rb +0 -14
  181. data/generated/google/apis/dns_v1beta2/service.rb +2 -4
  182. data/generated/google/apis/dns_v2beta1.rb +1 -1
  183. data/generated/google/apis/dns_v2beta1/classes.rb +6 -19
  184. data/generated/google/apis/dns_v2beta1/representations.rb +1 -14
  185. data/generated/google/apis/dns_v2beta1/service.rb +2 -4
  186. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  187. data/generated/google/apis/doubleclicksearch_v2/classes.rb +4 -0
  188. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  189. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +2 -2
  190. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  191. data/generated/google/apis/firestore_v1beta1/classes.rb +1 -1
  192. data/generated/google/apis/genomics_v1.rb +1 -1
  193. data/generated/google/apis/genomics_v1/classes.rb +271 -1
  194. data/generated/google/apis/genomics_v1/representations.rb +140 -0
  195. data/generated/google/apis/genomics_v1/service.rb +9 -1
  196. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  197. data/generated/google/apis/genomics_v1alpha2/classes.rb +271 -1
  198. data/generated/google/apis/genomics_v1alpha2/representations.rb +140 -0
  199. data/generated/google/apis/genomics_v1alpha2/service.rb +9 -1
  200. data/generated/google/apis/genomics_v2alpha1.rb +37 -0
  201. data/generated/google/apis/genomics_v2alpha1/classes.rb +1306 -0
  202. data/generated/google/apis/genomics_v2alpha1/representations.rb +535 -0
  203. data/generated/google/apis/genomics_v2alpha1/service.rb +261 -0
  204. data/generated/google/apis/gmail_v1.rb +1 -1
  205. data/generated/google/apis/gmail_v1/classes.rb +2 -1
  206. data/generated/google/apis/iam_v1.rb +1 -1
  207. data/generated/google/apis/iam_v1/classes.rb +1 -1
  208. data/generated/google/apis/language_v1.rb +2 -2
  209. data/generated/google/apis/language_v1/classes.rb +2 -1
  210. data/generated/google/apis/language_v1/service.rb +1 -1
  211. data/generated/google/apis/language_v1beta1.rb +2 -2
  212. data/generated/google/apis/language_v1beta1/service.rb +1 -1
  213. data/generated/google/apis/language_v1beta2.rb +2 -2
  214. data/generated/google/apis/language_v1beta2/classes.rb +2 -1
  215. data/generated/google/apis/language_v1beta2/service.rb +1 -1
  216. data/generated/google/apis/logging_v2.rb +1 -1
  217. data/generated/google/apis/logging_v2beta1.rb +1 -1
  218. data/generated/google/apis/manufacturers_v1.rb +1 -1
  219. data/generated/google/apis/manufacturers_v1/service.rb +14 -11
  220. data/generated/google/apis/ml_v1.rb +2 -2
  221. data/generated/google/apis/ml_v1/classes.rb +180 -5
  222. data/generated/google/apis/ml_v1/representations.rb +49 -0
  223. data/generated/google/apis/ml_v1/service.rb +1 -1
  224. data/generated/google/apis/monitoring_v3.rb +1 -1
  225. data/generated/google/apis/monitoring_v3/classes.rb +797 -2
  226. data/generated/google/apis/monitoring_v3/representations.rb +279 -0
  227. data/generated/google/apis/monitoring_v3/service.rb +612 -0
  228. data/generated/google/apis/oslogin_v1.rb +2 -2
  229. data/generated/google/apis/oslogin_v1/service.rb +1 -1
  230. data/generated/google/apis/oslogin_v1alpha.rb +2 -2
  231. data/generated/google/apis/oslogin_v1alpha/service.rb +1 -1
  232. data/generated/google/apis/oslogin_v1beta.rb +2 -2
  233. data/generated/google/apis/oslogin_v1beta/service.rb +1 -1
  234. data/generated/google/apis/pagespeedonline_v4.rb +32 -0
  235. data/generated/google/apis/pagespeedonline_v4/classes.rb +795 -0
  236. data/generated/google/apis/pagespeedonline_v4/representations.rb +335 -0
  237. data/generated/google/apis/pagespeedonline_v4/service.rb +129 -0
  238. data/generated/google/apis/people_v1.rb +2 -2
  239. data/generated/google/apis/people_v1/classes.rb +5 -2
  240. data/generated/google/apis/people_v1/service.rb +9 -7
  241. data/generated/google/apis/poly_v1.rb +1 -1
  242. data/generated/google/apis/poly_v1/classes.rb +153 -0
  243. data/generated/google/apis/poly_v1/representations.rb +67 -0
  244. data/generated/google/apis/proximitybeacon_v1beta1.rb +2 -2
  245. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +1 -1
  246. data/generated/google/apis/pubsub_v1.rb +1 -1
  247. data/generated/google/apis/pubsub_v1/classes.rb +3 -0
  248. data/generated/google/apis/pubsub_v1/service.rb +7 -0
  249. data/generated/google/apis/script_v1.rb +2 -2
  250. data/generated/google/apis/script_v1/service.rb +1 -1
  251. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  252. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +21 -126
  253. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +0 -30
  254. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +14 -13
  255. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  256. data/generated/google/apis/servicecontrol_v1/classes.rb +2 -1
  257. data/generated/google/apis/servicecontrol_v1/service.rb +9 -6
  258. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  259. data/generated/google/apis/servicemanagement_v1/classes.rb +44 -157
  260. data/generated/google/apis/servicemanagement_v1/representations.rb +2 -48
  261. data/generated/google/apis/servicemanagement_v1/service.rb +9 -0
  262. data/generated/google/apis/{serviceusage_v1.rb → serviceusage_v1beta1.rb} +6 -6
  263. data/generated/google/apis/{serviceusage_v1 → serviceusage_v1beta1}/classes.rb +290 -325
  264. data/generated/google/apis/{serviceusage_v1 → serviceusage_v1beta1}/representations.rb +105 -163
  265. data/generated/google/apis/{serviceusage_v1 → serviceusage_v1beta1}/service.rb +105 -163
  266. data/generated/google/apis/serviceuser_v1.rb +2 -2
  267. data/generated/google/apis/serviceuser_v1/classes.rb +44 -101
  268. data/generated/google/apis/serviceuser_v1/representations.rb +2 -30
  269. data/generated/google/apis/serviceuser_v1/service.rb +1 -1
  270. data/generated/google/apis/sheets_v4.rb +1 -1
  271. data/generated/google/apis/sheets_v4/classes.rb +643 -10
  272. data/generated/google/apis/sheets_v4/representations.rb +53 -0
  273. data/generated/google/apis/slides_v1.rb +1 -1
  274. data/generated/google/apis/slides_v1/classes.rb +92 -9
  275. data/generated/google/apis/slides_v1/representations.rb +21 -0
  276. data/generated/google/apis/slides_v1/service.rb +3 -2
  277. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  278. data/generated/google/apis/sourcerepo_v1/classes.rb +4 -73
  279. data/generated/google/apis/sourcerepo_v1/representations.rb +0 -20
  280. data/generated/google/apis/spanner_v1.rb +1 -1
  281. data/generated/google/apis/spanner_v1/classes.rb +238 -2
  282. data/generated/google/apis/spanner_v1/representations.rb +86 -0
  283. data/generated/google/apis/spanner_v1/service.rb +80 -0
  284. data/generated/google/apis/speech_v1.rb +2 -2
  285. data/generated/google/apis/speech_v1/classes.rb +14 -19
  286. data/generated/google/apis/speech_v1/representations.rb +0 -1
  287. data/generated/google/apis/speech_v1/service.rb +1 -1
  288. data/generated/google/apis/speech_v1beta1.rb +2 -2
  289. data/generated/google/apis/speech_v1beta1/service.rb +1 -1
  290. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  291. data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -6
  292. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  293. data/generated/google/apis/storage_v1.rb +1 -1
  294. data/generated/google/apis/storage_v1/service.rb +3 -6
  295. data/generated/google/apis/storagetransfer_v1.rb +2 -2
  296. data/generated/google/apis/storagetransfer_v1/service.rb +1 -1
  297. data/generated/google/apis/testing_v1.rb +1 -1
  298. data/generated/google/apis/testing_v1/classes.rb +107 -2
  299. data/generated/google/apis/testing_v1/representations.rb +38 -0
  300. data/generated/google/apis/texttospeech_v1beta1.rb +34 -0
  301. data/generated/google/apis/texttospeech_v1beta1/classes.rb +278 -0
  302. data/generated/google/apis/texttospeech_v1beta1/representations.rb +133 -0
  303. data/generated/google/apis/texttospeech_v1beta1/service.rb +128 -0
  304. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  305. data/generated/google/apis/toolresults_v1beta3/classes.rb +30 -16
  306. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  307. data/generated/google/apis/tpu_v1alpha1/classes.rb +57 -0
  308. data/generated/google/apis/tpu_v1alpha1/representations.rb +30 -0
  309. data/generated/google/apis/tpu_v1alpha1/service.rb +73 -1
  310. data/generated/google/apis/vault_v1.rb +1 -1
  311. data/generated/google/apis/vault_v1/classes.rb +29 -3
  312. data/generated/google/apis/vault_v1/representations.rb +15 -0
  313. data/generated/google/apis/vault_v1/service.rb +8 -2
  314. data/generated/google/apis/videointelligence_v1beta1.rb +1 -1
  315. data/generated/google/apis/videointelligence_v1beta1/classes.rb +650 -0
  316. data/generated/google/apis/videointelligence_v1beta1/representations.rb +315 -0
  317. data/generated/google/apis/vision_v1.rb +2 -2
  318. data/generated/google/apis/vision_v1/classes.rb +290 -2
  319. data/generated/google/apis/vision_v1/representations.rb +128 -0
  320. data/generated/google/apis/vision_v1/service.rb +187 -1
  321. data/generated/google/apis/vision_v1p1beta1.rb +2 -2
  322. data/generated/google/apis/vision_v1p1beta1/classes.rb +136 -2
  323. data/generated/google/apis/vision_v1p1beta1/representations.rb +71 -0
  324. data/generated/google/apis/vision_v1p1beta1/service.rb +1 -1
  325. data/generated/google/apis/vision_v1p2beta1.rb +39 -0
  326. data/generated/google/apis/vision_v1p2beta1/classes.rb +2172 -0
  327. data/generated/google/apis/vision_v1p2beta1/representations.rb +895 -0
  328. data/generated/google/apis/vision_v1p2beta1/service.rb +126 -0
  329. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  330. data/generated/google/apis/youtube_v3.rb +1 -1
  331. data/generated/google/apis/youtube_v3/classes.rb +12 -0
  332. data/generated/google/apis/youtube_v3/representations.rb +2 -0
  333. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  334. data/lib/google/apis/core/json_representation.rb +1 -1
  335. data/lib/google/apis/version.rb +3 -3
  336. data/samples/web/Gemfile +3 -0
  337. metadata +38 -26
  338. data/generated/google/apis/clouduseraccounts_alpha.rb +0 -44
  339. data/generated/google/apis/clouduseraccounts_alpha/classes.rb +0 -1188
  340. data/generated/google/apis/clouduseraccounts_alpha/representations.rb +0 -494
  341. data/generated/google/apis/clouduseraccounts_alpha/service.rb +0 -1152
  342. data/generated/google/apis/clouduseraccounts_beta/classes.rb +0 -845
  343. data/generated/google/apis/clouduseraccounts_beta/representations.rb +0 -352
  344. data/generated/google/apis/clouduseraccounts_beta/service.rb +0 -908
  345. data/generated/google/apis/clouduseraccounts_vm_alpha.rb +0 -44
  346. data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +0 -1188
  347. data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +0 -494
  348. data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +0 -1152
  349. data/generated/google/apis/clouduseraccounts_vm_beta.rb +0 -44
  350. data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +0 -845
  351. data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +0 -352
  352. data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +0 -908
  353. data/generated/google/apis/firebaseremoteconfig_v1/classes.rb +0 -200
  354. data/generated/google/apis/firebaseremoteconfig_v1/representations.rb +0 -89
  355. data/generated/google/apis/firebaseremoteconfig_v1/service.rb +0 -153
@@ -641,6 +641,7 @@ module Google
641
641
  class Representation < Google::Apis::Core::JsonRepresentation
642
642
  property :job, as: 'job', class: Google::Apis::DataprocV1::Job, decorator: Google::Apis::DataprocV1::Job::Representation
643
643
 
644
+ property :request_id, as: 'requestId'
644
645
  end
645
646
  end
646
647
 
@@ -54,6 +54,14 @@ module Google
54
54
  # @param [String] region
55
55
  # Required. The Cloud Dataproc region in which to handle the request.
56
56
  # @param [Google::Apis::DataprocV1::Cluster] cluster_object
57
+ # @param [String] request_id
58
+ # Optional. A unique id used to identify the request. If the server receives two
59
+ # CreateClusterRequest requests with the same id, then the second request will
60
+ # be ignored and the first google.longrunning.Operation created and stored in
61
+ # the backend is returned.It is recommended to always set this value to a UUID (
62
+ # https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must
63
+ # contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-
64
+ # ). The maximum length is 40 characters.
57
65
  # @param [String] fields
58
66
  # Selector specifying which fields to include in a partial response.
59
67
  # @param [String] quota_user
@@ -71,7 +79,7 @@ module Google
71
79
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
72
80
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
73
81
  # @raise [Google::Apis::AuthorizationError] Authorization is required
74
- def create_cluster(project_id, region, cluster_object = nil, fields: nil, quota_user: nil, options: nil, &block)
82
+ def create_cluster(project_id, region, cluster_object = nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
75
83
  command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters', options)
76
84
  command.request_representation = Google::Apis::DataprocV1::Cluster::Representation
77
85
  command.request_object = cluster_object
@@ -79,6 +87,7 @@ module Google
79
87
  command.response_class = Google::Apis::DataprocV1::Operation
80
88
  command.params['projectId'] = project_id unless project_id.nil?
81
89
  command.params['region'] = region unless region.nil?
90
+ command.query['requestId'] = request_id unless request_id.nil?
82
91
  command.query['fields'] = fields unless fields.nil?
83
92
  command.query['quotaUser'] = quota_user unless quota_user.nil?
84
93
  execute_or_queue_command(command, &block)
@@ -95,6 +104,14 @@ module Google
95
104
  # @param [String] cluster_uuid
96
105
  # Optional. Specifying the cluster_uuid means the RPC should fail (with error
97
106
  # NOT_FOUND) if cluster with specified UUID does not exist.
107
+ # @param [String] request_id
108
+ # Optional. A unique id used to identify the request. If the server receives two
109
+ # DeleteClusterRequest requests with the same id, then the second request will
110
+ # be ignored and the first google.longrunning.Operation created and stored in
111
+ # the backend is returned.It is recommended to always set this value to a UUID (
112
+ # https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must
113
+ # contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-
114
+ # ). The maximum length is 40 characters.
98
115
  # @param [String] fields
99
116
  # Selector specifying which fields to include in a partial response.
100
117
  # @param [String] quota_user
@@ -112,7 +129,7 @@ module Google
112
129
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
113
130
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
114
131
  # @raise [Google::Apis::AuthorizationError] Authorization is required
115
- def delete_cluster(project_id, region, cluster_name, cluster_uuid: nil, fields: nil, quota_user: nil, options: nil, &block)
132
+ def delete_cluster(project_id, region, cluster_name, cluster_uuid: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
116
133
  command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
117
134
  command.response_representation = Google::Apis::DataprocV1::Operation::Representation
118
135
  command.response_class = Google::Apis::DataprocV1::Operation
@@ -120,6 +137,7 @@ module Google
120
137
  command.params['region'] = region unless region.nil?
121
138
  command.params['clusterName'] = cluster_name unless cluster_name.nil?
122
139
  command.query['clusterUuid'] = cluster_uuid unless cluster_uuid.nil?
140
+ command.query['requestId'] = request_id unless request_id.nil?
123
141
  command.query['fields'] = fields unless fields.nil?
124
142
  command.query['quotaUser'] = quota_user unless quota_user.nil?
125
143
  execute_or_queue_command(command, &block)
@@ -271,6 +289,14 @@ module Google
271
289
  # forcefully removing nodes (and potentially interrupting jobs). Default timeout
272
290
  # is 0 (for forceful decommission), and the maximum allowed timeout is 1 day.
273
291
  # Only supported on Dataproc image versions 1.2 and higher.
292
+ # @param [String] request_id
293
+ # Optional. A unique id used to identify the request. If the server receives two
294
+ # UpdateClusterRequest requests with the same id, then the second request will
295
+ # be ignored and the first google.longrunning.Operation created and stored in
296
+ # the backend is returned.It is recommended to always set this value to a UUID (
297
+ # https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must
298
+ # contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-
299
+ # ). The maximum length is 40 characters.
274
300
  # @param [String] update_mask
275
301
  # Required. Specifies the path, relative to Cluster, of the field to update. For
276
302
  # example, to change the number of workers in a cluster to 5, the update_mask
@@ -317,7 +343,7 @@ module Google
317
343
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
318
344
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
319
345
  # @raise [Google::Apis::AuthorizationError] Authorization is required
320
- def patch_cluster(project_id, region, cluster_name, cluster_object = nil, graceful_decommission_timeout: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
346
+ def patch_cluster(project_id, region, cluster_name, cluster_object = nil, graceful_decommission_timeout: nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
321
347
  command = make_simple_command(:patch, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
322
348
  command.request_representation = Google::Apis::DataprocV1::Cluster::Representation
323
349
  command.request_object = cluster_object
@@ -327,6 +353,7 @@ module Google
327
353
  command.params['region'] = region unless region.nil?
328
354
  command.params['clusterName'] = cluster_name unless cluster_name.nil?
329
355
  command.query['gracefulDecommissionTimeout'] = graceful_decommission_timeout unless graceful_decommission_timeout.nil?
356
+ command.query['requestId'] = request_id unless request_id.nil?
330
357
  command.query['updateMask'] = update_mask unless update_mask.nil?
331
358
  command.query['fields'] = fields unless fields.nil?
332
359
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/dataproc/
26
26
  module DataprocV1beta2
27
27
  VERSION = 'V1beta2'
28
- REVISION = '20180213'
28
+ REVISION = '20180320'
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'
@@ -33,11 +33,11 @@ module Google
33
33
  attr_accessor :accelerator_count
34
34
 
35
35
  # Full URL, partial URI, or short name of the accelerator type resource to
36
- # expose to this instance. See Google Compute Engine AcceleratorTypes( /compute/
37
- # docs/reference/beta/acceleratorTypes)Examples * https://www.googleapis.com/
38
- # compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-
39
- # tesla-k80 * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-
40
- # tesla-k80 * nvidia-tesla-k80
36
+ # expose to this instance. See Compute Engine AcceleratorTypes( /compute/docs/
37
+ # reference/beta/acceleratorTypes)Examples * https://www.googleapis.com/compute/
38
+ # beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 *
39
+ # projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 *
40
+ # nvidia-tesla-k80
41
41
  # Corresponds to the JSON property `acceleratorTypeUri`
42
42
  # @return [String]
43
43
  attr_accessor :accelerator_type_uri
@@ -106,7 +106,7 @@ module Google
106
106
  end
107
107
 
108
108
  # Describes the identifying information, config, and status of a cluster of
109
- # Google Compute Engine instances.
109
+ # Compute Engine instances.
110
110
  class Cluster
111
111
  include Google::Apis::Core::Hashable
112
112
 
@@ -179,8 +179,8 @@ module Google
179
179
  class ClusterConfig
180
180
  include Google::Apis::Core::Hashable
181
181
 
182
- # Optional. A Google Cloud Storage staging bucket used for sharing generated SSH
183
- # keys and config. If you do not specify a staging bucket, Cloud Dataproc will
182
+ # Optional. A Cloud Storage staging bucket used for sharing generated SSH keys
183
+ # and config. If you do not specify a staging bucket, Cloud Dataproc will
184
184
  # determine an appropriate Cloud Storage location (US, ASIA, or EU) for your
185
185
  # cluster's staging bucket according to the Google Compute Engine zone where
186
186
  # your cluster is deployed, and then it will create and manage this project-
@@ -189,8 +189,8 @@ module Google
189
189
  # @return [String]
190
190
  attr_accessor :config_bucket
191
191
 
192
- # Common config settings for resources of Google Compute Engine cluster
193
- # instances, applicable to all instances in the cluster.
192
+ # Common config settings for resources of Compute Engine cluster instances,
193
+ # applicable to all instances in the cluster.
194
194
  # Corresponds to the JSON property `gceClusterConfig`
195
195
  # @return [Google::Apis::DataprocV1beta2::GceClusterConfig]
196
196
  attr_accessor :gce_cluster_config
@@ -215,14 +215,14 @@ module Google
215
215
  # @return [Google::Apis::DataprocV1beta2::LifecycleConfig]
216
216
  attr_accessor :lifecycle_config
217
217
 
218
- # Optional. The config settings for Google Compute Engine resources in an
219
- # instance group, such as a master or worker group.
218
+ # Optional. The config settings for Compute Engine resources in an instance
219
+ # group, such as a master or worker group.
220
220
  # Corresponds to the JSON property `masterConfig`
221
221
  # @return [Google::Apis::DataprocV1beta2::InstanceGroupConfig]
222
222
  attr_accessor :master_config
223
223
 
224
- # Optional. The config settings for Google Compute Engine resources in an
225
- # instance group, such as a master or worker group.
224
+ # Optional. The config settings for Compute Engine resources in an instance
225
+ # group, such as a master or worker group.
226
226
  # Corresponds to the JSON property `secondaryWorkerConfig`
227
227
  # @return [Google::Apis::DataprocV1beta2::InstanceGroupConfig]
228
228
  attr_accessor :secondary_worker_config
@@ -232,8 +232,8 @@ module Google
232
232
  # @return [Google::Apis::DataprocV1beta2::SoftwareConfig]
233
233
  attr_accessor :software_config
234
234
 
235
- # Optional. The config settings for Google Compute Engine resources in an
236
- # instance group, such as a master or worker group.
235
+ # Optional. The config settings for Compute Engine resources in an instance
236
+ # group, such as a master or worker group.
237
237
  # Corresponds to the JSON property `workerConfig`
238
238
  # @return [Google::Apis::DataprocV1beta2::InstanceGroupConfig]
239
239
  attr_accessor :worker_config
@@ -494,8 +494,8 @@ module Google
494
494
  class DiagnoseClusterResults
495
495
  include Google::Apis::Core::Hashable
496
496
 
497
- # Output only. The Google Cloud Storage URI of the diagnostic output. The output
498
- # report is a plain text file with a summary of collected diagnostics.
497
+ # Output only. The Cloud Storage URI of the diagnostic output. The output report
498
+ # is a plain text file with a summary of collected diagnostics.
499
499
  # Corresponds to the JSON property `outputUri`
500
500
  # @return [String]
501
501
  attr_accessor :output_uri
@@ -566,8 +566,8 @@ module Google
566
566
  end
567
567
  end
568
568
 
569
- # Common config settings for resources of Google Compute Engine cluster
570
- # instances, applicable to all instances in the cluster.
569
+ # Common config settings for resources of Compute Engine cluster instances,
570
+ # applicable to all instances in the cluster.
571
571
  class GceClusterConfig
572
572
  include Google::Apis::Core::Hashable
573
573
 
@@ -582,19 +582,18 @@ module Google
582
582
  attr_accessor :internal_ip_only
583
583
  alias_method :internal_ip_only?, :internal_ip_only
584
584
 
585
- # The Google Compute Engine metadata entries to add to all instances (see
586
- # Project and instance metadata (https://cloud.google.com/compute/docs/storing-
587
- # retrieving-metadata#project_and_instance_metadata)).
585
+ # The Compute Engine metadata entries to add to all instances (see Project and
586
+ # instance metadata (https://cloud.google.com/compute/docs/storing-retrieving-
587
+ # metadata#project_and_instance_metadata)).
588
588
  # Corresponds to the JSON property `metadata`
589
589
  # @return [Hash<String,String>]
590
590
  attr_accessor :metadata
591
591
 
592
- # Optional. The Google Compute Engine network to be used for machine
593
- # communications. Cannot be specified with subnetwork_uri. If neither
594
- # network_uri nor subnetwork_uri is specified, the "default" network of the
595
- # project is used, if it exists. Cannot be a "Custom Subnet Network" (see Using
596
- # Subnetworks for more information).A full URL, partial URI, or short name are
597
- # valid. Examples:
592
+ # Optional. The Compute Engine network to be used for machine communications.
593
+ # Cannot be specified with subnetwork_uri. If neither network_uri nor
594
+ # subnetwork_uri is specified, the "default" network of the project is used, if
595
+ # it exists. Cannot be a "Custom Subnet Network" (see Using Subnetworks for more
596
+ # information).A full URL, partial URI, or short name are valid. Examples:
598
597
  # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/
599
598
  # default
600
599
  # projects/[project_id]/regions/global/default
@@ -603,7 +602,7 @@ module Google
603
602
  # @return [String]
604
603
  attr_accessor :network_uri
605
604
 
606
- # Optional. The service account of the instances. Defaults to the default Google
605
+ # Optional. The service account of the instances. Defaults to the default
607
606
  # Compute Engine service account. Custom service accounts need permissions
608
607
  # equivalent to the folloing IAM roles:
609
608
  # roles/logging.logWriter
@@ -628,9 +627,9 @@ module Google
628
627
  # @return [Array<String>]
629
628
  attr_accessor :service_account_scopes
630
629
 
631
- # Optional. The Google Compute Engine subnetwork to be used for machine
632
- # communications. Cannot be specified with network_uri.A full URL, partial URI,
633
- # or short name are valid. Examples:
630
+ # Optional. The Compute Engine subnetwork to be used for machine communications.
631
+ # Cannot be specified with network_uri.A full URL, partial URI, or short name
632
+ # are valid. Examples:
634
633
  # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/
635
634
  # sub0
636
635
  # projects/[project_id]/regions/us-east1/sub0
@@ -639,13 +638,13 @@ module Google
639
638
  # @return [String]
640
639
  attr_accessor :subnetwork_uri
641
640
 
642
- # The Google Compute Engine tags to add to all instances (see Tagging instances).
641
+ # The Compute Engine tags to add to all instances (see Tagging instances).
643
642
  # Corresponds to the JSON property `tags`
644
643
  # @return [Array<String>]
645
644
  attr_accessor :tags
646
645
 
647
- # Optional. The zone where the Google Compute Engine cluster will be located. On
648
- # a create request, it is required in the "global" region. If omitted in a non-
646
+ # Optional. The zone where the Compute Engine cluster will be located. On a
647
+ # create request, it is required in the "global" region. If omitted in a non-
649
648
  # global Cloud Dataproc region, the service will pick a zone in the
650
649
  # corresponding Compute Engine region. On a get request, zone will always be
651
650
  # present.A full URL, partial URI, or short name are valid. Examples:
@@ -809,14 +808,14 @@ module Google
809
808
  end
810
809
  end
811
810
 
812
- # Optional. The config settings for Google Compute Engine resources in an
813
- # instance group, such as a master or worker group.
811
+ # Optional. The config settings for Compute Engine resources in an instance
812
+ # group, such as a master or worker group.
814
813
  class InstanceGroupConfig
815
814
  include Google::Apis::Core::Hashable
816
815
 
817
- # Optional. The Google Compute Engine accelerator configuration for these
818
- # instances.Beta Feature: This feature is still under development. It may be
819
- # changed before final release.
816
+ # Optional. The Compute Engine accelerator configuration for these instances.
817
+ # Beta Feature: This feature is still under development. It may be changed
818
+ # before final release.
820
819
  # Corresponds to the JSON property `accelerators`
821
820
  # @return [Array<Google::Apis::DataprocV1beta2::AcceleratorConfig>]
822
821
  attr_accessor :accelerators
@@ -826,8 +825,8 @@ module Google
826
825
  # @return [Google::Apis::DataprocV1beta2::DiskConfig]
827
826
  attr_accessor :disk_config
828
827
 
829
- # Output only. The Google Compute Engine image resource used for cluster
830
- # instances. Inferred from SoftwareConfig.image_version.
828
+ # Output only. The Compute Engine image resource used for cluster instances.
829
+ # Inferred from SoftwareConfig.image_version.
831
830
  # Corresponds to the JSON property `imageUri`
832
831
  # @return [String]
833
832
  attr_accessor :image_uri
@@ -845,8 +844,8 @@ module Google
845
844
  attr_accessor :is_preemptible
846
845
  alias_method :is_preemptible?, :is_preemptible
847
846
 
848
- # Optional. The Google Compute Engine machine type used for cluster instances.A
849
- # full URL, partial URI, or short name are valid. Examples:
847
+ # Optional. The Compute Engine machine type used for cluster instances.A full
848
+ # URL, partial URI, or short name are valid. Examples:
850
849
  # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/
851
850
  # machineTypes/n1-standard-2
852
851
  # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
@@ -1323,8 +1322,10 @@ module Google
1323
1322
  class ManagedCluster
1324
1323
  include Google::Apis::Core::Hashable
1325
1324
 
1326
- # Required. The cluster name. Cluster names within a project must be unique.
1327
- # Names from deleted clusters can be reused.
1325
+ # Required. The cluster name prefix. A unique cluster name will be formed by
1326
+ # appending a random suffix.The name must contain only lower-case letters (a-z),
1327
+ # numbers (0-9), and hyphens (-). Must begin with a letter. Cannot begin or end
1328
+ # with hyphen. Must consist of between 2 and 35 characters.
1328
1329
  # Corresponds to the JSON property `clusterName`
1329
1330
  # @return [String]
1330
1331
  attr_accessor :cluster_name
@@ -1338,7 +1339,7 @@ module Google
1338
1339
  # 1 and 63 characters long, and must conform to the following PCRE regular
1339
1340
  # expression: \p`Ll`\p`Lo``0,62`Label values must be between 1 and 63 characters
1340
1341
  # long, and must conform to the following PCRE regular expression: \p`Ll`\p`Lo`\
1341
- # p`N`_-`0,63`No more than 64 labels can be associated with a given cluster.
1342
+ # p`N`_-`0,63`No more than 32 labels can be associated with a given cluster.
1342
1343
  # Corresponds to the JSON property `labels`
1343
1344
  # @return [Hash<String,String>]
1344
1345
  attr_accessor :labels
@@ -1386,7 +1387,7 @@ module Google
1386
1387
  class NodeInitializationAction
1387
1388
  include Google::Apis::Core::Hashable
1388
1389
 
1389
- # Required. Google Cloud Storage URI of executable file.
1390
+ # Required. Cloud Storage URI of executable file.
1390
1391
  # Corresponds to the JSON property `executableFile`
1391
1392
  # @return [String]
1392
1393
  attr_accessor :executable_file
@@ -1522,7 +1523,7 @@ module Google
1522
1523
  # and 63 characters long, and must conform to the following regular expression: \
1523
1524
  # p`Ll`\p`Lo``0,62`Label values must be between 1 and 63 characters long, and
1524
1525
  # must conform to the following regular expression: \p`Ll`\p`Lo`\p`N`_-`0,63`No
1525
- # more than 64 labels can be associated with a given job.
1526
+ # more than 32 labels can be associated with a given job.
1526
1527
  # Corresponds to the JSON property `labels`
1527
1528
  # @return [Hash<String,String>]
1528
1529
  attr_accessor :labels
@@ -1563,8 +1564,11 @@ module Google
1563
1564
  attr_accessor :spark_sql_job
1564
1565
 
1565
1566
  # Required. The step id. The id must be unique among all jobs within the
1566
- # template.The step id is used as prefix for job id, as job workflow-step-id
1567
- # label, and in prerequisite_step_ids field from other steps.
1567
+ # template.The step id is used as prefix for job id, as job goog-dataproc-
1568
+ # workflow-step-id label, and in prerequisiteStepIds field from other steps.The
1569
+ # id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and
1570
+ # hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of
1571
+ # between 3 and 50 characters.
1568
1572
  # Corresponds to the JSON property `stepId`
1569
1573
  # @return [String]
1570
1574
  attr_accessor :step_id
@@ -2099,6 +2103,17 @@ module Google
2099
2103
  # @return [Google::Apis::DataprocV1beta2::Job]
2100
2104
  attr_accessor :job
2101
2105
 
2106
+ # Optional. A unique id used to identify the request. If the server receives two
2107
+ # SubmitJobRequest requests with the same id, then the second request will be
2108
+ # ignored and the first Job created and stored in the backend is returned.It is
2109
+ # recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/
2110
+ # Universally_unique_identifier).The id must contain only letters (a-z, A-Z),
2111
+ # numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40
2112
+ # characters.
2113
+ # Corresponds to the JSON property `requestId`
2114
+ # @return [String]
2115
+ attr_accessor :request_id
2116
+
2102
2117
  def initialize(**args)
2103
2118
  update!(**args)
2104
2119
  end
@@ -2106,6 +2121,7 @@ module Google
2106
2121
  # Update properties of this object
2107
2122
  def update!(**args)
2108
2123
  @job = args[:job] if args.key?(:job)
2124
+ @request_id = args[:request_id] if args.key?(:request_id)
2109
2125
  end
2110
2126
  end
2111
2127
 
@@ -2192,6 +2208,11 @@ module Google
2192
2208
  # @return [Google::Apis::DataprocV1beta2::WorkflowGraph]
2193
2209
  attr_accessor :graph
2194
2210
 
2211
+ # Map from parameter names to values that were used for those parameters.
2212
+ # Corresponds to the JSON property `parameters`
2213
+ # @return [Hash<String,String>]
2214
+ attr_accessor :parameters
2215
+
2195
2216
  # Output only. The workflow state.
2196
2217
  # Corresponds to the JSON property `state`
2197
2218
  # @return [String]
@@ -2217,6 +2238,7 @@ module Google
2217
2238
  @create_cluster = args[:create_cluster] if args.key?(:create_cluster)
2218
2239
  @delete_cluster = args[:delete_cluster] if args.key?(:delete_cluster)
2219
2240
  @graph = args[:graph] if args.key?(:graph)
2241
+ @parameters = args[:parameters] if args.key?(:parameters)
2220
2242
  @state = args[:state] if args.key?(:state)
2221
2243
  @template = args[:template] if args.key?(:template)
2222
2244
  @version = args[:version] if args.key?(:version)
@@ -2275,7 +2297,9 @@ module Google
2275
2297
  # @return [String]
2276
2298
  attr_accessor :create_time
2277
2299
 
2278
- # Required. The template id.
2300
+ # Required. The template id.The id must contain only letters (a-z, A-Z), numbers
2301
+ # (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore
2302
+ # or hyphen. Must consist of between 3 and 50 characters.
2279
2303
  # Corresponds to the JSON property `id`
2280
2304
  # @return [String]
2281
2305
  attr_accessor :id
@@ -849,6 +849,7 @@ module Google
849
849
  class Representation < Google::Apis::Core::JsonRepresentation
850
850
  property :job, as: 'job', class: Google::Apis::DataprocV1beta2::Job, decorator: Google::Apis::DataprocV1beta2::Job::Representation
851
851
 
852
+ property :request_id, as: 'requestId'
852
853
  end
853
854
  end
854
855
 
@@ -884,6 +885,7 @@ module Google
884
885
 
885
886
  property :graph, as: 'graph', class: Google::Apis::DataprocV1beta2::WorkflowGraph, decorator: Google::Apis::DataprocV1beta2::WorkflowGraph::Representation
886
887
 
888
+ hash :parameters, as: 'parameters'
887
889
  property :state, as: 'state'
888
890
  property :template, as: 'template'
889
891
  property :version, as: 'version'
@@ -156,6 +156,38 @@ module Google
156
156
  execute_or_queue_command(command, &block)
157
157
  end
158
158
 
159
+ # Gets the access control policy for a resource. Returns an empty policy if the
160
+ # resource exists and does not have a policy set.
161
+ # @param [String] resource
162
+ # REQUIRED: The resource for which the policy is being requested. See the
163
+ # operation documentation for the appropriate value for this field.
164
+ # @param [String] fields
165
+ # Selector specifying which fields to include in a partial response.
166
+ # @param [String] quota_user
167
+ # Available to use for quota purposes for server-side applications. Can be any
168
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
169
+ # @param [Google::Apis::RequestOptions] options
170
+ # Request-specific options
171
+ #
172
+ # @yield [result, err] Result & error if block supplied
173
+ # @yieldparam result [Google::Apis::DataprocV1beta2::Policy] parsed result object
174
+ # @yieldparam err [StandardError] error object if request failed
175
+ #
176
+ # @return [Google::Apis::DataprocV1beta2::Policy]
177
+ #
178
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
179
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
180
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
181
+ def get_project_location_workflow_template_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
182
+ command = make_simple_command(:get, 'v1beta2/{+resource}:getIamPolicy', options)
183
+ command.response_representation = Google::Apis::DataprocV1beta2::Policy::Representation
184
+ command.response_class = Google::Apis::DataprocV1beta2::Policy
185
+ command.params['resource'] = resource unless resource.nil?
186
+ command.query['fields'] = fields unless fields.nil?
187
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
188
+ execute_or_queue_command(command, &block)
189
+ end
190
+
159
191
  # Instantiates a template and begins execution.The returned Operation can be
160
192
  # used to track execution of workflow by polling operations.get. The Operation
161
193
  # will complete when entire workflow is finished.The running workflow can be
@@ -286,6 +318,79 @@ module Google
286
318
  execute_or_queue_command(command, &block)
287
319
  end
288
320
 
321
+ # Sets the access control policy on the specified resource. Replaces any
322
+ # existing policy.
323
+ # @param [String] resource
324
+ # REQUIRED: The resource for which the policy is being specified. See the
325
+ # operation documentation for the appropriate value for this field.
326
+ # @param [Google::Apis::DataprocV1beta2::SetIamPolicyRequest] set_iam_policy_request_object
327
+ # @param [String] fields
328
+ # Selector specifying which fields to include in a partial response.
329
+ # @param [String] quota_user
330
+ # Available to use for quota purposes for server-side applications. Can be any
331
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
332
+ # @param [Google::Apis::RequestOptions] options
333
+ # Request-specific options
334
+ #
335
+ # @yield [result, err] Result & error if block supplied
336
+ # @yieldparam result [Google::Apis::DataprocV1beta2::Policy] parsed result object
337
+ # @yieldparam err [StandardError] error object if request failed
338
+ #
339
+ # @return [Google::Apis::DataprocV1beta2::Policy]
340
+ #
341
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
342
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
343
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
344
+ def set_project_location_workflow_template_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
345
+ command = make_simple_command(:post, 'v1beta2/{+resource}:setIamPolicy', options)
346
+ command.request_representation = Google::Apis::DataprocV1beta2::SetIamPolicyRequest::Representation
347
+ command.request_object = set_iam_policy_request_object
348
+ command.response_representation = Google::Apis::DataprocV1beta2::Policy::Representation
349
+ command.response_class = Google::Apis::DataprocV1beta2::Policy
350
+ command.params['resource'] = resource unless resource.nil?
351
+ command.query['fields'] = fields unless fields.nil?
352
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
353
+ execute_or_queue_command(command, &block)
354
+ end
355
+
356
+ # Returns permissions that a caller has on the specified resource. If the
357
+ # resource does not exist, this will return an empty set of permissions, not a
358
+ # NOT_FOUND error.Note: This operation is designed to be used for building
359
+ # permission-aware UIs and command-line tools, not for authorization checking.
360
+ # This operation may "fail open" without warning.
361
+ # @param [String] resource
362
+ # REQUIRED: The resource for which the policy detail is being requested. See the
363
+ # operation documentation for the appropriate value for this field.
364
+ # @param [Google::Apis::DataprocV1beta2::TestIamPermissionsRequest] test_iam_permissions_request_object
365
+ # @param [String] fields
366
+ # Selector specifying which fields to include in a partial response.
367
+ # @param [String] quota_user
368
+ # Available to use for quota purposes for server-side applications. Can be any
369
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
370
+ # @param [Google::Apis::RequestOptions] options
371
+ # Request-specific options
372
+ #
373
+ # @yield [result, err] Result & error if block supplied
374
+ # @yieldparam result [Google::Apis::DataprocV1beta2::TestIamPermissionsResponse] parsed result object
375
+ # @yieldparam err [StandardError] error object if request failed
376
+ #
377
+ # @return [Google::Apis::DataprocV1beta2::TestIamPermissionsResponse]
378
+ #
379
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
380
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
381
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
382
+ def test_project_location_workflow_template_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
383
+ command = make_simple_command(:post, 'v1beta2/{+resource}:testIamPermissions', options)
384
+ command.request_representation = Google::Apis::DataprocV1beta2::TestIamPermissionsRequest::Representation
385
+ command.request_object = test_iam_permissions_request_object
386
+ command.response_representation = Google::Apis::DataprocV1beta2::TestIamPermissionsResponse::Representation
387
+ command.response_class = Google::Apis::DataprocV1beta2::TestIamPermissionsResponse
388
+ command.params['resource'] = resource unless resource.nil?
389
+ command.query['fields'] = fields unless fields.nil?
390
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
391
+ execute_or_queue_command(command, &block)
392
+ end
393
+
289
394
  # Updates (replaces) workflow template. The updated template must contain
290
395
  # version that matches the current server version.
291
396
  # @param [String] name
@@ -329,6 +434,14 @@ module Google
329
434
  # @param [String] region
330
435
  # Required. The Cloud Dataproc region in which to handle the request.
331
436
  # @param [Google::Apis::DataprocV1beta2::Cluster] cluster_object
437
+ # @param [String] request_id
438
+ # Optional. A unique id used to identify the request. If the server receives two
439
+ # CreateClusterRequest requests with the same id, then the second request will
440
+ # be ignored and the first google.longrunning.Operation created and stored in
441
+ # the backend is returned.It is recommended to always set this value to a UUID (
442
+ # https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must
443
+ # contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-
444
+ # ). The maximum length is 40 characters.
332
445
  # @param [String] fields
333
446
  # Selector specifying which fields to include in a partial response.
334
447
  # @param [String] quota_user
@@ -346,7 +459,7 @@ module Google
346
459
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
347
460
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
348
461
  # @raise [Google::Apis::AuthorizationError] Authorization is required
349
- def create_project_region_cluster(project_id, region, cluster_object = nil, fields: nil, quota_user: nil, options: nil, &block)
462
+ def create_project_region_cluster(project_id, region, cluster_object = nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
350
463
  command = make_simple_command(:post, 'v1beta2/projects/{projectId}/regions/{region}/clusters', options)
351
464
  command.request_representation = Google::Apis::DataprocV1beta2::Cluster::Representation
352
465
  command.request_object = cluster_object
@@ -354,6 +467,7 @@ module Google
354
467
  command.response_class = Google::Apis::DataprocV1beta2::Operation
355
468
  command.params['projectId'] = project_id unless project_id.nil?
356
469
  command.params['region'] = region unless region.nil?
470
+ command.query['requestId'] = request_id unless request_id.nil?
357
471
  command.query['fields'] = fields unless fields.nil?
358
472
  command.query['quotaUser'] = quota_user unless quota_user.nil?
359
473
  execute_or_queue_command(command, &block)
@@ -370,6 +484,14 @@ module Google
370
484
  # @param [String] cluster_uuid
371
485
  # Optional. Specifying the cluster_uuid means the RPC should fail (with error
372
486
  # NOT_FOUND) if cluster with specified UUID does not exist.
487
+ # @param [String] request_id
488
+ # Optional. A unique id used to identify the request. If the server receives two
489
+ # DeleteClusterRequest requests with the same id, then the second request will
490
+ # be ignored and the first google.longrunning.Operation created and stored in
491
+ # the backend is returned.It is recommended to always set this value to a UUID (
492
+ # https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must
493
+ # contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-
494
+ # ). The maximum length is 40 characters.
373
495
  # @param [String] fields
374
496
  # Selector specifying which fields to include in a partial response.
375
497
  # @param [String] quota_user
@@ -387,7 +509,7 @@ module Google
387
509
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
388
510
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
389
511
  # @raise [Google::Apis::AuthorizationError] Authorization is required
390
- def delete_project_region_cluster(project_id, region, cluster_name, cluster_uuid: nil, fields: nil, quota_user: nil, options: nil, &block)
512
+ def delete_project_region_cluster(project_id, region, cluster_name, cluster_uuid: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
391
513
  command = make_simple_command(:delete, 'v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
392
514
  command.response_representation = Google::Apis::DataprocV1beta2::Operation::Representation
393
515
  command.response_class = Google::Apis::DataprocV1beta2::Operation
@@ -395,6 +517,7 @@ module Google
395
517
  command.params['region'] = region unless region.nil?
396
518
  command.params['clusterName'] = cluster_name unless cluster_name.nil?
397
519
  command.query['clusterUuid'] = cluster_uuid unless cluster_uuid.nil?
520
+ command.query['requestId'] = request_id unless request_id.nil?
398
521
  command.query['fields'] = fields unless fields.nil?
399
522
  command.query['quotaUser'] = quota_user unless quota_user.nil?
400
523
  execute_or_queue_command(command, &block)
@@ -578,12 +701,19 @@ module Google
578
701
  # forcefully removing nodes (and potentially interrupting jobs). Default timeout
579
702
  # is 0 (for forceful decommission), and the maximum allowed timeout is 1 day.
580
703
  # Only supported on Dataproc image versions 1.2 and higher.
704
+ # @param [String] request_id
705
+ # Optional. A unique id used to identify the request. If the server receives two
706
+ # UpdateClusterRequest requests with the same id, then the second request will
707
+ # be ignored and the first google.longrunning.Operation created and stored in
708
+ # the backend is returned.It is recommended to always set this value to a UUID (
709
+ # https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must
710
+ # contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-
711
+ # ). The maximum length is 40 characters.
581
712
  # @param [String] update_mask
582
- # Required. Specifies the path, relative to <code>Cluster</code>, of the field
583
- # to update. For example, to change the number of workers in a cluster to 5, the
584
- # <code>update_mask</code> parameter would be specified as <code>config.
585
- # worker_config.num_instances</code>, and the PATCH request body would specify
586
- # the new value, as follows:
713
+ # Required. Specifies the path, relative to Cluster, of the field to update. For
714
+ # example, to change the number of workers in a cluster to 5, the update_mask
715
+ # parameter would be specified as config.worker_config.num_instances, and the
716
+ # PATCH request body would specify the new value, as follows:
587
717
  # `
588
718
  # "config":`
589
719
  # "workerConfig":`
@@ -591,10 +721,9 @@ module Google
591
721
  # `
592
722
  # `
593
723
  # `
594
- # Similarly, to change the number of preemptible workers in a cluster to 5, the <
595
- # code>update_mask</code> parameter would be <code>config.
596
- # secondary_worker_config.num_instances</code>, and the PATCH request body would
597
- # be set as follows:
724
+ # Similarly, to change the number of preemptible workers in a cluster to 5, the
725
+ # update_mask parameter would be config.secondary_worker_config.num_instances,
726
+ # and the PATCH request body would be set as follows:
598
727
  # `
599
728
  # "config":`
600
729
  # "secondaryWorkerConfig":`
@@ -602,12 +731,33 @@ module Google
602
731
  # `
603
732
  # `
604
733
  # `
605
- # <strong>Note:</strong> currently only some fields can be updated: |Mask|
606
- # Purpose| |labels|Updates labels| |config.worker_config.num_instances|Resize
607
- # primary worker group| |config.secondary_worker_config.num_instances|Resize
608
- # secondary worker group| |config.lifecycle_config.auto_delete_ttl|Reset MAX TTL
609
- # duration| |config.lifecycle_config.auto_delete_time|Update MAX TTL deletion
610
- # timestamp| |config.lifecycle_config.idle_delete_ttl|Update Idle TTL duration|
734
+ # <strong>Note:</strong> currently only the following fields can be updated:
735
+ # <table>
736
+ # <tr>
737
+ # <td><strong>Mask</strong></td><td><strong>Purpose</strong></td>
738
+ # </tr>
739
+ # <tr>
740
+ # <td>labels</td><td>Updates labels</td>
741
+ # </tr>
742
+ # <tr>
743
+ # <td>config.worker_config.num_instances</td><td>Resize primary worker group</td>
744
+ # </tr>
745
+ # <tr>
746
+ # <td>config.secondary_worker_config.num_instances</td><td>Resize secondary
747
+ # worker group</td>
748
+ # </tr>
749
+ # <tr>
750
+ # <td>config.lifecycle_config.auto_delete_ttl</td><td>Reset MAX TTL duration</td>
751
+ # </tr>
752
+ # <tr>
753
+ # <td>config.lifecycle_config.auto_delete_time</td><td>Update MAX TTL deletion
754
+ # timestamp</td>
755
+ # </tr>
756
+ # <tr>
757
+ # <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL duration</
758
+ # td>
759
+ # </tr>
760
+ # </table>
611
761
  # @param [String] fields
612
762
  # Selector specifying which fields to include in a partial response.
613
763
  # @param [String] quota_user
@@ -625,7 +775,7 @@ module Google
625
775
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
626
776
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
627
777
  # @raise [Google::Apis::AuthorizationError] Authorization is required
628
- def patch_project_region_cluster(project_id, region, cluster_name, cluster_object = nil, graceful_decommission_timeout: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
778
+ def patch_project_region_cluster(project_id, region, cluster_name, cluster_object = nil, graceful_decommission_timeout: nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
629
779
  command = make_simple_command(:patch, 'v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
630
780
  command.request_representation = Google::Apis::DataprocV1beta2::Cluster::Representation
631
781
  command.request_object = cluster_object
@@ -635,6 +785,7 @@ module Google
635
785
  command.params['region'] = region unless region.nil?
636
786
  command.params['clusterName'] = cluster_name unless cluster_name.nil?
637
787
  command.query['gracefulDecommissionTimeout'] = graceful_decommission_timeout unless graceful_decommission_timeout.nil?
788
+ command.query['requestId'] = request_id unless request_id.nil?
638
789
  command.query['updateMask'] = update_mask unless update_mask.nil?
639
790
  command.query['fields'] = fields unless fields.nil?
640
791
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -827,6 +978,38 @@ module Google
827
978
  execute_or_queue_command(command, &block)
828
979
  end
829
980
 
981
+ # Gets the access control policy for a resource. Returns an empty policy if the
982
+ # resource exists and does not have a policy set.
983
+ # @param [String] resource
984
+ # REQUIRED: The resource for which the policy is being requested. See the
985
+ # operation documentation for the appropriate value for this field.
986
+ # @param [String] fields
987
+ # Selector specifying which fields to include in a partial response.
988
+ # @param [String] quota_user
989
+ # Available to use for quota purposes for server-side applications. Can be any
990
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
991
+ # @param [Google::Apis::RequestOptions] options
992
+ # Request-specific options
993
+ #
994
+ # @yield [result, err] Result & error if block supplied
995
+ # @yieldparam result [Google::Apis::DataprocV1beta2::Policy] parsed result object
996
+ # @yieldparam err [StandardError] error object if request failed
997
+ #
998
+ # @return [Google::Apis::DataprocV1beta2::Policy]
999
+ #
1000
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1001
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1002
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1003
+ def get_project_region_job_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
1004
+ command = make_simple_command(:get, 'v1beta2/{+resource}:getIamPolicy', options)
1005
+ command.response_representation = Google::Apis::DataprocV1beta2::Policy::Representation
1006
+ command.response_class = Google::Apis::DataprocV1beta2::Policy
1007
+ command.params['resource'] = resource unless resource.nil?
1008
+ command.query['fields'] = fields unless fields.nil?
1009
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1010
+ execute_or_queue_command(command, &block)
1011
+ end
1012
+
830
1013
  # Lists regions/`region`/jobs in a project.
831
1014
  # @param [String] project_id
832
1015
  # Required. The ID of the Google Cloud Platform project that the job belongs to.
@@ -930,6 +1113,41 @@ module Google
930
1113
  execute_or_queue_command(command, &block)
931
1114
  end
932
1115
 
1116
+ # Sets the access control policy on the specified resource. Replaces any
1117
+ # existing policy.
1118
+ # @param [String] resource
1119
+ # REQUIRED: The resource for which the policy is being specified. See the
1120
+ # operation documentation for the appropriate value for this field.
1121
+ # @param [Google::Apis::DataprocV1beta2::SetIamPolicyRequest] set_iam_policy_request_object
1122
+ # @param [String] fields
1123
+ # Selector specifying which fields to include in a partial response.
1124
+ # @param [String] quota_user
1125
+ # Available to use for quota purposes for server-side applications. Can be any
1126
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1127
+ # @param [Google::Apis::RequestOptions] options
1128
+ # Request-specific options
1129
+ #
1130
+ # @yield [result, err] Result & error if block supplied
1131
+ # @yieldparam result [Google::Apis::DataprocV1beta2::Policy] parsed result object
1132
+ # @yieldparam err [StandardError] error object if request failed
1133
+ #
1134
+ # @return [Google::Apis::DataprocV1beta2::Policy]
1135
+ #
1136
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1137
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1138
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1139
+ def set_job_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1140
+ command = make_simple_command(:post, 'v1beta2/{+resource}:setIamPolicy', options)
1141
+ command.request_representation = Google::Apis::DataprocV1beta2::SetIamPolicyRequest::Representation
1142
+ command.request_object = set_iam_policy_request_object
1143
+ command.response_representation = Google::Apis::DataprocV1beta2::Policy::Representation
1144
+ command.response_class = Google::Apis::DataprocV1beta2::Policy
1145
+ command.params['resource'] = resource unless resource.nil?
1146
+ command.query['fields'] = fields unless fields.nil?
1147
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1148
+ execute_or_queue_command(command, &block)
1149
+ end
1150
+
933
1151
  # Submits a job to a cluster.
934
1152
  # @param [String] project_id
935
1153
  # Required. The ID of the Google Cloud Platform project that the job belongs to.
@@ -966,6 +1184,44 @@ module Google
966
1184
  execute_or_queue_command(command, &block)
967
1185
  end
968
1186
 
1187
+ # Returns permissions that a caller has on the specified resource. If the
1188
+ # resource does not exist, this will return an empty set of permissions, not a
1189
+ # NOT_FOUND error.Note: This operation is designed to be used for building
1190
+ # permission-aware UIs and command-line tools, not for authorization checking.
1191
+ # This operation may "fail open" without warning.
1192
+ # @param [String] resource
1193
+ # REQUIRED: The resource for which the policy detail is being requested. See the
1194
+ # operation documentation for the appropriate value for this field.
1195
+ # @param [Google::Apis::DataprocV1beta2::TestIamPermissionsRequest] test_iam_permissions_request_object
1196
+ # @param [String] fields
1197
+ # Selector specifying which fields to include in a partial response.
1198
+ # @param [String] quota_user
1199
+ # Available to use for quota purposes for server-side applications. Can be any
1200
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1201
+ # @param [Google::Apis::RequestOptions] options
1202
+ # Request-specific options
1203
+ #
1204
+ # @yield [result, err] Result & error if block supplied
1205
+ # @yieldparam result [Google::Apis::DataprocV1beta2::TestIamPermissionsResponse] parsed result object
1206
+ # @yieldparam err [StandardError] error object if request failed
1207
+ #
1208
+ # @return [Google::Apis::DataprocV1beta2::TestIamPermissionsResponse]
1209
+ #
1210
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1211
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1212
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1213
+ def test_job_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1214
+ command = make_simple_command(:post, 'v1beta2/{+resource}:testIamPermissions', options)
1215
+ command.request_representation = Google::Apis::DataprocV1beta2::TestIamPermissionsRequest::Representation
1216
+ command.request_object = test_iam_permissions_request_object
1217
+ command.response_representation = Google::Apis::DataprocV1beta2::TestIamPermissionsResponse::Representation
1218
+ command.response_class = Google::Apis::DataprocV1beta2::TestIamPermissionsResponse
1219
+ command.params['resource'] = resource unless resource.nil?
1220
+ command.query['fields'] = fields unless fields.nil?
1221
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1222
+ execute_or_queue_command(command, &block)
1223
+ end
1224
+
969
1225
  # Starts asynchronous cancellation on a long-running operation. The server makes
970
1226
  # a best effort to cancel the operation, but success is not guaranteed. If the
971
1227
  # server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
@@ -1067,6 +1323,38 @@ module Google
1067
1323
  execute_or_queue_command(command, &block)
1068
1324
  end
1069
1325
 
1326
+ # Gets the access control policy for a resource. Returns an empty policy if the
1327
+ # resource exists and does not have a policy set.
1328
+ # @param [String] resource
1329
+ # REQUIRED: The resource for which the policy is being requested. See the
1330
+ # operation documentation for the appropriate value for this field.
1331
+ # @param [String] fields
1332
+ # Selector specifying which fields to include in a partial response.
1333
+ # @param [String] quota_user
1334
+ # Available to use for quota purposes for server-side applications. Can be any
1335
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1336
+ # @param [Google::Apis::RequestOptions] options
1337
+ # Request-specific options
1338
+ #
1339
+ # @yield [result, err] Result & error if block supplied
1340
+ # @yieldparam result [Google::Apis::DataprocV1beta2::Policy] parsed result object
1341
+ # @yieldparam err [StandardError] error object if request failed
1342
+ #
1343
+ # @return [Google::Apis::DataprocV1beta2::Policy]
1344
+ #
1345
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1346
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1347
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1348
+ def get_project_region_operation_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
1349
+ command = make_simple_command(:get, 'v1beta2/{+resource}:getIamPolicy', options)
1350
+ command.response_representation = Google::Apis::DataprocV1beta2::Policy::Representation
1351
+ command.response_class = Google::Apis::DataprocV1beta2::Policy
1352
+ command.params['resource'] = resource unless resource.nil?
1353
+ command.query['fields'] = fields unless fields.nil?
1354
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1355
+ execute_or_queue_command(command, &block)
1356
+ end
1357
+
1070
1358
  # Lists operations that match the specified filter in the request. If the server
1071
1359
  # doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
1072
1360
  # allows API services to override the binding to use different resource name
@@ -1113,6 +1401,79 @@ module Google
1113
1401
  execute_or_queue_command(command, &block)
1114
1402
  end
1115
1403
 
1404
+ # Sets the access control policy on the specified resource. Replaces any
1405
+ # existing policy.
1406
+ # @param [String] resource
1407
+ # REQUIRED: The resource for which the policy is being specified. See the
1408
+ # operation documentation for the appropriate value for this field.
1409
+ # @param [Google::Apis::DataprocV1beta2::SetIamPolicyRequest] set_iam_policy_request_object
1410
+ # @param [String] fields
1411
+ # Selector specifying which fields to include in a partial response.
1412
+ # @param [String] quota_user
1413
+ # Available to use for quota purposes for server-side applications. Can be any
1414
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1415
+ # @param [Google::Apis::RequestOptions] options
1416
+ # Request-specific options
1417
+ #
1418
+ # @yield [result, err] Result & error if block supplied
1419
+ # @yieldparam result [Google::Apis::DataprocV1beta2::Policy] parsed result object
1420
+ # @yieldparam err [StandardError] error object if request failed
1421
+ #
1422
+ # @return [Google::Apis::DataprocV1beta2::Policy]
1423
+ #
1424
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1425
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1426
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1427
+ def set_operation_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1428
+ command = make_simple_command(:post, 'v1beta2/{+resource}:setIamPolicy', options)
1429
+ command.request_representation = Google::Apis::DataprocV1beta2::SetIamPolicyRequest::Representation
1430
+ command.request_object = set_iam_policy_request_object
1431
+ command.response_representation = Google::Apis::DataprocV1beta2::Policy::Representation
1432
+ command.response_class = Google::Apis::DataprocV1beta2::Policy
1433
+ command.params['resource'] = resource unless resource.nil?
1434
+ command.query['fields'] = fields unless fields.nil?
1435
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1436
+ execute_or_queue_command(command, &block)
1437
+ end
1438
+
1439
+ # Returns permissions that a caller has on the specified resource. If the
1440
+ # resource does not exist, this will return an empty set of permissions, not a
1441
+ # NOT_FOUND error.Note: This operation is designed to be used for building
1442
+ # permission-aware UIs and command-line tools, not for authorization checking.
1443
+ # This operation may "fail open" without warning.
1444
+ # @param [String] resource
1445
+ # REQUIRED: The resource for which the policy detail is being requested. See the
1446
+ # operation documentation for the appropriate value for this field.
1447
+ # @param [Google::Apis::DataprocV1beta2::TestIamPermissionsRequest] test_iam_permissions_request_object
1448
+ # @param [String] fields
1449
+ # Selector specifying which fields to include in a partial response.
1450
+ # @param [String] quota_user
1451
+ # Available to use for quota purposes for server-side applications. Can be any
1452
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1453
+ # @param [Google::Apis::RequestOptions] options
1454
+ # Request-specific options
1455
+ #
1456
+ # @yield [result, err] Result & error if block supplied
1457
+ # @yieldparam result [Google::Apis::DataprocV1beta2::TestIamPermissionsResponse] parsed result object
1458
+ # @yieldparam err [StandardError] error object if request failed
1459
+ #
1460
+ # @return [Google::Apis::DataprocV1beta2::TestIamPermissionsResponse]
1461
+ #
1462
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1463
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1464
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1465
+ def test_operation_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1466
+ command = make_simple_command(:post, 'v1beta2/{+resource}:testIamPermissions', options)
1467
+ command.request_representation = Google::Apis::DataprocV1beta2::TestIamPermissionsRequest::Representation
1468
+ command.request_object = test_iam_permissions_request_object
1469
+ command.response_representation = Google::Apis::DataprocV1beta2::TestIamPermissionsResponse::Representation
1470
+ command.response_class = Google::Apis::DataprocV1beta2::TestIamPermissionsResponse
1471
+ command.params['resource'] = resource unless resource.nil?
1472
+ command.query['fields'] = fields unless fields.nil?
1473
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1474
+ execute_or_queue_command(command, &block)
1475
+ end
1476
+
1116
1477
  # Creates new workflow template.
1117
1478
  # @param [String] parent
1118
1479
  # Required. The "resource name" of the region, as described in https://cloud.
@@ -1222,6 +1583,38 @@ module Google
1222
1583
  execute_or_queue_command(command, &block)
1223
1584
  end
1224
1585
 
1586
+ # Gets the access control policy for a resource. Returns an empty policy if the
1587
+ # resource exists and does not have a policy set.
1588
+ # @param [String] resource
1589
+ # REQUIRED: The resource for which the policy is being requested. See the
1590
+ # operation documentation for the appropriate value for this field.
1591
+ # @param [String] fields
1592
+ # Selector specifying which fields to include in a partial response.
1593
+ # @param [String] quota_user
1594
+ # Available to use for quota purposes for server-side applications. Can be any
1595
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1596
+ # @param [Google::Apis::RequestOptions] options
1597
+ # Request-specific options
1598
+ #
1599
+ # @yield [result, err] Result & error if block supplied
1600
+ # @yieldparam result [Google::Apis::DataprocV1beta2::Policy] parsed result object
1601
+ # @yieldparam err [StandardError] error object if request failed
1602
+ #
1603
+ # @return [Google::Apis::DataprocV1beta2::Policy]
1604
+ #
1605
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1606
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1607
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1608
+ def get_project_region_workflow_template_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
1609
+ command = make_simple_command(:get, 'v1beta2/{+resource}:getIamPolicy', options)
1610
+ command.response_representation = Google::Apis::DataprocV1beta2::Policy::Representation
1611
+ command.response_class = Google::Apis::DataprocV1beta2::Policy
1612
+ command.params['resource'] = resource unless resource.nil?
1613
+ command.query['fields'] = fields unless fields.nil?
1614
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1615
+ execute_or_queue_command(command, &block)
1616
+ end
1617
+
1225
1618
  # Instantiates a template and begins execution.The returned Operation can be
1226
1619
  # used to track execution of workflow by polling operations.get. The Operation
1227
1620
  # will complete when entire workflow is finished.The running workflow can be
@@ -1352,6 +1745,79 @@ module Google
1352
1745
  execute_or_queue_command(command, &block)
1353
1746
  end
1354
1747
 
1748
+ # Sets the access control policy on the specified resource. Replaces any
1749
+ # existing policy.
1750
+ # @param [String] resource
1751
+ # REQUIRED: The resource for which the policy is being specified. See the
1752
+ # operation documentation for the appropriate value for this field.
1753
+ # @param [Google::Apis::DataprocV1beta2::SetIamPolicyRequest] set_iam_policy_request_object
1754
+ # @param [String] fields
1755
+ # Selector specifying which fields to include in a partial response.
1756
+ # @param [String] quota_user
1757
+ # Available to use for quota purposes for server-side applications. Can be any
1758
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1759
+ # @param [Google::Apis::RequestOptions] options
1760
+ # Request-specific options
1761
+ #
1762
+ # @yield [result, err] Result & error if block supplied
1763
+ # @yieldparam result [Google::Apis::DataprocV1beta2::Policy] parsed result object
1764
+ # @yieldparam err [StandardError] error object if request failed
1765
+ #
1766
+ # @return [Google::Apis::DataprocV1beta2::Policy]
1767
+ #
1768
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1769
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1770
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1771
+ def set_project_region_workflow_template_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1772
+ command = make_simple_command(:post, 'v1beta2/{+resource}:setIamPolicy', options)
1773
+ command.request_representation = Google::Apis::DataprocV1beta2::SetIamPolicyRequest::Representation
1774
+ command.request_object = set_iam_policy_request_object
1775
+ command.response_representation = Google::Apis::DataprocV1beta2::Policy::Representation
1776
+ command.response_class = Google::Apis::DataprocV1beta2::Policy
1777
+ command.params['resource'] = resource unless resource.nil?
1778
+ command.query['fields'] = fields unless fields.nil?
1779
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1780
+ execute_or_queue_command(command, &block)
1781
+ end
1782
+
1783
+ # Returns permissions that a caller has on the specified resource. If the
1784
+ # resource does not exist, this will return an empty set of permissions, not a
1785
+ # NOT_FOUND error.Note: This operation is designed to be used for building
1786
+ # permission-aware UIs and command-line tools, not for authorization checking.
1787
+ # This operation may "fail open" without warning.
1788
+ # @param [String] resource
1789
+ # REQUIRED: The resource for which the policy detail is being requested. See the
1790
+ # operation documentation for the appropriate value for this field.
1791
+ # @param [Google::Apis::DataprocV1beta2::TestIamPermissionsRequest] test_iam_permissions_request_object
1792
+ # @param [String] fields
1793
+ # Selector specifying which fields to include in a partial response.
1794
+ # @param [String] quota_user
1795
+ # Available to use for quota purposes for server-side applications. Can be any
1796
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1797
+ # @param [Google::Apis::RequestOptions] options
1798
+ # Request-specific options
1799
+ #
1800
+ # @yield [result, err] Result & error if block supplied
1801
+ # @yieldparam result [Google::Apis::DataprocV1beta2::TestIamPermissionsResponse] parsed result object
1802
+ # @yieldparam err [StandardError] error object if request failed
1803
+ #
1804
+ # @return [Google::Apis::DataprocV1beta2::TestIamPermissionsResponse]
1805
+ #
1806
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1807
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1808
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1809
+ def test_project_region_workflow_template_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1810
+ command = make_simple_command(:post, 'v1beta2/{+resource}:testIamPermissions', options)
1811
+ command.request_representation = Google::Apis::DataprocV1beta2::TestIamPermissionsRequest::Representation
1812
+ command.request_object = test_iam_permissions_request_object
1813
+ command.response_representation = Google::Apis::DataprocV1beta2::TestIamPermissionsResponse::Representation
1814
+ command.response_class = Google::Apis::DataprocV1beta2::TestIamPermissionsResponse
1815
+ command.params['resource'] = resource unless resource.nil?
1816
+ command.query['fields'] = fields unless fields.nil?
1817
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1818
+ execute_or_queue_command(command, &block)
1819
+ end
1820
+
1355
1821
  # Updates (replaces) workflow template. The updated template must contain
1356
1822
  # version that matches the current server version.
1357
1823
  # @param [String] name