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
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/tag-manager/api/v1/
26
26
  module TagmanagerV1
27
27
  VERSION = 'V1'
28
- REVISION = '20150526'
28
+ REVISION = '20151112'
29
29
 
30
30
  # Delete your Google Tag Manager containers
31
31
  AUTH_TAGMANAGER_DELETE_CONTAINERS = 'https://www.googleapis.com/auth/tagmanager.delete.containers'
@@ -88,7 +88,7 @@ module Google
88
88
  # Notes:
89
89
  # - For binary operators, include parameters named arg0 and arg1 for specifying
90
90
  # the left and right operands, respectively.
91
- # - At this time, the left operand (arg0) must be a reference to a macro.
91
+ # - At this time, the left operand (arg0) must be a reference to a variable.
92
92
  # - For case-insensitive Regex matching, include a boolean parameter named
93
93
  # ignore_case that is set to true. If not specified or set to any other value,
94
94
  # the matching will be case sensitive.
@@ -262,6 +262,11 @@ module Google
262
262
  # @return [String]
263
263
  attr_accessor :fingerprint
264
264
 
265
+ # The folders in the container that this version was taken from.
266
+ # Corresponds to the JSON property `folder`
267
+ # @return [Array<Google::Apis::TagmanagerV1::Folder>]
268
+ attr_accessor :folder
269
+
265
270
  # The macros in the container that this version was taken from.
266
271
  # Corresponds to the JSON property `macro`
267
272
  # @return [Array<Google::Apis::TagmanagerV1::Macro>]
@@ -309,6 +314,7 @@ module Google
309
314
  @container_version_id = args[:container_version_id] unless args[:container_version_id].nil?
310
315
  @deleted = args[:deleted] unless args[:deleted].nil?
311
316
  @fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
317
+ @folder = args[:folder] unless args[:folder].nil?
312
318
  @macro = args[:macro] unless args[:macro].nil?
313
319
  @name = args[:name] unless args[:name].nil?
314
320
  @notes = args[:notes] unless args[:notes].nil?
@@ -451,6 +457,81 @@ module Google
451
457
  end
452
458
  end
453
459
 
460
+ # Represents a Google Tag Manager Folder.
461
+ class Folder
462
+ include Google::Apis::Core::Hashable
463
+
464
+ # GTM Account ID.
465
+ # Corresponds to the JSON property `accountId`
466
+ # @return [String]
467
+ attr_accessor :account_id
468
+
469
+ # GTM Container ID.
470
+ # Corresponds to the JSON property `containerId`
471
+ # @return [String]
472
+ attr_accessor :container_id
473
+
474
+ # The fingerprint of the GTM Folder as computed at storage time. This value is
475
+ # recomputed whenever the folder is modified.
476
+ # Corresponds to the JSON property `fingerprint`
477
+ # @return [String]
478
+ attr_accessor :fingerprint
479
+
480
+ # The Folder ID uniquely identifies the GTM Folder.
481
+ # Corresponds to the JSON property `folderId`
482
+ # @return [String]
483
+ attr_accessor :folder_id
484
+
485
+ # Folder display name.
486
+ # Corresponds to the JSON property `name`
487
+ # @return [String]
488
+ attr_accessor :name
489
+
490
+ def initialize(**args)
491
+ update!(**args)
492
+ end
493
+
494
+ # Update properties of this object
495
+ def update!(**args)
496
+ @account_id = args[:account_id] unless args[:account_id].nil?
497
+ @container_id = args[:container_id] unless args[:container_id].nil?
498
+ @fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
499
+ @folder_id = args[:folder_id] unless args[:folder_id].nil?
500
+ @name = args[:name] unless args[:name].nil?
501
+ end
502
+ end
503
+
504
+ # Represents a Google Tag Manager Folder's contents.
505
+ class FolderEntities
506
+ include Google::Apis::Core::Hashable
507
+
508
+ # The list of tags inside the folder.
509
+ # Corresponds to the JSON property `tag`
510
+ # @return [Array<Google::Apis::TagmanagerV1::Tag>]
511
+ attr_accessor :tag
512
+
513
+ # The list of triggers inside the folder.
514
+ # Corresponds to the JSON property `trigger`
515
+ # @return [Array<Google::Apis::TagmanagerV1::Trigger>]
516
+ attr_accessor :trigger
517
+
518
+ # The list of variables inside the folder.
519
+ # Corresponds to the JSON property `variable`
520
+ # @return [Array<Google::Apis::TagmanagerV1::Variable>]
521
+ attr_accessor :variable
522
+
523
+ def initialize(**args)
524
+ update!(**args)
525
+ end
526
+
527
+ # Update properties of this object
528
+ def update!(**args)
529
+ @tag = args[:tag] unless args[:tag].nil?
530
+ @trigger = args[:trigger] unless args[:trigger].nil?
531
+ @variable = args[:variable] unless args[:variable].nil?
532
+ end
533
+ end
534
+
454
535
  # List AccountUsers Response.
455
536
  class ListAccountUsersResponse
456
537
  include Google::Apis::Core::Hashable
@@ -533,33 +614,14 @@ module Google
533
614
  end
534
615
  end
535
616
 
536
- # List Macros Response.
537
- class ListMacrosResponse
538
- include Google::Apis::Core::Hashable
539
-
540
- # All GTM Macros of a GTM Container.
541
- # Corresponds to the JSON property `macros`
542
- # @return [Array<Google::Apis::TagmanagerV1::Macro>]
543
- attr_accessor :macros
544
-
545
- def initialize(**args)
546
- update!(**args)
547
- end
548
-
549
- # Update properties of this object
550
- def update!(**args)
551
- @macros = args[:macros] unless args[:macros].nil?
552
- end
553
- end
554
-
555
- # List Rules Response.
556
- class ListRulesResponse
617
+ # List Folders Response.
618
+ class ListFoldersResponse
557
619
  include Google::Apis::Core::Hashable
558
620
 
559
- # All GTM Rules of a GTM Container.
560
- # Corresponds to the JSON property `rules`
561
- # @return [Array<Google::Apis::TagmanagerV1::Rule>]
562
- attr_accessor :rules
621
+ # All GTM Folders of a GTM Container.
622
+ # Corresponds to the JSON property `folders`
623
+ # @return [Array<Google::Apis::TagmanagerV1::Folder>]
624
+ attr_accessor :folders
563
625
 
564
626
  def initialize(**args)
565
627
  update!(**args)
@@ -567,7 +629,7 @@ module Google
567
629
 
568
630
  # Update properties of this object
569
631
  def update!(**args)
570
- @rules = args[:rules] unless args[:rules].nil?
632
+ @folders = args[:folders] unless args[:folders].nil?
571
633
  end
572
634
  end
573
635
 
@@ -682,6 +744,11 @@ module Google
682
744
  # @return [Array<Google::Apis::TagmanagerV1::Parameter>]
683
745
  attr_accessor :parameter
684
746
 
747
+ # Parent folder id.
748
+ # Corresponds to the JSON property `parentFolderId`
749
+ # @return [String]
750
+ attr_accessor :parent_folder_id
751
+
685
752
  # The end timestamp in milliseconds to schedule a macro.
686
753
  # Corresponds to the JSON property `scheduleEndMs`
687
754
  # @return [String]
@@ -712,6 +779,7 @@ module Google
712
779
  @name = args[:name] unless args[:name].nil?
713
780
  @notes = args[:notes] unless args[:notes].nil?
714
781
  @parameter = args[:parameter] unless args[:parameter].nil?
782
+ @parent_folder_id = args[:parent_folder_id] unless args[:parent_folder_id].nil?
715
783
  @schedule_end_ms = args[:schedule_end_ms] unless args[:schedule_end_ms].nil?
716
784
  @schedule_start_ms = args[:schedule_start_ms] unless args[:schedule_start_ms].nil?
717
785
  @type = args[:type] unless args[:type].nil?
@@ -743,14 +811,14 @@ module Google
743
811
  # - integer: The value represents a 64-bit signed integer value, in base 10
744
812
  # - list: A list of parameters should be specified
745
813
  # - map: A map of parameters should be specified
746
- # - template: The value represents any text; this can include macro references (
747
- # even macro references that might return non-string types)
814
+ # - template: The value represents any text; this can include variable
815
+ # references (even variable references that might return non-string types)
748
816
  # Corresponds to the JSON property `type`
749
817
  # @return [String]
750
818
  attr_accessor :type
751
819
 
752
- # A parameter's value (may contain macro references such as "``myMacro``") as
753
- # appropriate to the specified type.
820
+ # A parameter's value (may contain variable references such as "``myVariable``")
821
+ # as appropriate to the specified type.
754
822
  # Corresponds to the JSON property `value`
755
823
  # @return [String]
756
824
  attr_accessor :value
@@ -851,6 +919,33 @@ module Google
851
919
  end
852
920
  end
853
921
 
922
+ #
923
+ class SetupTag
924
+ include Google::Apis::Core::Hashable
925
+
926
+ # If true, fire the main tag if and only if the setup tag fires successfully. If
927
+ # false, fire the main tag regardless of setup tag firing status.
928
+ # Corresponds to the JSON property `stopOnSetupFailure`
929
+ # @return [Boolean]
930
+ attr_accessor :stop_on_setup_failure
931
+ alias_method :stop_on_setup_failure?, :stop_on_setup_failure
932
+
933
+ # The name of the setup tag.
934
+ # Corresponds to the JSON property `tagName`
935
+ # @return [String]
936
+ attr_accessor :tag_name
937
+
938
+ def initialize(**args)
939
+ update!(**args)
940
+ end
941
+
942
+ # Update properties of this object
943
+ def update!(**args)
944
+ @stop_on_setup_failure = args[:stop_on_setup_failure] unless args[:stop_on_setup_failure].nil?
945
+ @tag_name = args[:tag_name] unless args[:tag_name].nil?
946
+ end
947
+ end
948
+
854
949
  # Represents a Google Tag Manager Tag.
855
950
  class Tag
856
951
  include Google::Apis::Core::Hashable
@@ -917,6 +1012,11 @@ module Google
917
1012
  # @return [Array<Google::Apis::TagmanagerV1::Parameter>]
918
1013
  attr_accessor :parameter
919
1014
 
1015
+ # Parent folder id.
1016
+ # Corresponds to the JSON property `parentFolderId`
1017
+ # @return [String]
1018
+ attr_accessor :parent_folder_id
1019
+
920
1020
  # Represents a Google Tag Manager Parameter.
921
1021
  # Corresponds to the JSON property `priority`
922
1022
  # @return [Google::Apis::TagmanagerV1::Parameter]
@@ -932,11 +1032,26 @@ module Google
932
1032
  # @return [String]
933
1033
  attr_accessor :schedule_start_ms
934
1034
 
1035
+ # The list of setup tags. Currently we only allow one.
1036
+ # Corresponds to the JSON property `setupTag`
1037
+ # @return [Array<Google::Apis::TagmanagerV1::SetupTag>]
1038
+ attr_accessor :setup_tag
1039
+
1040
+ # Option to fire this tag.
1041
+ # Corresponds to the JSON property `tagFiringOption`
1042
+ # @return [String]
1043
+ attr_accessor :tag_firing_option
1044
+
935
1045
  # The Tag ID uniquely identifies the GTM Tag.
936
1046
  # Corresponds to the JSON property `tagId`
937
1047
  # @return [String]
938
1048
  attr_accessor :tag_id
939
1049
 
1050
+ # The list of teardown tags. Currently we only allow one.
1051
+ # Corresponds to the JSON property `teardownTag`
1052
+ # @return [Array<Google::Apis::TagmanagerV1::TeardownTag>]
1053
+ attr_accessor :teardown_tag
1054
+
940
1055
  # GTM Tag Type.
941
1056
  # Corresponds to the JSON property `type`
942
1057
  # @return [String]
@@ -959,14 +1074,45 @@ module Google
959
1074
  @name = args[:name] unless args[:name].nil?
960
1075
  @notes = args[:notes] unless args[:notes].nil?
961
1076
  @parameter = args[:parameter] unless args[:parameter].nil?
1077
+ @parent_folder_id = args[:parent_folder_id] unless args[:parent_folder_id].nil?
962
1078
  @priority = args[:priority] unless args[:priority].nil?
963
1079
  @schedule_end_ms = args[:schedule_end_ms] unless args[:schedule_end_ms].nil?
964
1080
  @schedule_start_ms = args[:schedule_start_ms] unless args[:schedule_start_ms].nil?
1081
+ @setup_tag = args[:setup_tag] unless args[:setup_tag].nil?
1082
+ @tag_firing_option = args[:tag_firing_option] unless args[:tag_firing_option].nil?
965
1083
  @tag_id = args[:tag_id] unless args[:tag_id].nil?
1084
+ @teardown_tag = args[:teardown_tag] unless args[:teardown_tag].nil?
966
1085
  @type = args[:type] unless args[:type].nil?
967
1086
  end
968
1087
  end
969
1088
 
1089
+ #
1090
+ class TeardownTag
1091
+ include Google::Apis::Core::Hashable
1092
+
1093
+ # If true, fire the teardown tag if and only if the main tag fires successfully.
1094
+ # If false, fire the teardown tag regardless of main tag firing status.
1095
+ # Corresponds to the JSON property `stopTeardownOnFailure`
1096
+ # @return [Boolean]
1097
+ attr_accessor :stop_teardown_on_failure
1098
+ alias_method :stop_teardown_on_failure?, :stop_teardown_on_failure
1099
+
1100
+ # The name of the teardown tag.
1101
+ # Corresponds to the JSON property `tagName`
1102
+ # @return [String]
1103
+ attr_accessor :tag_name
1104
+
1105
+ def initialize(**args)
1106
+ update!(**args)
1107
+ end
1108
+
1109
+ # Update properties of this object
1110
+ def update!(**args)
1111
+ @stop_teardown_on_failure = args[:stop_teardown_on_failure] unless args[:stop_teardown_on_failure].nil?
1112
+ @tag_name = args[:tag_name] unless args[:tag_name].nil?
1113
+ end
1114
+ end
1115
+
970
1116
  # Represents a Google Tag Manager Trigger
971
1117
  class Trigger
972
1118
  include Google::Apis::Core::Hashable
@@ -1032,6 +1178,11 @@ module Google
1032
1178
  # @return [String]
1033
1179
  attr_accessor :name
1034
1180
 
1181
+ # Parent folder id.
1182
+ # Corresponds to the JSON property `parentFolderId`
1183
+ # @return [String]
1184
+ attr_accessor :parent_folder_id
1185
+
1035
1186
  # The Trigger ID uniquely identifies the GTM Trigger.
1036
1187
  # Corresponds to the JSON property `triggerId`
1037
1188
  # @return [String]
@@ -1080,6 +1231,7 @@ module Google
1080
1231
  @interval = args[:interval] unless args[:interval].nil?
1081
1232
  @limit = args[:limit] unless args[:limit].nil?
1082
1233
  @name = args[:name] unless args[:name].nil?
1234
+ @parent_folder_id = args[:parent_folder_id] unless args[:parent_folder_id].nil?
1083
1235
  @trigger_id = args[:trigger_id] unless args[:trigger_id].nil?
1084
1236
  @type = args[:type] unless args[:type].nil?
1085
1237
  @unique_trigger_id = args[:unique_trigger_id] unless args[:unique_trigger_id].nil?
@@ -1181,6 +1333,11 @@ module Google
1181
1333
  # @return [Array<Google::Apis::TagmanagerV1::Parameter>]
1182
1334
  attr_accessor :parameter
1183
1335
 
1336
+ # Parent folder id.
1337
+ # Corresponds to the JSON property `parentFolderId`
1338
+ # @return [String]
1339
+ attr_accessor :parent_folder_id
1340
+
1184
1341
  # The end timestamp in milliseconds to schedule a variable.
1185
1342
  # Corresponds to the JSON property `scheduleEndMs`
1186
1343
  # @return [String]
@@ -1215,6 +1372,7 @@ module Google
1215
1372
  @name = args[:name] unless args[:name].nil?
1216
1373
  @notes = args[:notes] unless args[:notes].nil?
1217
1374
  @parameter = args[:parameter] unless args[:parameter].nil?
1375
+ @parent_folder_id = args[:parent_folder_id] unless args[:parent_folder_id].nil?
1218
1376
  @schedule_end_ms = args[:schedule_end_ms] unless args[:schedule_end_ms].nil?
1219
1377
  @schedule_start_ms = args[:schedule_start_ms] unless args[:schedule_start_ms].nil?
1220
1378
  @type = args[:type] unless args[:type].nil?
@@ -58,6 +58,14 @@ module Google
58
58
  class Representation < Google::Apis::Core::JsonRepresentation; end
59
59
  end
60
60
 
61
+ class Folder
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+ end
64
+
65
+ class FolderEntities
66
+ class Representation < Google::Apis::Core::JsonRepresentation; end
67
+ end
68
+
61
69
  class ListAccountUsersResponse
62
70
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
71
  end
@@ -74,11 +82,7 @@ module Google
74
82
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
83
  end
76
84
 
77
- class ListMacrosResponse
78
- class Representation < Google::Apis::Core::JsonRepresentation; end
79
- end
80
-
81
- class ListRulesResponse
85
+ class ListFoldersResponse
82
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
83
87
  end
84
88
 
@@ -110,10 +114,18 @@ module Google
110
114
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
115
  end
112
116
 
117
+ class SetupTag
118
+ class Representation < Google::Apis::Core::JsonRepresentation; end
119
+ end
120
+
113
121
  class Tag
114
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
115
123
  end
116
124
 
125
+ class TeardownTag
126
+ class Representation < Google::Apis::Core::JsonRepresentation; end
127
+ end
128
+
117
129
  class Trigger
118
130
  class Representation < Google::Apis::Core::JsonRepresentation; end
119
131
  end
@@ -187,6 +199,8 @@ module Google
187
199
  property :container_version_id, as: 'containerVersionId'
188
200
  property :deleted, as: 'deleted'
189
201
  property :fingerprint, as: 'fingerprint'
202
+ collection :folder, as: 'folder', class: Google::Apis::TagmanagerV1::Folder, decorator: Google::Apis::TagmanagerV1::Folder::Representation
203
+
190
204
  collection :macro, as: 'macro', class: Google::Apis::TagmanagerV1::Macro, decorator: Google::Apis::TagmanagerV1::Macro::Representation
191
205
 
192
206
  property :name, as: 'name'
@@ -236,6 +250,29 @@ module Google
236
250
  end
237
251
  end
238
252
 
253
+ class Folder
254
+ # @private
255
+ class Representation < Google::Apis::Core::JsonRepresentation
256
+ property :account_id, as: 'accountId'
257
+ property :container_id, as: 'containerId'
258
+ property :fingerprint, as: 'fingerprint'
259
+ property :folder_id, as: 'folderId'
260
+ property :name, as: 'name'
261
+ end
262
+ end
263
+
264
+ class FolderEntities
265
+ # @private
266
+ class Representation < Google::Apis::Core::JsonRepresentation
267
+ collection :tag, as: 'tag', class: Google::Apis::TagmanagerV1::Tag, decorator: Google::Apis::TagmanagerV1::Tag::Representation
268
+
269
+ collection :trigger, as: 'trigger', class: Google::Apis::TagmanagerV1::Trigger, decorator: Google::Apis::TagmanagerV1::Trigger::Representation
270
+
271
+ collection :variable, as: 'variable', class: Google::Apis::TagmanagerV1::Variable, decorator: Google::Apis::TagmanagerV1::Variable::Representation
272
+
273
+ end
274
+ end
275
+
239
276
  class ListAccountUsersResponse
240
277
  # @private
241
278
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -270,18 +307,10 @@ module Google
270
307
  end
271
308
  end
272
309
 
273
- class ListMacrosResponse
310
+ class ListFoldersResponse
274
311
  # @private
275
312
  class Representation < Google::Apis::Core::JsonRepresentation
276
- collection :macros, as: 'macros', class: Google::Apis::TagmanagerV1::Macro, decorator: Google::Apis::TagmanagerV1::Macro::Representation
277
-
278
- end
279
- end
280
-
281
- class ListRulesResponse
282
- # @private
283
- class Representation < Google::Apis::Core::JsonRepresentation
284
- collection :rules, as: 'rules', class: Google::Apis::TagmanagerV1::Rule, decorator: Google::Apis::TagmanagerV1::Rule::Representation
313
+ collection :folders, as: 'folders', class: Google::Apis::TagmanagerV1::Folder, decorator: Google::Apis::TagmanagerV1::Folder::Representation
285
314
 
286
315
  end
287
316
  end
@@ -323,6 +352,7 @@ module Google
323
352
  property :notes, as: 'notes'
324
353
  collection :parameter, as: 'parameter', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
325
354
 
355
+ property :parent_folder_id, as: 'parentFolderId'
326
356
  property :schedule_end_ms, as: 'scheduleEndMs'
327
357
  property :schedule_start_ms, as: 'scheduleStartMs'
328
358
  property :type, as: 'type'
@@ -365,6 +395,14 @@ module Google
365
395
  end
366
396
  end
367
397
 
398
+ class SetupTag
399
+ # @private
400
+ class Representation < Google::Apis::Core::JsonRepresentation
401
+ property :stop_on_setup_failure, as: 'stopOnSetupFailure'
402
+ property :tag_name, as: 'tagName'
403
+ end
404
+ end
405
+
368
406
  class Tag
369
407
  # @private
370
408
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -380,15 +418,29 @@ module Google
380
418
  property :notes, as: 'notes'
381
419
  collection :parameter, as: 'parameter', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
382
420
 
421
+ property :parent_folder_id, as: 'parentFolderId'
383
422
  property :priority, as: 'priority', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
384
423
 
385
424
  property :schedule_end_ms, as: 'scheduleEndMs'
386
425
  property :schedule_start_ms, as: 'scheduleStartMs'
426
+ collection :setup_tag, as: 'setupTag', class: Google::Apis::TagmanagerV1::SetupTag, decorator: Google::Apis::TagmanagerV1::SetupTag::Representation
427
+
428
+ property :tag_firing_option, as: 'tagFiringOption'
387
429
  property :tag_id, as: 'tagId'
430
+ collection :teardown_tag, as: 'teardownTag', class: Google::Apis::TagmanagerV1::TeardownTag, decorator: Google::Apis::TagmanagerV1::TeardownTag::Representation
431
+
388
432
  property :type, as: 'type'
389
433
  end
390
434
  end
391
435
 
436
+ class TeardownTag
437
+ # @private
438
+ class Representation < Google::Apis::Core::JsonRepresentation
439
+ property :stop_teardown_on_failure, as: 'stopTeardownOnFailure'
440
+ property :tag_name, as: 'tagName'
441
+ end
442
+ end
443
+
392
444
  class Trigger
393
445
  # @private
394
446
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -412,6 +464,7 @@ module Google
412
464
  property :limit, as: 'limit', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
413
465
 
414
466
  property :name, as: 'name'
467
+ property :parent_folder_id, as: 'parentFolderId'
415
468
  property :trigger_id, as: 'triggerId'
416
469
  property :type, as: 'type'
417
470
  property :unique_trigger_id, as: 'uniqueTriggerId', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
@@ -450,6 +503,7 @@ module Google
450
503
  property :notes, as: 'notes'
451
504
  collection :parameter, as: 'parameter', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
452
505
 
506
+ property :parent_folder_id, as: 'parentFolderId'
453
507
  property :schedule_end_ms, as: 'scheduleEndMs'
454
508
  property :schedule_start_ms, as: 'scheduleStartMs'
455
509
  property :type, as: 'type'