google-api-client 0.30.8 → 0.30.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (329) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +108 -0
  3. data/README.md +1 -1
  4. data/api_names.yaml +16 -0
  5. data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
  6. data/generated/google/apis/accessapproval_v1beta1/classes.rb +51 -0
  7. data/generated/google/apis/accessapproval_v1beta1/representations.rb +16 -0
  8. data/generated/google/apis/accessapproval_v1beta1/service.rb +30 -6
  9. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  10. data/generated/google/apis/adexperiencereport_v1.rb +1 -1
  11. data/generated/google/apis/adexperiencereport_v1/classes.rb +2 -0
  12. data/generated/google/apis/admin_directory_v1.rb +1 -1
  13. data/generated/google/apis/admin_directory_v1/classes.rb +55 -5
  14. data/generated/google/apis/admin_directory_v1/representations.rb +6 -0
  15. data/generated/google/apis/admin_directory_v1/service.rb +11 -10
  16. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  17. data/generated/google/apis/alertcenter_v1beta1/classes.rb +235 -0
  18. data/generated/google/apis/alertcenter_v1beta1/representations.rb +95 -0
  19. data/generated/google/apis/alertcenter_v1beta1/service.rb +99 -1
  20. data/generated/google/apis/analytics_v3.rb +1 -1
  21. data/generated/google/apis/analytics_v3/classes.rb +6 -0
  22. data/generated/google/apis/analytics_v3/representations.rb +1 -0
  23. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  24. data/generated/google/apis/analyticsreporting_v4/classes.rb +3 -1
  25. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  26. data/generated/google/apis/androidenterprise_v1/classes.rb +2 -1
  27. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  28. data/generated/google/apis/androidmanagement_v1/classes.rb +65 -0
  29. data/generated/google/apis/androidmanagement_v1/representations.rb +33 -0
  30. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  31. data/generated/google/apis/androidpublisher_v2/classes.rb +9 -2
  32. data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
  33. data/generated/google/apis/androidpublisher_v2/service.rb +12 -12
  34. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  35. data/generated/google/apis/androidpublisher_v3/classes.rb +39 -2
  36. data/generated/google/apis/androidpublisher_v3/representations.rb +4 -0
  37. data/generated/google/apis/androidpublisher_v3/service.rb +25 -13
  38. data/generated/google/apis/bigquery_v2.rb +4 -1
  39. data/generated/google/apis/bigquery_v2/classes.rb +137 -5
  40. data/generated/google/apis/bigquery_v2/representations.rb +64 -0
  41. data/generated/google/apis/bigquery_v2/service.rb +5 -1
  42. data/generated/google/apis/bigquerydatatransfer_v1.rb +4 -1
  43. data/generated/google/apis/bigqueryreservation_v1.rb +37 -0
  44. data/generated/google/apis/bigqueryreservation_v1/classes.rb +216 -0
  45. data/generated/google/apis/bigqueryreservation_v1/representations.rb +112 -0
  46. data/generated/google/apis/bigqueryreservation_v1/service.rb +139 -0
  47. data/generated/google/apis/bigqueryreservation_v1alpha2.rb +37 -0
  48. data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +514 -0
  49. data/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +237 -0
  50. data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +714 -0
  51. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  52. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +2 -2
  53. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +2 -2
  54. data/generated/google/apis/cloudasset_v1.rb +1 -1
  55. data/generated/google/apis/cloudasset_v1/classes.rb +0 -9
  56. data/generated/google/apis/cloudasset_v1/representations.rb +0 -1
  57. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  58. data/generated/google/apis/cloudasset_v1beta1/classes.rb +0 -9
  59. data/generated/google/apis/cloudasset_v1beta1/representations.rb +0 -1
  60. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  61. data/generated/google/apis/cloudbilling_v1/service.rb +1 -1
  62. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  63. data/generated/google/apis/cloudbuild_v1/classes.rb +14 -4
  64. data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
  65. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  66. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +6 -2
  67. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  68. data/generated/google/apis/cloudfunctions_v1/classes.rb +18 -22
  69. data/generated/google/apis/cloudfunctions_v1/service.rb +7 -1
  70. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  71. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +8 -11
  72. data/generated/google/apis/cloudiot_v1.rb +1 -1
  73. data/generated/google/apis/cloudiot_v1/classes.rb +1 -1
  74. data/generated/google/apis/cloudkms_v1.rb +1 -1
  75. data/generated/google/apis/cloudkms_v1/classes.rb +26 -11
  76. data/generated/google/apis/cloudkms_v1/representations.rb +2 -0
  77. data/generated/google/apis/cloudkms_v1/service.rb +28 -16
  78. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
  79. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +0 -9
  80. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/representations.rb +0 -1
  81. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +1 -1
  82. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  83. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1 -1
  84. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  85. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1 -1
  86. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  87. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +1 -1
  88. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  89. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +1 -1
  90. data/generated/google/apis/cloudscheduler_v1.rb +1 -1
  91. data/generated/google/apis/cloudscheduler_v1/classes.rb +2 -4
  92. data/generated/google/apis/cloudscheduler_v1/service.rb +7 -14
  93. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  94. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -4
  95. data/generated/google/apis/cloudscheduler_v1beta1/service.rb +7 -14
  96. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  97. data/generated/google/apis/cloudsearch_v1/classes.rb +0 -18
  98. data/generated/google/apis/cloudsearch_v1/representations.rb +0 -2
  99. data/generated/google/apis/cloudsearch_v1/service.rb +17 -9
  100. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  101. data/generated/google/apis/cloudtasks_v2/classes.rb +59 -17
  102. data/generated/google/apis/cloudtasks_v2/representations.rb +15 -0
  103. data/generated/google/apis/cloudtasks_v2/service.rb +12 -24
  104. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  105. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +35 -12
  106. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +15 -0
  107. data/generated/google/apis/cloudtasks_v2beta2/service.rb +16 -32
  108. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  109. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +30 -2
  110. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +15 -0
  111. data/generated/google/apis/cloudtasks_v2beta3/service.rb +12 -24
  112. data/generated/google/apis/compute_v1/service.rb +1 -1
  113. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  114. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +138 -138
  115. data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +54 -32
  116. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  117. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +19 -135
  118. data/generated/google/apis/containeranalysis_v1beta1/representations.rb +2 -32
  119. data/generated/google/apis/content_v2.rb +1 -1
  120. data/generated/google/apis/content_v2/classes.rb +10 -5
  121. data/generated/google/apis/content_v2/service.rb +3 -2
  122. data/generated/google/apis/content_v2_1.rb +1 -1
  123. data/generated/google/apis/content_v2_1/classes.rb +618 -6
  124. data/generated/google/apis/content_v2_1/representations.rb +271 -0
  125. data/generated/google/apis/content_v2_1/service.rb +357 -2
  126. data/generated/google/apis/dataproc_v1.rb +1 -1
  127. data/generated/google/apis/dataproc_v1/classes.rb +69 -8
  128. data/generated/google/apis/dataproc_v1/representations.rb +18 -0
  129. data/generated/google/apis/dataproc_v1/service.rb +121 -57
  130. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  131. data/generated/google/apis/dataproc_v1beta2/classes.rb +35 -11
  132. data/generated/google/apis/dataproc_v1beta2/representations.rb +1 -0
  133. data/generated/google/apis/dataproc_v1beta2/service.rb +203 -97
  134. data/generated/google/apis/dialogflow_v2.rb +1 -1
  135. data/generated/google/apis/dialogflow_v2/service.rb +94 -0
  136. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  137. data/generated/google/apis/dialogflow_v2beta1/classes.rb +51 -0
  138. data/generated/google/apis/dialogflow_v2beta1/representations.rb +16 -0
  139. data/generated/google/apis/dialogflow_v2beta1/service.rb +1989 -0
  140. data/generated/google/apis/dlp_v2.rb +1 -1
  141. data/generated/google/apis/dlp_v2/classes.rb +1 -1
  142. data/generated/google/apis/docs_v1.rb +1 -1
  143. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  144. data/generated/google/apis/doubleclicksearch_v2.rb +2 -2
  145. data/generated/google/apis/doubleclicksearch_v2/classes.rb +1 -1
  146. data/generated/google/apis/doubleclicksearch_v2/service.rb +1 -1
  147. data/generated/google/apis/drive_v2/service.rb +6 -6
  148. data/generated/google/apis/drive_v3/service.rb +6 -6
  149. data/generated/google/apis/factchecktools_v1alpha1.rb +1 -1
  150. data/generated/google/apis/factchecktools_v1alpha1/classes.rb +6 -0
  151. data/generated/google/apis/factchecktools_v1alpha1/representations.rb +1 -0
  152. data/generated/google/apis/fcm_v1.rb +1 -1
  153. data/generated/google/apis/fcm_v1/classes.rb +419 -0
  154. data/generated/google/apis/fcm_v1/representations.rb +45 -0
  155. data/generated/google/apis/file_v1.rb +1 -1
  156. data/generated/google/apis/file_v1/classes.rb +12 -1
  157. data/generated/google/apis/file_v1/representations.rb +1 -0
  158. data/generated/google/apis/file_v1beta1.rb +1 -1
  159. data/generated/google/apis/file_v1beta1/classes.rb +12 -1
  160. data/generated/google/apis/file_v1beta1/representations.rb +1 -0
  161. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  162. data/generated/google/apis/firebase_v1beta1/classes.rb +164 -4
  163. data/generated/google/apis/firebase_v1beta1/representations.rb +71 -0
  164. data/generated/google/apis/firebase_v1beta1/service.rb +165 -2
  165. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  166. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +27 -6
  167. data/generated/google/apis/firebasehosting_v1beta1/representations.rb +3 -0
  168. data/generated/google/apis/firebaserules_v1.rb +1 -1
  169. data/generated/google/apis/firebaserules_v1/classes.rb +6 -0
  170. data/generated/google/apis/firebaserules_v1/representations.rb +1 -0
  171. data/generated/google/apis/games_management_v1management.rb +1 -1
  172. data/generated/google/apis/games_management_v1management/classes.rb +1 -2
  173. data/generated/google/apis/games_v1.rb +1 -1
  174. data/generated/google/apis/games_v1/classes.rb +1 -2
  175. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  176. data/generated/google/apis/genomics_v2alpha1/classes.rb +18 -7
  177. data/generated/google/apis/genomics_v2alpha1/service.rb +5 -1
  178. data/generated/google/apis/groupssettings_v1.rb +1 -1
  179. data/generated/google/apis/groupssettings_v1/classes.rb +367 -99
  180. data/generated/google/apis/groupssettings_v1/service.rb +3 -3
  181. data/generated/google/apis/healthcare_v1alpha2.rb +1 -1
  182. data/generated/google/apis/healthcare_v1alpha2/classes.rb +4 -21
  183. data/generated/google/apis/healthcare_v1alpha2/representations.rb +0 -2
  184. data/generated/google/apis/healthcare_v1alpha2/service.rb +101 -117
  185. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  186. data/generated/google/apis/healthcare_v1beta1/classes.rb +18 -13
  187. data/generated/google/apis/healthcare_v1beta1/representations.rb +1 -1
  188. data/generated/google/apis/healthcare_v1beta1/service.rb +90 -22
  189. data/generated/google/apis/iam_v1.rb +1 -1
  190. data/generated/google/apis/iam_v1/classes.rb +31 -1
  191. data/generated/google/apis/iam_v1/representations.rb +14 -0
  192. data/generated/google/apis/iam_v1/service.rb +45 -4
  193. data/generated/google/apis/iap_v1.rb +1 -1
  194. data/generated/google/apis/iap_v1/classes.rb +1 -1
  195. data/generated/google/apis/iap_v1beta1.rb +1 -1
  196. data/generated/google/apis/iap_v1beta1/classes.rb +1 -1
  197. data/generated/google/apis/jobs_v3.rb +1 -1
  198. data/generated/google/apis/jobs_v3/classes.rb +2 -1
  199. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  200. data/generated/google/apis/jobs_v3p1beta1/classes.rb +2 -1
  201. data/generated/google/apis/libraryagent_v1.rb +1 -1
  202. data/generated/google/apis/libraryagent_v1/service.rb +5 -5
  203. data/generated/google/apis/logging_v2.rb +1 -1
  204. data/generated/google/apis/logging_v2/classes.rb +2 -2
  205. data/generated/google/apis/ml_v1.rb +1 -1
  206. data/generated/google/apis/ml_v1/classes.rb +63 -9
  207. data/generated/google/apis/ml_v1/representations.rb +16 -1
  208. data/generated/google/apis/ml_v1/service.rb +2 -2
  209. data/generated/google/apis/monitoring_v3.rb +1 -1
  210. data/generated/google/apis/monitoring_v3/classes.rb +29 -2
  211. data/generated/google/apis/monitoring_v3/representations.rb +4 -0
  212. data/generated/google/apis/pagespeedonline_v5.rb +1 -1
  213. data/generated/google/apis/people_v1.rb +1 -1
  214. data/generated/google/apis/people_v1/classes.rb +7 -0
  215. data/generated/google/apis/people_v1/representations.rb +1 -0
  216. data/generated/google/apis/people_v1/service.rb +5 -4
  217. data/generated/google/apis/pubsub_v1.rb +1 -1
  218. data/generated/google/apis/pubsub_v1/classes.rb +12 -11
  219. data/generated/google/apis/pubsub_v1/service.rb +3 -3
  220. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  221. data/generated/google/apis/pubsub_v1beta2/classes.rb +2 -2
  222. data/generated/google/apis/pubsub_v1beta2/service.rb +2 -2
  223. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  224. data/generated/google/apis/remotebuildexecution_v1/classes.rb +32 -0
  225. data/generated/google/apis/remotebuildexecution_v1/representations.rb +16 -0
  226. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  227. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +32 -0
  228. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +16 -0
  229. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  230. data/generated/google/apis/remotebuildexecution_v2/classes.rb +32 -0
  231. data/generated/google/apis/remotebuildexecution_v2/representations.rb +16 -0
  232. data/generated/google/apis/run_v1.rb +1 -1
  233. data/generated/google/apis/run_v1/classes.rb +25 -0
  234. data/generated/google/apis/run_v1/representations.rb +15 -0
  235. data/generated/google/apis/run_v1/service.rb +39 -0
  236. data/generated/google/apis/run_v1alpha1.rb +1 -1
  237. data/generated/google/apis/run_v1alpha1/classes.rb +338 -22
  238. data/generated/google/apis/run_v1alpha1/representations.rb +141 -1
  239. data/generated/google/apis/run_v1alpha1/service.rb +1 -1
  240. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  241. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +1 -1
  242. data/generated/google/apis/securitycenter_v1.rb +1 -1
  243. data/generated/google/apis/securitycenter_v1/classes.rb +16 -13
  244. data/generated/google/apis/securitycenter_v1/representations.rb +0 -1
  245. data/generated/google/apis/securitycenter_v1/service.rb +19 -6
  246. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  247. data/generated/google/apis/securitycenter_v1beta1/classes.rb +1 -10
  248. data/generated/google/apis/securitycenter_v1beta1/representations.rb +0 -1
  249. data/generated/google/apis/servicebroker_v1.rb +1 -1
  250. data/generated/google/apis/servicebroker_v1/service.rb +1 -1
  251. data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
  252. data/generated/google/apis/servicebroker_v1alpha1/service.rb +1 -1
  253. data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
  254. data/generated/google/apis/servicebroker_v1beta1/service.rb +1 -1
  255. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  256. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +4 -0
  257. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  258. data/generated/google/apis/servicecontrol_v1/classes.rb +54 -19
  259. data/generated/google/apis/servicecontrol_v1/representations.rb +17 -2
  260. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  261. data/generated/google/apis/servicemanagement_v1/classes.rb +11 -20
  262. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -1
  263. data/generated/google/apis/serviceusage_v1.rb +1 -1
  264. data/generated/google/apis/serviceusage_v1/classes.rb +0 -2
  265. data/generated/google/apis/serviceusage_v1/service.rb +1 -0
  266. data/generated/google/apis/sheets_v4.rb +1 -1
  267. data/generated/google/apis/sheets_v4/classes.rb +53 -10
  268. data/generated/google/apis/sheets_v4/representations.rb +17 -0
  269. data/generated/google/apis/spanner_v1.rb +1 -1
  270. data/generated/google/apis/spanner_v1/classes.rb +50 -54
  271. data/generated/google/apis/spanner_v1/service.rb +8 -15
  272. data/generated/google/apis/speech_v1.rb +1 -1
  273. data/generated/google/apis/speech_v1/classes.rb +2 -1
  274. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  275. data/generated/google/apis/speech_v1p1beta1/classes.rb +9 -16
  276. data/generated/google/apis/{run_v1beta1.rb → speech_v2beta.rb} +9 -10
  277. data/generated/google/apis/speech_v2beta/classes.rb +355 -0
  278. data/generated/google/apis/speech_v2beta/representations.rb +152 -0
  279. data/generated/google/apis/speech_v2beta/service.rb +138 -0
  280. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  281. data/generated/google/apis/storagetransfer_v1/classes.rb +14 -12
  282. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  283. data/generated/google/apis/toolresults_v1beta3/classes.rb +44 -9
  284. data/generated/google/apis/toolresults_v1beta3/representations.rb +2 -0
  285. data/generated/google/apis/toolresults_v1beta3/service.rb +3 -6
  286. data/generated/google/apis/tpu_v1.rb +1 -1
  287. data/generated/google/apis/tpu_v1/classes.rb +12 -0
  288. data/generated/google/apis/tpu_v1/representations.rb +2 -0
  289. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  290. data/generated/google/apis/tpu_v1alpha1/classes.rb +12 -0
  291. data/generated/google/apis/tpu_v1alpha1/representations.rb +2 -0
  292. data/generated/google/apis/translate_v3beta1.rb +1 -1
  293. data/generated/google/apis/translate_v3beta1/classes.rb +72 -0
  294. data/generated/google/apis/translate_v3beta1/representations.rb +32 -0
  295. data/generated/google/apis/translate_v3beta1/service.rb +82 -7
  296. data/generated/google/apis/vision_v1.rb +1 -1
  297. data/generated/google/apis/vision_v1/classes.rb +579 -0
  298. data/generated/google/apis/vision_v1/representations.rb +172 -0
  299. data/generated/google/apis/vision_v1/service.rb +404 -0
  300. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  301. data/generated/google/apis/vision_v1p1beta1/classes.rb +523 -0
  302. data/generated/google/apis/vision_v1p1beta1/representations.rb +143 -0
  303. data/generated/google/apis/vision_v1p1beta1/service.rb +352 -0
  304. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  305. data/generated/google/apis/vision_v1p2beta1/classes.rb +187 -0
  306. data/generated/google/apis/vision_v1p2beta1/representations.rb +23 -0
  307. data/generated/google/apis/vision_v1p2beta1/service.rb +352 -0
  308. data/generated/google/apis/websecurityscanner_v1.rb +4 -1
  309. data/generated/google/apis/websecurityscanner_v1/classes.rb +924 -0
  310. data/generated/google/apis/websecurityscanner_v1/representations.rb +426 -0
  311. data/generated/google/apis/websecurityscanner_v1/service.rb +487 -0
  312. data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
  313. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  314. data/generated/google/apis/youtube_partner_v1/service.rb +2 -3
  315. data/generated/google/apis/youtube_v3.rb +1 -1
  316. data/generated/google/apis/youtube_v3/classes.rb +322 -0
  317. data/generated/google/apis/youtube_v3/representations.rb +139 -0
  318. data/generated/google/apis/youtube_v3/service.rb +85 -0
  319. data/lib/google/api_client/client_secrets.rb +1 -2
  320. data/lib/google/apis/core/api_command.rb +12 -0
  321. data/lib/google/apis/core/batch.rb +2 -0
  322. data/lib/google/apis/core/http_command.rb +8 -1
  323. data/lib/google/apis/core/json_representation.rb +1 -1
  324. data/lib/google/apis/generator/annotator.rb +1 -0
  325. data/lib/google/apis/version.rb +1 -1
  326. metadata +14 -6
  327. data/generated/google/apis/run_v1beta1/classes.rb +0 -98
  328. data/generated/google/apis/run_v1beta1/representations.rb +0 -58
  329. data/generated/google/apis/run_v1beta1/service.rb +0 -99
@@ -0,0 +1,237 @@
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 BigqueryreservationV1alpha2
24
+
25
+ class CreateSlotPoolMetadata
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class Empty
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class ListLocationsResponse
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class ListReservationGrantsResponse
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class ListReservationsResponse
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class ListSlotPoolsResponse
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class Location
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class LocationMetadata
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class Operation
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class Reservation
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class ReservationGrant
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class SearchReservationGrantsResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class SlotPool
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class Status
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class CreateSlotPoolMetadata
110
+ # @private
111
+ class Representation < Google::Apis::Core::JsonRepresentation
112
+ property :slot_pool, as: 'slotPool'
113
+ end
114
+ end
115
+
116
+ class Empty
117
+ # @private
118
+ class Representation < Google::Apis::Core::JsonRepresentation
119
+ end
120
+ end
121
+
122
+ class ListLocationsResponse
123
+ # @private
124
+ class Representation < Google::Apis::Core::JsonRepresentation
125
+ collection :locations, as: 'locations', class: Google::Apis::BigqueryreservationV1alpha2::Location, decorator: Google::Apis::BigqueryreservationV1alpha2::Location::Representation
126
+
127
+ property :next_page_token, as: 'nextPageToken'
128
+ end
129
+ end
130
+
131
+ class ListReservationGrantsResponse
132
+ # @private
133
+ class Representation < Google::Apis::Core::JsonRepresentation
134
+ property :next_page_token, as: 'nextPageToken'
135
+ collection :reservation_grants, as: 'reservationGrants', class: Google::Apis::BigqueryreservationV1alpha2::ReservationGrant, decorator: Google::Apis::BigqueryreservationV1alpha2::ReservationGrant::Representation
136
+
137
+ end
138
+ end
139
+
140
+ class ListReservationsResponse
141
+ # @private
142
+ class Representation < Google::Apis::Core::JsonRepresentation
143
+ property :next_page_token, as: 'nextPageToken'
144
+ collection :reservations, as: 'reservations', class: Google::Apis::BigqueryreservationV1alpha2::Reservation, decorator: Google::Apis::BigqueryreservationV1alpha2::Reservation::Representation
145
+
146
+ end
147
+ end
148
+
149
+ class ListSlotPoolsResponse
150
+ # @private
151
+ class Representation < Google::Apis::Core::JsonRepresentation
152
+ property :next_page_token, as: 'nextPageToken'
153
+ collection :slot_pools, as: 'slotPools', class: Google::Apis::BigqueryreservationV1alpha2::SlotPool, decorator: Google::Apis::BigqueryreservationV1alpha2::SlotPool::Representation
154
+
155
+ end
156
+ end
157
+
158
+ class Location
159
+ # @private
160
+ class Representation < Google::Apis::Core::JsonRepresentation
161
+ property :display_name, as: 'displayName'
162
+ hash :labels, as: 'labels'
163
+ property :location_id, as: 'locationId'
164
+ hash :metadata, as: 'metadata'
165
+ property :name, as: 'name'
166
+ end
167
+ end
168
+
169
+ class LocationMetadata
170
+ # @private
171
+ class Representation < Google::Apis::Core::JsonRepresentation
172
+ property :legacy_location_id, as: 'legacyLocationId'
173
+ end
174
+ end
175
+
176
+ class Operation
177
+ # @private
178
+ class Representation < Google::Apis::Core::JsonRepresentation
179
+ property :done, as: 'done'
180
+ property :error, as: 'error', class: Google::Apis::BigqueryreservationV1alpha2::Status, decorator: Google::Apis::BigqueryreservationV1alpha2::Status::Representation
181
+
182
+ hash :metadata, as: 'metadata'
183
+ property :name, as: 'name'
184
+ hash :response, as: 'response'
185
+ end
186
+ end
187
+
188
+ class Reservation
189
+ # @private
190
+ class Representation < Google::Apis::Core::JsonRepresentation
191
+ property :name, as: 'name'
192
+ property :slot_capacity, :numeric_string => true, as: 'slotCapacity'
193
+ property :use_parent_reservation, as: 'useParentReservation'
194
+ end
195
+ end
196
+
197
+ class ReservationGrant
198
+ # @private
199
+ class Representation < Google::Apis::Core::JsonRepresentation
200
+ property :grantee, as: 'grantee'
201
+ property :job_type, as: 'jobType'
202
+ property :name, as: 'name'
203
+ property :reservation, as: 'reservation'
204
+ end
205
+ end
206
+
207
+ class SearchReservationGrantsResponse
208
+ # @private
209
+ class Representation < Google::Apis::Core::JsonRepresentation
210
+ property :next_page_token, as: 'nextPageToken'
211
+ collection :reservation_grants, as: 'reservationGrants', class: Google::Apis::BigqueryreservationV1alpha2::ReservationGrant, decorator: Google::Apis::BigqueryreservationV1alpha2::ReservationGrant::Representation
212
+
213
+ end
214
+ end
215
+
216
+ class SlotPool
217
+ # @private
218
+ class Representation < Google::Apis::Core::JsonRepresentation
219
+ property :commitment_end_time, as: 'commitmentEndTime'
220
+ property :name, as: 'name'
221
+ property :plan, as: 'plan'
222
+ property :slot_count, :numeric_string => true, as: 'slotCount'
223
+ property :state, as: 'state'
224
+ end
225
+ end
226
+
227
+ class Status
228
+ # @private
229
+ class Representation < Google::Apis::Core::JsonRepresentation
230
+ property :code, as: 'code'
231
+ collection :details, as: 'details'
232
+ property :message, as: 'message'
233
+ end
234
+ end
235
+ end
236
+ end
237
+ end
@@ -0,0 +1,714 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module BigqueryreservationV1alpha2
23
+ # BigQuery Reservation API
24
+ #
25
+ # A service to modify your BigQuery flat-rate reservations.
26
+ #
27
+ # @example
28
+ # require 'google/apis/bigqueryreservation_v1alpha2'
29
+ #
30
+ # Bigqueryreservation = Google::Apis::BigqueryreservationV1alpha2 # Alias the module
31
+ # service = Bigqueryreservation::BigQueryReservationService.new
32
+ #
33
+ # @see https://cloud.google.com/bigquery/
34
+ class BigQueryReservationService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://bigqueryreservation.googleapis.com/', '')
47
+ @batch_path = 'batch'
48
+ end
49
+
50
+ # Gets information about a location.
51
+ # @param [String] name
52
+ # Resource name for the location.
53
+ # @param [String] fields
54
+ # Selector specifying which fields to include in a partial response.
55
+ # @param [String] quota_user
56
+ # Available to use for quota purposes for server-side applications. Can be any
57
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
58
+ # @param [Google::Apis::RequestOptions] options
59
+ # Request-specific options
60
+ #
61
+ # @yield [result, err] Result & error if block supplied
62
+ # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::Location] parsed result object
63
+ # @yieldparam err [StandardError] error object if request failed
64
+ #
65
+ # @return [Google::Apis::BigqueryreservationV1alpha2::Location]
66
+ #
67
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
68
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
69
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
70
+ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
71
+ command = make_simple_command(:get, 'v1alpha2/{+name}', options)
72
+ command.response_representation = Google::Apis::BigqueryreservationV1alpha2::Location::Representation
73
+ command.response_class = Google::Apis::BigqueryreservationV1alpha2::Location
74
+ command.params['name'] = name unless name.nil?
75
+ command.query['fields'] = fields unless fields.nil?
76
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
77
+ execute_or_queue_command(command, &block)
78
+ end
79
+
80
+ # Lists information about the supported locations for this service.
81
+ # @param [String] name
82
+ # The resource that owns the locations collection, if applicable.
83
+ # @param [String] filter
84
+ # The standard list filter.
85
+ # @param [Fixnum] page_size
86
+ # The standard list page size.
87
+ # @param [String] page_token
88
+ # The standard list page token.
89
+ # @param [String] fields
90
+ # Selector specifying which fields to include in a partial response.
91
+ # @param [String] quota_user
92
+ # Available to use for quota purposes for server-side applications. Can be any
93
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
94
+ # @param [Google::Apis::RequestOptions] options
95
+ # Request-specific options
96
+ #
97
+ # @yield [result, err] Result & error if block supplied
98
+ # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::ListLocationsResponse] parsed result object
99
+ # @yieldparam err [StandardError] error object if request failed
100
+ #
101
+ # @return [Google::Apis::BigqueryreservationV1alpha2::ListLocationsResponse]
102
+ #
103
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
104
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
105
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
106
+ def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
107
+ command = make_simple_command(:get, 'v1alpha2/{+name}/locations', options)
108
+ command.response_representation = Google::Apis::BigqueryreservationV1alpha2::ListLocationsResponse::Representation
109
+ command.response_class = Google::Apis::BigqueryreservationV1alpha2::ListLocationsResponse
110
+ command.params['name'] = name unless name.nil?
111
+ command.query['filter'] = filter unless filter.nil?
112
+ command.query['pageSize'] = page_size unless page_size.nil?
113
+ command.query['pageToken'] = page_token unless page_token.nil?
114
+ command.query['fields'] = fields unless fields.nil?
115
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
116
+ execute_or_queue_command(command, &block)
117
+ end
118
+
119
+ # Look up grants for a specified resource for a particular region.
120
+ # If the request is about a project:
121
+ # 1) Grants created on the project will be returned if they exist.
122
+ # 2) Otherwise grants created on the closest ancestor will be returned.
123
+ # 3) Grants for different JobTypes will all be returned.
124
+ # Same logic applies if the request is about a folder.
125
+ # If the request is about an organization, then grants created on the
126
+ # organization will be returned (organization doesn't have ancestors).
127
+ # Comparing to ListReservationGrants, there are two behavior
128
+ # differences:
129
+ # 1) permission on the grantee will be verified in this API.
130
+ # 2) Hierarchy lookup (project->folder->organization) happens in this API.
131
+ # @param [String] parent
132
+ # The parent resource name (containing project and location), which owns the
133
+ # grants. e.g.:
134
+ # "projects/myproject/locations/us-central1".
135
+ # @param [Fixnum] page_size
136
+ # The maximum number of items to return.
137
+ # @param [String] page_token
138
+ # The next_page_token value returned from a previous List request, if any.
139
+ # @param [String] query
140
+ # Please specify resource name as grantee in the query.
141
+ # e.g., "grantee=projects/myproject"
142
+ # "grantee=folders/123"
143
+ # "grantee=organizations/456"
144
+ # @param [String] fields
145
+ # Selector specifying which fields to include in a partial response.
146
+ # @param [String] quota_user
147
+ # Available to use for quota purposes for server-side applications. Can be any
148
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
149
+ # @param [Google::Apis::RequestOptions] options
150
+ # Request-specific options
151
+ #
152
+ # @yield [result, err] Result & error if block supplied
153
+ # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::SearchReservationGrantsResponse] parsed result object
154
+ # @yieldparam err [StandardError] error object if request failed
155
+ #
156
+ # @return [Google::Apis::BigqueryreservationV1alpha2::SearchReservationGrantsResponse]
157
+ #
158
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
159
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
160
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
161
+ def search_project_location_reservation_grants(parent, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
162
+ command = make_simple_command(:get, 'v1alpha2/{+parent}:SearchReservationGrants', options)
163
+ command.response_representation = Google::Apis::BigqueryreservationV1alpha2::SearchReservationGrantsResponse::Representation
164
+ command.response_class = Google::Apis::BigqueryreservationV1alpha2::SearchReservationGrantsResponse
165
+ command.params['parent'] = parent unless parent.nil?
166
+ command.query['pageSize'] = page_size unless page_size.nil?
167
+ command.query['pageToken'] = page_token unless page_token.nil?
168
+ command.query['query'] = query unless query.nil?
169
+ command.query['fields'] = fields unless fields.nil?
170
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
171
+ execute_or_queue_command(command, &block)
172
+ end
173
+
174
+ # Starts asynchronous cancellation on a long-running operation. The server
175
+ # makes a best effort to cancel the operation, but success is not
176
+ # guaranteed. If the server doesn't support this method, it returns
177
+ # `google.rpc.Code.UNIMPLEMENTED`. Clients can use
178
+ # Operations.GetOperation or
179
+ # other methods to check whether the cancellation succeeded or whether the
180
+ # operation completed despite cancellation. On successful cancellation,
181
+ # the operation is not deleted; instead, it becomes an operation with
182
+ # an Operation.error value with a google.rpc.Status.code of 1,
183
+ # corresponding to `Code.CANCELLED`.
184
+ # @param [String] name
185
+ # The name of the operation resource to be cancelled.
186
+ # @param [String] fields
187
+ # Selector specifying which fields to include in a partial response.
188
+ # @param [String] quota_user
189
+ # Available to use for quota purposes for server-side applications. Can be any
190
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
191
+ # @param [Google::Apis::RequestOptions] options
192
+ # Request-specific options
193
+ #
194
+ # @yield [result, err] Result & error if block supplied
195
+ # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::Empty] parsed result object
196
+ # @yieldparam err [StandardError] error object if request failed
197
+ #
198
+ # @return [Google::Apis::BigqueryreservationV1alpha2::Empty]
199
+ #
200
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
201
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
202
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
203
+ def cancel_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
204
+ command = make_simple_command(:post, 'v1alpha2/{+name}:cancel', options)
205
+ command.response_representation = Google::Apis::BigqueryreservationV1alpha2::Empty::Representation
206
+ command.response_class = Google::Apis::BigqueryreservationV1alpha2::Empty
207
+ command.params['name'] = name unless name.nil?
208
+ command.query['fields'] = fields unless fields.nil?
209
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
210
+ execute_or_queue_command(command, &block)
211
+ end
212
+
213
+ # Gets the latest state of a long-running operation. Clients can use this
214
+ # method to poll the operation result at intervals as recommended by the API
215
+ # service.
216
+ # @param [String] name
217
+ # The name of the operation resource.
218
+ # @param [String] fields
219
+ # Selector specifying which fields to include in a partial response.
220
+ # @param [String] quota_user
221
+ # Available to use for quota purposes for server-side applications. Can be any
222
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
223
+ # @param [Google::Apis::RequestOptions] options
224
+ # Request-specific options
225
+ #
226
+ # @yield [result, err] Result & error if block supplied
227
+ # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::Operation] parsed result object
228
+ # @yieldparam err [StandardError] error object if request failed
229
+ #
230
+ # @return [Google::Apis::BigqueryreservationV1alpha2::Operation]
231
+ #
232
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
233
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
234
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
235
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
236
+ command = make_simple_command(:get, 'v1alpha2/{+name}', options)
237
+ command.response_representation = Google::Apis::BigqueryreservationV1alpha2::Operation::Representation
238
+ command.response_class = Google::Apis::BigqueryreservationV1alpha2::Operation
239
+ command.params['name'] = name unless name.nil?
240
+ command.query['fields'] = fields unless fields.nil?
241
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
242
+ execute_or_queue_command(command, &block)
243
+ end
244
+
245
+ # Returns `google.rpc.Code.PERMISSION_DENIED` if user does not have
246
+ # 'bigquery.admin' permissions on the project using the reservation
247
+ # and the project that owns this reservation.
248
+ # Returns `google.rpc.Code.INVALID_ARGUMENT` when location of the grant
249
+ # does not match location of the reservation.
250
+ # @param [String] parent
251
+ # The parent resource name of the reservation grant
252
+ # E.g.: projects/myproject/location/eu.
253
+ # @param [Google::Apis::BigqueryreservationV1alpha2::ReservationGrant] reservation_grant_object
254
+ # @param [String] fields
255
+ # Selector specifying which fields to include in a partial response.
256
+ # @param [String] quota_user
257
+ # Available to use for quota purposes for server-side applications. Can be any
258
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
259
+ # @param [Google::Apis::RequestOptions] options
260
+ # Request-specific options
261
+ #
262
+ # @yield [result, err] Result & error if block supplied
263
+ # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::ReservationGrant] parsed result object
264
+ # @yieldparam err [StandardError] error object if request failed
265
+ #
266
+ # @return [Google::Apis::BigqueryreservationV1alpha2::ReservationGrant]
267
+ #
268
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
269
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
270
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
271
+ def create_project_location_reservation_grant(parent, reservation_grant_object = nil, fields: nil, quota_user: nil, options: nil, &block)
272
+ command = make_simple_command(:post, 'v1alpha2/{+parent}/reservationGrants', options)
273
+ command.request_representation = Google::Apis::BigqueryreservationV1alpha2::ReservationGrant::Representation
274
+ command.request_object = reservation_grant_object
275
+ command.response_representation = Google::Apis::BigqueryreservationV1alpha2::ReservationGrant::Representation
276
+ command.response_class = Google::Apis::BigqueryreservationV1alpha2::ReservationGrant
277
+ command.params['parent'] = parent unless parent.nil?
278
+ command.query['fields'] = fields unless fields.nil?
279
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
280
+ execute_or_queue_command(command, &block)
281
+ end
282
+
283
+ # Deletes a reservation grant. No expansion will happen.
284
+ # E.g:
285
+ # organizationA contains project1 and project2. Reservation res1 exists.
286
+ # CreateReservationGrant was invoked previously and following grants were
287
+ # created explicitly:
288
+ # <organizationA, res1>
289
+ # <project1, res1>
290
+ # Then deletion of <organizationA, res1> won't affect <project1, res1>. After
291
+ # deletion of <organizationA, res1>, queries from project1 will still use
292
+ # res1, while queries from project2 will use on-demand mode.
293
+ # @param [String] name
294
+ # Name of the resource, e.g.:
295
+ # projects/myproject/locations/eu/reservationGrants/123
296
+ # @param [String] fields
297
+ # Selector specifying which fields to include in a partial response.
298
+ # @param [String] quota_user
299
+ # Available to use for quota purposes for server-side applications. Can be any
300
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
301
+ # @param [Google::Apis::RequestOptions] options
302
+ # Request-specific options
303
+ #
304
+ # @yield [result, err] Result & error if block supplied
305
+ # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::Empty] parsed result object
306
+ # @yieldparam err [StandardError] error object if request failed
307
+ #
308
+ # @return [Google::Apis::BigqueryreservationV1alpha2::Empty]
309
+ #
310
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
311
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
312
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
313
+ def delete_project_location_reservation_grant(name, fields: nil, quota_user: nil, options: nil, &block)
314
+ command = make_simple_command(:delete, 'v1alpha2/{+name}', options)
315
+ command.response_representation = Google::Apis::BigqueryreservationV1alpha2::Empty::Representation
316
+ command.response_class = Google::Apis::BigqueryreservationV1alpha2::Empty
317
+ command.params['name'] = name unless name.nil?
318
+ command.query['fields'] = fields unless fields.nil?
319
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
320
+ execute_or_queue_command(command, &block)
321
+ end
322
+
323
+ # Lists reservation grants.
324
+ # Only explicitly created grants will be returned. E.g:
325
+ # organizationA contains project1 and project2. Reservation res1 exists.
326
+ # CreateReservationGrant was invoked previously and following grants were
327
+ # created explicitly:
328
+ # <organizationA, res1>
329
+ # <project1, res1>
330
+ # Then this API will just return the above two grants for reservation res1,
331
+ # and no expansion/merge will happen.
332
+ # @param [String] parent
333
+ # The parent resource name e.g.: projects/myproject/location/eu.
334
+ # @param [Fixnum] page_size
335
+ # The maximum number of items to return.
336
+ # @param [String] page_token
337
+ # The next_page_token value returned from a previous List request, if any.
338
+ # @param [String] fields
339
+ # Selector specifying which fields to include in a partial response.
340
+ # @param [String] quota_user
341
+ # Available to use for quota purposes for server-side applications. Can be any
342
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
343
+ # @param [Google::Apis::RequestOptions] options
344
+ # Request-specific options
345
+ #
346
+ # @yield [result, err] Result & error if block supplied
347
+ # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::ListReservationGrantsResponse] parsed result object
348
+ # @yieldparam err [StandardError] error object if request failed
349
+ #
350
+ # @return [Google::Apis::BigqueryreservationV1alpha2::ListReservationGrantsResponse]
351
+ #
352
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
353
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
354
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
355
+ def list_project_location_reservation_grants(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
356
+ command = make_simple_command(:get, 'v1alpha2/{+parent}/reservationGrants', options)
357
+ command.response_representation = Google::Apis::BigqueryreservationV1alpha2::ListReservationGrantsResponse::Representation
358
+ command.response_class = Google::Apis::BigqueryreservationV1alpha2::ListReservationGrantsResponse
359
+ command.params['parent'] = parent unless parent.nil?
360
+ command.query['pageSize'] = page_size unless page_size.nil?
361
+ command.query['pageToken'] = page_token unless page_token.nil?
362
+ command.query['fields'] = fields unless fields.nil?
363
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
364
+ execute_or_queue_command(command, &block)
365
+ end
366
+
367
+ # Creates a new reservation resource. Multiple reservations are created if
368
+ # the ancestor reservations do not exist.
369
+ # @param [String] parent
370
+ # Project, location, and (optionally) reservation name. E.g.,
371
+ # projects/myproject/locations/us-central1/reservations/parent
372
+ # @param [Google::Apis::BigqueryreservationV1alpha2::Reservation] reservation_object
373
+ # @param [String] reservation_id
374
+ # The reservation ID relative to the parent, e.g., "dev". This field must
375
+ # only contain alphanumeric characters.
376
+ # @param [String] fields
377
+ # Selector specifying which fields to include in a partial response.
378
+ # @param [String] quota_user
379
+ # Available to use for quota purposes for server-side applications. Can be any
380
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
381
+ # @param [Google::Apis::RequestOptions] options
382
+ # Request-specific options
383
+ #
384
+ # @yield [result, err] Result & error if block supplied
385
+ # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::Reservation] parsed result object
386
+ # @yieldparam err [StandardError] error object if request failed
387
+ #
388
+ # @return [Google::Apis::BigqueryreservationV1alpha2::Reservation]
389
+ #
390
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
391
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
392
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
393
+ def create_project_location_reservation(parent, reservation_object = nil, reservation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
394
+ command = make_simple_command(:post, 'v1alpha2/{+parent}/reservations', options)
395
+ command.request_representation = Google::Apis::BigqueryreservationV1alpha2::Reservation::Representation
396
+ command.request_object = reservation_object
397
+ command.response_representation = Google::Apis::BigqueryreservationV1alpha2::Reservation::Representation
398
+ command.response_class = Google::Apis::BigqueryreservationV1alpha2::Reservation
399
+ command.params['parent'] = parent unless parent.nil?
400
+ command.query['reservationId'] = reservation_id unless reservation_id.nil?
401
+ command.query['fields'] = fields unless fields.nil?
402
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
403
+ execute_or_queue_command(command, &block)
404
+ end
405
+
406
+ # Creates a new reservation resource. Multiple reservations are created if
407
+ # the ancestor reservations do not exist.
408
+ # @param [String] parent
409
+ # Project, location, and (optionally) reservation name. E.g.,
410
+ # projects/myproject/locations/us-central1/reservations/parent
411
+ # @param [Google::Apis::BigqueryreservationV1alpha2::Reservation] reservation_object
412
+ # @param [String] reservation_id
413
+ # The reservation ID relative to the parent, e.g., "dev". This field must
414
+ # only contain alphanumeric characters.
415
+ # @param [String] fields
416
+ # Selector specifying which fields to include in a partial response.
417
+ # @param [String] quota_user
418
+ # Available to use for quota purposes for server-side applications. Can be any
419
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
420
+ # @param [Google::Apis::RequestOptions] options
421
+ # Request-specific options
422
+ #
423
+ # @yield [result, err] Result & error if block supplied
424
+ # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::Reservation] parsed result object
425
+ # @yieldparam err [StandardError] error object if request failed
426
+ #
427
+ # @return [Google::Apis::BigqueryreservationV1alpha2::Reservation]
428
+ #
429
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
430
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
431
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
432
+ def create_project_location_reservation_reservation(parent, reservation_object = nil, reservation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
433
+ command = make_simple_command(:post, 'v1alpha2/{+parent}', options)
434
+ command.request_representation = Google::Apis::BigqueryreservationV1alpha2::Reservation::Representation
435
+ command.request_object = reservation_object
436
+ command.response_representation = Google::Apis::BigqueryreservationV1alpha2::Reservation::Representation
437
+ command.response_class = Google::Apis::BigqueryreservationV1alpha2::Reservation
438
+ command.params['parent'] = parent unless parent.nil?
439
+ command.query['reservationId'] = reservation_id unless reservation_id.nil?
440
+ command.query['fields'] = fields unless fields.nil?
441
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
442
+ execute_or_queue_command(command, &block)
443
+ end
444
+
445
+ # Deletes a reservation.
446
+ # Returns `google.rpc.Code.FAILED_PRECONDITION` in the following cases:
447
+ # 1. When reservation has child reservations. This check can be bypassed by
448
+ # setting DeleteReservationRequest.force flag to true.
449
+ # 2. When top-level reservation with slot pools is being deleted.
450
+ # @param [String] name
451
+ # Resource name of the reservation to retrieve. E.g.,
452
+ # projects/myproject/locations/us-central1/reservations/my_reservation
453
+ # @param [Boolean] force
454
+ # If true, deletes all the child reservations of the given reservation.
455
+ # Otherwise, attempting to delete a reservation that has child
456
+ # reservations will fail with error code
457
+ # `google.rpc.Code.FAILED_PRECONDITION`.
458
+ # @param [String] fields
459
+ # Selector specifying which fields to include in a partial response.
460
+ # @param [String] quota_user
461
+ # Available to use for quota purposes for server-side applications. Can be any
462
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
463
+ # @param [Google::Apis::RequestOptions] options
464
+ # Request-specific options
465
+ #
466
+ # @yield [result, err] Result & error if block supplied
467
+ # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::Empty] parsed result object
468
+ # @yieldparam err [StandardError] error object if request failed
469
+ #
470
+ # @return [Google::Apis::BigqueryreservationV1alpha2::Empty]
471
+ #
472
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
473
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
474
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
475
+ def delete_project_location_reservation(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
476
+ command = make_simple_command(:delete, 'v1alpha2/{+name}', options)
477
+ command.response_representation = Google::Apis::BigqueryreservationV1alpha2::Empty::Representation
478
+ command.response_class = Google::Apis::BigqueryreservationV1alpha2::Empty
479
+ command.params['name'] = name unless name.nil?
480
+ command.query['force'] = force unless force.nil?
481
+ command.query['fields'] = fields unless fields.nil?
482
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
483
+ execute_or_queue_command(command, &block)
484
+ end
485
+
486
+ # Returns information about the reservation.
487
+ # @param [String] name
488
+ # Resource name of the reservation to retrieve. E.g.,
489
+ # projects/myproject/locations/us-central1/reservations/path/to/reserv
490
+ # @param [String] fields
491
+ # Selector specifying which fields to include in a partial response.
492
+ # @param [String] quota_user
493
+ # Available to use for quota purposes for server-side applications. Can be any
494
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
495
+ # @param [Google::Apis::RequestOptions] options
496
+ # Request-specific options
497
+ #
498
+ # @yield [result, err] Result & error if block supplied
499
+ # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::Reservation] parsed result object
500
+ # @yieldparam err [StandardError] error object if request failed
501
+ #
502
+ # @return [Google::Apis::BigqueryreservationV1alpha2::Reservation]
503
+ #
504
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
505
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
506
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
507
+ def get_project_location_reservation(name, fields: nil, quota_user: nil, options: nil, &block)
508
+ command = make_simple_command(:get, 'v1alpha2/{+name}', options)
509
+ command.response_representation = Google::Apis::BigqueryreservationV1alpha2::Reservation::Representation
510
+ command.response_class = Google::Apis::BigqueryreservationV1alpha2::Reservation
511
+ command.params['name'] = name unless name.nil?
512
+ command.query['fields'] = fields unless fields.nil?
513
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
514
+ execute_or_queue_command(command, &block)
515
+ end
516
+
517
+ # Lists all the reservations for the project in the specified location.
518
+ # @param [String] parent
519
+ # The parent resource name containing project and location, e.g.:
520
+ # "projects/myproject/locations/us-central1"
521
+ # @param [String] filter
522
+ # Can be used to filter out reservations based on names, capacity, etc, e.g.:
523
+ # filter="reservation.slot_capacity > 200"
524
+ # filter="reservation.name = \"*dev/*\""
525
+ # Advanced filtering syntax can be
526
+ # [here](https://cloud.google.com/logging/docs/view/advanced-filters).
527
+ # @param [Fixnum] page_size
528
+ # The maximum number of items to return.
529
+ # @param [String] page_token
530
+ # The next_page_token value returned from a previous List request, if any.
531
+ # @param [String] fields
532
+ # Selector specifying which fields to include in a partial response.
533
+ # @param [String] quota_user
534
+ # Available to use for quota purposes for server-side applications. Can be any
535
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
536
+ # @param [Google::Apis::RequestOptions] options
537
+ # Request-specific options
538
+ #
539
+ # @yield [result, err] Result & error if block supplied
540
+ # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::ListReservationsResponse] parsed result object
541
+ # @yieldparam err [StandardError] error object if request failed
542
+ #
543
+ # @return [Google::Apis::BigqueryreservationV1alpha2::ListReservationsResponse]
544
+ #
545
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
546
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
547
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
548
+ def list_project_location_reservations(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
549
+ command = make_simple_command(:get, 'v1alpha2/{+parent}/reservations', options)
550
+ command.response_representation = Google::Apis::BigqueryreservationV1alpha2::ListReservationsResponse::Representation
551
+ command.response_class = Google::Apis::BigqueryreservationV1alpha2::ListReservationsResponse
552
+ command.params['parent'] = parent unless parent.nil?
553
+ command.query['filter'] = filter unless filter.nil?
554
+ command.query['pageSize'] = page_size unless page_size.nil?
555
+ command.query['pageToken'] = page_token unless page_token.nil?
556
+ command.query['fields'] = fields unless fields.nil?
557
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
558
+ execute_or_queue_command(command, &block)
559
+ end
560
+
561
+ # Updates an existing reservation resource. Applicable only for child
562
+ # reservations.
563
+ # @param [String] name
564
+ # The resource name of the reservation, e.g.,
565
+ # "projects/*/locations/*/reservations/dev/team/product". Reservation names
566
+ # (e.g., "dev/team/product") exceeding a depth of six will fail with
567
+ # `google.rpc.Code.INVALID_ARGUMENT`.
568
+ # @param [Google::Apis::BigqueryreservationV1alpha2::Reservation] reservation_object
569
+ # @param [String] update_mask
570
+ # Standard field mask for the set of fields to be updated.
571
+ # @param [String] fields
572
+ # Selector specifying which fields to include in a partial response.
573
+ # @param [String] quota_user
574
+ # Available to use for quota purposes for server-side applications. Can be any
575
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
576
+ # @param [Google::Apis::RequestOptions] options
577
+ # Request-specific options
578
+ #
579
+ # @yield [result, err] Result & error if block supplied
580
+ # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::Reservation] parsed result object
581
+ # @yieldparam err [StandardError] error object if request failed
582
+ #
583
+ # @return [Google::Apis::BigqueryreservationV1alpha2::Reservation]
584
+ #
585
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
586
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
587
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
588
+ def patch_project_location_reservation(name, reservation_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
589
+ command = make_simple_command(:patch, 'v1alpha2/{+name}', options)
590
+ command.request_representation = Google::Apis::BigqueryreservationV1alpha2::Reservation::Representation
591
+ command.request_object = reservation_object
592
+ command.response_representation = Google::Apis::BigqueryreservationV1alpha2::Reservation::Representation
593
+ command.response_class = Google::Apis::BigqueryreservationV1alpha2::Reservation
594
+ command.params['name'] = name unless name.nil?
595
+ command.query['updateMask'] = update_mask unless update_mask.nil?
596
+ command.query['fields'] = fields unless fields.nil?
597
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
598
+ execute_or_queue_command(command, &block)
599
+ end
600
+
601
+ # Deletes a slot pool. Attempting to delete slot pool before its
602
+ # commitment_end_time will fail with the error code
603
+ # `google.rpc.Code.FAILED_PRECONDITION`.
604
+ # @param [String] name
605
+ # Resource name of the slot pool to delete. E.g.,
606
+ # projects/myproject/locations/us-central1/reservations/my_reservation/
607
+ # slotPools/123
608
+ # @param [String] fields
609
+ # Selector specifying which fields to include in a partial response.
610
+ # @param [String] quota_user
611
+ # Available to use for quota purposes for server-side applications. Can be any
612
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
613
+ # @param [Google::Apis::RequestOptions] options
614
+ # Request-specific options
615
+ #
616
+ # @yield [result, err] Result & error if block supplied
617
+ # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::Empty] parsed result object
618
+ # @yieldparam err [StandardError] error object if request failed
619
+ #
620
+ # @return [Google::Apis::BigqueryreservationV1alpha2::Empty]
621
+ #
622
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
623
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
624
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
625
+ def delete_project_location_reservation_slot_pool(name, fields: nil, quota_user: nil, options: nil, &block)
626
+ command = make_simple_command(:delete, 'v1alpha2/{+name}', options)
627
+ command.response_representation = Google::Apis::BigqueryreservationV1alpha2::Empty::Representation
628
+ command.response_class = Google::Apis::BigqueryreservationV1alpha2::Empty
629
+ command.params['name'] = name unless name.nil?
630
+ command.query['fields'] = fields unless fields.nil?
631
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
632
+ execute_or_queue_command(command, &block)
633
+ end
634
+
635
+ # Returns information about the slot pool.
636
+ # @param [String] name
637
+ # Resource name of the slot pool to retrieve. E.g.,
638
+ # projects/myproject/locations/us-central1/reservations/my_reservation/
639
+ # slotPools/123
640
+ # @param [String] fields
641
+ # Selector specifying which fields to include in a partial response.
642
+ # @param [String] quota_user
643
+ # Available to use for quota purposes for server-side applications. Can be any
644
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
645
+ # @param [Google::Apis::RequestOptions] options
646
+ # Request-specific options
647
+ #
648
+ # @yield [result, err] Result & error if block supplied
649
+ # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::SlotPool] parsed result object
650
+ # @yieldparam err [StandardError] error object if request failed
651
+ #
652
+ # @return [Google::Apis::BigqueryreservationV1alpha2::SlotPool]
653
+ #
654
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
655
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
656
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
657
+ def get_project_location_reservation_slot_pool(name, fields: nil, quota_user: nil, options: nil, &block)
658
+ command = make_simple_command(:get, 'v1alpha2/{+name}', options)
659
+ command.response_representation = Google::Apis::BigqueryreservationV1alpha2::SlotPool::Representation
660
+ command.response_class = Google::Apis::BigqueryreservationV1alpha2::SlotPool
661
+ command.params['name'] = name unless name.nil?
662
+ command.query['fields'] = fields unless fields.nil?
663
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
664
+ execute_or_queue_command(command, &block)
665
+ end
666
+
667
+ # Lists all the slot pools for the reservation.
668
+ # @param [String] parent
669
+ # Resource name of the parent reservation. Only top-level reservations can
670
+ # have slot pools. E.g.,
671
+ # projects/myproject/locations/us-central1/reservations/my_reservation
672
+ # @param [Fixnum] page_size
673
+ # The maximum number of items to return.
674
+ # @param [String] page_token
675
+ # The next_page_token value returned from a previous List request, if any.
676
+ # @param [String] fields
677
+ # Selector specifying which fields to include in a partial response.
678
+ # @param [String] quota_user
679
+ # Available to use for quota purposes for server-side applications. Can be any
680
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
681
+ # @param [Google::Apis::RequestOptions] options
682
+ # Request-specific options
683
+ #
684
+ # @yield [result, err] Result & error if block supplied
685
+ # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::ListSlotPoolsResponse] parsed result object
686
+ # @yieldparam err [StandardError] error object if request failed
687
+ #
688
+ # @return [Google::Apis::BigqueryreservationV1alpha2::ListSlotPoolsResponse]
689
+ #
690
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
691
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
692
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
693
+ def list_project_location_reservation_slot_pools(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
694
+ command = make_simple_command(:get, 'v1alpha2/{+parent}/slotPools', options)
695
+ command.response_representation = Google::Apis::BigqueryreservationV1alpha2::ListSlotPoolsResponse::Representation
696
+ command.response_class = Google::Apis::BigqueryreservationV1alpha2::ListSlotPoolsResponse
697
+ command.params['parent'] = parent unless parent.nil?
698
+ command.query['pageSize'] = page_size unless page_size.nil?
699
+ command.query['pageToken'] = page_token unless page_token.nil?
700
+ command.query['fields'] = fields unless fields.nil?
701
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
702
+ execute_or_queue_command(command, &block)
703
+ end
704
+
705
+ protected
706
+
707
+ def apply_command_defaults(command)
708
+ command.query['key'] = key unless key.nil?
709
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
710
+ end
711
+ end
712
+ end
713
+ end
714
+ end