google-api-client 0.9.pre3 → 0.9.pre4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (307) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGELOG.md +14 -2
  4. data/Gemfile +4 -0
  5. data/MIGRATING.md +1 -1
  6. data/README.md +17 -3
  7. data/api_names.yaml +127 -14
  8. data/api_names_out.yaml +5442 -710
  9. data/bin/generate-api +16 -14
  10. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +213 -2
  12. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +71 -0
  13. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -42
  14. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  15. data/generated/google/apis/adexchangeseller_v2_0/service.rb +15 -29
  16. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  17. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  18. data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
  19. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  20. data/generated/google/apis/admin_directory_v1.rb +25 -1
  21. data/generated/google/apis/admin_directory_v1/classes.rb +718 -0
  22. data/generated/google/apis/admin_directory_v1/representations.rb +244 -0
  23. data/generated/google/apis/admin_directory_v1/service.rb +1522 -509
  24. data/generated/google/apis/admin_reports_v1.rb +1 -1
  25. data/generated/google/apis/admin_reports_v1/service.rb +5 -10
  26. data/generated/google/apis/adsense_v1_4.rb +1 -1
  27. data/generated/google/apis/adsense_v1_4/classes.rb +6 -0
  28. data/generated/google/apis/adsense_v1_4/representations.rb +1 -0
  29. data/generated/google/apis/adsense_v1_4/service.rb +40 -78
  30. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  31. data/generated/google/apis/adsensehost_v4_1/service.rb +26 -52
  32. data/generated/google/apis/analytics_v3.rb +1 -1
  33. data/generated/google/apis/analytics_v3/classes.rb +11 -13
  34. data/generated/google/apis/analytics_v3/service.rb +84 -158
  35. data/generated/google/apis/androidenterprise_v1.rb +2 -2
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +276 -8
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +106 -0
  38. data/generated/google/apis/androidenterprise_v1/service.rb +715 -97
  39. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  40. data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
  41. data/generated/google/apis/androidpublisher_v2/service.rb +55 -107
  42. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  43. data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
  44. data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
  45. data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
  46. data/generated/google/apis/appsactivity_v1.rb +1 -1
  47. data/generated/google/apis/appsactivity_v1/service.rb +1 -2
  48. data/generated/google/apis/appstate_v1.rb +1 -1
  49. data/generated/google/apis/appstate_v1/service.rb +6 -11
  50. data/generated/google/apis/autoscaler_v1beta2/service.rb +10 -20
  51. data/generated/google/apis/bigquery_v2.rb +4 -1
  52. data/generated/google/apis/bigquery_v2/classes.rb +231 -16
  53. data/generated/google/apis/bigquery_v2/representations.rb +62 -0
  54. data/generated/google/apis/bigquery_v2/service.rb +24 -45
  55. data/generated/google/apis/blogger_v3/service.rb +33 -66
  56. data/generated/google/apis/books_v1.rb +1 -1
  57. data/generated/google/apis/books_v1/classes.rb +441 -0
  58. data/generated/google/apis/books_v1/representations.rb +177 -0
  59. data/generated/google/apis/books_v1/service.rb +210 -90
  60. data/generated/google/apis/calendar_v3.rb +1 -1
  61. data/generated/google/apis/calendar_v3/classes.rb +34 -18
  62. data/generated/google/apis/calendar_v3/service.rb +118 -103
  63. data/generated/google/apis/civicinfo_v2.rb +1 -1
  64. data/generated/google/apis/civicinfo_v2/classes.rb +12 -3
  65. data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
  66. data/generated/google/apis/civicinfo_v2/service.rb +5 -10
  67. data/generated/google/apis/classroom_v1.rb +49 -0
  68. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  69. data/generated/google/apis/classroom_v1/representations.rb +217 -0
  70. data/generated/google/apis/classroom_v1/service.rb +970 -0
  71. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  72. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  73. data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
  74. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  75. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  76. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  77. data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
  78. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  79. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  80. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +6 -12
  81. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +5 -2
  82. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +173 -249
  83. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +36 -68
  84. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +293 -80
  85. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  86. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  87. data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
  88. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  89. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  90. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  91. data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
  92. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  93. data/generated/google/apis/compute_beta.rb +49 -0
  94. data/generated/google/apis/compute_beta/classes.rb +9128 -0
  95. data/generated/google/apis/compute_beta/representations.rb +3048 -0
  96. data/generated/google/apis/compute_beta/service.rb +10154 -0
  97. data/generated/google/apis/compute_v1.rb +1 -1
  98. data/generated/google/apis/compute_v1/classes.rb +1305 -520
  99. data/generated/google/apis/compute_v1/representations.rb +122 -15
  100. data/generated/google/apis/compute_v1/service.rb +2202 -1085
  101. data/generated/google/apis/container_v1.rb +1 -1
  102. data/generated/google/apis/container_v1/classes.rb +56 -31
  103. data/generated/google/apis/container_v1/representations.rb +12 -0
  104. data/generated/google/apis/container_v1/service.rb +62 -41
  105. data/generated/google/apis/content_v2.rb +2 -2
  106. data/generated/google/apis/content_v2/classes.rb +2252 -56
  107. data/generated/google/apis/content_v2/representations.rb +917 -87
  108. data/generated/google/apis/content_v2/service.rb +680 -85
  109. data/generated/google/apis/coordinate_v1.rb +1 -1
  110. data/generated/google/apis/coordinate_v1/service.rb +16 -25
  111. data/generated/google/apis/customsearch_v1/service.rb +1 -2
  112. data/generated/google/apis/datastore_v1beta2.rb +1 -1
  113. data/generated/google/apis/datastore_v1beta2/service.rb +12 -18
  114. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  115. data/generated/google/apis/deploymentmanager_v2/classes.rb +1089 -0
  116. data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
  117. data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
  118. data/generated/google/apis/deploymentmanager_v2beta2.rb +5 -2
  119. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +22 -3
  120. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +3 -0
  121. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +14 -27
  122. data/generated/google/apis/dfareporting_v2_1.rb +1 -1
  123. data/generated/google/apis/dfareporting_v2_1/classes.rb +29 -14
  124. data/generated/google/apis/dfareporting_v2_1/service.rb +196 -389
  125. data/generated/google/apis/discovery_v1/classes.rb +7 -0
  126. data/generated/google/apis/discovery_v1/representations.rb +1 -0
  127. data/generated/google/apis/discovery_v1/service.rb +2 -4
  128. data/generated/google/apis/dns_v1.rb +4 -1
  129. data/generated/google/apis/dns_v1/service.rb +9 -18
  130. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  131. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
  132. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
  133. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -16
  134. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  135. data/generated/google/apis/doubleclicksearch_v2/classes.rb +15 -6
  136. data/generated/google/apis/doubleclicksearch_v2/representations.rb +1 -0
  137. data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -23
  138. data/generated/google/apis/drive_v2.rb +1 -1
  139. data/generated/google/apis/drive_v2/classes.rb +73 -30
  140. data/generated/google/apis/drive_v2/representations.rb +14 -0
  141. data/generated/google/apis/drive_v2/service.rb +139 -135
  142. data/generated/google/apis/drive_v3.rb +55 -0
  143. data/generated/google/apis/drive_v3/classes.rb +1534 -0
  144. data/generated/google/apis/drive_v3/representations.rb +497 -0
  145. data/generated/google/apis/drive_v3/service.rb +1541 -0
  146. data/generated/google/apis/fitness_v1.rb +1 -1
  147. data/generated/google/apis/fitness_v1/service.rb +14 -27
  148. data/generated/google/apis/fusiontables_v2/service.rb +40 -73
  149. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  150. data/generated/google/apis/games_configuration_v1configuration/service.rb +14 -27
  151. data/generated/google/apis/games_management_v1management.rb +37 -0
  152. data/generated/google/apis/games_management_v1management/classes.rb +524 -0
  153. data/generated/google/apis/games_management_v1management/representations.rb +231 -0
  154. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  155. data/generated/google/apis/games_v1.rb +1 -1
  156. data/generated/google/apis/games_v1/classes.rb +39 -0
  157. data/generated/google/apis/games_v1/representations.rb +14 -0
  158. data/generated/google/apis/games_v1/service.rb +93 -109
  159. data/generated/google/apis/gan_v1beta1/service.rb +10 -20
  160. data/generated/google/apis/genomics_v1.rb +5 -3
  161. data/generated/google/apis/genomics_v1/classes.rb +519 -200
  162. data/generated/google/apis/genomics_v1/representations.rb +126 -13
  163. data/generated/google/apis/genomics_v1/service.rb +392 -236
  164. data/generated/google/apis/gmail_v1.rb +4 -1
  165. data/generated/google/apis/gmail_v1/service.rb +39 -71
  166. data/generated/google/apis/groupsmigration_v1/service.rb +2 -3
  167. data/generated/google/apis/groupssettings_v1/service.rb +3 -6
  168. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  169. data/generated/google/apis/identitytoolkit_v3/classes.rb +125 -0
  170. data/generated/google/apis/identitytoolkit_v3/representations.rb +37 -0
  171. data/generated/google/apis/identitytoolkit_v3/service.rb +44 -24
  172. data/generated/google/apis/kgsearch_v1.rb +32 -0
  173. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  174. data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
  175. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  176. data/generated/google/apis/licensing_v1.rb +1 -1
  177. data/generated/google/apis/licensing_v1/service.rb +7 -14
  178. data/generated/google/apis/logging_v1beta3.rb +16 -4
  179. data/generated/google/apis/logging_v1beta3/classes.rb +620 -46
  180. data/generated/google/apis/logging_v1beta3/representations.rb +144 -0
  181. data/generated/google/apis/logging_v1beta3/service.rb +435 -104
  182. data/generated/google/apis/manager_v1beta2.rb +3 -0
  183. data/generated/google/apis/manager_v1beta2/service.rb +8 -16
  184. data/generated/google/apis/mapsengine_v1.rb +1 -1
  185. data/generated/google/apis/mapsengine_v1/service.rb +85 -162
  186. data/generated/google/apis/mirror_v1.rb +1 -1
  187. data/generated/google/apis/mirror_v1/service.rb +28 -52
  188. data/generated/google/apis/oauth2_v2.rb +1 -1
  189. data/generated/google/apis/oauth2_v2/service.rb +4 -8
  190. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -2
  191. data/generated/google/apis/partners_v2.rb +32 -0
  192. data/generated/google/apis/partners_v2/classes.rb +942 -0
  193. data/generated/google/apis/partners_v2/representations.rb +402 -0
  194. data/generated/google/apis/partners_v2/service.rb +400 -0
  195. data/generated/google/apis/plus_domains_v1.rb +1 -1
  196. data/generated/google/apis/plus_domains_v1/classes.rb +207 -0
  197. data/generated/google/apis/plus_domains_v1/representations.rb +114 -0
  198. data/generated/google/apis/plus_domains_v1/service.rb +21 -41
  199. data/generated/google/apis/plus_v1.rb +1 -1
  200. data/generated/google/apis/plus_v1/classes.rb +207 -0
  201. data/generated/google/apis/plus_v1/representations.rb +114 -0
  202. data/generated/google/apis/plus_v1/service.rb +11 -56
  203. data/generated/google/apis/prediction_v1_6.rb +1 -1
  204. data/generated/google/apis/prediction_v1_6/service.rb +8 -16
  205. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  206. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  207. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
  208. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  209. data/generated/google/apis/pubsub_v1.rb +37 -0
  210. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  211. data/generated/google/apis/pubsub_v1/representations.rb +281 -0
  212. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  213. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  214. data/generated/google/apis/pubsub_v1beta2/classes.rb +78 -283
  215. data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -85
  216. data/generated/google/apis/pubsub_v1beta2/service.rb +79 -87
  217. data/generated/google/apis/qpx_express_v1/service.rb +1 -2
  218. data/generated/google/apis/replicapool_v1beta2.rb +3 -0
  219. data/generated/google/apis/replicapool_v1beta2/service.rb +12 -24
  220. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -1
  221. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +46 -2
  222. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +16 -0
  223. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +58 -18
  224. data/generated/google/apis/reseller_v1.rb +1 -1
  225. data/generated/google/apis/reseller_v1/classes.rb +19 -1
  226. data/generated/google/apis/reseller_v1/representations.rb +1 -0
  227. data/generated/google/apis/reseller_v1/service.rb +16 -30
  228. data/generated/google/apis/resourceviews_v1beta2.rb +3 -0
  229. data/generated/google/apis/resourceviews_v1beta2/service.rb +16 -27
  230. data/generated/google/apis/script_v1.rb +61 -0
  231. data/generated/google/apis/script_v1/classes.rb +259 -0
  232. data/generated/google/apis/script_v1/representations.rb +106 -0
  233. data/generated/google/apis/script_v1/service.rb +98 -0
  234. data/generated/google/apis/site_verification_v1.rb +1 -1
  235. data/generated/google/apis/site_verification_v1/service.rb +8 -15
  236. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  237. data/generated/google/apis/sqladmin_v1beta4/classes.rb +186 -2
  238. data/generated/google/apis/sqladmin_v1beta4/representations.rb +70 -0
  239. data/generated/google/apis/sqladmin_v1beta4/service.rb +166 -75
  240. data/generated/google/apis/storage_v1.rb +5 -2
  241. data/generated/google/apis/storage_v1/classes.rb +47 -4
  242. data/generated/google/apis/storage_v1/representations.rb +18 -0
  243. data/generated/google/apis/storage_v1/service.rb +77 -94
  244. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  245. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  246. data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
  247. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  248. data/generated/google/apis/tagmanager_v1.rb +1 -1
  249. data/generated/google/apis/tagmanager_v1/classes.rb +189 -31
  250. data/generated/google/apis/tagmanager_v1/representations.rb +69 -15
  251. data/generated/google/apis/tagmanager_v1/service.rb +114 -275
  252. data/generated/google/apis/taskqueue_v1beta2/service.rb +8 -16
  253. data/generated/google/apis/tasks_v1/service.rb +14 -28
  254. data/generated/google/apis/translate_v2/service.rb +3 -6
  255. data/generated/google/apis/urlshortener_v1/service.rb +3 -6
  256. data/generated/google/apis/webmasters_v3.rb +3 -3
  257. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  258. data/generated/google/apis/webmasters_v3/service.rb +16 -30
  259. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  260. data/generated/google/apis/youtube_analytics_v1/classes.rb +6 -0
  261. data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -0
  262. data/generated/google/apis/youtube_analytics_v1/service.rb +16 -21
  263. data/generated/google/apis/youtube_v3.rb +1 -1
  264. data/generated/google/apis/youtube_v3/classes.rb +111 -78
  265. data/generated/google/apis/youtube_v3/representations.rb +2 -0
  266. data/generated/google/apis/youtube_v3/service.rb +78 -246
  267. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  268. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  269. data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
  270. data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
  271. data/google-api-client.gemspec +3 -3
  272. data/lib/google/api_client/auth/installed_app.rb +2 -2
  273. data/lib/google/api_client/auth/key_utils.rb +1 -0
  274. data/lib/google/api_client/auth/storage.rb +1 -0
  275. data/lib/google/api_client/auth/storages/file_store.rb +1 -0
  276. data/lib/google/api_client/auth/storages/redis_store.rb +1 -0
  277. data/lib/google/api_client/client_secrets.rb +4 -5
  278. data/lib/google/apis/core/api_command.rb +2 -2
  279. data/lib/google/apis/core/base_service.rb +1 -0
  280. data/lib/google/apis/core/batch.rb +25 -8
  281. data/lib/google/apis/core/download.rb +1 -1
  282. data/lib/google/apis/core/http_command.rb +24 -12
  283. data/lib/google/apis/core/multipart.rb +20 -6
  284. data/lib/google/apis/core/upload.rb +11 -4
  285. data/lib/google/apis/generator/annotator.rb +29 -10
  286. data/lib/google/apis/generator/helpers.rb +1 -1
  287. data/lib/google/apis/generator/templates/_method.tmpl +5 -6
  288. data/lib/google/apis/options.rb +7 -3
  289. data/lib/google/apis/version.rb +1 -1
  290. data/samples/calendar/calendar.rb +1 -1
  291. data/samples/drive/drive.rb +9 -2
  292. data/samples/pubsub/pubsub.rb +5 -6
  293. data/samples/translate/translate.rb +1 -5
  294. data/script/generate +20 -5
  295. data/spec/fixtures/files/child/.gitignore +0 -0
  296. data/spec/fixtures/files/invalid.json +1 -0
  297. data/spec/google/api_client/client_secrets_spec.rb +38 -1
  298. data/spec/google/apis/core/batch_spec.rb +22 -8
  299. data/spec/google/apis/core/download_spec.rb +13 -0
  300. data/spec/google/apis/core/http_command_spec.rb +26 -9
  301. data/spec/google/apis/core/upload_spec.rb +65 -17
  302. data/spec/google/apis/options_spec.rb +8 -0
  303. data/spec/integration_tests/adsense_spec.rb +28 -0
  304. data/spec/integration_tests/pubsub_spec.rb +3 -3
  305. data/spec/spec_helper.rb +5 -1
  306. data/third_party/hurley_patches.rb +103 -0
  307. metadata +87 -7
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/admin-sdk/reports/
27
27
  module AdminReportsV1
28
28
  VERSION = 'ReportsV1'
29
- REVISION = '20150429'
29
+ REVISION = '20151113'
30
30
 
31
31
  # View audit reports of Google Apps for your domain
32
32
  AUTH_ADMIN_REPORTS_AUDIT_READONLY = 'https://www.googleapis.com/auth/admin.reports.audit.readonly'
@@ -100,8 +100,7 @@ module Google
100
100
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
101
101
  # @raise [Google::Apis::AuthorizationError] Authorization is required
102
102
  def list_activities(user_key, application_name, actor_ip_address: nil, customer_id: nil, end_time: nil, event_name: nil, filters: nil, max_results: nil, page_token: nil, start_time: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
103
- path = 'activity/users/{userKey}/applications/{applicationName}'
104
- command = make_simple_command(:get, path, options)
103
+ command = make_simple_command(:get, 'activity/users/{userKey}/applications/{applicationName}', options)
105
104
  command.response_representation = Google::Apis::AdminReportsV1::Activities::Representation
106
105
  command.response_class = Google::Apis::AdminReportsV1::Activities
107
106
  command.params['userKey'] = user_key unless user_key.nil?
@@ -168,8 +167,7 @@ module Google
168
167
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
169
168
  # @raise [Google::Apis::AuthorizationError] Authorization is required
170
169
  def watch_activity(user_key, application_name, channel_object = nil, actor_ip_address: nil, customer_id: nil, end_time: nil, event_name: nil, filters: nil, max_results: nil, page_token: nil, start_time: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
171
- path = 'activity/users/{userKey}/applications/{applicationName}/watch'
172
- command = make_simple_command(:post, path, options)
170
+ command = make_simple_command(:post, 'activity/users/{userKey}/applications/{applicationName}/watch', options)
173
171
  command.request_representation = Google::Apis::AdminReportsV1::Channel::Representation
174
172
  command.request_object = channel_object
175
173
  command.response_representation = Google::Apis::AdminReportsV1::Channel::Representation
@@ -214,8 +212,7 @@ module Google
214
212
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
215
213
  # @raise [Google::Apis::AuthorizationError] Authorization is required
216
214
  def stop_channel(channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
217
- path = '/admin/reports_v1/channels/stop'
218
- command = make_simple_command(:post, path, options)
215
+ command = make_simple_command(:post, '/admin/reports_v1/channels/stop', options)
219
216
  command.request_representation = Google::Apis::AdminReportsV1::Channel::Representation
220
217
  command.request_object = channel_object
221
218
  command.query['fields'] = fields unless fields.nil?
@@ -257,8 +254,7 @@ module Google
257
254
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
258
255
  # @raise [Google::Apis::AuthorizationError] Authorization is required
259
256
  def get_customer_usage_report(date, customer_id: nil, page_token: nil, parameters: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
260
- path = 'usage/dates/{date}'
261
- command = make_simple_command(:get, path, options)
257
+ command = make_simple_command(:get, 'usage/dates/{date}', options)
262
258
  command.response_representation = Google::Apis::AdminReportsV1::UsageReports::Representation
263
259
  command.response_class = Google::Apis::AdminReportsV1::UsageReports
264
260
  command.params['date'] = date unless date.nil?
@@ -311,8 +307,7 @@ module Google
311
307
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
312
308
  # @raise [Google::Apis::AuthorizationError] Authorization is required
313
309
  def get_user_usage_report(user_key, date, customer_id: nil, filters: nil, max_results: nil, page_token: nil, parameters: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
314
- path = 'usage/users/{userKey}/dates/{date}'
315
- command = make_simple_command(:get, path, options)
310
+ command = make_simple_command(:get, 'usage/users/{userKey}/dates/{date}', options)
316
311
  command.response_representation = Google::Apis::AdminReportsV1::UsageReports::Representation
317
312
  command.response_class = Google::Apis::AdminReportsV1::UsageReports
318
313
  command.params['userKey'] = user_key unless user_key.nil?
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/adsense/management/
27
27
  module AdsenseV1_4
28
28
  VERSION = 'V1_4'
29
- REVISION = '20150726'
29
+ REVISION = '20151206'
30
30
 
31
31
  # View and manage your AdSense data
32
32
  AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'
@@ -26,6 +26,11 @@ module Google
26
26
  class Account
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
+ #
30
+ # Corresponds to the JSON property `creation_time`
31
+ # @return [String]
32
+ attr_accessor :creation_time
33
+
29
34
  # Unique identifier of this account.
30
35
  # Corresponds to the JSON property `id`
31
36
  # @return [String]
@@ -63,6 +68,7 @@ module Google
63
68
 
64
69
  # Update properties of this object
65
70
  def update!(**args)
71
+ @creation_time = args[:creation_time] unless args[:creation_time].nil?
66
72
  @id = args[:id] unless args[:id].nil?
67
73
  @kind = args[:kind] unless args[:kind].nil?
68
74
  @name = args[:name] unless args[:name].nil?
@@ -149,6 +149,7 @@ module Google
149
149
  class Account
150
150
  # @private
151
151
  class Representation < Google::Apis::Core::JsonRepresentation
152
+ property :creation_time, as: 'creation_time'
152
153
  property :id, as: 'id'
153
154
  property :kind, as: 'kind'
154
155
  property :name, as: 'name'
@@ -80,8 +80,7 @@ module Google
80
80
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
81
81
  # @raise [Google::Apis::AuthorizationError] Authorization is required
82
82
  def get_account(account_id, tree: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
83
- path = 'accounts/{accountId}'
84
- command = make_simple_command(:get, path, options)
83
+ command = make_simple_command(:get, 'accounts/{accountId}', options)
85
84
  command.response_representation = Google::Apis::AdsenseV1_4::Account::Representation
86
85
  command.response_class = Google::Apis::AdsenseV1_4::Account
87
86
  command.params['accountId'] = account_id unless account_id.nil?
@@ -120,8 +119,7 @@ module Google
120
119
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
121
120
  # @raise [Google::Apis::AuthorizationError] Authorization is required
122
121
  def list_accounts(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
123
- path = 'accounts'
124
- command = make_simple_command(:get, path, options)
122
+ command = make_simple_command(:get, 'accounts', options)
125
123
  command.response_representation = Google::Apis::AdsenseV1_4::Accounts::Representation
126
124
  command.response_class = Google::Apis::AdsenseV1_4::Accounts
127
125
  command.query['maxResults'] = max_results unless max_results.nil?
@@ -163,8 +161,7 @@ module Google
163
161
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
164
162
  # @raise [Google::Apis::AuthorizationError] Authorization is required
165
163
  def list_account_ad_clients(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
166
- path = 'accounts/{accountId}/adclients'
167
- command = make_simple_command(:get, path, options)
164
+ command = make_simple_command(:get, 'accounts/{accountId}/adclients', options)
168
165
  command.response_representation = Google::Apis::AdsenseV1_4::AdClients::Representation
169
166
  command.response_class = Google::Apis::AdsenseV1_4::AdClients
170
167
  command.params['accountId'] = account_id unless account_id.nil?
@@ -206,8 +203,7 @@ module Google
206
203
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
207
204
  # @raise [Google::Apis::AuthorizationError] Authorization is required
208
205
  def get_account_ad_unit(account_id, ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
209
- path = 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}'
210
- command = make_simple_command(:get, path, options)
206
+ command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}', options)
211
207
  command.response_representation = Google::Apis::AdsenseV1_4::AdUnit::Representation
212
208
  command.response_class = Google::Apis::AdsenseV1_4::AdUnit
213
209
  command.params['accountId'] = account_id unless account_id.nil?
@@ -248,8 +244,7 @@ module Google
248
244
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
249
245
  # @raise [Google::Apis::AuthorizationError] Authorization is required
250
246
  def get_account_ad_unit_ad_code(account_id, ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
251
- path = 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode'
252
- command = make_simple_command(:get, path, options)
247
+ command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode', options)
253
248
  command.response_representation = Google::Apis::AdsenseV1_4::AdCode::Representation
254
249
  command.response_class = Google::Apis::AdsenseV1_4::AdCode
255
250
  command.params['accountId'] = account_id unless account_id.nil?
@@ -295,8 +290,7 @@ module Google
295
290
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
296
291
  # @raise [Google::Apis::AuthorizationError] Authorization is required
297
292
  def list_account_ad_units(account_id, ad_client_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
298
- path = 'accounts/{accountId}/adclients/{adClientId}/adunits'
299
- command = make_simple_command(:get, path, options)
293
+ command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits', options)
300
294
  command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation
301
295
  command.response_class = Google::Apis::AdsenseV1_4::AdUnits
302
296
  command.params['accountId'] = account_id unless account_id.nil?
@@ -346,8 +340,7 @@ module Google
346
340
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
347
341
  # @raise [Google::Apis::AuthorizationError] Authorization is required
348
342
  def list_account_ad_unit_custom_channels(account_id, ad_client_id, ad_unit_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
349
- path = 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels'
350
- command = make_simple_command(:get, path, options)
343
+ command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels', options)
351
344
  command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation
352
345
  command.response_class = Google::Apis::AdsenseV1_4::CustomChannels
353
346
  command.params['accountId'] = account_id unless account_id.nil?
@@ -389,8 +382,7 @@ module Google
389
382
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
390
383
  # @raise [Google::Apis::AuthorizationError] Authorization is required
391
384
  def delete_account_alert(account_id, alert_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
392
- path = 'accounts/{accountId}/alerts/{alertId}'
393
- command = make_simple_command(:delete, path, options)
385
+ command = make_simple_command(:delete, 'accounts/{accountId}/alerts/{alertId}', options)
394
386
  command.params['accountId'] = account_id unless account_id.nil?
395
387
  command.params['alertId'] = alert_id unless alert_id.nil?
396
388
  command.query['fields'] = fields unless fields.nil?
@@ -428,8 +420,7 @@ module Google
428
420
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
429
421
  # @raise [Google::Apis::AuthorizationError] Authorization is required
430
422
  def list_account_alerts(account_id, locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
431
- path = 'accounts/{accountId}/alerts'
432
- command = make_simple_command(:get, path, options)
423
+ command = make_simple_command(:get, 'accounts/{accountId}/alerts', options)
433
424
  command.response_representation = Google::Apis::AdsenseV1_4::Alerts::Representation
434
425
  command.response_class = Google::Apis::AdsenseV1_4::Alerts
435
426
  command.params['accountId'] = account_id unless account_id.nil?
@@ -470,8 +461,7 @@ module Google
470
461
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
471
462
  # @raise [Google::Apis::AuthorizationError] Authorization is required
472
463
  def get_account_custom_channel(account_id, ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
473
- path = 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}'
474
- command = make_simple_command(:get, path, options)
464
+ command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}', options)
475
465
  command.response_representation = Google::Apis::AdsenseV1_4::CustomChannel::Representation
476
466
  command.response_class = Google::Apis::AdsenseV1_4::CustomChannel
477
467
  command.params['accountId'] = account_id unless account_id.nil?
@@ -517,8 +507,7 @@ module Google
517
507
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
518
508
  # @raise [Google::Apis::AuthorizationError] Authorization is required
519
509
  def list_account_custom_channels(account_id, ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
520
- path = 'accounts/{accountId}/adclients/{adClientId}/customchannels'
521
- command = make_simple_command(:get, path, options)
510
+ command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels', options)
522
511
  command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation
523
512
  command.response_class = Google::Apis::AdsenseV1_4::CustomChannels
524
513
  command.params['accountId'] = account_id unless account_id.nil?
@@ -567,8 +556,7 @@ module Google
567
556
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
568
557
  # @raise [Google::Apis::AuthorizationError] Authorization is required
569
558
  def list_account_custom_channel_ad_units(account_id, ad_client_id, custom_channel_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
570
- path = 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits'
571
- command = make_simple_command(:get, path, options)
559
+ command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits', options)
572
560
  command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation
573
561
  command.response_class = Google::Apis::AdsenseV1_4::AdUnits
574
562
  command.params['accountId'] = account_id unless account_id.nil?
@@ -608,8 +596,7 @@ module Google
608
596
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
609
597
  # @raise [Google::Apis::AuthorizationError] Authorization is required
610
598
  def list_account_payments(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
611
- path = 'accounts/{accountId}/payments'
612
- command = make_simple_command(:get, path, options)
599
+ command = make_simple_command(:get, 'accounts/{accountId}/payments', options)
613
600
  command.response_representation = Google::Apis::AdsenseV1_4::Payments::Representation
614
601
  command.response_class = Google::Apis::AdsenseV1_4::Payments
615
602
  command.params['accountId'] = account_id unless account_id.nil?
@@ -675,11 +662,10 @@ module Google
675
662
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
676
663
  # @raise [Google::Apis::AuthorizationError] Authorization is required
677
664
  def generate_account_report(account_id, start_date, end_date, currency: nil, dimension: nil, filter: nil, locale: nil, max_results: nil, metric: nil, sort: nil, start_index: nil, use_timezone_reporting: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
678
- path = 'accounts/{accountId}/reports'
679
665
  if download_dest.nil?
680
- command = make_simple_command(:get, path, options)
666
+ command = make_simple_command(:get, 'accounts/{accountId}/reports', options)
681
667
  else
682
- command = make_download_command(:get, path, options)
668
+ command = make_download_command(:get, 'accounts/{accountId}/reports', options)
683
669
  command.download_dest = download_dest
684
670
  end
685
671
  command.response_representation = Google::Apis::AdsenseV1_4::GenerateReportResponse::Representation
@@ -737,8 +723,7 @@ module Google
737
723
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
738
724
  # @raise [Google::Apis::AuthorizationError] Authorization is required
739
725
  def generate_account_saved_report(account_id, saved_report_id, locale: nil, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
740
- path = 'accounts/{accountId}/reports/{savedReportId}'
741
- command = make_simple_command(:get, path, options)
726
+ command = make_simple_command(:get, 'accounts/{accountId}/reports/{savedReportId}', options)
742
727
  command.response_representation = Google::Apis::AdsenseV1_4::GenerateReportResponse::Representation
743
728
  command.response_class = Google::Apis::AdsenseV1_4::GenerateReportResponse
744
729
  command.params['accountId'] = account_id unless account_id.nil?
@@ -784,8 +769,7 @@ module Google
784
769
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
785
770
  # @raise [Google::Apis::AuthorizationError] Authorization is required
786
771
  def list_account_saved_reports(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
787
- path = 'accounts/{accountId}/reports/saved'
788
- command = make_simple_command(:get, path, options)
772
+ command = make_simple_command(:get, 'accounts/{accountId}/reports/saved', options)
789
773
  command.response_representation = Google::Apis::AdsenseV1_4::SavedReports::Representation
790
774
  command.response_class = Google::Apis::AdsenseV1_4::SavedReports
791
775
  command.params['accountId'] = account_id unless account_id.nil?
@@ -824,8 +808,7 @@ module Google
824
808
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
825
809
  # @raise [Google::Apis::AuthorizationError] Authorization is required
826
810
  def get_account_saved_ad_style(account_id, saved_ad_style_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
827
- path = 'accounts/{accountId}/savedadstyles/{savedAdStyleId}'
828
- command = make_simple_command(:get, path, options)
811
+ command = make_simple_command(:get, 'accounts/{accountId}/savedadstyles/{savedAdStyleId}', options)
829
812
  command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyle::Representation
830
813
  command.response_class = Google::Apis::AdsenseV1_4::SavedAdStyle
831
814
  command.params['accountId'] = account_id unless account_id.nil?
@@ -868,8 +851,7 @@ module Google
868
851
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
869
852
  # @raise [Google::Apis::AuthorizationError] Authorization is required
870
853
  def list_account_saved_ad_styles(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
871
- path = 'accounts/{accountId}/savedadstyles'
872
- command = make_simple_command(:get, path, options)
854
+ command = make_simple_command(:get, 'accounts/{accountId}/savedadstyles', options)
873
855
  command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyles::Representation
874
856
  command.response_class = Google::Apis::AdsenseV1_4::SavedAdStyles
875
857
  command.params['accountId'] = account_id unless account_id.nil?
@@ -914,8 +896,7 @@ module Google
914
896
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
915
897
  # @raise [Google::Apis::AuthorizationError] Authorization is required
916
898
  def list_account_url_channels(account_id, ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
917
- path = 'accounts/{accountId}/adclients/{adClientId}/urlchannels'
918
- command = make_simple_command(:get, path, options)
899
+ command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/urlchannels', options)
919
900
  command.response_representation = Google::Apis::AdsenseV1_4::UrlChannels::Representation
920
901
  command.response_class = Google::Apis::AdsenseV1_4::UrlChannels
921
902
  command.params['accountId'] = account_id unless account_id.nil?
@@ -957,8 +938,7 @@ module Google
957
938
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
958
939
  # @raise [Google::Apis::AuthorizationError] Authorization is required
959
940
  def list_ad_clients(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
960
- path = 'adclients'
961
- command = make_simple_command(:get, path, options)
941
+ command = make_simple_command(:get, 'adclients', options)
962
942
  command.response_representation = Google::Apis::AdsenseV1_4::AdClients::Representation
963
943
  command.response_class = Google::Apis::AdsenseV1_4::AdClients
964
944
  command.query['maxResults'] = max_results unless max_results.nil?
@@ -996,8 +976,7 @@ module Google
996
976
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
997
977
  # @raise [Google::Apis::AuthorizationError] Authorization is required
998
978
  def get_ad_unit(ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
999
- path = 'adclients/{adClientId}/adunits/{adUnitId}'
1000
- command = make_simple_command(:get, path, options)
979
+ command = make_simple_command(:get, 'adclients/{adClientId}/adunits/{adUnitId}', options)
1001
980
  command.response_representation = Google::Apis::AdsenseV1_4::AdUnit::Representation
1002
981
  command.response_class = Google::Apis::AdsenseV1_4::AdUnit
1003
982
  command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
@@ -1035,8 +1014,7 @@ module Google
1035
1014
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1036
1015
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1037
1016
  def get_ad_code_ad_unit(ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1038
- path = 'adclients/{adClientId}/adunits/{adUnitId}/adcode'
1039
- command = make_simple_command(:get, path, options)
1017
+ command = make_simple_command(:get, 'adclients/{adClientId}/adunits/{adUnitId}/adcode', options)
1040
1018
  command.response_representation = Google::Apis::AdsenseV1_4::AdCode::Representation
1041
1019
  command.response_class = Google::Apis::AdsenseV1_4::AdCode
1042
1020
  command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
@@ -1079,8 +1057,7 @@ module Google
1079
1057
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1080
1058
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1081
1059
  def list_ad_units(ad_client_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1082
- path = 'adclients/{adClientId}/adunits'
1083
- command = make_simple_command(:get, path, options)
1060
+ command = make_simple_command(:get, 'adclients/{adClientId}/adunits', options)
1084
1061
  command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation
1085
1062
  command.response_class = Google::Apis::AdsenseV1_4::AdUnits
1086
1063
  command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
@@ -1127,8 +1104,7 @@ module Google
1127
1104
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1128
1105
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1129
1106
  def list_ad_unit_custom_channels(ad_client_id, ad_unit_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1130
- path = 'adclients/{adClientId}/adunits/{adUnitId}/customchannels'
1131
- command = make_simple_command(:get, path, options)
1107
+ command = make_simple_command(:get, 'adclients/{adClientId}/adunits/{adUnitId}/customchannels', options)
1132
1108
  command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation
1133
1109
  command.response_class = Google::Apis::AdsenseV1_4::CustomChannels
1134
1110
  command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
@@ -1166,8 +1142,7 @@ module Google
1166
1142
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1167
1143
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1168
1144
  def delete_alert(alert_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1169
- path = 'alerts/{alertId}'
1170
- command = make_simple_command(:delete, path, options)
1145
+ command = make_simple_command(:delete, 'alerts/{alertId}', options)
1171
1146
  command.params['alertId'] = alert_id unless alert_id.nil?
1172
1147
  command.query['fields'] = fields unless fields.nil?
1173
1148
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1202,8 +1177,7 @@ module Google
1202
1177
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1203
1178
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1204
1179
  def list_alerts(locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1205
- path = 'alerts'
1206
- command = make_simple_command(:get, path, options)
1180
+ command = make_simple_command(:get, 'alerts', options)
1207
1181
  command.response_representation = Google::Apis::AdsenseV1_4::Alerts::Representation
1208
1182
  command.response_class = Google::Apis::AdsenseV1_4::Alerts
1209
1183
  command.query['locale'] = locale unless locale.nil?
@@ -1240,8 +1214,7 @@ module Google
1240
1214
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1241
1215
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1242
1216
  def get_custom_channel(ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1243
- path = 'adclients/{adClientId}/customchannels/{customChannelId}'
1244
- command = make_simple_command(:get, path, options)
1217
+ command = make_simple_command(:get, 'adclients/{adClientId}/customchannels/{customChannelId}', options)
1245
1218
  command.response_representation = Google::Apis::AdsenseV1_4::CustomChannel::Representation
1246
1219
  command.response_class = Google::Apis::AdsenseV1_4::CustomChannel
1247
1220
  command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
@@ -1284,8 +1257,7 @@ module Google
1284
1257
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1285
1258
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1286
1259
  def list_custom_channels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1287
- path = 'adclients/{adClientId}/customchannels'
1288
- command = make_simple_command(:get, path, options)
1260
+ command = make_simple_command(:get, 'adclients/{adClientId}/customchannels', options)
1289
1261
  command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation
1290
1262
  command.response_class = Google::Apis::AdsenseV1_4::CustomChannels
1291
1263
  command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
@@ -1331,8 +1303,7 @@ module Google
1331
1303
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1332
1304
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1333
1305
  def list_custom_channel_ad_units(ad_client_id, custom_channel_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1334
- path = 'adclients/{adClientId}/customchannels/{customChannelId}/adunits'
1335
- command = make_simple_command(:get, path, options)
1306
+ command = make_simple_command(:get, 'adclients/{adClientId}/customchannels/{customChannelId}/adunits', options)
1336
1307
  command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation
1337
1308
  command.response_class = Google::Apis::AdsenseV1_4::AdUnits
1338
1309
  command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
@@ -1369,8 +1340,7 @@ module Google
1369
1340
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1370
1341
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1371
1342
  def list_metadata_dimensions(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1372
- path = 'metadata/dimensions'
1373
- command = make_simple_command(:get, path, options)
1343
+ command = make_simple_command(:get, 'metadata/dimensions', options)
1374
1344
  command.response_representation = Google::Apis::AdsenseV1_4::Metadata::Representation
1375
1345
  command.response_class = Google::Apis::AdsenseV1_4::Metadata
1376
1346
  command.query['fields'] = fields unless fields.nil?
@@ -1402,8 +1372,7 @@ module Google
1402
1372
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1403
1373
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1404
1374
  def list_metadata_metrics(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1405
- path = 'metadata/metrics'
1406
- command = make_simple_command(:get, path, options)
1375
+ command = make_simple_command(:get, 'metadata/metrics', options)
1407
1376
  command.response_representation = Google::Apis::AdsenseV1_4::Metadata::Representation
1408
1377
  command.response_class = Google::Apis::AdsenseV1_4::Metadata
1409
1378
  command.query['fields'] = fields unless fields.nil?
@@ -1435,8 +1404,7 @@ module Google
1435
1404
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1436
1405
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1437
1406
  def list_payments(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1438
- path = 'payments'
1439
- command = make_simple_command(:get, path, options)
1407
+ command = make_simple_command(:get, 'payments', options)
1440
1408
  command.response_representation = Google::Apis::AdsenseV1_4::Payments::Representation
1441
1409
  command.response_class = Google::Apis::AdsenseV1_4::Payments
1442
1410
  command.query['fields'] = fields unless fields.nil?
@@ -1501,11 +1469,10 @@ module Google
1501
1469
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1502
1470
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1503
1471
  def generate_report(start_date, end_date, account_id: nil, currency: nil, dimension: nil, filter: nil, locale: nil, max_results: nil, metric: nil, sort: nil, start_index: nil, use_timezone_reporting: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1504
- path = 'reports'
1505
1472
  if download_dest.nil?
1506
- command = make_simple_command(:get, path, options)
1473
+ command = make_simple_command(:get, 'reports', options)
1507
1474
  else
1508
- command = make_download_command(:get, path, options)
1475
+ command = make_download_command(:get, 'reports', options)
1509
1476
  command.download_dest = download_dest
1510
1477
  end
1511
1478
  command.response_representation = Google::Apis::AdsenseV1_4::GenerateReportResponse::Representation
@@ -1561,8 +1528,7 @@ module Google
1561
1528
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1562
1529
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1563
1530
  def generate_saved_report(saved_report_id, locale: nil, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1564
- path = 'reports/{savedReportId}'
1565
- command = make_simple_command(:get, path, options)
1531
+ command = make_simple_command(:get, 'reports/{savedReportId}', options)
1566
1532
  command.response_representation = Google::Apis::AdsenseV1_4::GenerateReportResponse::Representation
1567
1533
  command.response_class = Google::Apis::AdsenseV1_4::GenerateReportResponse
1568
1534
  command.params['savedReportId'] = saved_report_id unless saved_report_id.nil?
@@ -1605,8 +1571,7 @@ module Google
1605
1571
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1606
1572
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1607
1573
  def list_saved_reports(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1608
- path = 'reports/saved'
1609
- command = make_simple_command(:get, path, options)
1574
+ command = make_simple_command(:get, 'reports/saved', options)
1610
1575
  command.response_representation = Google::Apis::AdsenseV1_4::SavedReports::Representation
1611
1576
  command.response_class = Google::Apis::AdsenseV1_4::SavedReports
1612
1577
  command.query['maxResults'] = max_results unless max_results.nil?
@@ -1642,8 +1607,7 @@ module Google
1642
1607
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1643
1608
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1644
1609
  def get_saved_ad_style(saved_ad_style_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1645
- path = 'savedadstyles/{savedAdStyleId}'
1646
- command = make_simple_command(:get, path, options)
1610
+ command = make_simple_command(:get, 'savedadstyles/{savedAdStyleId}', options)
1647
1611
  command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyle::Representation
1648
1612
  command.response_class = Google::Apis::AdsenseV1_4::SavedAdStyle
1649
1613
  command.params['savedAdStyleId'] = saved_ad_style_id unless saved_ad_style_id.nil?
@@ -1683,8 +1647,7 @@ module Google
1683
1647
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1684
1648
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1685
1649
  def list_saved_ad_styles(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1686
- path = 'savedadstyles'
1687
- command = make_simple_command(:get, path, options)
1650
+ command = make_simple_command(:get, 'savedadstyles', options)
1688
1651
  command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyles::Representation
1689
1652
  command.response_class = Google::Apis::AdsenseV1_4::SavedAdStyles
1690
1653
  command.query['maxResults'] = max_results unless max_results.nil?
@@ -1726,8 +1689,7 @@ module Google
1726
1689
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1727
1690
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1728
1691
  def list_url_channels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1729
- path = 'adclients/{adClientId}/urlchannels'
1730
- command = make_simple_command(:get, path, options)
1692
+ command = make_simple_command(:get, 'adclients/{adClientId}/urlchannels', options)
1731
1693
  command.response_representation = Google::Apis::AdsenseV1_4::UrlChannels::Representation
1732
1694
  command.response_class = Google::Apis::AdsenseV1_4::UrlChannels
1733
1695
  command.params['adClientId'] = ad_client_id unless ad_client_id.nil?