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
@@ -2635,6 +2635,91 @@ module Google
2635
2635
  execute_or_queue_command(command, &block)
2636
2636
  end
2637
2637
 
2638
+ # Lists members for a channel.
2639
+ # @param [String] part
2640
+ # The part parameter specifies the member resource parts that the API response
2641
+ # will include. Supported values are id and snippet.
2642
+ # @param [String] has_access_to_level
2643
+ # The hasAccessToLevel parameter specifies, when set, the ID of a pricing level
2644
+ # that members from the results set should have access to. When not set, all
2645
+ # members will be considered, regardless of their active pricing level.
2646
+ # @param [Fixnum] max_results
2647
+ # The maxResults parameter specifies the maximum number of items that should be
2648
+ # returned in the result set.
2649
+ # @param [String] mode
2650
+ # The mode parameter specifies which channel members to return.
2651
+ # @param [String] page_token
2652
+ # The pageToken parameter identifies a specific page in the result set that
2653
+ # should be returned. In an API response, the nextPageToken and prevPageToken
2654
+ # properties identify other pages that could be retrieved.
2655
+ # @param [String] fields
2656
+ # Selector specifying which fields to include in a partial response.
2657
+ # @param [String] quota_user
2658
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2659
+ # characters.
2660
+ # @param [String] user_ip
2661
+ # Deprecated. Please use quotaUser instead.
2662
+ # @param [Google::Apis::RequestOptions] options
2663
+ # Request-specific options
2664
+ #
2665
+ # @yield [result, err] Result & error if block supplied
2666
+ # @yieldparam result [Google::Apis::YoutubeV3::MemberListResponse] parsed result object
2667
+ # @yieldparam err [StandardError] error object if request failed
2668
+ #
2669
+ # @return [Google::Apis::YoutubeV3::MemberListResponse]
2670
+ #
2671
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2672
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2673
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2674
+ def list_members(part, has_access_to_level: nil, max_results: nil, mode: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2675
+ command = make_simple_command(:get, 'members', options)
2676
+ command.response_representation = Google::Apis::YoutubeV3::MemberListResponse::Representation
2677
+ command.response_class = Google::Apis::YoutubeV3::MemberListResponse
2678
+ command.query['hasAccessToLevel'] = has_access_to_level unless has_access_to_level.nil?
2679
+ command.query['maxResults'] = max_results unless max_results.nil?
2680
+ command.query['mode'] = mode unless mode.nil?
2681
+ command.query['pageToken'] = page_token unless page_token.nil?
2682
+ command.query['part'] = part unless part.nil?
2683
+ command.query['fields'] = fields unless fields.nil?
2684
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2685
+ command.query['userIp'] = user_ip unless user_ip.nil?
2686
+ execute_or_queue_command(command, &block)
2687
+ end
2688
+
2689
+ # Lists pricing levels for a channel.
2690
+ # @param [String] part
2691
+ # The part parameter specifies the membershipsLevel resource parts that the API
2692
+ # response will include. Supported values are id and snippet.
2693
+ # @param [String] fields
2694
+ # Selector specifying which fields to include in a partial response.
2695
+ # @param [String] quota_user
2696
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2697
+ # characters.
2698
+ # @param [String] user_ip
2699
+ # Deprecated. Please use quotaUser instead.
2700
+ # @param [Google::Apis::RequestOptions] options
2701
+ # Request-specific options
2702
+ #
2703
+ # @yield [result, err] Result & error if block supplied
2704
+ # @yieldparam result [Google::Apis::YoutubeV3::MembershipsLevelListResponse] parsed result object
2705
+ # @yieldparam err [StandardError] error object if request failed
2706
+ #
2707
+ # @return [Google::Apis::YoutubeV3::MembershipsLevelListResponse]
2708
+ #
2709
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2710
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2711
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2712
+ def list_memberships_levels(part, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2713
+ command = make_simple_command(:get, 'membershipsLevels', options)
2714
+ command.response_representation = Google::Apis::YoutubeV3::MembershipsLevelListResponse::Representation
2715
+ command.response_class = Google::Apis::YoutubeV3::MembershipsLevelListResponse
2716
+ command.query['part'] = part unless part.nil?
2717
+ command.query['fields'] = fields unless fields.nil?
2718
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2719
+ command.query['userIp'] = user_ip unless user_ip.nil?
2720
+ execute_or_queue_command(command, &block)
2721
+ end
2722
+
2638
2723
  # Deletes a playlist item.
2639
2724
  # @param [String] id
2640
2725
  # The id parameter specifies the YouTube playlist item ID for the playlist item
@@ -13,6 +13,7 @@
13
13
  # limitations under the License.
14
14
 
15
15
  require 'json'
16
+ require 'googleauth'
16
17
 
17
18
 
18
19
  module Google
@@ -147,8 +148,6 @@ module Google
147
148
  end
148
149
 
149
150
  def to_authorization
150
- gem 'signet', '>= 0.4.0'
151
- require 'signet/oauth_2/client'
152
151
  # NOTE: Do not rely on this default value, as it may change
153
152
  new_authorization = Signet::OAuth2::Client.new
154
153
  new_authorization.client_id = self.client_id
@@ -52,6 +52,7 @@ module Google
52
52
  #
53
53
  # @return [void]
54
54
  def prepare!
55
+ set_xgac
55
56
  if options && options.api_format_version
56
57
  header['X-Goog-Api-Format-Version'] = options.api_format_version.to_s
57
58
  end
@@ -125,6 +126,17 @@ module Google
125
126
 
126
127
  private
127
128
 
129
+ def set_xgac
130
+ old_xgac = header
131
+ .find_all { |k, v| k.downcase == 'x-goog-api-client' }
132
+ .map { |(a, b)| b }
133
+ .join(' ')
134
+ xgac = "gl-ruby/#{RUBY_VERSION} gdcl/#{Google::Apis::VERSION}"
135
+ xgac = old_xgac.empty? ? xgac : "#{old_xgac} #{xgac}"
136
+ header.delete_if { |k, v| k.downcase == 'x-goog-api-client' }
137
+ header['X-Goog-Api-Client'] = xgac
138
+ end
139
+
128
140
  # Attempt to parse a JSON error message
129
141
  # @param [String] body
130
142
  # HTTP response body
@@ -163,6 +163,8 @@ module Google
163
163
  # the serialized request
164
164
  def to_part(call)
165
165
  call.prepare!
166
+ # This will add the Authorization header if needed.
167
+ call.apply_request_options(call.header)
166
168
  parts = []
167
169
  parts << build_head(call)
168
170
  parts << build_body(call) unless call.body.nil?
@@ -156,7 +156,7 @@ module Google
156
156
  normalize_unicode = options.normalize_unicode
157
157
  end
158
158
  self.url = url.expand(params, nil, normalize_unicode) if url.is_a?(Addressable::Template)
159
- url.query_values = query.merge(url.query_values || {})
159
+ url.query_values = normalize_query_values(query).merge(url.query_values || {})
160
160
 
161
161
  if allow_form_encoding?
162
162
  @form_encoded = true
@@ -422,6 +422,13 @@ module Google
422
422
  end
423
423
  end
424
424
 
425
+ def normalize_query_values(input)
426
+ input.inject({}) do |h, (k, v)|
427
+ h[k] = normalize_query_value(v)
428
+ h
429
+ end
430
+ end
431
+
425
432
  def normalize_query_value(v)
426
433
  case v
427
434
  when Array
@@ -145,7 +145,7 @@ module Google
145
145
 
146
146
  def to_json(*a)
147
147
  representation = self.class.const_get(:Representation)
148
- representation.new(self).to_json(user_options: { skip_undefined: true })
148
+ representation.new(self).to_hash(user_options: { skip_undefined: true }).to_json(*a)
149
149
  end
150
150
  end
151
151
  end
@@ -35,6 +35,7 @@ module Google
35
35
  class Names
36
36
  ActiveSupport::Inflector.inflections do |inflections|
37
37
  inflections.uncountable('send_as', 'as')
38
+ inflections.irregular('drive', 'drives')
38
39
  inflections.irregular('teamdrive', 'teamdrives')
39
40
  end
40
41
 
@@ -15,7 +15,7 @@
15
15
  module Google
16
16
  module Apis
17
17
  # Client library version
18
- VERSION = '0.30.8'.freeze
18
+ VERSION = '0.30.9'.freeze
19
19
 
20
20
  # Current operating system
21
21
  # @private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.30.8
4
+ version: 0.30.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Bazyl
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2019-07-29 00:00:00.000000000 Z
14
+ date: 2019-09-09 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: representable
@@ -352,6 +352,14 @@ files:
352
352
  - generated/google/apis/bigquerydatatransfer_v1/classes.rb
353
353
  - generated/google/apis/bigquerydatatransfer_v1/representations.rb
354
354
  - generated/google/apis/bigquerydatatransfer_v1/service.rb
355
+ - generated/google/apis/bigqueryreservation_v1.rb
356
+ - generated/google/apis/bigqueryreservation_v1/classes.rb
357
+ - generated/google/apis/bigqueryreservation_v1/representations.rb
358
+ - generated/google/apis/bigqueryreservation_v1/service.rb
359
+ - generated/google/apis/bigqueryreservation_v1alpha2.rb
360
+ - generated/google/apis/bigqueryreservation_v1alpha2/classes.rb
361
+ - generated/google/apis/bigqueryreservation_v1alpha2/representations.rb
362
+ - generated/google/apis/bigqueryreservation_v1alpha2/service.rb
355
363
  - generated/google/apis/bigtableadmin_v1.rb
356
364
  - generated/google/apis/bigtableadmin_v1/classes.rb
357
365
  - generated/google/apis/bigtableadmin_v1/representations.rb
@@ -960,10 +968,6 @@ files:
960
968
  - generated/google/apis/run_v1alpha1/classes.rb
961
969
  - generated/google/apis/run_v1alpha1/representations.rb
962
970
  - generated/google/apis/run_v1alpha1/service.rb
963
- - generated/google/apis/run_v1beta1.rb
964
- - generated/google/apis/run_v1beta1/classes.rb
965
- - generated/google/apis/run_v1beta1/representations.rb
966
- - generated/google/apis/run_v1beta1/service.rb
967
971
  - generated/google/apis/runtimeconfig_v1.rb
968
972
  - generated/google/apis/runtimeconfig_v1/classes.rb
969
973
  - generated/google/apis/runtimeconfig_v1/representations.rb
@@ -1064,6 +1068,10 @@ files:
1064
1068
  - generated/google/apis/speech_v1p1beta1/classes.rb
1065
1069
  - generated/google/apis/speech_v1p1beta1/representations.rb
1066
1070
  - generated/google/apis/speech_v1p1beta1/service.rb
1071
+ - generated/google/apis/speech_v2beta.rb
1072
+ - generated/google/apis/speech_v2beta/classes.rb
1073
+ - generated/google/apis/speech_v2beta/representations.rb
1074
+ - generated/google/apis/speech_v2beta/service.rb
1067
1075
  - generated/google/apis/sqladmin_v1beta4.rb
1068
1076
  - generated/google/apis/sqladmin_v1beta4/classes.rb
1069
1077
  - generated/google/apis/sqladmin_v1beta4/representations.rb
@@ -1,98 +0,0 @@
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 RunV1beta1
24
-
25
- # The response message for Locations.ListLocations.
26
- class ListLocationsResponse
27
- include Google::Apis::Core::Hashable
28
-
29
- # A list of locations that matches the specified filter in the request.
30
- # Corresponds to the JSON property `locations`
31
- # @return [Array<Google::Apis::RunV1beta1::Location>]
32
- attr_accessor :locations
33
-
34
- # The standard List next-page token.
35
- # Corresponds to the JSON property `nextPageToken`
36
- # @return [String]
37
- attr_accessor :next_page_token
38
-
39
- def initialize(**args)
40
- update!(**args)
41
- end
42
-
43
- # Update properties of this object
44
- def update!(**args)
45
- @locations = args[:locations] if args.key?(:locations)
46
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
47
- end
48
- end
49
-
50
- # A resource that represents Google Cloud Platform location.
51
- class Location
52
- include Google::Apis::Core::Hashable
53
-
54
- # The friendly name for this location, typically a nearby city name.
55
- # For example, "Tokyo".
56
- # Corresponds to the JSON property `displayName`
57
- # @return [String]
58
- attr_accessor :display_name
59
-
60
- # Cross-service attributes for the location. For example
61
- # `"cloud.googleapis.com/region": "us-east1"`
62
- # Corresponds to the JSON property `labels`
63
- # @return [Hash<String,String>]
64
- attr_accessor :labels
65
-
66
- # The canonical id for this location. For example: `"us-east1"`.
67
- # Corresponds to the JSON property `locationId`
68
- # @return [String]
69
- attr_accessor :location_id
70
-
71
- # Service-specific metadata. For example the available capacity at the given
72
- # location.
73
- # Corresponds to the JSON property `metadata`
74
- # @return [Hash<String,Object>]
75
- attr_accessor :metadata
76
-
77
- # Resource name for the location, which may vary between implementations.
78
- # For example: `"projects/example-project/locations/us-east1"`
79
- # Corresponds to the JSON property `name`
80
- # @return [String]
81
- attr_accessor :name
82
-
83
- def initialize(**args)
84
- update!(**args)
85
- end
86
-
87
- # Update properties of this object
88
- def update!(**args)
89
- @display_name = args[:display_name] if args.key?(:display_name)
90
- @labels = args[:labels] if args.key?(:labels)
91
- @location_id = args[:location_id] if args.key?(:location_id)
92
- @metadata = args[:metadata] if args.key?(:metadata)
93
- @name = args[:name] if args.key?(:name)
94
- end
95
- end
96
- end
97
- end
98
- end
@@ -1,58 +0,0 @@
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 RunV1beta1
24
-
25
- class ListLocationsResponse
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- include Google::Apis::Core::JsonObjectSupport
29
- end
30
-
31
- class Location
32
- class Representation < Google::Apis::Core::JsonRepresentation; end
33
-
34
- include Google::Apis::Core::JsonObjectSupport
35
- end
36
-
37
- class ListLocationsResponse
38
- # @private
39
- class Representation < Google::Apis::Core::JsonRepresentation
40
- collection :locations, as: 'locations', class: Google::Apis::RunV1beta1::Location, decorator: Google::Apis::RunV1beta1::Location::Representation
41
-
42
- property :next_page_token, as: 'nextPageToken'
43
- end
44
- end
45
-
46
- class Location
47
- # @private
48
- class Representation < Google::Apis::Core::JsonRepresentation
49
- property :display_name, as: 'displayName'
50
- hash :labels, as: 'labels'
51
- property :location_id, as: 'locationId'
52
- hash :metadata, as: 'metadata'
53
- property :name, as: 'name'
54
- end
55
- end
56
- end
57
- end
58
- end
@@ -1,99 +0,0 @@
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 RunV1beta1
23
- # Cloud Run API
24
- #
25
- # Deploy and manage user provided container images that scale automatically
26
- # based on HTTP traffic.
27
- #
28
- # @example
29
- # require 'google/apis/run_v1beta1'
30
- #
31
- # Run = Google::Apis::RunV1beta1 # Alias the module
32
- # service = Run::CloudRunService.new
33
- #
34
- # @see https://cloud.google.com/run/
35
- class CloudRunService < Google::Apis::Core::BaseService
36
- # @return [String]
37
- # API key. Your API key identifies your project and provides you with API access,
38
- # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
- attr_accessor :key
40
-
41
- # @return [String]
42
- # Available to use for quota purposes for server-side applications. Can be any
43
- # arbitrary string assigned to a user, but should not exceed 40 characters.
44
- attr_accessor :quota_user
45
-
46
- def initialize
47
- super('https://run.googleapis.com/', '')
48
- @batch_path = 'batch'
49
- end
50
-
51
- # Lists information about the supported locations for this service.
52
- # @param [String] name
53
- # The resource that owns the locations collection, if applicable.
54
- # @param [String] filter
55
- # The standard list filter.
56
- # @param [Fixnum] page_size
57
- # The standard list page size.
58
- # @param [String] page_token
59
- # The standard list page token.
60
- # @param [String] fields
61
- # Selector specifying which fields to include in a partial response.
62
- # @param [String] quota_user
63
- # Available to use for quota purposes for server-side applications. Can be any
64
- # arbitrary string assigned to a user, but should not exceed 40 characters.
65
- # @param [Google::Apis::RequestOptions] options
66
- # Request-specific options
67
- #
68
- # @yield [result, err] Result & error if block supplied
69
- # @yieldparam result [Google::Apis::RunV1beta1::ListLocationsResponse] parsed result object
70
- # @yieldparam err [StandardError] error object if request failed
71
- #
72
- # @return [Google::Apis::RunV1beta1::ListLocationsResponse]
73
- #
74
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
75
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
76
- # @raise [Google::Apis::AuthorizationError] Authorization is required
77
- def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
78
- command = make_simple_command(:get, 'v1beta1/{+name}/locations', options)
79
- command.response_representation = Google::Apis::RunV1beta1::ListLocationsResponse::Representation
80
- command.response_class = Google::Apis::RunV1beta1::ListLocationsResponse
81
- command.params['name'] = name unless name.nil?
82
- command.query['filter'] = filter unless filter.nil?
83
- command.query['pageSize'] = page_size unless page_size.nil?
84
- command.query['pageToken'] = page_token unless page_token.nil?
85
- command.query['fields'] = fields unless fields.nil?
86
- command.query['quotaUser'] = quota_user unless quota_user.nil?
87
- execute_or_queue_command(command, &block)
88
- end
89
-
90
- protected
91
-
92
- def apply_command_defaults(command)
93
- command.query['key'] = key unless key.nil?
94
- command.query['quotaUser'] = quota_user unless quota_user.nil?
95
- end
96
- end
97
- end
98
- end
99
- end