google-api-client 0.10.3 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (385) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +12 -18
  3. data/CHANGELOG.md +22 -2
  4. data/Gemfile +5 -7
  5. data/MIGRATING.md +33 -0
  6. data/README.md +10 -2
  7. data/Rakefile +1 -0
  8. data/bin/generate-api +7 -1
  9. data/dl.rb +0 -0
  10. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +6 -6
  11. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +1 -1
  12. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +1 -0
  13. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  14. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +759 -759
  15. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +152 -152
  16. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +376 -375
  17. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +58 -58
  18. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +45 -45
  19. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -21
  20. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +5 -5
  21. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +5 -5
  22. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -0
  23. data/generated/google/apis/admin_datatransfer_v1/classes.rb +2 -2
  24. data/generated/google/apis/admin_datatransfer_v1/representations.rb +2 -2
  25. data/generated/google/apis/admin_datatransfer_v1/service.rb +2 -1
  26. data/generated/google/apis/admin_directory_v1/classes.rb +11 -11
  27. data/generated/google/apis/admin_directory_v1/representations.rb +11 -11
  28. data/generated/google/apis/admin_directory_v1/service.rb +1 -0
  29. data/generated/google/apis/admin_reports_v1/classes.rb +5 -5
  30. data/generated/google/apis/admin_reports_v1/representations.rb +4 -4
  31. data/generated/google/apis/admin_reports_v1/service.rb +1 -0
  32. data/generated/google/apis/adsense_v1_4.rb +1 -1
  33. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  34. data/generated/google/apis/adsense_v1_4/representations.rb +2 -2
  35. data/generated/google/apis/adsense_v1_4/service.rb +1 -0
  36. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  37. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -1
  38. data/generated/google/apis/adsensehost_v4_1/representations.rb +1 -1
  39. data/generated/google/apis/adsensehost_v4_1/service.rb +1 -0
  40. data/generated/google/apis/analytics_v3/classes.rb +10 -10
  41. data/generated/google/apis/analytics_v3/representations.rb +10 -10
  42. data/generated/google/apis/analytics_v3/service.rb +1 -0
  43. data/generated/google/apis/analyticsreporting_v4/classes.rb +933 -933
  44. data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
  45. data/generated/google/apis/analyticsreporting_v4/service.rb +5 -4
  46. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  47. data/generated/google/apis/androidenterprise_v1/classes.rb +1 -1
  48. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -1
  49. data/generated/google/apis/androidenterprise_v1/service.rb +1 -0
  50. data/generated/google/apis/androidpublisher_v2/classes.rb +13 -13
  51. data/generated/google/apis/androidpublisher_v2/representations.rb +13 -13
  52. data/generated/google/apis/androidpublisher_v2/service.rb +3 -2
  53. data/generated/google/apis/appengine_v1/classes.rb +2 -2
  54. data/generated/google/apis/appengine_v1/representations.rb +2 -2
  55. data/generated/google/apis/appengine_v1/service.rb +1 -0
  56. data/generated/google/apis/appsactivity_v1/classes.rb +1 -1
  57. data/generated/google/apis/appsactivity_v1/representations.rb +1 -1
  58. data/generated/google/apis/appsactivity_v1/service.rb +1 -0
  59. data/generated/google/apis/appsmarket_v2.rb +35 -0
  60. data/generated/google/apis/appsmarket_v2/classes.rb +396 -0
  61. data/generated/google/apis/appsmarket_v2/representations.rb +180 -0
  62. data/generated/google/apis/appsmarket_v2/service.rb +187 -0
  63. data/generated/google/apis/appstate_v1.rb +1 -1
  64. data/generated/google/apis/appstate_v1/service.rb +1 -0
  65. data/generated/google/apis/bigquery_v2/classes.rb +39 -39
  66. data/generated/google/apis/bigquery_v2/representations.rb +38 -38
  67. data/generated/google/apis/bigquery_v2/service.rb +3 -2
  68. data/generated/google/apis/blogger_v3/classes.rb +2 -2
  69. data/generated/google/apis/blogger_v3/representations.rb +2 -2
  70. data/generated/google/apis/blogger_v3/service.rb +1 -0
  71. data/generated/google/apis/books_v1/classes.rb +5 -5
  72. data/generated/google/apis/books_v1/representations.rb +4 -4
  73. data/generated/google/apis/books_v1/service.rb +1 -0
  74. data/generated/google/apis/calendar_v3/classes.rb +1 -1
  75. data/generated/google/apis/calendar_v3/representations.rb +1 -1
  76. data/generated/google/apis/calendar_v3/service.rb +1 -0
  77. data/generated/google/apis/civicinfo_v2/classes.rb +6 -6
  78. data/generated/google/apis/civicinfo_v2/representations.rb +6 -6
  79. data/generated/google/apis/civicinfo_v2/service.rb +2 -1
  80. data/generated/google/apis/classroom_v1/service.rb +1 -0
  81. data/generated/google/apis/cloudbilling_v1/service.rb +1 -0
  82. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  83. data/generated/google/apis/cloudbuild_v1/classes.rb +626 -626
  84. data/generated/google/apis/cloudbuild_v1/representations.rb +109 -109
  85. data/generated/google/apis/cloudbuild_v1/service.rb +159 -158
  86. data/generated/google/apis/clouddebugger_v2/classes.rb +358 -358
  87. data/generated/google/apis/clouddebugger_v2/representations.rb +99 -99
  88. data/generated/google/apis/clouddebugger_v2/service.rb +42 -41
  89. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  90. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +220 -220
  91. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +52 -52
  92. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +59 -58
  93. data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -7
  94. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -1
  95. data/generated/google/apis/cloudfunctions_v1/service.rb +5 -4
  96. data/generated/google/apis/cloudkms_v1/classes.rb +311 -311
  97. data/generated/google/apis/cloudkms_v1/representations.rb +87 -87
  98. data/generated/google/apis/cloudkms_v1/service.rb +168 -167
  99. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +4 -4
  100. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +4 -4
  101. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +1 -0
  102. data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
  103. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +341 -341
  104. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +62 -62
  105. data/generated/google/apis/cloudresourcemanager_v1/service.rb +458 -457
  106. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +327 -327
  107. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +71 -71
  108. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +237 -236
  109. data/generated/google/apis/cloudtrace_v1.rb +3 -3
  110. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  111. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  112. data/generated/google/apis/cloudtrace_v1/service.rb +14 -13
  113. data/generated/google/apis/clouduseraccounts_beta/classes.rb +4 -4
  114. data/generated/google/apis/clouduseraccounts_beta/representations.rb +4 -4
  115. data/generated/google/apis/clouduseraccounts_beta/service.rb +1 -0
  116. data/generated/google/apis/compute_beta/classes.rb +52 -52
  117. data/generated/google/apis/compute_beta/representations.rb +52 -52
  118. data/generated/google/apis/compute_beta/service.rb +2 -1
  119. data/generated/google/apis/compute_v1/classes.rb +48 -48
  120. data/generated/google/apis/compute_v1/representations.rb +48 -48
  121. data/generated/google/apis/compute_v1/service.rb +2 -1
  122. data/generated/google/apis/container_v1/service.rb +1 -0
  123. data/generated/google/apis/content_v2.rb +1 -1
  124. data/generated/google/apis/content_v2/classes.rb +38 -660
  125. data/generated/google/apis/content_v2/representations.rb +37 -303
  126. data/generated/google/apis/content_v2/service.rb +63 -279
  127. data/generated/google/apis/customsearch_v1/classes.rb +2 -2
  128. data/generated/google/apis/customsearch_v1/representations.rb +2 -2
  129. data/generated/google/apis/customsearch_v1/service.rb +1 -0
  130. data/generated/google/apis/dataflow_v1b3/classes.rb +3281 -3281
  131. data/generated/google/apis/dataflow_v1b3/representations.rb +777 -777
  132. data/generated/google/apis/dataflow_v1b3/service.rb +106 -105
  133. data/generated/google/apis/dataproc_v1/classes.rb +395 -395
  134. data/generated/google/apis/dataproc_v1/representations.rb +91 -91
  135. data/generated/google/apis/dataproc_v1/service.rb +356 -355
  136. data/generated/google/apis/datastore_v1/classes.rb +506 -506
  137. data/generated/google/apis/datastore_v1/representations.rb +147 -147
  138. data/generated/google/apis/datastore_v1/service.rb +46 -45
  139. data/generated/google/apis/deploymentmanager_v2/classes.rb +6 -6
  140. data/generated/google/apis/deploymentmanager_v2/representations.rb +6 -6
  141. data/generated/google/apis/deploymentmanager_v2/service.rb +1 -0
  142. data/generated/google/apis/dfareporting_v2_6/classes.rb +280 -280
  143. data/generated/google/apis/dfareporting_v2_6/representations.rb +266 -266
  144. data/generated/google/apis/dfareporting_v2_6/service.rb +421 -420
  145. data/generated/google/apis/dfareporting_v2_7/classes.rb +280 -280
  146. data/generated/google/apis/dfareporting_v2_7/representations.rb +266 -266
  147. data/generated/google/apis/dfareporting_v2_7/service.rb +423 -422
  148. data/generated/google/apis/discovery_v1/service.rb +1 -0
  149. data/generated/google/apis/dns_v1/classes.rb +2 -2
  150. data/generated/google/apis/dns_v1/representations.rb +2 -2
  151. data/generated/google/apis/dns_v1/service.rb +1 -0
  152. data/generated/google/apis/dns_v2beta1/classes.rb +2 -2
  153. data/generated/google/apis/dns_v2beta1/representations.rb +2 -2
  154. data/generated/google/apis/dns_v2beta1/service.rb +1 -0
  155. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +15 -15
  156. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +13 -13
  157. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +5 -4
  158. data/generated/google/apis/doubleclicksearch_v2/classes.rb +28 -28
  159. data/generated/google/apis/doubleclicksearch_v2/representations.rb +28 -28
  160. data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -12
  161. data/generated/google/apis/drive_v2/classes.rb +17 -17
  162. data/generated/google/apis/drive_v2/representations.rb +17 -17
  163. data/generated/google/apis/drive_v2/service.rb +5 -4
  164. data/generated/google/apis/drive_v3/classes.rb +13 -13
  165. data/generated/google/apis/drive_v3/representations.rb +12 -12
  166. data/generated/google/apis/drive_v3/service.rb +1 -0
  167. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  168. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +81 -81
  169. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +24 -24
  170. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -0
  171. data/generated/google/apis/firebaserules_v1/classes.rb +201 -201
  172. data/generated/google/apis/firebaserules_v1/representations.rb +61 -61
  173. data/generated/google/apis/firebaserules_v1/service.rb +1 -0
  174. data/generated/google/apis/fitness_v1/classes.rb +18 -18
  175. data/generated/google/apis/fitness_v1/representations.rb +18 -18
  176. data/generated/google/apis/fitness_v1/service.rb +6 -5
  177. data/generated/google/apis/fusiontables_v2/classes.rb +2 -2
  178. data/generated/google/apis/fusiontables_v2/representations.rb +2 -2
  179. data/generated/google/apis/fusiontables_v2/service.rb +1 -0
  180. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  181. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  182. data/generated/google/apis/games_configuration_v1configuration/representations.rb +2 -2
  183. data/generated/google/apis/games_configuration_v1configuration/service.rb +1 -0
  184. data/generated/google/apis/games_management_v1management.rb +1 -1
  185. data/generated/google/apis/games_management_v1management/classes.rb +6 -6
  186. data/generated/google/apis/games_management_v1management/representations.rb +6 -6
  187. data/generated/google/apis/games_management_v1management/service.rb +1 -0
  188. data/generated/google/apis/games_v1.rb +1 -1
  189. data/generated/google/apis/games_v1/classes.rb +47 -47
  190. data/generated/google/apis/games_v1/representations.rb +47 -47
  191. data/generated/google/apis/games_v1/service.rb +58 -57
  192. data/generated/google/apis/genomics_v1.rb +6 -6
  193. data/generated/google/apis/genomics_v1/classes.rb +2354 -2354
  194. data/generated/google/apis/genomics_v1/representations.rb +487 -487
  195. data/generated/google/apis/genomics_v1/service.rb +1188 -1187
  196. data/generated/google/apis/gmail_v1/classes.rb +11 -11
  197. data/generated/google/apis/gmail_v1/representations.rb +11 -11
  198. data/generated/google/apis/gmail_v1/service.rb +2 -1
  199. data/generated/google/apis/groupsmigration_v1/service.rb +1 -0
  200. data/generated/google/apis/groupssettings_v1/service.rb +1 -0
  201. data/generated/google/apis/iam_v1/classes.rb +437 -437
  202. data/generated/google/apis/iam_v1/representations.rb +95 -95
  203. data/generated/google/apis/iam_v1/service.rb +87 -86
  204. data/generated/google/apis/identitytoolkit_v3/classes.rb +20 -20
  205. data/generated/google/apis/identitytoolkit_v3/representations.rb +20 -20
  206. data/generated/google/apis/identitytoolkit_v3/service.rb +1 -0
  207. data/generated/google/apis/kgsearch_v1/service.rb +9 -8
  208. data/generated/google/apis/language_v1.rb +1 -1
  209. data/generated/google/apis/language_v1/classes.rb +245 -245
  210. data/generated/google/apis/language_v1/representations.rb +65 -65
  211. data/generated/google/apis/language_v1/service.rb +1 -0
  212. data/generated/google/apis/language_v1beta1.rb +1 -1
  213. data/generated/google/apis/language_v1beta1/classes.rb +277 -277
  214. data/generated/google/apis/language_v1beta1/representations.rb +83 -83
  215. data/generated/google/apis/language_v1beta1/service.rb +31 -30
  216. data/generated/google/apis/licensing_v1/service.rb +1 -0
  217. data/generated/google/apis/logging_v2/classes.rb +408 -408
  218. data/generated/google/apis/logging_v2/representations.rb +93 -93
  219. data/generated/google/apis/logging_v2/service.rb +408 -407
  220. data/generated/google/apis/logging_v2beta1.rb +3 -3
  221. data/generated/google/apis/logging_v2beta1/classes.rb +892 -892
  222. data/generated/google/apis/logging_v2beta1/representations.rb +128 -128
  223. data/generated/google/apis/logging_v2beta1/service.rb +89 -88
  224. data/generated/google/apis/manufacturers_v1/classes.rb +309 -309
  225. data/generated/google/apis/manufacturers_v1/representations.rb +64 -64
  226. data/generated/google/apis/manufacturers_v1/service.rb +1 -0
  227. data/generated/google/apis/mirror_v1/service.rb +1 -0
  228. data/generated/google/apis/ml_v1/classes.rb +1185 -1185
  229. data/generated/google/apis/ml_v1/representations.rb +171 -171
  230. data/generated/google/apis/ml_v1/service.rb +282 -281
  231. data/generated/google/apis/monitoring_v3.rb +3 -3
  232. data/generated/google/apis/monitoring_v3/classes.rb +334 -334
  233. data/generated/google/apis/monitoring_v3/representations.rb +86 -86
  234. data/generated/google/apis/monitoring_v3/service.rb +344 -343
  235. data/generated/google/apis/mybusiness_v3/service.rb +1 -0
  236. data/generated/google/apis/oauth2_v2/service.rb +1 -0
  237. data/generated/google/apis/pagespeedonline_v2/classes.rb +8 -8
  238. data/generated/google/apis/pagespeedonline_v2/representations.rb +8 -8
  239. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -0
  240. data/generated/google/apis/partners_v2/classes.rb +1466 -1466
  241. data/generated/google/apis/partners_v2/representations.rb +371 -371
  242. data/generated/google/apis/partners_v2/service.rb +530 -529
  243. data/generated/google/apis/people_v1.rb +4 -4
  244. data/generated/google/apis/people_v1/classes.rb +1009 -1009
  245. data/generated/google/apis/people_v1/representations.rb +249 -249
  246. data/generated/google/apis/people_v1/service.rb +13 -12
  247. data/generated/google/apis/plus_domains_v1/classes.rb +2 -2
  248. data/generated/google/apis/plus_domains_v1/representations.rb +2 -2
  249. data/generated/google/apis/plus_domains_v1/service.rb +1 -0
  250. data/generated/google/apis/plus_v1/service.rb +1 -0
  251. data/generated/google/apis/prediction_v1_6/classes.rb +9 -9
  252. data/generated/google/apis/prediction_v1_6/representations.rb +9 -9
  253. data/generated/google/apis/prediction_v1_6/service.rb +1 -0
  254. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +221 -221
  255. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +55 -55
  256. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +378 -377
  257. data/generated/google/apis/pubsub_v1/classes.rb +99 -99
  258. data/generated/google/apis/pubsub_v1/representations.rb +25 -25
  259. data/generated/google/apis/pubsub_v1/service.rb +236 -235
  260. data/generated/google/apis/qpx_express_v1/service.rb +1 -0
  261. data/generated/google/apis/replicapool_v1beta2/classes.rb +3 -3
  262. data/generated/google/apis/replicapool_v1beta2/representations.rb +3 -3
  263. data/generated/google/apis/replicapool_v1beta2/service.rb +1 -0
  264. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +2 -2
  265. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +2 -2
  266. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -0
  267. data/generated/google/apis/reseller_v1/classes.rb +5 -5
  268. data/generated/google/apis/reseller_v1/representations.rb +5 -5
  269. data/generated/google/apis/reseller_v1/service.rb +1 -0
  270. data/generated/google/apis/resourceviews_v1beta2/classes.rb +2 -2
  271. data/generated/google/apis/resourceviews_v1beta2/representations.rb +2 -2
  272. data/generated/google/apis/resourceviews_v1beta2/service.rb +1 -0
  273. data/generated/google/apis/runtimeconfig_v1.rb +3 -3
  274. data/generated/google/apis/runtimeconfig_v1/classes.rb +28 -28
  275. data/generated/google/apis/runtimeconfig_v1/representations.rb +3 -3
  276. data/generated/google/apis/runtimeconfig_v1/service.rb +53 -52
  277. data/generated/google/apis/script_v1.rb +18 -18
  278. data/generated/google/apis/script_v1/classes.rb +84 -84
  279. data/generated/google/apis/script_v1/representations.rb +18 -18
  280. data/generated/google/apis/script_v1/service.rb +11 -10
  281. data/generated/google/apis/searchconsole_v1/classes.rb +75 -75
  282. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  283. data/generated/google/apis/searchconsole_v1/service.rb +11 -10
  284. data/generated/google/apis/servicecontrol_v1/classes.rb +582 -582
  285. data/generated/google/apis/servicecontrol_v1/representations.rb +113 -113
  286. data/generated/google/apis/servicecontrol_v1/service.rb +71 -70
  287. data/generated/google/apis/servicemanagement_v1.rb +3 -3
  288. data/generated/google/apis/servicemanagement_v1/classes.rb +3725 -3725
  289. data/generated/google/apis/servicemanagement_v1/representations.rb +255 -255
  290. data/generated/google/apis/servicemanagement_v1/service.rb +179 -178
  291. data/generated/google/apis/serviceuser_v1.rb +3 -3
  292. data/generated/google/apis/serviceuser_v1/classes.rb +2845 -2845
  293. data/generated/google/apis/serviceuser_v1/representations.rb +228 -228
  294. data/generated/google/apis/serviceuser_v1/service.rb +47 -46
  295. data/generated/google/apis/sheets_v4.rb +1 -1
  296. data/generated/google/apis/sheets_v4/classes.rb +4456 -4456
  297. data/generated/google/apis/sheets_v4/representations.rb +859 -859
  298. data/generated/google/apis/sheets_v4/service.rb +180 -179
  299. data/generated/google/apis/site_verification_v1/service.rb +1 -0
  300. data/generated/google/apis/slides_v1.rb +1 -1
  301. data/generated/google/apis/slides_v1/classes.rb +2856 -2856
  302. data/generated/google/apis/slides_v1/representations.rb +683 -683
  303. data/generated/google/apis/slides_v1/service.rb +27 -26
  304. data/generated/google/apis/sourcerepo_v1/classes.rb +281 -281
  305. data/generated/google/apis/sourcerepo_v1/representations.rb +79 -79
  306. data/generated/google/apis/sourcerepo_v1/service.rb +112 -111
  307. data/generated/google/apis/spanner_v1/classes.rb +2177 -2177
  308. data/generated/google/apis/spanner_v1/representations.rb +325 -325
  309. data/generated/google/apis/spanner_v1/service.rb +374 -373
  310. data/generated/google/apis/speech_v1beta1/classes.rb +197 -197
  311. data/generated/google/apis/speech_v1beta1/representations.rb +36 -36
  312. data/generated/google/apis/speech_v1beta1/service.rb +27 -26
  313. data/generated/google/apis/sqladmin_v1beta4/classes.rb +14 -14
  314. data/generated/google/apis/sqladmin_v1beta4/representations.rb +14 -14
  315. data/generated/google/apis/sqladmin_v1beta4/service.rb +3 -2
  316. data/generated/google/apis/storage_v1.rb +1 -1
  317. data/generated/google/apis/storage_v1/classes.rb +11 -11
  318. data/generated/google/apis/storage_v1/representations.rb +11 -11
  319. data/generated/google/apis/storage_v1/service.rb +65 -64
  320. data/generated/google/apis/storagetransfer_v1/classes.rb +239 -239
  321. data/generated/google/apis/storagetransfer_v1/representations.rb +79 -79
  322. data/generated/google/apis/storagetransfer_v1/service.rb +133 -132
  323. data/generated/google/apis/surveys_v2/classes.rb +4 -4
  324. data/generated/google/apis/surveys_v2/representations.rb +4 -4
  325. data/generated/google/apis/surveys_v2/service.rb +1 -0
  326. data/generated/google/apis/tagmanager_v1/classes.rb +7 -7
  327. data/generated/google/apis/tagmanager_v1/representations.rb +7 -7
  328. data/generated/google/apis/tagmanager_v1/service.rb +1 -0
  329. data/generated/google/apis/tagmanager_v2/classes.rb +6 -6
  330. data/generated/google/apis/tagmanager_v2/representations.rb +6 -6
  331. data/generated/google/apis/tagmanager_v2/service.rb +1 -0
  332. data/generated/google/apis/taskqueue_v1beta2/classes.rb +5 -5
  333. data/generated/google/apis/taskqueue_v1beta2/representations.rb +5 -5
  334. data/generated/google/apis/taskqueue_v1beta2/service.rb +1 -0
  335. data/generated/google/apis/tasks_v1/service.rb +3 -2
  336. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  337. data/generated/google/apis/toolresults_v1beta3/classes.rb +4 -4
  338. data/generated/google/apis/toolresults_v1beta3/representations.rb +4 -4
  339. data/generated/google/apis/toolresults_v1beta3/service.rb +1 -0
  340. data/generated/google/apis/tracing_v1/classes.rb +421 -421
  341. data/generated/google/apis/tracing_v1/representations.rb +86 -86
  342. data/generated/google/apis/tracing_v1/service.rb +60 -59
  343. data/generated/google/apis/translate_v2/service.rb +1 -0
  344. data/generated/google/apis/urlshortener_v1/classes.rb +3 -3
  345. data/generated/google/apis/urlshortener_v1/representations.rb +3 -3
  346. data/generated/google/apis/urlshortener_v1/service.rb +1 -0
  347. data/generated/google/apis/vision_v1/classes.rb +1290 -1290
  348. data/generated/google/apis/vision_v1/representations.rb +184 -184
  349. data/generated/google/apis/vision_v1/service.rb +11 -10
  350. data/generated/google/apis/webfonts_v1/service.rb +1 -0
  351. data/generated/google/apis/webmasters_v3/classes.rb +5 -5
  352. data/generated/google/apis/webmasters_v3/representations.rb +5 -5
  353. data/generated/google/apis/webmasters_v3/service.rb +1 -0
  354. data/generated/google/apis/youtube_analytics_v1/classes.rb +1 -1
  355. data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -1
  356. data/generated/google/apis/youtube_analytics_v1/service.rb +1 -0
  357. data/generated/google/apis/youtube_partner_v1/classes.rb +13 -13
  358. data/generated/google/apis/youtube_partner_v1/representations.rb +13 -13
  359. data/generated/google/apis/youtube_partner_v1/service.rb +1 -0
  360. data/generated/google/apis/youtube_v3/classes.rb +31 -31
  361. data/generated/google/apis/youtube_v3/representations.rb +31 -31
  362. data/generated/google/apis/youtube_v3/service.rb +2 -1
  363. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  364. data/generated/google/apis/youtubereporting_v1/classes.rb +73 -73
  365. data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
  366. data/generated/google/apis/youtubereporting_v1/service.rb +77 -76
  367. data/google-api-client.gemspec +4 -6
  368. data/lib/google/apis/core/api_command.rb +8 -3
  369. data/lib/google/apis/core/base_service.rb +47 -18
  370. data/lib/google/apis/core/batch.rb +13 -18
  371. data/lib/google/apis/core/composite_io.rb +97 -0
  372. data/lib/google/apis/core/download.rb +24 -20
  373. data/lib/google/apis/core/http_command.rb +49 -38
  374. data/lib/google/apis/core/json_representation.rb +5 -1
  375. data/lib/google/apis/core/multipart.rb +43 -95
  376. data/lib/google/apis/core/upload.rb +59 -84
  377. data/lib/google/apis/generator/model.rb +2 -0
  378. data/lib/google/apis/generator/templates/_representation.tmpl +1 -1
  379. data/lib/google/apis/generator/templates/service.rb.tmpl +1 -0
  380. data/lib/google/apis/options.rb +24 -12
  381. data/lib/google/apis/version.rb +1 -1
  382. data/samples/web/Gemfile +0 -1
  383. metadata +39 -37
  384. data/lib/google/apis/core/http_client_adapter.rb +0 -82
  385. data/third_party/hurley_patches.rb +0 -103
@@ -22,36 +22,6 @@ module Google
22
22
  module Apis
23
23
  module ServicecontrolV1
24
24
 
25
- class MetricValue
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- include Google::Apis::Core::JsonObjectSupport
29
- end
30
-
31
- class Money
32
- class Representation < Google::Apis::Core::JsonRepresentation; end
33
-
34
- include Google::Apis::Core::JsonObjectSupport
35
- end
36
-
37
- class EndReconciliationResponse
38
- class Representation < Google::Apis::Core::JsonRepresentation; end
39
-
40
- include Google::Apis::Core::JsonObjectSupport
41
- end
42
-
43
- class ExplicitBuckets
44
- class Representation < Google::Apis::Core::JsonRepresentation; end
45
-
46
- include Google::Apis::Core::JsonObjectSupport
47
- end
48
-
49
- class Distribution
50
- class Representation < Google::Apis::Core::JsonRepresentation; end
51
-
52
- include Google::Apis::Core::JsonObjectSupport
53
- end
54
-
55
25
  class ExponentialBuckets
56
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
27
 
@@ -100,13 +70,13 @@ module Google
100
70
  include Google::Apis::Core::JsonObjectSupport
101
71
  end
102
72
 
103
- class RequestMetadata
73
+ class QuotaError
104
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
75
 
106
76
  include Google::Apis::Core::JsonObjectSupport
107
77
  end
108
78
 
109
- class QuotaError
79
+ class RequestMetadata
110
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
81
 
112
82
  include Google::Apis::Core::JsonObjectSupport
@@ -227,66 +197,33 @@ module Google
227
197
  end
228
198
 
229
199
  class MetricValue
230
- # @private
231
- class Representation < Google::Apis::Core::JsonRepresentation
232
- property :string_value, as: 'stringValue'
233
- hash :labels, as: 'labels'
234
- property :double_value, as: 'doubleValue'
235
- property :int64_value, as: 'int64Value'
236
- property :distribution_value, as: 'distributionValue', class: Google::Apis::ServicecontrolV1::Distribution, decorator: Google::Apis::ServicecontrolV1::Distribution::Representation
237
-
238
- property :bool_value, as: 'boolValue'
239
- property :end_time, as: 'endTime'
240
- property :start_time, as: 'startTime'
241
- property :money_value, as: 'moneyValue', class: Google::Apis::ServicecontrolV1::Money, decorator: Google::Apis::ServicecontrolV1::Money::Representation
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
242
201
 
243
- end
202
+ include Google::Apis::Core::JsonObjectSupport
244
203
  end
245
204
 
246
205
  class Money
247
- # @private
248
- class Representation < Google::Apis::Core::JsonRepresentation
249
- property :currency_code, as: 'currencyCode'
250
- property :nanos, as: 'nanos'
251
- property :units, as: 'units'
252
- end
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
253
209
  end
254
210
 
255
211
  class EndReconciliationResponse
256
- # @private
257
- class Representation < Google::Apis::Core::JsonRepresentation
258
- collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation
259
-
260
- property :operation_id, as: 'operationId'
261
- collection :reconciliation_errors, as: 'reconciliationErrors', class: Google::Apis::ServicecontrolV1::QuotaError, decorator: Google::Apis::ServicecontrolV1::QuotaError::Representation
262
-
263
- property :service_config_id, as: 'serviceConfigId'
264
- end
265
- end
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
266
213
 
267
- class ExplicitBuckets
268
- # @private
269
- class Representation < Google::Apis::Core::JsonRepresentation
270
- collection :bounds, as: 'bounds'
271
- end
214
+ include Google::Apis::Core::JsonObjectSupport
272
215
  end
273
216
 
274
217
  class Distribution
275
- # @private
276
- class Representation < Google::Apis::Core::JsonRepresentation
277
- property :exponential_buckets, as: 'exponentialBuckets', class: Google::Apis::ServicecontrolV1::ExponentialBuckets, decorator: Google::Apis::ServicecontrolV1::ExponentialBuckets::Representation
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
278
219
 
279
- property :minimum, as: 'minimum'
280
- property :linear_buckets, as: 'linearBuckets', class: Google::Apis::ServicecontrolV1::LinearBuckets, decorator: Google::Apis::ServicecontrolV1::LinearBuckets::Representation
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
281
222
 
282
- property :count, as: 'count'
283
- property :mean, as: 'mean'
284
- collection :bucket_counts, as: 'bucketCounts'
285
- property :explicit_buckets, as: 'explicitBuckets', class: Google::Apis::ServicecontrolV1::ExplicitBuckets, decorator: Google::Apis::ServicecontrolV1::ExplicitBuckets::Representation
223
+ class ExplicitBuckets
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
286
225
 
287
- property :maximum, as: 'maximum'
288
- property :sum_of_squared_deviation, as: 'sumOfSquaredDeviation'
289
- end
226
+ include Google::Apis::Core::JsonObjectSupport
290
227
  end
291
228
 
292
229
  class ExponentialBuckets
@@ -310,29 +247,29 @@ module Google
310
247
  class StartReconciliationResponse
311
248
  # @private
312
249
  class Representation < Google::Apis::Core::JsonRepresentation
250
+ collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation
251
+
313
252
  property :operation_id, as: 'operationId'
314
253
  collection :reconciliation_errors, as: 'reconciliationErrors', class: Google::Apis::ServicecontrolV1::QuotaError, decorator: Google::Apis::ServicecontrolV1::QuotaError::Representation
315
254
 
316
255
  property :service_config_id, as: 'serviceConfigId'
317
- collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation
318
-
319
256
  end
320
257
  end
321
258
 
322
259
  class QuotaProperties
323
260
  # @private
324
261
  class Representation < Google::Apis::Core::JsonRepresentation
325
- hash :limit_by_ids, as: 'limitByIds'
326
262
  property :quota_mode, as: 'quotaMode'
263
+ hash :limit_by_ids, as: 'limitByIds'
327
264
  end
328
265
  end
329
266
 
330
267
  class LinearBuckets
331
268
  # @private
332
269
  class Representation < Google::Apis::Core::JsonRepresentation
270
+ property :width, as: 'width'
333
271
  property :offset, as: 'offset'
334
272
  property :num_finite_buckets, as: 'numFiniteBuckets'
335
- property :width, as: 'width'
336
273
  end
337
274
  end
338
275
 
@@ -347,12 +284,12 @@ module Google
347
284
  class AllocateQuotaResponse
348
285
  # @private
349
286
  class Representation < Google::Apis::Core::JsonRepresentation
287
+ property :operation_id, as: 'operationId'
350
288
  property :service_config_id, as: 'serviceConfigId'
351
289
  collection :allocate_errors, as: 'allocateErrors', class: Google::Apis::ServicecontrolV1::QuotaError, decorator: Google::Apis::ServicecontrolV1::QuotaError::Representation
352
290
 
353
291
  collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation
354
292
 
355
- property :operation_id, as: 'operationId'
356
293
  end
357
294
  end
358
295
 
@@ -365,20 +302,20 @@ module Google
365
302
  end
366
303
  end
367
304
 
368
- class RequestMetadata
305
+ class QuotaError
369
306
  # @private
370
307
  class Representation < Google::Apis::Core::JsonRepresentation
371
- property :caller_ip, as: 'callerIp'
372
- property :caller_supplied_user_agent, as: 'callerSuppliedUserAgent'
308
+ property :subject, as: 'subject'
309
+ property :description, as: 'description'
310
+ property :code, as: 'code'
373
311
  end
374
312
  end
375
313
 
376
- class QuotaError
314
+ class RequestMetadata
377
315
  # @private
378
316
  class Representation < Google::Apis::Core::JsonRepresentation
379
- property :subject, as: 'subject'
380
- property :description, as: 'description'
381
- property :code, as: 'code'
317
+ property :caller_ip, as: 'callerIp'
318
+ property :caller_supplied_user_agent, as: 'callerSuppliedUserAgent'
382
319
  end
383
320
  end
384
321
 
@@ -392,22 +329,22 @@ module Google
392
329
  class ReleaseQuotaResponse
393
330
  # @private
394
331
  class Representation < Google::Apis::Core::JsonRepresentation
395
- collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation
396
-
397
332
  property :operation_id, as: 'operationId'
398
333
  property :service_config_id, as: 'serviceConfigId'
399
334
  collection :release_errors, as: 'releaseErrors', class: Google::Apis::ServicecontrolV1::QuotaError, decorator: Google::Apis::ServicecontrolV1::QuotaError::Representation
400
335
 
336
+ collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation
337
+
401
338
  end
402
339
  end
403
340
 
404
341
  class AllocateQuotaRequest
405
342
  # @private
406
343
  class Representation < Google::Apis::Core::JsonRepresentation
344
+ property :allocation_mode, as: 'allocationMode'
407
345
  property :service_config_id, as: 'serviceConfigId'
408
346
  property :allocate_operation, as: 'allocateOperation', class: Google::Apis::ServicecontrolV1::QuotaOperation, decorator: Google::Apis::ServicecontrolV1::QuotaOperation::Representation
409
347
 
410
- property :allocation_mode, as: 'allocationMode'
411
348
  end
412
349
  end
413
350
 
@@ -423,26 +360,26 @@ module Google
423
360
  class ReportError
424
361
  # @private
425
362
  class Representation < Google::Apis::Core::JsonRepresentation
426
- property :operation_id, as: 'operationId'
427
363
  property :status, as: 'status', class: Google::Apis::ServicecontrolV1::Status, decorator: Google::Apis::ServicecontrolV1::Status::Representation
428
364
 
365
+ property :operation_id, as: 'operationId'
429
366
  end
430
367
  end
431
368
 
432
369
  class StartReconciliationRequest
433
370
  # @private
434
371
  class Representation < Google::Apis::Core::JsonRepresentation
435
- property :service_config_id, as: 'serviceConfigId'
436
372
  property :reconciliation_operation, as: 'reconciliationOperation', class: Google::Apis::ServicecontrolV1::QuotaOperation, decorator: Google::Apis::ServicecontrolV1::QuotaOperation::Representation
437
373
 
374
+ property :service_config_id, as: 'serviceConfigId'
438
375
  end
439
376
  end
440
377
 
441
378
  class CheckError
442
379
  # @private
443
380
  class Representation < Google::Apis::Core::JsonRepresentation
444
- property :detail, as: 'detail'
445
381
  property :code, as: 'code'
382
+ property :detail, as: 'detail'
446
383
  end
447
384
  end
448
385
 
@@ -470,13 +407,13 @@ module Google
470
407
  class QuotaOperation
471
408
  # @private
472
409
  class Representation < Google::Apis::Core::JsonRepresentation
410
+ hash :labels, as: 'labels'
473
411
  property :consumer_id, as: 'consumerId'
474
412
  property :operation_id, as: 'operationId'
475
413
  property :quota_mode, as: 'quotaMode'
476
414
  property :method_name, as: 'methodName'
477
415
  collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation
478
416
 
479
- hash :labels, as: 'labels'
480
417
  end
481
418
  end
482
419
 
@@ -501,8 +438,12 @@ module Google
501
438
  class Operation
502
439
  # @private
503
440
  class Representation < Google::Apis::Core::JsonRepresentation
504
- property :operation_name, as: 'operationName'
441
+ property :quota_properties, as: 'quotaProperties', class: Google::Apis::ServicecontrolV1::QuotaProperties, decorator: Google::Apis::ServicecontrolV1::QuotaProperties::Representation
442
+
443
+ property :consumer_id, as: 'consumerId'
444
+ property :operation_id, as: 'operationId'
505
445
  property :end_time, as: 'endTime'
446
+ property :operation_name, as: 'operationName'
506
447
  property :start_time, as: 'startTime'
507
448
  property :importance, as: 'importance'
508
449
  property :resource_container, as: 'resourceContainer'
@@ -512,21 +453,17 @@ module Google
512
453
  hash :user_labels, as: 'userLabels'
513
454
  collection :metric_value_sets, as: 'metricValueSets', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation
514
455
 
515
- property :quota_properties, as: 'quotaProperties', class: Google::Apis::ServicecontrolV1::QuotaProperties, decorator: Google::Apis::ServicecontrolV1::QuotaProperties::Representation
516
-
517
- property :consumer_id, as: 'consumerId'
518
- property :operation_id, as: 'operationId'
519
456
  end
520
457
  end
521
458
 
522
459
  class ReportResponse
523
460
  # @private
524
461
  class Representation < Google::Apis::Core::JsonRepresentation
462
+ collection :report_errors, as: 'reportErrors', class: Google::Apis::ServicecontrolV1::ReportError, decorator: Google::Apis::ServicecontrolV1::ReportError::Representation
463
+
525
464
  collection :report_infos, as: 'reportInfos', class: Google::Apis::ServicecontrolV1::ReportInfo, decorator: Google::Apis::ServicecontrolV1::ReportInfo::Representation
526
465
 
527
466
  property :service_config_id, as: 'serviceConfigId'
528
- collection :report_errors, as: 'reportErrors', class: Google::Apis::ServicecontrolV1::ReportError, decorator: Google::Apis::ServicecontrolV1::ReportError::Representation
529
-
530
467
  end
531
468
  end
532
469
 
@@ -547,9 +484,9 @@ module Google
547
484
  class Status
548
485
  # @private
549
486
  class Representation < Google::Apis::Core::JsonRepresentation
487
+ collection :details, as: 'details'
550
488
  property :code, as: 'code'
551
489
  property :message, as: 'message'
552
- collection :details, as: 'details'
553
490
  end
554
491
  end
555
492
 
@@ -565,35 +502,98 @@ module Google
565
502
  class AuditLog
566
503
  # @private
567
504
  class Representation < Google::Apis::Core::JsonRepresentation
568
- hash :service_data, as: 'serviceData'
569
- property :request_metadata, as: 'requestMetadata', class: Google::Apis::ServicecontrolV1::RequestMetadata, decorator: Google::Apis::ServicecontrolV1::RequestMetadata::Representation
505
+ property :num_response_items, :numeric_string => true, as: 'numResponseItems'
506
+ property :authentication_info, as: 'authenticationInfo', class: Google::Apis::ServicecontrolV1::AuthenticationInfo, decorator: Google::Apis::ServicecontrolV1::AuthenticationInfo::Representation
570
507
 
571
- property :num_response_items, as: 'numResponseItems'
572
508
  property :status, as: 'status', class: Google::Apis::ServicecontrolV1::Status, decorator: Google::Apis::ServicecontrolV1::Status::Representation
573
509
 
574
- property :authentication_info, as: 'authenticationInfo', class: Google::Apis::ServicecontrolV1::AuthenticationInfo, decorator: Google::Apis::ServicecontrolV1::AuthenticationInfo::Representation
575
-
576
510
  property :service_name, as: 'serviceName'
577
511
  hash :response, as: 'response'
578
512
  property :method_name, as: 'methodName'
513
+ property :resource_name, as: 'resourceName'
579
514
  collection :authorization_info, as: 'authorizationInfo', class: Google::Apis::ServicecontrolV1::AuthorizationInfo, decorator: Google::Apis::ServicecontrolV1::AuthorizationInfo::Representation
580
515
 
581
- property :resource_name, as: 'resourceName'
582
516
  hash :request, as: 'request'
517
+ hash :service_data, as: 'serviceData'
518
+ property :request_metadata, as: 'requestMetadata', class: Google::Apis::ServicecontrolV1::RequestMetadata, decorator: Google::Apis::ServicecontrolV1::RequestMetadata::Representation
519
+
583
520
  end
584
521
  end
585
522
 
586
523
  class LogEntry
587
524
  # @private
588
525
  class Representation < Google::Apis::Core::JsonRepresentation
589
- hash :labels, as: 'labels'
590
526
  property :severity, as: 'severity'
591
- property :insert_id, as: 'insertId'
592
527
  property :name, as: 'name'
528
+ property :insert_id, as: 'insertId'
593
529
  hash :struct_payload, as: 'structPayload'
594
530
  property :text_payload, as: 'textPayload'
595
531
  hash :proto_payload, as: 'protoPayload'
596
532
  property :timestamp, as: 'timestamp'
533
+ hash :labels, as: 'labels'
534
+ end
535
+ end
536
+
537
+ class MetricValue
538
+ # @private
539
+ class Representation < Google::Apis::Core::JsonRepresentation
540
+ property :end_time, as: 'endTime'
541
+ property :start_time, as: 'startTime'
542
+ property :money_value, as: 'moneyValue', class: Google::Apis::ServicecontrolV1::Money, decorator: Google::Apis::ServicecontrolV1::Money::Representation
543
+
544
+ property :string_value, as: 'stringValue'
545
+ hash :labels, as: 'labels'
546
+ property :double_value, as: 'doubleValue'
547
+ property :int64_value, :numeric_string => true, as: 'int64Value'
548
+ property :distribution_value, as: 'distributionValue', class: Google::Apis::ServicecontrolV1::Distribution, decorator: Google::Apis::ServicecontrolV1::Distribution::Representation
549
+
550
+ property :bool_value, as: 'boolValue'
551
+ end
552
+ end
553
+
554
+ class Money
555
+ # @private
556
+ class Representation < Google::Apis::Core::JsonRepresentation
557
+ property :nanos, as: 'nanos'
558
+ property :units, :numeric_string => true, as: 'units'
559
+ property :currency_code, as: 'currencyCode'
560
+ end
561
+ end
562
+
563
+ class EndReconciliationResponse
564
+ # @private
565
+ class Representation < Google::Apis::Core::JsonRepresentation
566
+ property :operation_id, as: 'operationId'
567
+ collection :reconciliation_errors, as: 'reconciliationErrors', class: Google::Apis::ServicecontrolV1::QuotaError, decorator: Google::Apis::ServicecontrolV1::QuotaError::Representation
568
+
569
+ property :service_config_id, as: 'serviceConfigId'
570
+ collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation
571
+
572
+ end
573
+ end
574
+
575
+ class Distribution
576
+ # @private
577
+ class Representation < Google::Apis::Core::JsonRepresentation
578
+ property :maximum, as: 'maximum'
579
+ property :sum_of_squared_deviation, as: 'sumOfSquaredDeviation'
580
+ property :exponential_buckets, as: 'exponentialBuckets', class: Google::Apis::ServicecontrolV1::ExponentialBuckets, decorator: Google::Apis::ServicecontrolV1::ExponentialBuckets::Representation
581
+
582
+ property :minimum, as: 'minimum'
583
+ property :linear_buckets, as: 'linearBuckets', class: Google::Apis::ServicecontrolV1::LinearBuckets, decorator: Google::Apis::ServicecontrolV1::LinearBuckets::Representation
584
+
585
+ property :count, :numeric_string => true, as: 'count'
586
+ property :mean, as: 'mean'
587
+ collection :bucket_counts, as: 'bucketCounts'
588
+ property :explicit_buckets, as: 'explicitBuckets', class: Google::Apis::ServicecontrolV1::ExplicitBuckets, decorator: Google::Apis::ServicecontrolV1::ExplicitBuckets::Representation
589
+
590
+ end
591
+ end
592
+
593
+ class ExplicitBuckets
594
+ # @private
595
+ class Representation < Google::Apis::Core::JsonRepresentation
596
+ collection :bounds, as: 'bounds'
597
597
  end
598
598
  end
599
599
  end
@@ -33,18 +33,64 @@ module Google
33
33
  #
34
34
  # @see https://cloud.google.com/service-control/
35
35
  class ServiceControlService < Google::Apis::Core::BaseService
36
- # @return [String]
37
- # Available to use for quota purposes for server-side applications. Can be any
38
- # arbitrary string assigned to a user, but should not exceed 40 characters.
39
- attr_accessor :quota_user
40
-
41
36
  # @return [String]
42
37
  # API key. Your API key identifies your project and provides you with API access,
43
38
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
44
39
  attr_accessor :key
45
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
46
  def initialize
47
47
  super('https://servicecontrol.googleapis.com/', '')
48
+ @batch_path = 'batch'
49
+ end
50
+
51
+ # Reports operation results to Google Service Control, such as logs and
52
+ # metrics. It should be called after an operation is completed.
53
+ # If feasible, the client should aggregate reporting data for up to 5
54
+ # seconds to reduce API traffic. Limiting aggregation to 5 seconds is to
55
+ # reduce data loss during client crashes. Clients should carefully choose
56
+ # the aggregation time window to avoid data loss risk more than 0.01%
57
+ # for business and compliance reasons.
58
+ # NOTE: the `ReportRequest` has the size limit of 1MB.
59
+ # This method requires the `servicemanagement.services.report` permission
60
+ # on the specified service. For more information, see
61
+ # [Google Cloud IAM](https://cloud.google.com/iam).
62
+ # @param [String] service_name
63
+ # The service name as specified in its service configuration. For example,
64
+ # `"pubsub.googleapis.com"`.
65
+ # See google.api.Service for the definition of a service name.
66
+ # @param [Google::Apis::ServicecontrolV1::ReportRequest] report_request_object
67
+ # @param [String] fields
68
+ # Selector specifying which fields to include in a partial response.
69
+ # @param [String] quota_user
70
+ # Available to use for quota purposes for server-side applications. Can be any
71
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
72
+ # @param [Google::Apis::RequestOptions] options
73
+ # Request-specific options
74
+ #
75
+ # @yield [result, err] Result & error if block supplied
76
+ # @yieldparam result [Google::Apis::ServicecontrolV1::ReportResponse] parsed result object
77
+ # @yieldparam err [StandardError] error object if request failed
78
+ #
79
+ # @return [Google::Apis::ServicecontrolV1::ReportResponse]
80
+ #
81
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
82
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
83
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
84
+ def report_service(service_name, report_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
85
+ command = make_simple_command(:post, 'v1/services/{serviceName}:report', options)
86
+ command.request_representation = Google::Apis::ServicecontrolV1::ReportRequest::Representation
87
+ command.request_object = report_request_object
88
+ command.response_representation = Google::Apis::ServicecontrolV1::ReportResponse::Representation
89
+ command.response_class = Google::Apis::ServicecontrolV1::ReportResponse
90
+ command.params['serviceName'] = service_name unless service_name.nil?
91
+ command.query['fields'] = fields unless fields.nil?
92
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
93
+ execute_or_queue_command(command, &block)
48
94
  end
49
95
 
50
96
  # Attempts to allocate quota for the specified consumer. It should be called
@@ -65,11 +111,11 @@ module Google
65
111
  # `"pubsub.googleapis.com"`.
66
112
  # See google.api.Service for the definition of a service name.
67
113
  # @param [Google::Apis::ServicecontrolV1::AllocateQuotaRequest] allocate_quota_request_object
114
+ # @param [String] fields
115
+ # Selector specifying which fields to include in a partial response.
68
116
  # @param [String] quota_user
69
117
  # Available to use for quota purposes for server-side applications. Can be any
70
118
  # arbitrary string assigned to a user, but should not exceed 40 characters.
71
- # @param [String] fields
72
- # Selector specifying which fields to include in a partial response.
73
119
  # @param [Google::Apis::RequestOptions] options
74
120
  # Request-specific options
75
121
  #
@@ -82,15 +128,15 @@ module Google
82
128
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
83
129
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
84
130
  # @raise [Google::Apis::AuthorizationError] Authorization is required
85
- def allocate_service_quota(service_name, allocate_quota_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
131
+ def allocate_service_quota(service_name, allocate_quota_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
86
132
  command = make_simple_command(:post, 'v1/services/{serviceName}:allocateQuota', options)
87
133
  command.request_representation = Google::Apis::ServicecontrolV1::AllocateQuotaRequest::Representation
88
134
  command.request_object = allocate_quota_request_object
89
135
  command.response_representation = Google::Apis::ServicecontrolV1::AllocateQuotaResponse::Representation
90
136
  command.response_class = Google::Apis::ServicecontrolV1::AllocateQuotaResponse
91
137
  command.params['serviceName'] = service_name unless service_name.nil?
92
- command.query['quotaUser'] = quota_user unless quota_user.nil?
93
138
  command.query['fields'] = fields unless fields.nil?
139
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
94
140
  execute_or_queue_command(command, &block)
95
141
  end
96
142
 
@@ -122,11 +168,11 @@ module Google
122
168
  # `"pubsub.googleapis.com"`.
123
169
  # See google.api.Service for the definition of a service name.
124
170
  # @param [Google::Apis::ServicecontrolV1::StartReconciliationRequest] start_reconciliation_request_object
171
+ # @param [String] fields
172
+ # Selector specifying which fields to include in a partial response.
125
173
  # @param [String] quota_user
126
174
  # Available to use for quota purposes for server-side applications. Can be any
127
175
  # arbitrary string assigned to a user, but should not exceed 40 characters.
128
- # @param [String] fields
129
- # Selector specifying which fields to include in a partial response.
130
176
  # @param [Google::Apis::RequestOptions] options
131
177
  # Request-specific options
132
178
  #
@@ -139,15 +185,15 @@ module Google
139
185
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
140
186
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
141
187
  # @raise [Google::Apis::AuthorizationError] Authorization is required
142
- def start_service_reconciliation(service_name, start_reconciliation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
188
+ def start_service_reconciliation(service_name, start_reconciliation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
143
189
  command = make_simple_command(:post, 'v1/services/{serviceName}:startReconciliation', options)
144
190
  command.request_representation = Google::Apis::ServicecontrolV1::StartReconciliationRequest::Representation
145
191
  command.request_object = start_reconciliation_request_object
146
192
  command.response_representation = Google::Apis::ServicecontrolV1::StartReconciliationResponse::Representation
147
193
  command.response_class = Google::Apis::ServicecontrolV1::StartReconciliationResponse
148
194
  command.params['serviceName'] = service_name unless service_name.nil?
149
- command.query['quotaUser'] = quota_user unless quota_user.nil?
150
195
  command.query['fields'] = fields unless fields.nil?
196
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
151
197
  execute_or_queue_command(command, &block)
152
198
  end
153
199
 
@@ -166,11 +212,11 @@ module Google
166
212
  # `"pubsub.googleapis.com"`.
167
213
  # See google.api.Service for the definition of a service name.
168
214
  # @param [Google::Apis::ServicecontrolV1::CheckRequest] check_request_object
215
+ # @param [String] fields
216
+ # Selector specifying which fields to include in a partial response.
169
217
  # @param [String] quota_user
170
218
  # Available to use for quota purposes for server-side applications. Can be any
171
219
  # arbitrary string assigned to a user, but should not exceed 40 characters.
172
- # @param [String] fields
173
- # Selector specifying which fields to include in a partial response.
174
220
  # @param [Google::Apis::RequestOptions] options
175
221
  # Request-specific options
176
222
  #
@@ -183,15 +229,15 @@ module Google
183
229
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
184
230
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
185
231
  # @raise [Google::Apis::AuthorizationError] Authorization is required
186
- def check_service(service_name, check_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
232
+ def check_service(service_name, check_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
187
233
  command = make_simple_command(:post, 'v1/services/{serviceName}:check', options)
188
234
  command.request_representation = Google::Apis::ServicecontrolV1::CheckRequest::Representation
189
235
  command.request_object = check_request_object
190
236
  command.response_representation = Google::Apis::ServicecontrolV1::CheckResponse::Representation
191
237
  command.response_class = Google::Apis::ServicecontrolV1::CheckResponse
192
238
  command.params['serviceName'] = service_name unless service_name.nil?
193
- command.query['quotaUser'] = quota_user unless quota_user.nil?
194
239
  command.query['fields'] = fields unless fields.nil?
240
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
195
241
  execute_or_queue_command(command, &block)
196
242
  end
197
243
 
@@ -212,11 +258,11 @@ module Google
212
258
  # `"pubsub.googleapis.com"`.
213
259
  # See google.api.Service for the definition of a service name.
214
260
  # @param [Google::Apis::ServicecontrolV1::ReleaseQuotaRequest] release_quota_request_object
261
+ # @param [String] fields
262
+ # Selector specifying which fields to include in a partial response.
215
263
  # @param [String] quota_user
216
264
  # Available to use for quota purposes for server-side applications. Can be any
217
265
  # arbitrary string assigned to a user, but should not exceed 40 characters.
218
- # @param [String] fields
219
- # Selector specifying which fields to include in a partial response.
220
266
  # @param [Google::Apis::RequestOptions] options
221
267
  # Request-specific options
222
268
  #
@@ -229,15 +275,15 @@ module Google
229
275
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
230
276
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
231
277
  # @raise [Google::Apis::AuthorizationError] Authorization is required
232
- def release_service_quota(service_name, release_quota_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
278
+ def release_service_quota(service_name, release_quota_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
233
279
  command = make_simple_command(:post, 'v1/services/{serviceName}:releaseQuota', options)
234
280
  command.request_representation = Google::Apis::ServicecontrolV1::ReleaseQuotaRequest::Representation
235
281
  command.request_object = release_quota_request_object
236
282
  command.response_representation = Google::Apis::ServicecontrolV1::ReleaseQuotaResponse::Representation
237
283
  command.response_class = Google::Apis::ServicecontrolV1::ReleaseQuotaResponse
238
284
  command.params['serviceName'] = service_name unless service_name.nil?
239
- command.query['quotaUser'] = quota_user unless quota_user.nil?
240
285
  command.query['fields'] = fields unless fields.nil?
286
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
241
287
  execute_or_queue_command(command, &block)
242
288
  end
243
289
 
@@ -251,11 +297,11 @@ module Google
251
297
  # `"pubsub.googleapis.com"`.
252
298
  # See google.api.Service for the definition of a service name.
253
299
  # @param [Google::Apis::ServicecontrolV1::EndReconciliationRequest] end_reconciliation_request_object
300
+ # @param [String] fields
301
+ # Selector specifying which fields to include in a partial response.
254
302
  # @param [String] quota_user
255
303
  # Available to use for quota purposes for server-side applications. Can be any
256
304
  # arbitrary string assigned to a user, but should not exceed 40 characters.
257
- # @param [String] fields
258
- # Selector specifying which fields to include in a partial response.
259
305
  # @param [Google::Apis::RequestOptions] options
260
306
  # Request-specific options
261
307
  #
@@ -268,68 +314,23 @@ module Google
268
314
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
269
315
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
270
316
  # @raise [Google::Apis::AuthorizationError] Authorization is required
271
- def end_service_reconciliation(service_name, end_reconciliation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
317
+ def end_service_reconciliation(service_name, end_reconciliation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
272
318
  command = make_simple_command(:post, 'v1/services/{serviceName}:endReconciliation', options)
273
319
  command.request_representation = Google::Apis::ServicecontrolV1::EndReconciliationRequest::Representation
274
320
  command.request_object = end_reconciliation_request_object
275
321
  command.response_representation = Google::Apis::ServicecontrolV1::EndReconciliationResponse::Representation
276
322
  command.response_class = Google::Apis::ServicecontrolV1::EndReconciliationResponse
277
323
  command.params['serviceName'] = service_name unless service_name.nil?
278
- command.query['quotaUser'] = quota_user unless quota_user.nil?
279
324
  command.query['fields'] = fields unless fields.nil?
280
- execute_or_queue_command(command, &block)
281
- end
282
-
283
- # Reports operation results to Google Service Control, such as logs and
284
- # metrics. It should be called after an operation is completed.
285
- # If feasible, the client should aggregate reporting data for up to 5
286
- # seconds to reduce API traffic. Limiting aggregation to 5 seconds is to
287
- # reduce data loss during client crashes. Clients should carefully choose
288
- # the aggregation time window to avoid data loss risk more than 0.01%
289
- # for business and compliance reasons.
290
- # NOTE: the `ReportRequest` has the size limit of 1MB.
291
- # This method requires the `servicemanagement.services.report` permission
292
- # on the specified service. For more information, see
293
- # [Google Cloud IAM](https://cloud.google.com/iam).
294
- # @param [String] service_name
295
- # The service name as specified in its service configuration. For example,
296
- # `"pubsub.googleapis.com"`.
297
- # See google.api.Service for the definition of a service name.
298
- # @param [Google::Apis::ServicecontrolV1::ReportRequest] report_request_object
299
- # @param [String] quota_user
300
- # Available to use for quota purposes for server-side applications. Can be any
301
- # arbitrary string assigned to a user, but should not exceed 40 characters.
302
- # @param [String] fields
303
- # Selector specifying which fields to include in a partial response.
304
- # @param [Google::Apis::RequestOptions] options
305
- # Request-specific options
306
- #
307
- # @yield [result, err] Result & error if block supplied
308
- # @yieldparam result [Google::Apis::ServicecontrolV1::ReportResponse] parsed result object
309
- # @yieldparam err [StandardError] error object if request failed
310
- #
311
- # @return [Google::Apis::ServicecontrolV1::ReportResponse]
312
- #
313
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
314
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
315
- # @raise [Google::Apis::AuthorizationError] Authorization is required
316
- def report_service(service_name, report_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
317
- command = make_simple_command(:post, 'v1/services/{serviceName}:report', options)
318
- command.request_representation = Google::Apis::ServicecontrolV1::ReportRequest::Representation
319
- command.request_object = report_request_object
320
- command.response_representation = Google::Apis::ServicecontrolV1::ReportResponse::Representation
321
- command.response_class = Google::Apis::ServicecontrolV1::ReportResponse
322
- command.params['serviceName'] = service_name unless service_name.nil?
323
325
  command.query['quotaUser'] = quota_user unless quota_user.nil?
324
- command.query['fields'] = fields unless fields.nil?
325
326
  execute_or_queue_command(command, &block)
326
327
  end
327
328
 
328
329
  protected
329
330
 
330
331
  def apply_command_defaults(command)
331
- command.query['quotaUser'] = quota_user unless quota_user.nil?
332
332
  command.query['key'] = key unless key.nil?
333
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
333
334
  end
334
335
  end
335
336
  end