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
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/dlp/docs/
28
28
  module DlpV2
29
29
  VERSION = 'V2'
30
- REVISION = '20190629'
30
+ REVISION = '20190804'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -3172,7 +3172,7 @@ module Google
3172
3172
 
3173
3173
  # Unique resource name for the triggeredJob, assigned by the service when the
3174
3174
  # triggeredJob is created, for example
3175
- # `projects/dlp-test-project/triggeredJobs/53234423`.
3175
+ # `projects/dlp-test-project/jobTriggers/53234423`.
3176
3176
  # Corresponds to the JSON property `name`
3177
3177
  # @return [String]
3178
3178
  attr_accessor :name
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/docs/
26
26
  module DocsV1
27
27
  VERSION = 'V1'
28
- REVISION = '20190718'
28
+ REVISION = '20190724'
29
29
 
30
30
  # View and manage your Google Docs documents
31
31
  AUTH_DOCUMENTS = 'https://www.googleapis.com/auth/documents'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/bid-manager/
26
26
  module DoubleclickbidmanagerV1
27
27
  VERSION = 'V1'
28
- REVISION = '20190618'
28
+ REVISION = '20190807'
29
29
 
30
30
  # View and manage your reports in DoubleClick Bid Manager
31
31
  AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager'
@@ -18,7 +18,7 @@ require 'google/apis/doubleclicksearch_v2/representations.rb'
18
18
 
19
19
  module Google
20
20
  module Apis
21
- # DoubleClick Search API
21
+ # Search Ads 360 API
22
22
  #
23
23
  # Reports and modifies your advertising data in DoubleClick Search (for example,
24
24
  # campaigns, ad groups, keywords, and conversions).
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/doubleclick-search/
27
27
  module DoubleclicksearchV2
28
28
  VERSION = 'V2'
29
- REVISION = '20181030'
29
+ REVISION = '20190821'
30
30
 
31
31
  # View and manage your advertising data in DoubleClick Search
32
32
  AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'
@@ -392,7 +392,7 @@ module Google
392
392
  include Google::Apis::Core::Hashable
393
393
 
394
394
  # Asynchronous report only. Contains a list of generated report files once the
395
- # report has succesfully completed.
395
+ # report has successfully completed.
396
396
  # Corresponds to the JSON property `files`
397
397
  # @return [Array<Google::Apis::DoubleclicksearchV2::Report::File>]
398
398
  attr_accessor :files
@@ -20,7 +20,7 @@ require 'google/apis/errors'
20
20
  module Google
21
21
  module Apis
22
22
  module DoubleclicksearchV2
23
- # DoubleClick Search API
23
+ # Search Ads 360 API
24
24
  #
25
25
  # Reports and modifies your advertising data in DoubleClick Search (for example,
26
26
  # campaigns, ad groups, keywords, and conversions).
@@ -896,7 +896,7 @@ module Google
896
896
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
897
897
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
898
898
  # @raise [Google::Apis::AuthorizationError] Authorization is required
899
- def delete_drife(drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
899
+ def delete_drive(drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
900
900
  command = make_simple_command(:delete, 'drives/{driveId}', options)
901
901
  command.params['driveId'] = drive_id unless drive_id.nil?
902
902
  command.query['fields'] = fields unless fields.nil?
@@ -931,7 +931,7 @@ module Google
931
931
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
932
932
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
933
933
  # @raise [Google::Apis::AuthorizationError] Authorization is required
934
- def get_drife(drive_id, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
934
+ def get_drive(drive_id, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
935
935
  command = make_simple_command(:get, 'drives/{driveId}', options)
936
936
  command.response_representation = Google::Apis::DriveV2::Drive::Representation
937
937
  command.response_class = Google::Apis::DriveV2::Drive
@@ -965,7 +965,7 @@ module Google
965
965
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
966
966
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
967
967
  # @raise [Google::Apis::AuthorizationError] Authorization is required
968
- def hide_drife(drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
968
+ def hide_drive(drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
969
969
  command = make_simple_command(:post, 'drives/{driveId}/hide', options)
970
970
  command.response_representation = Google::Apis::DriveV2::Drive::Representation
971
971
  command.response_class = Google::Apis::DriveV2::Drive
@@ -1003,7 +1003,7 @@ module Google
1003
1003
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1004
1004
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1005
1005
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1006
- def insert_drife(request_id, drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1006
+ def insert_drive(request_id, drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1007
1007
  command = make_simple_command(:post, 'drives', options)
1008
1008
  command.request_representation = Google::Apis::DriveV2::Drive::Representation
1009
1009
  command.request_object = drive_object
@@ -1081,7 +1081,7 @@ module Google
1081
1081
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1082
1082
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1083
1083
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1084
- def unhide_drife(drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1084
+ def unhide_drive(drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1085
1085
  command = make_simple_command(:post, 'drives/{driveId}/unhide', options)
1086
1086
  command.response_representation = Google::Apis::DriveV2::Drive::Representation
1087
1087
  command.response_class = Google::Apis::DriveV2::Drive
@@ -1119,7 +1119,7 @@ module Google
1119
1119
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1120
1120
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1121
1121
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1122
- def update_drife(drive_id, drive_object = nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1122
+ def update_drive(drive_id, drive_object = nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1123
1123
  command = make_simple_command(:put, 'drives/{driveId}', options)
1124
1124
  command.request_representation = Google::Apis::DriveV2::Drive::Representation
1125
1125
  command.request_object = drive_object
@@ -547,7 +547,7 @@ module Google
547
547
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
548
548
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
549
549
  # @raise [Google::Apis::AuthorizationError] Authorization is required
550
- def create_drife(request_id, drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
550
+ def create_drive(request_id, drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
551
551
  command = make_simple_command(:post, 'drives', options)
552
552
  command.request_representation = Google::Apis::DriveV3::Drive::Representation
553
553
  command.request_object = drive_object
@@ -583,7 +583,7 @@ module Google
583
583
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
584
584
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
585
585
  # @raise [Google::Apis::AuthorizationError] Authorization is required
586
- def delete_drife(drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
586
+ def delete_drive(drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
587
587
  command = make_simple_command(:delete, 'drives/{driveId}', options)
588
588
  command.params['driveId'] = drive_id unless drive_id.nil?
589
589
  command.query['fields'] = fields unless fields.nil?
@@ -618,7 +618,7 @@ module Google
618
618
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
619
619
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
620
620
  # @raise [Google::Apis::AuthorizationError] Authorization is required
621
- def get_drife(drive_id, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
621
+ def get_drive(drive_id, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
622
622
  command = make_simple_command(:get, 'drives/{driveId}', options)
623
623
  command.response_representation = Google::Apis::DriveV3::Drive::Representation
624
624
  command.response_class = Google::Apis::DriveV3::Drive
@@ -652,7 +652,7 @@ module Google
652
652
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
653
653
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
654
654
  # @raise [Google::Apis::AuthorizationError] Authorization is required
655
- def hide_drife(drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
655
+ def hide_drive(drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
656
656
  command = make_simple_command(:post, 'drives/{driveId}/hide', options)
657
657
  command.response_representation = Google::Apis::DriveV3::Drive::Representation
658
658
  command.response_class = Google::Apis::DriveV3::Drive
@@ -728,7 +728,7 @@ module Google
728
728
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
729
729
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
730
730
  # @raise [Google::Apis::AuthorizationError] Authorization is required
731
- def unhide_drife(drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
731
+ def unhide_drive(drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
732
732
  command = make_simple_command(:post, 'drives/{driveId}/unhide', options)
733
733
  command.response_representation = Google::Apis::DriveV3::Drive::Representation
734
734
  command.response_class = Google::Apis::DriveV3::Drive
@@ -766,7 +766,7 @@ module Google
766
766
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
767
767
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
768
768
  # @raise [Google::Apis::AuthorizationError] Authorization is required
769
- def update_drife(drive_id, drive_object = nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
769
+ def update_drive(drive_id, drive_object = nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
770
770
  command = make_simple_command(:patch, 'drives/{driveId}', options)
771
771
  command.request_representation = Google::Apis::DriveV3::Drive::Representation
772
772
  command.request_object = drive_object
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/fact-check/tools/api/
26
26
  module FactchecktoolsV1alpha1
27
27
  VERSION = 'V1alpha1'
28
- REVISION = '20190328'
28
+ REVISION = '20190821'
29
29
 
30
30
  # View your email address
31
31
  AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
@@ -113,6 +113,11 @@ module Google
113
113
  # @return [String]
114
114
  attr_accessor :image_url
115
115
 
116
+ # Corresponds to `ClaimReview.reviewRating.ratingExplanation`.
117
+ # Corresponds to the JSON property `ratingExplanation`
118
+ # @return [String]
119
+ attr_accessor :rating_explanation
120
+
116
121
  # A numeric rating of this claim, in the range worstRating — bestRating
117
122
  # inclusive.<br>
118
123
  # Corresponds to `ClaimReview.reviewRating.ratingValue`.
@@ -141,6 +146,7 @@ module Google
141
146
  def update!(**args)
142
147
  @best_rating = args[:best_rating] if args.key?(:best_rating)
143
148
  @image_url = args[:image_url] if args.key?(:image_url)
149
+ @rating_explanation = args[:rating_explanation] if args.key?(:rating_explanation)
144
150
  @rating_value = args[:rating_value] if args.key?(:rating_value)
145
151
  @textual_rating = args[:textual_rating] if args.key?(:textual_rating)
146
152
  @worst_rating = args[:worst_rating] if args.key?(:worst_rating)
@@ -114,6 +114,7 @@ module Google
114
114
  class Representation < Google::Apis::Core::JsonRepresentation
115
115
  property :best_rating, as: 'bestRating'
116
116
  property :image_url, as: 'imageUrl'
117
+ property :rating_explanation, as: 'ratingExplanation'
117
118
  property :rating_value, as: 'ratingValue'
118
119
  property :textual_rating, as: 'textualRating'
119
120
  property :worst_rating, as: 'worstRating'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://firebase.google.com/docs/cloud-messaging
27
27
  module FcmV1
28
28
  VERSION = 'V1'
29
- REVISION = '20190711'
29
+ REVISION = '20190820'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -162,6 +162,47 @@ module Google
162
162
  # @return [String]
163
163
  attr_accessor :color
164
164
 
165
+ # If set to true, use the Android framework's default LED light settings for
166
+ # the notification. Default values are specified in
167
+ # [config.xml](https://android.googlesource.com/platform/frameworks/base/+/
168
+ # master/core/res/res/values/config.xml).
169
+ # If `default_light_settings` is set to true and `light_settings` is also
170
+ # set, the user-specified `light_settings` is used instead of the
171
+ # default value.
172
+ # Corresponds to the JSON property `defaultLightSettings`
173
+ # @return [Boolean]
174
+ attr_accessor :default_light_settings
175
+ alias_method :default_light_settings?, :default_light_settings
176
+
177
+ # If set to true, use the Android framework's default sound for the
178
+ # notification. Default values are specified in
179
+ # [config.xml](https://android.googlesource.com/platform/frameworks/base/+/
180
+ # master/core/res/res/values/config.xml).
181
+ # Corresponds to the JSON property `defaultSound`
182
+ # @return [Boolean]
183
+ attr_accessor :default_sound
184
+ alias_method :default_sound?, :default_sound
185
+
186
+ # If set to true, use the Android framework's default vibrate pattern for the
187
+ # notification. Default values are specified in
188
+ # [config.xml](https://android.googlesource.com/platform/frameworks/base/+/
189
+ # master/core/res/res/values/config.xml).
190
+ # If `default_vibrate_timings` is set to true and `vibrate_timings` is also
191
+ # set, the default value is used instead of the user-specified
192
+ # `vibrate_timings`.
193
+ # Corresponds to the JSON property `defaultVibrateTimings`
194
+ # @return [Boolean]
195
+ attr_accessor :default_vibrate_timings
196
+ alias_method :default_vibrate_timings?, :default_vibrate_timings
197
+
198
+ # Set the time that the event in the notification occurred. Notifications in
199
+ # the panel are sorted by this time. A point in time is represented using
200
+ # [protobuf.Timestamp](https://developers.google.com/protocol-buffers/docs/
201
+ # reference/java/com/google/protobuf/Timestamp).
202
+ # Corresponds to the JSON property `eventTime`
203
+ # @return [String]
204
+ attr_accessor :event_time
205
+
165
206
  # The notification's icon.
166
207
  # Sets the notification icon to myicon for drawable resource myicon.
167
208
  # If you don't send this key in the request, FCM displays the launcher icon
@@ -177,6 +218,50 @@ module Google
177
218
  # @return [String]
178
219
  attr_accessor :image
179
220
 
221
+ # Settings to control notification LED.
222
+ # Corresponds to the JSON property `lightSettings`
223
+ # @return [Google::Apis::FcmV1::LightSettings]
224
+ attr_accessor :light_settings
225
+
226
+ # Set whether or not this notification is relevant only to the current
227
+ # device. Some notifications can be bridged to other devices for remote
228
+ # display, such as a Wear OS watch. This hint can be set to recommend this
229
+ # notification not be bridged. See [Wear OS
230
+ # guides](https://developer.android.com/training/wearables/notifications/bridger#
231
+ # existing-method-of-preventing-bridging)
232
+ # Corresponds to the JSON property `localOnly`
233
+ # @return [Boolean]
234
+ attr_accessor :local_only
235
+ alias_method :local_only?, :local_only
236
+
237
+ # Sets the number of items this notification represents. May be displayed as
238
+ # a badge count for launchers that support badging.See [Notification
239
+ # Badge](https://developer.android.com/training/notify-user/badges).
240
+ # For example, this might be useful if you're using just one notification to
241
+ # represent multiple new messages but you want the count here to represent
242
+ # the number of total new messages.
243
+ # If zero or unspecified, systems that support badging use the default, which
244
+ # is to increment a number displayed on the long-press menu each time a new
245
+ # notification arrives.
246
+ # Corresponds to the JSON property `notificationCount`
247
+ # @return [Fixnum]
248
+ attr_accessor :notification_count
249
+
250
+ # Set the relative priority for this notification. Priority is an indication
251
+ # of how much of the user's attention should be consumed by this
252
+ # notification. Low-priority notifications may be hidden from the user in
253
+ # certain situations, while the user might be interrupted for a
254
+ # higher-priority notification. The effect of setting the same priorities may
255
+ # differ slightly on different platforms. Note this priority differs from
256
+ # `AndroidMessagePriority`. This priority is processed by the client after
257
+ # the message has been delivered, whereas
258
+ # [AndroidMessagePriority](https://firebase.google.com/docs/reference/fcm/rest/
259
+ # v1/projects.messages#androidmessagepriority)
260
+ # is an FCM concept that controls when the message is delivered.
261
+ # Corresponds to the JSON property `notificationPriority`
262
+ # @return [String]
263
+ attr_accessor :notification_priority
264
+
180
265
  # The sound to play when the device receives the notification.
181
266
  # Supports "default" or the filename of a sound resource bundled in the app.
182
267
  # Sound files must reside in /res/raw/.
@@ -184,6 +269,14 @@ module Google
184
269
  # @return [String]
185
270
  attr_accessor :sound
186
271
 
272
+ # When set to false or unset, the notification is automatically
273
+ # dismissed when the user clicks it in the panel. When set to true, the
274
+ # notification persists even when the user clicks it.
275
+ # Corresponds to the JSON property `sticky`
276
+ # @return [Boolean]
277
+ attr_accessor :sticky
278
+ alias_method :sticky?, :sticky
279
+
187
280
  # Identifier used to replace existing notifications in the notification
188
281
  # drawer.
189
282
  # If not specified, each request creates a new notification.
@@ -193,6 +286,13 @@ module Google
193
286
  # @return [String]
194
287
  attr_accessor :tag
195
288
 
289
+ # Sets the "ticker" text, which is sent to accessibility services.
290
+ # Prior to API level 21 (`Lollipop`), sets the text that is displayed in the
291
+ # status bar when the notification first arrives.
292
+ # Corresponds to the JSON property `ticker`
293
+ # @return [String]
294
+ attr_accessor :ticker
295
+
196
296
  # The notification's title. If present, it will override
197
297
  # google.firebase.fcm.v1.Notification.title.
198
298
  # Corresponds to the JSON property `title`
@@ -214,6 +314,27 @@ module Google
214
314
  # @return [String]
215
315
  attr_accessor :title_loc_key
216
316
 
317
+ # Set the vibration pattern to use. Pass in an array of
318
+ # [protobuf.Duration](https://developers.google.com/protocol-buffers/docs/
319
+ # reference/google.protobuf#google.protobuf.Duration)
320
+ # to turn on or off the vibrator. The first value indicates the `Duration` to
321
+ # wait before turning the vibrator on. The next value indicates the
322
+ # `Duration` to keep the vibrator on. Subsequent values alternate between
323
+ # `Duration` to turn the vibrator off and to turn the vibrator on.
324
+ # If `vibrate_timings` is set and `default_vibrate_timings` is set to `true`,
325
+ # the default value is used instead of the user-specified `vibrate_timings`.
326
+ # Corresponds to the JSON property `vibrateTimings`
327
+ # @return [Array<String>]
328
+ attr_accessor :vibrate_timings
329
+
330
+ # Set the
331
+ # [Notification.visibility](https://developer.android.com/reference/android/app/
332
+ # Notification.html#visibility)
333
+ # of the notification.
334
+ # Corresponds to the JSON property `visibility`
335
+ # @return [String]
336
+ attr_accessor :visibility
337
+
217
338
  def initialize(**args)
218
339
  update!(**args)
219
340
  end
@@ -226,13 +347,25 @@ module Google
226
347
  @channel_id = args[:channel_id] if args.key?(:channel_id)
227
348
  @click_action = args[:click_action] if args.key?(:click_action)
228
349
  @color = args[:color] if args.key?(:color)
350
+ @default_light_settings = args[:default_light_settings] if args.key?(:default_light_settings)
351
+ @default_sound = args[:default_sound] if args.key?(:default_sound)
352
+ @default_vibrate_timings = args[:default_vibrate_timings] if args.key?(:default_vibrate_timings)
353
+ @event_time = args[:event_time] if args.key?(:event_time)
229
354
  @icon = args[:icon] if args.key?(:icon)
230
355
  @image = args[:image] if args.key?(:image)
356
+ @light_settings = args[:light_settings] if args.key?(:light_settings)
357
+ @local_only = args[:local_only] if args.key?(:local_only)
358
+ @notification_count = args[:notification_count] if args.key?(:notification_count)
359
+ @notification_priority = args[:notification_priority] if args.key?(:notification_priority)
231
360
  @sound = args[:sound] if args.key?(:sound)
361
+ @sticky = args[:sticky] if args.key?(:sticky)
232
362
  @tag = args[:tag] if args.key?(:tag)
363
+ @ticker = args[:ticker] if args.key?(:ticker)
233
364
  @title = args[:title] if args.key?(:title)
234
365
  @title_loc_args = args[:title_loc_args] if args.key?(:title_loc_args)
235
366
  @title_loc_key = args[:title_loc_key] if args.key?(:title_loc_key)
367
+ @vibrate_timings = args[:vibrate_timings] if args.key?(:vibrate_timings)
368
+ @visibility = args[:visibility] if args.key?(:visibility)
236
369
  end
237
370
  end
238
371
 
@@ -299,6 +432,153 @@ module Google
299
432
  end
300
433
  end
301
434
 
435
+ # Represents a color in the RGBA color space. This representation is designed
436
+ # for simplicity of conversion to/from color representations in various
437
+ # languages over compactness; for example, the fields of this representation
438
+ # can be trivially provided to the constructor of "java.awt.Color" in Java; it
439
+ # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
440
+ # method in iOS; and, with just a little work, it can be easily formatted into
441
+ # a CSS "rgba()" string in JavaScript, as well.
442
+ # Note: this proto does not carry information about the absolute color space
443
+ # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
444
+ # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
445
+ # space.
446
+ # Example (Java):
447
+ # import com.google.type.Color;
448
+ # // ...
449
+ # public static java.awt.Color fromProto(Color protocolor) `
450
+ # float alpha = protocolor.hasAlpha()
451
+ # ? protocolor.getAlpha().getValue()
452
+ # : 1.0;
453
+ # return new java.awt.Color(
454
+ # protocolor.getRed(),
455
+ # protocolor.getGreen(),
456
+ # protocolor.getBlue(),
457
+ # alpha);
458
+ # `
459
+ # public static Color toProto(java.awt.Color color) `
460
+ # float red = (float) color.getRed();
461
+ # float green = (float) color.getGreen();
462
+ # float blue = (float) color.getBlue();
463
+ # float denominator = 255.0;
464
+ # Color.Builder resultBuilder =
465
+ # Color
466
+ # .newBuilder()
467
+ # .setRed(red / denominator)
468
+ # .setGreen(green / denominator)
469
+ # .setBlue(blue / denominator);
470
+ # int alpha = color.getAlpha();
471
+ # if (alpha != 255) `
472
+ # result.setAlpha(
473
+ # FloatValue
474
+ # .newBuilder()
475
+ # .setValue(((float) alpha) / denominator)
476
+ # .build());
477
+ # `
478
+ # return resultBuilder.build();
479
+ # `
480
+ # // ...
481
+ # Example (iOS / Obj-C):
482
+ # // ...
483
+ # static UIColor* fromProto(Color* protocolor) `
484
+ # float red = [protocolor red];
485
+ # float green = [protocolor green];
486
+ # float blue = [protocolor blue];
487
+ # FloatValue* alpha_wrapper = [protocolor alpha];
488
+ # float alpha = 1.0;
489
+ # if (alpha_wrapper != nil) `
490
+ # alpha = [alpha_wrapper value];
491
+ # `
492
+ # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
493
+ # `
494
+ # static Color* toProto(UIColor* color) `
495
+ # CGFloat red, green, blue, alpha;
496
+ # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
497
+ # return nil;
498
+ # `
499
+ # Color* result = [[Color alloc] init];
500
+ # [result setRed:red];
501
+ # [result setGreen:green];
502
+ # [result setBlue:blue];
503
+ # if (alpha <= 0.9999) `
504
+ # [result setAlpha:floatWrapperWithValue(alpha)];
505
+ # `
506
+ # [result autorelease];
507
+ # return result;
508
+ # `
509
+ # // ...
510
+ # Example (JavaScript):
511
+ # // ...
512
+ # var protoToCssColor = function(rgb_color) `
513
+ # var redFrac = rgb_color.red || 0.0;
514
+ # var greenFrac = rgb_color.green || 0.0;
515
+ # var blueFrac = rgb_color.blue || 0.0;
516
+ # var red = Math.floor(redFrac * 255);
517
+ # var green = Math.floor(greenFrac * 255);
518
+ # var blue = Math.floor(blueFrac * 255);
519
+ # if (!('alpha' in rgb_color)) `
520
+ # return rgbToCssColor_(red, green, blue);
521
+ # `
522
+ # var alphaFrac = rgb_color.alpha.value || 0.0;
523
+ # var rgbParams = [red, green, blue].join(',');
524
+ # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
525
+ # `;
526
+ # var rgbToCssColor_ = function(red, green, blue) `
527
+ # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
528
+ # var hexString = rgbNumber.toString(16);
529
+ # var missingZeros = 6 - hexString.length;
530
+ # var resultBuilder = ['#'];
531
+ # for (var i = 0; i < missingZeros; i++) `
532
+ # resultBuilder.push('0');
533
+ # `
534
+ # resultBuilder.push(hexString);
535
+ # return resultBuilder.join('');
536
+ # `;
537
+ # // ...
538
+ class Color
539
+ include Google::Apis::Core::Hashable
540
+
541
+ # The fraction of this color that should be applied to the pixel. That is,
542
+ # the final pixel color is defined by the equation:
543
+ # pixel color = alpha * (this color) + (1.0 - alpha) * (background color)
544
+ # This means that a value of 1.0 corresponds to a solid color, whereas
545
+ # a value of 0.0 corresponds to a completely transparent color. This
546
+ # uses a wrapper message rather than a simple float scalar so that it is
547
+ # possible to distinguish between a default value and the value being unset.
548
+ # If omitted, this color object is to be rendered as a solid color
549
+ # (as if the alpha value had been explicitly given with a value of 1.0).
550
+ # Corresponds to the JSON property `alpha`
551
+ # @return [Float]
552
+ attr_accessor :alpha
553
+
554
+ # The amount of blue in the color as a value in the interval [0, 1].
555
+ # Corresponds to the JSON property `blue`
556
+ # @return [Float]
557
+ attr_accessor :blue
558
+
559
+ # The amount of green in the color as a value in the interval [0, 1].
560
+ # Corresponds to the JSON property `green`
561
+ # @return [Float]
562
+ attr_accessor :green
563
+
564
+ # The amount of red in the color as a value in the interval [0, 1].
565
+ # Corresponds to the JSON property `red`
566
+ # @return [Float]
567
+ attr_accessor :red
568
+
569
+ def initialize(**args)
570
+ update!(**args)
571
+ end
572
+
573
+ # Update properties of this object
574
+ def update!(**args)
575
+ @alpha = args[:alpha] if args.key?(:alpha)
576
+ @blue = args[:blue] if args.key?(:blue)
577
+ @green = args[:green] if args.key?(:green)
578
+ @red = args[:red] if args.key?(:red)
579
+ end
580
+ end
581
+
302
582
  # Platform independent options for features provided by the FCM SDKs.
303
583
  class FcmOptions
304
584
  include Google::Apis::Core::Hashable
@@ -318,6 +598,145 @@ module Google
318
598
  end
319
599
  end
320
600
 
601
+ # Settings to control notification LED.
602
+ class LightSettings
603
+ include Google::Apis::Core::Hashable
604
+
605
+ # Represents a color in the RGBA color space. This representation is designed
606
+ # for simplicity of conversion to/from color representations in various
607
+ # languages over compactness; for example, the fields of this representation
608
+ # can be trivially provided to the constructor of "java.awt.Color" in Java; it
609
+ # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
610
+ # method in iOS; and, with just a little work, it can be easily formatted into
611
+ # a CSS "rgba()" string in JavaScript, as well.
612
+ # Note: this proto does not carry information about the absolute color space
613
+ # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
614
+ # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
615
+ # space.
616
+ # Example (Java):
617
+ # import com.google.type.Color;
618
+ # // ...
619
+ # public static java.awt.Color fromProto(Color protocolor) `
620
+ # float alpha = protocolor.hasAlpha()
621
+ # ? protocolor.getAlpha().getValue()
622
+ # : 1.0;
623
+ # return new java.awt.Color(
624
+ # protocolor.getRed(),
625
+ # protocolor.getGreen(),
626
+ # protocolor.getBlue(),
627
+ # alpha);
628
+ # `
629
+ # public static Color toProto(java.awt.Color color) `
630
+ # float red = (float) color.getRed();
631
+ # float green = (float) color.getGreen();
632
+ # float blue = (float) color.getBlue();
633
+ # float denominator = 255.0;
634
+ # Color.Builder resultBuilder =
635
+ # Color
636
+ # .newBuilder()
637
+ # .setRed(red / denominator)
638
+ # .setGreen(green / denominator)
639
+ # .setBlue(blue / denominator);
640
+ # int alpha = color.getAlpha();
641
+ # if (alpha != 255) `
642
+ # result.setAlpha(
643
+ # FloatValue
644
+ # .newBuilder()
645
+ # .setValue(((float) alpha) / denominator)
646
+ # .build());
647
+ # `
648
+ # return resultBuilder.build();
649
+ # `
650
+ # // ...
651
+ # Example (iOS / Obj-C):
652
+ # // ...
653
+ # static UIColor* fromProto(Color* protocolor) `
654
+ # float red = [protocolor red];
655
+ # float green = [protocolor green];
656
+ # float blue = [protocolor blue];
657
+ # FloatValue* alpha_wrapper = [protocolor alpha];
658
+ # float alpha = 1.0;
659
+ # if (alpha_wrapper != nil) `
660
+ # alpha = [alpha_wrapper value];
661
+ # `
662
+ # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
663
+ # `
664
+ # static Color* toProto(UIColor* color) `
665
+ # CGFloat red, green, blue, alpha;
666
+ # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
667
+ # return nil;
668
+ # `
669
+ # Color* result = [[Color alloc] init];
670
+ # [result setRed:red];
671
+ # [result setGreen:green];
672
+ # [result setBlue:blue];
673
+ # if (alpha <= 0.9999) `
674
+ # [result setAlpha:floatWrapperWithValue(alpha)];
675
+ # `
676
+ # [result autorelease];
677
+ # return result;
678
+ # `
679
+ # // ...
680
+ # Example (JavaScript):
681
+ # // ...
682
+ # var protoToCssColor = function(rgb_color) `
683
+ # var redFrac = rgb_color.red || 0.0;
684
+ # var greenFrac = rgb_color.green || 0.0;
685
+ # var blueFrac = rgb_color.blue || 0.0;
686
+ # var red = Math.floor(redFrac * 255);
687
+ # var green = Math.floor(greenFrac * 255);
688
+ # var blue = Math.floor(blueFrac * 255);
689
+ # if (!('alpha' in rgb_color)) `
690
+ # return rgbToCssColor_(red, green, blue);
691
+ # `
692
+ # var alphaFrac = rgb_color.alpha.value || 0.0;
693
+ # var rgbParams = [red, green, blue].join(',');
694
+ # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
695
+ # `;
696
+ # var rgbToCssColor_ = function(red, green, blue) `
697
+ # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
698
+ # var hexString = rgbNumber.toString(16);
699
+ # var missingZeros = 6 - hexString.length;
700
+ # var resultBuilder = ['#'];
701
+ # for (var i = 0; i < missingZeros; i++) `
702
+ # resultBuilder.push('0');
703
+ # `
704
+ # resultBuilder.push(hexString);
705
+ # return resultBuilder.join('');
706
+ # `;
707
+ # // ...
708
+ # Corresponds to the JSON property `color`
709
+ # @return [Google::Apis::FcmV1::Color]
710
+ attr_accessor :color
711
+
712
+ # Required. Along with `light_on_duration `, define the blink rate of LED
713
+ # flashes. Resolution defined by
714
+ # [proto.Duration](https://developers.google.com/protocol-buffers/docs/reference/
715
+ # google.protobuf#google.protobuf.Duration)
716
+ # Corresponds to the JSON property `lightOffDuration`
717
+ # @return [String]
718
+ attr_accessor :light_off_duration
719
+
720
+ # Required. Along with `light_off_duration`, define the blink rate of LED
721
+ # flashes. Resolution defined by
722
+ # [proto.Duration](https://developers.google.com/protocol-buffers/docs/reference/
723
+ # google.protobuf#google.protobuf.Duration)
724
+ # Corresponds to the JSON property `lightOnDuration`
725
+ # @return [String]
726
+ attr_accessor :light_on_duration
727
+
728
+ def initialize(**args)
729
+ update!(**args)
730
+ end
731
+
732
+ # Update properties of this object
733
+ def update!(**args)
734
+ @color = args[:color] if args.key?(:color)
735
+ @light_off_duration = args[:light_off_duration] if args.key?(:light_off_duration)
736
+ @light_on_duration = args[:light_on_duration] if args.key?(:light_on_duration)
737
+ end
738
+ end
739
+
321
740
  # Message to send by Firebase Cloud Messaging Service.
322
741
  class Message
323
742
  include Google::Apis::Core::Hashable