google-api-client 0.8.7 → 0.9.pre1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (397) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +20 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +7 -0
  5. data/.rubocop_todo.yml +63 -0
  6. data/.travis.yml +21 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +6 -3
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +28 -2
  11. data/MIGRATING.md +171 -0
  12. data/README.md +158 -150
  13. data/Rakefile +1 -40
  14. data/api_names.yaml +872 -0
  15. data/api_names_out.yaml +20843 -0
  16. data/bin/generate-api +93 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1124 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +375 -0
  20. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +893 -0
  21. data/generated/google/apis/adexchangeseller_v2_0.rb +38 -0
  22. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  23. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +309 -0
  24. data/generated/google/apis/adexchangeseller_v2_0/service.rb +682 -0
  25. data/generated/google/apis/admin_directory_v1.rb +89 -0
  26. data/generated/google/apis/admin_directory_v1/classes.rb +2389 -0
  27. data/generated/google/apis/admin_directory_v1/representations.rb +780 -0
  28. data/generated/google/apis/admin_directory_v1/service.rb +2805 -0
  29. data/generated/google/apis/admin_reports_v1.rb +38 -0
  30. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  31. data/generated/google/apis/admin_reports_v1/representations.rb +231 -0
  32. data/generated/google/apis/admin_reports_v1/service.rb +341 -0
  33. data/generated/google/apis/adsense_v1_4.rb +38 -0
  34. data/generated/google/apis/adsense_v1_4/classes.rb +1279 -0
  35. data/generated/google/apis/adsense_v1_4/representations.rb +493 -0
  36. data/generated/google/apis/adsense_v1_4/service.rb +1752 -0
  37. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  38. data/generated/google/apis/adsensehost_v4_1/classes.rb +834 -0
  39. data/generated/google/apis/adsensehost_v4_1/representations.rb +327 -0
  40. data/generated/google/apis/adsensehost_v4_1/service.rb +1190 -0
  41. data/generated/google/apis/analytics_v3.rb +49 -0
  42. data/generated/google/apis/analytics_v3/classes.rb +5113 -0
  43. data/generated/google/apis/analytics_v3/representations.rb +1661 -0
  44. data/generated/google/apis/analytics_v3/service.rb +3600 -0
  45. data/generated/google/apis/androidenterprise_v1.rb +34 -0
  46. data/generated/google/apis/androidenterprise_v1/classes.rb +1162 -0
  47. data/generated/google/apis/androidenterprise_v1/representations.rb +431 -0
  48. data/generated/google/apis/androidenterprise_v1/service.rb +1979 -0
  49. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  50. data/generated/google/apis/androidpublisher_v2/classes.rb +1374 -0
  51. data/generated/google/apis/androidpublisher_v2/representations.rb +630 -0
  52. data/generated/google/apis/androidpublisher_v2/service.rb +2390 -0
  53. data/generated/google/apis/appsactivity_v1.rb +46 -0
  54. data/generated/google/apis/appsactivity_v1/classes.rb +392 -0
  55. data/generated/google/apis/appsactivity_v1/representations.rb +184 -0
  56. data/generated/google/apis/appsactivity_v1/service.rb +129 -0
  57. data/generated/google/apis/appstate_v1.rb +34 -0
  58. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  59. data/generated/google/apis/appstate_v1/representations.rb +79 -0
  60. data/generated/google/apis/appstate_v1/service.rb +265 -0
  61. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  62. data/generated/google/apis/autoscaler_v1beta2/classes.rb +747 -0
  63. data/generated/google/apis/autoscaler_v1beta2/representations.rb +281 -0
  64. data/generated/google/apis/autoscaler_v1beta2/service.rb +488 -0
  65. data/generated/google/apis/bigquery_v2.rb +49 -0
  66. data/generated/google/apis/bigquery_v2/classes.rb +2255 -0
  67. data/generated/google/apis/bigquery_v2/representations.rb +754 -0
  68. data/generated/google/apis/bigquery_v2/service.rb +1003 -0
  69. data/generated/google/apis/blogger_v3.rb +37 -0
  70. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  71. data/generated/google/apis/blogger_v3/representations.rb +562 -0
  72. data/generated/google/apis/blogger_v3/service.rb +1620 -0
  73. data/generated/google/apis/books_v1.rb +34 -0
  74. data/generated/google/apis/books_v1/classes.rb +3515 -0
  75. data/generated/google/apis/books_v1/representations.rb +1361 -0
  76. data/generated/google/apis/books_v1/service.rb +2170 -0
  77. data/generated/google/apis/calendar_v3.rb +37 -0
  78. data/generated/google/apis/calendar_v3/classes.rb +1702 -0
  79. data/generated/google/apis/calendar_v3/representations.rb +566 -0
  80. data/generated/google/apis/calendar_v3/service.rb +1943 -0
  81. data/generated/google/apis/civicinfo_v2.rb +31 -0
  82. data/generated/google/apis/civicinfo_v2/classes.rb +1057 -0
  83. data/generated/google/apis/civicinfo_v2/representations.rb +374 -0
  84. data/generated/google/apis/civicinfo_v2/service.rb +284 -0
  85. data/generated/google/apis/cloudmonitoring_v2beta2.rb +34 -0
  86. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  87. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +311 -0
  88. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +458 -0
  89. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  90. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +139 -0
  91. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +65 -0
  92. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +301 -0
  93. data/generated/google/apis/compute_v1.rb +49 -0
  94. data/generated/google/apis/compute_v1/classes.rb +6391 -0
  95. data/generated/google/apis/compute_v1/representations.rb +2209 -0
  96. data/generated/google/apis/compute_v1/service.rb +6352 -0
  97. data/generated/google/apis/container_v1beta1.rb +35 -0
  98. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  99. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  100. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  101. data/generated/google/apis/content_v2.rb +35 -0
  102. data/generated/google/apis/content_v2/classes.rb +3780 -0
  103. data/generated/google/apis/content_v2/representations.rb +1456 -0
  104. data/generated/google/apis/content_v2/service.rb +1706 -0
  105. data/generated/google/apis/coordinate_v1.rb +37 -0
  106. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  107. data/generated/google/apis/coordinate_v1/representations.rb +285 -0
  108. data/generated/google/apis/coordinate_v1/service.rb +687 -0
  109. data/{lib/google/api_client/auth/compute_service_account.rb → generated/google/apis/customsearch_v1.rb} +13 -10
  110. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  111. data/generated/google/apis/customsearch_v1/representations.rb +276 -0
  112. data/generated/google/apis/customsearch_v1/service.rb +208 -0
  113. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  114. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  115. data/generated/google/apis/datastore_v1beta2/representations.rb +526 -0
  116. data/generated/google/apis/datastore_v1beta2/service.rb +300 -0
  117. data/generated/google/apis/deploymentmanager_v2beta2.rb +41 -0
  118. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +820 -0
  119. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +303 -0
  120. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +647 -0
  121. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  122. data/generated/google/apis/dfareporting_v2_1/classes.rb +10755 -0
  123. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  124. data/generated/google/apis/dfareporting_v2_1/service.rb +8775 -0
  125. data/generated/google/apis/discovery_v1.rb +32 -0
  126. data/generated/google/apis/discovery_v1/classes.rb +947 -0
  127. data/generated/google/apis/discovery_v1/representations.rb +355 -0
  128. data/generated/google/apis/discovery_v1/service.rb +144 -0
  129. data/generated/google/apis/dns_v1.rb +41 -0
  130. data/generated/google/apis/dns_v1/classes.rb +406 -0
  131. data/generated/google/apis/dns_v1/representations.rb +151 -0
  132. data/generated/google/apis/dns_v1/service.rb +460 -0
  133. data/{spec/google/api_client/request_spec.rb → generated/google/apis/doubleclickbidmanager_v1.rb} +15 -13
  134. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +709 -0
  135. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +297 -0
  136. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +349 -0
  137. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  138. data/generated/google/apis/doubleclicksearch_v2/classes.rb +947 -0
  139. data/generated/google/apis/doubleclicksearch_v2/representations.rb +315 -0
  140. data/generated/google/apis/doubleclicksearch_v2/service.rb +490 -0
  141. data/generated/google/apis/drive_v2.rb +55 -0
  142. data/generated/google/apis/drive_v2/classes.rb +2519 -0
  143. data/generated/google/apis/drive_v2/representations.rb +781 -0
  144. data/generated/google/apis/drive_v2/service.rb +2685 -0
  145. data/generated/google/apis/fitness_v1.rb +49 -0
  146. data/generated/google/apis/fitness_v1/classes.rb +809 -0
  147. data/generated/google/apis/fitness_v1/representations.rb +295 -0
  148. data/generated/google/apis/fitness_v1/service.rb +684 -0
  149. data/generated/google/apis/fusiontables_v2.rb +37 -0
  150. data/generated/google/apis/fusiontables_v2/classes.rb +1048 -0
  151. data/generated/google/apis/fusiontables_v2/representations.rb +409 -0
  152. data/generated/google/apis/fusiontables_v2/service.rb +1496 -0
  153. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  154. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  155. data/generated/google/apis/games_configuration_v1configuration/representations.rb +206 -0
  156. data/generated/google/apis/games_configuration_v1configuration/service.rb +578 -0
  157. data/generated/google/apis/games_v1.rb +40 -0
  158. data/generated/google/apis/games_v1/classes.rb +4578 -0
  159. data/generated/google/apis/games_v1/representations.rb +1570 -0
  160. data/generated/google/apis/games_v1/service.rb +2306 -0
  161. data/generated/google/apis/gan_v1beta1.rb +31 -0
  162. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  163. data/generated/google/apis/gan_v1beta1/representations.rb +428 -0
  164. data/generated/google/apis/gan_v1beta1/service.rb +692 -0
  165. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  166. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  167. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  168. data/generated/google/apis/genomics_v1beta2/service.rb +2356 -0
  169. data/generated/google/apis/gmail_v1.rb +49 -0
  170. data/generated/google/apis/gmail_v1/classes.rb +794 -0
  171. data/generated/google/apis/gmail_v1/representations.rb +339 -0
  172. data/generated/google/apis/gmail_v1/service.rb +1502 -0
  173. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  174. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  175. data/generated/google/apis/groupsmigration_v1/representations.rb +38 -0
  176. data/generated/google/apis/groupsmigration_v1/service.rb +111 -0
  177. data/generated/google/apis/groupssettings_v1.rb +34 -0
  178. data/generated/google/apis/groupssettings_v1/classes.rb +221 -0
  179. data/generated/google/apis/groupssettings_v1/representations.rb +64 -0
  180. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  181. data/generated/google/apis/identitytoolkit_v3.rb +31 -0
  182. data/generated/google/apis/identitytoolkit_v3/classes.rb +1229 -0
  183. data/generated/google/apis/identitytoolkit_v3/representations.rb +422 -0
  184. data/generated/google/apis/identitytoolkit_v3/service.rb +491 -0
  185. data/generated/google/apis/licensing_v1.rb +34 -0
  186. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  187. data/generated/google/apis/licensing_v1/representations.rb +68 -0
  188. data/generated/google/apis/licensing_v1/service.rb +376 -0
  189. data/generated/google/apis/logging_v1beta3.rb +35 -0
  190. data/generated/google/apis/logging_v1beta3/classes.rb +505 -0
  191. data/generated/google/apis/logging_v1beta3/representations.rb +222 -0
  192. data/generated/google/apis/logging_v1beta3/service.rb +670 -0
  193. data/generated/google/apis/manager_v1beta2.rb +50 -0
  194. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  195. data/generated/google/apis/manager_v1beta2/representations.rb +536 -0
  196. data/generated/google/apis/manager_v1beta2/service.rb +380 -0
  197. data/generated/google/apis/mapsengine_v1.rb +38 -0
  198. data/generated/google/apis/mapsengine_v1/classes.rb +2873 -0
  199. data/generated/google/apis/mapsengine_v1/representations.rb +1235 -0
  200. data/generated/google/apis/mapsengine_v1/service.rb +3465 -0
  201. data/generated/google/apis/mirror_v1.rb +37 -0
  202. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  203. data/generated/google/apis/mirror_v1/representations.rb +350 -0
  204. data/generated/google/apis/mirror_v1/service.rb +1001 -0
  205. data/generated/google/apis/oauth2_v2.rb +43 -0
  206. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  207. data/generated/google/apis/oauth2_v2/representations.rb +94 -0
  208. data/generated/google/apis/oauth2_v2/service.rb +203 -0
  209. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  210. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  211. data/generated/google/apis/pagespeedonline_v2/representations.rb +244 -0
  212. data/generated/google/apis/pagespeedonline_v2/service.rb +120 -0
  213. data/generated/google/apis/plus_domains_v1.rb +61 -0
  214. data/generated/google/apis/plus_domains_v1/classes.rb +2402 -0
  215. data/generated/google/apis/plus_domains_v1/representations.rb +873 -0
  216. data/generated/google/apis/plus_domains_v1/service.rb +924 -0
  217. data/generated/google/apis/plus_v1.rb +43 -0
  218. data/generated/google/apis/plus_v1/classes.rb +2384 -0
  219. data/generated/google/apis/plus_v1/representations.rb +812 -0
  220. data/generated/google/apis/plus_v1/service.rb +616 -0
  221. data/generated/google/apis/prediction_v1_6.rb +44 -0
  222. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  223. data/generated/google/apis/prediction_v1_6/representations.rb +327 -0
  224. data/generated/google/apis/prediction_v1_6/service.rb +388 -0
  225. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  226. data/generated/google/apis/pubsub_v1beta2/classes.rb +824 -0
  227. data/generated/google/apis/pubsub_v1beta2/representations.rb +366 -0
  228. data/generated/google/apis/pubsub_v1beta2/service.rb +778 -0
  229. data/generated/google/apis/qpx_express_v1.rb +31 -0
  230. data/generated/google/apis/qpx_express_v1/classes.rb +1268 -0
  231. data/generated/google/apis/qpx_express_v1/representations.rb +424 -0
  232. data/generated/google/apis/qpx_express_v1/service.rb +101 -0
  233. data/generated/google/apis/replicapool_v1beta2.rb +41 -0
  234. data/generated/google/apis/replicapool_v1beta2/classes.rb +621 -0
  235. data/generated/google/apis/replicapool_v1beta2/representations.rb +235 -0
  236. data/generated/google/apis/replicapool_v1beta2/service.rb +620 -0
  237. data/generated/google/apis/replicapoolupdater_v1beta1.rb +41 -0
  238. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +682 -0
  239. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +247 -0
  240. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +472 -0
  241. data/generated/google/apis/reseller_v1.rb +37 -0
  242. data/generated/google/apis/reseller_v1/classes.rb +502 -0
  243. data/generated/google/apis/reseller_v1/representations.rb +199 -0
  244. data/generated/google/apis/reseller_v1/service.rb +637 -0
  245. data/generated/google/apis/resourceviews_v1beta2.rb +47 -0
  246. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  247. data/generated/google/apis/resourceviews_v1beta2/representations.rb +269 -0
  248. data/generated/google/apis/resourceviews_v1beta2/service.rb +574 -0
  249. data/generated/google/apis/site_verification_v1.rb +37 -0
  250. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  251. data/generated/google/apis/site_verification_v1/representations.rb +101 -0
  252. data/generated/google/apis/site_verification_v1/service.rb +322 -0
  253. data/generated/google/apis/sqladmin_v1beta4.rb +37 -0
  254. data/generated/google/apis/sqladmin_v1beta4/classes.rb +1817 -0
  255. data/generated/google/apis/sqladmin_v1beta4/representations.rb +688 -0
  256. data/generated/google/apis/sqladmin_v1beta4/service.rb +1534 -0
  257. data/generated/google/apis/storage_v1.rb +43 -0
  258. data/generated/google/apis/storage_v1/classes.rb +1177 -0
  259. data/generated/google/apis/storage_v1/representations.rb +427 -0
  260. data/generated/google/apis/storage_v1/service.rb +1920 -0
  261. data/generated/google/apis/tagmanager_v1.rb +52 -0
  262. data/generated/google/apis/tagmanager_v1/classes.rb +1226 -0
  263. data/generated/google/apis/tagmanager_v1/representations.rb +461 -0
  264. data/generated/google/apis/tagmanager_v1/service.rb +1978 -0
  265. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  266. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  267. data/generated/google/apis/taskqueue_v1beta2/representations.rb +114 -0
  268. data/generated/google/apis/taskqueue_v1beta2/service.rb +416 -0
  269. data/generated/google/apis/tasks_v1.rb +37 -0
  270. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  271. data/generated/google/apis/tasks_v1/representations.rb +115 -0
  272. data/generated/google/apis/tasks_v1/service.rb +657 -0
  273. data/generated/google/apis/translate_v2.rb +31 -0
  274. data/generated/google/apis/translate_v2/classes.rb +168 -0
  275. data/generated/google/apis/translate_v2/representations.rb +109 -0
  276. data/generated/google/apis/translate_v2/service.rb +185 -0
  277. data/generated/google/apis/urlshortener_v1.rb +34 -0
  278. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  279. data/generated/google/apis/urlshortener_v1/representations.rb +111 -0
  280. data/generated/google/apis/urlshortener_v1/service.rb +179 -0
  281. data/generated/google/apis/webmasters_v3.rb +37 -0
  282. data/generated/google/apis/webmasters_v3/classes.rb +563 -0
  283. data/generated/google/apis/webmasters_v3/representations.rb +250 -0
  284. data/generated/google/apis/webmasters_v3/service.rb +587 -0
  285. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  286. data/generated/google/apis/youtube_analytics_v1/classes.rb +540 -0
  287. data/generated/google/apis/youtube_analytics_v1/representations.rb +242 -0
  288. data/generated/google/apis/youtube_analytics_v1/service.rb +567 -0
  289. data/generated/google/apis/youtube_v3.rb +49 -0
  290. data/generated/google/apis/youtube_v3/classes.rb +7225 -0
  291. data/generated/google/apis/youtube_v3/representations.rb +2529 -0
  292. data/generated/google/apis/youtube_v3/service.rb +4051 -0
  293. data/google-api-client.gemspec +27 -39
  294. data/lib/google/api_client/auth/storage.rb +3 -2
  295. data/lib/google/api_client/auth/storages/file_store.rb +1 -3
  296. data/lib/google/api_client/auth/storages/redis_store.rb +6 -2
  297. data/lib/google/apis.rb +48 -0
  298. data/lib/google/apis/core/api_command.rb +128 -0
  299. data/lib/google/apis/core/base_service.rb +314 -0
  300. data/lib/google/apis/core/batch.rb +222 -0
  301. data/lib/google/apis/core/download.rb +94 -0
  302. data/lib/google/apis/core/hashable.rb +44 -0
  303. data/lib/google/apis/core/http_command.rb +275 -0
  304. data/lib/google/apis/core/json_representation.rb +122 -0
  305. data/lib/google/{api_client/version.rb → apis/core/logging.rb} +12 -8
  306. data/lib/google/apis/core/multipart.rb +173 -0
  307. data/lib/google/apis/core/upload.rb +275 -0
  308. data/lib/google/{api_client → apis}/errors.rb +32 -28
  309. data/lib/google/apis/generator.rb +70 -0
  310. data/lib/google/apis/generator/annotator.rb +271 -0
  311. data/lib/google/apis/generator/helpers.rb +74 -0
  312. data/lib/google/apis/generator/model.rb +130 -0
  313. data/lib/google/apis/generator/template.rb +124 -0
  314. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  315. data/lib/google/apis/generator/templates/_method.tmpl +90 -0
  316. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  317. data/lib/google/apis/generator/templates/_representation_stub.tmpl +15 -0
  318. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  319. data/lib/google/{api_client/reference.rb → apis/generator/templates/classes.rb.tmpl} +11 -9
  320. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  321. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  322. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  323. data/lib/google/apis/options.rb +79 -0
  324. data/lib/google/apis/version.rb +39 -0
  325. data/rakelib/metrics.rake +22 -0
  326. data/rakelib/rubocop.rake +10 -0
  327. data/rakelib/spec.rake +11 -0
  328. data/rakelib/yard.rake +11 -0
  329. data/samples/calendar/calendar.rb +43 -0
  330. data/samples/drive/drive.rb +40 -0
  331. data/samples/pubsub/pubsub.rb +52 -0
  332. data/{lib/google/api_client/discovery.rb → samples/translate/translate.rb} +14 -5
  333. data/script/generate +79 -0
  334. data/script/package +8 -0
  335. data/script/release +15 -0
  336. data/spec/fixtures/files/api_names.yaml +3 -0
  337. data/spec/fixtures/files/auth_stored_credentials.json +8 -0
  338. data/spec/fixtures/files/client_secrets.json +1 -0
  339. data/spec/fixtures/files/test.blah +1 -0
  340. data/spec/fixtures/files/test.txt +1 -0
  341. data/spec/fixtures/files/test_api.json +440 -0
  342. data/spec/google/api_client/auth/storage_spec.rb +1 -3
  343. data/spec/google/api_client/auth/storages/file_store_spec.rb +1 -2
  344. data/spec/google/api_client/auth/storages/redis_store_spec.rb +1 -3
  345. data/spec/google/apis/core/api_command_spec.rb +170 -0
  346. data/spec/google/apis/core/batch_spec.rb +128 -0
  347. data/spec/google/apis/core/download_spec.rb +90 -0
  348. data/spec/google/apis/core/hashable_spec.rb +60 -0
  349. data/spec/google/apis/core/http_command_spec.rb +238 -0
  350. data/spec/google/apis/core/json_representation_spec.rb +192 -0
  351. data/spec/google/apis/core/service_spec.rb +247 -0
  352. data/spec/google/apis/core/upload_spec.rb +238 -0
  353. data/{lib/google/api_client/service_account.rb → spec/google/apis/generated_spec.rb} +14 -8
  354. data/spec/google/apis/generator/generator_spec.rb +272 -0
  355. data/spec/google/apis/logging_spec.rb +45 -0
  356. data/spec/google/apis/options_spec.rb +40 -0
  357. data/spec/integration_tests/drive_spec.rb +35 -0
  358. data/spec/integration_tests/pubsub_spec.rb +48 -0
  359. data/spec/integration_tests/url_shortener_spec.rb +31 -0
  360. data/spec/spec_helper.rb +102 -46
  361. metadata +433 -178
  362. data/lib/compat/multi_json.rb +0 -19
  363. data/lib/google/api_client.rb +0 -750
  364. data/lib/google/api_client/auth/file_storage.rb +0 -59
  365. data/lib/google/api_client/auth/jwt_asserter.rb +0 -126
  366. data/lib/google/api_client/auth/key_utils.rb +0 -93
  367. data/lib/google/api_client/auth/pkcs12.rb +0 -41
  368. data/lib/google/api_client/batch.rb +0 -326
  369. data/lib/google/api_client/charset.rb +0 -33
  370. data/lib/google/api_client/discovery/api.rb +0 -310
  371. data/lib/google/api_client/discovery/media.rb +0 -77
  372. data/lib/google/api_client/discovery/method.rb +0 -363
  373. data/lib/google/api_client/discovery/resource.rb +0 -156
  374. data/lib/google/api_client/discovery/schema.rb +0 -117
  375. data/lib/google/api_client/environment.rb +0 -42
  376. data/lib/google/api_client/gzip.rb +0 -28
  377. data/lib/google/api_client/logging.rb +0 -32
  378. data/lib/google/api_client/media.rb +0 -259
  379. data/lib/google/api_client/railtie.rb +0 -18
  380. data/lib/google/api_client/request.rb +0 -350
  381. data/lib/google/api_client/result.rb +0 -255
  382. data/lib/google/api_client/service.rb +0 -233
  383. data/lib/google/api_client/service/batch.rb +0 -110
  384. data/lib/google/api_client/service/request.rb +0 -144
  385. data/lib/google/api_client/service/resource.rb +0 -40
  386. data/lib/google/api_client/service/result.rb +0 -162
  387. data/lib/google/api_client/service/simple_file_store.rb +0 -151
  388. data/lib/google/api_client/service/stub_generator.rb +0 -61
  389. data/spec/google/api_client/batch_spec.rb +0 -248
  390. data/spec/google/api_client/discovery_spec.rb +0 -708
  391. data/spec/google/api_client/gzip_spec.rb +0 -98
  392. data/spec/google/api_client/media_spec.rb +0 -178
  393. data/spec/google/api_client/result_spec.rb +0 -207
  394. data/spec/google/api_client/service_account_spec.rb +0 -169
  395. data/spec/google/api_client/service_spec.rb +0 -618
  396. data/spec/google/api_client/simple_file_store_spec.rb +0 -133
  397. data/spec/google/api_client_spec.rb +0 -352
@@ -0,0 +1,52 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/tagmanager_v1/service.rb'
16
+ require 'google/apis/tagmanager_v1/classes.rb'
17
+ require 'google/apis/tagmanager_v1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Tag Manager API
22
+ #
23
+ # API for accessing Tag Manager accounts and containers.
24
+ #
25
+ # @see https://developers.google.com/tag-manager/api/v1/
26
+ module TagmanagerV1
27
+ VERSION = 'V1'
28
+ REVISION = '20150526'
29
+
30
+ # Delete your Google Tag Manager containers
31
+ AUTH_TAGMANAGER_DELETE_CONTAINERS = 'https://www.googleapis.com/auth/tagmanager.delete.containers'
32
+
33
+ # Manage your Google Tag Manager containers
34
+ AUTH_TAGMANAGER_EDIT_CONTAINERS = 'https://www.googleapis.com/auth/tagmanager.edit.containers'
35
+
36
+ # Manage your Google Tag Manager container versions
37
+ AUTH_TAGMANAGER_EDIT_CONTAINERVERSIONS = 'https://www.googleapis.com/auth/tagmanager.edit.containerversions'
38
+
39
+ # Manage your Google Tag Manager accounts
40
+ AUTH_TAGMANAGER_MANAGE_ACCOUNTS = 'https://www.googleapis.com/auth/tagmanager.manage.accounts'
41
+
42
+ # Manage user permissions of your Google Tag Manager data
43
+ AUTH_TAGMANAGER_MANAGE_USERS = 'https://www.googleapis.com/auth/tagmanager.manage.users'
44
+
45
+ # Publish your Google Tag Manager containers
46
+ AUTH_TAGMANAGER_PUBLISH = 'https://www.googleapis.com/auth/tagmanager.publish'
47
+
48
+ # View your Google Tag Manager containers
49
+ AUTH_TAGMANAGER_READONLY = 'https://www.googleapis.com/auth/tagmanager.readonly'
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,1226 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module TagmanagerV1
24
+
25
+ # Represents a Google Tag Manager Account.
26
+ class Account
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # The Account ID uniquely identifies the GTM Account.
30
+ # Corresponds to the JSON property `accountId`
31
+ # @return [String]
32
+ attr_accessor :account_id
33
+
34
+ # The fingerprint of the GTM Account as computed at storage time. This value is
35
+ # recomputed whenever the account is modified.
36
+ # Corresponds to the JSON property `fingerprint`
37
+ # @return [String]
38
+ attr_accessor :fingerprint
39
+
40
+ # Account display name.
41
+ # Corresponds to the JSON property `name`
42
+ # @return [String]
43
+ attr_accessor :name
44
+
45
+ # Whether the account shares data anonymously with Google and others.
46
+ # Corresponds to the JSON property `shareData`
47
+ # @return [Boolean]
48
+ attr_accessor :share_data
49
+ alias_method :share_data?, :share_data
50
+
51
+ def initialize(**args)
52
+ update!(**args)
53
+ end
54
+
55
+ # Update properties of this object
56
+ def update!(**args)
57
+ @account_id = args[:account_id] unless args[:account_id].nil?
58
+ @fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
59
+ @name = args[:name] unless args[:name].nil?
60
+ @share_data = args[:share_data] unless args[:share_data].nil?
61
+ end
62
+ end
63
+
64
+ # Defines the Google Tag Manager Account access permissions.
65
+ class AccountAccess
66
+ include Google::Apis::Core::Hashable
67
+
68
+ # List of Account permissions. Valid account permissions are read and manage.
69
+ # Corresponds to the JSON property `permission`
70
+ # @return [Array<String>]
71
+ attr_accessor :permission
72
+
73
+ def initialize(**args)
74
+ update!(**args)
75
+ end
76
+
77
+ # Update properties of this object
78
+ def update!(**args)
79
+ @permission = args[:permission] unless args[:permission].nil?
80
+ end
81
+ end
82
+
83
+ # Represents a predicate.
84
+ class Condition
85
+ include Google::Apis::Core::Hashable
86
+
87
+ # A list of named parameters (key/value), depending on the condition's type.
88
+ # Notes:
89
+ # - For binary operators, include parameters named arg0 and arg1 for specifying
90
+ # the left and right operands, respectively.
91
+ # - At this time, the left operand (arg0) must be a reference to a macro.
92
+ # - For case-insensitive Regex matching, include a boolean parameter named
93
+ # ignore_case that is set to true. If not specified or set to any other value,
94
+ # the matching will be case sensitive.
95
+ # - To negate an operator, include a boolean parameter named negate boolean
96
+ # parameter that is set to true.
97
+ # Corresponds to the JSON property `parameter`
98
+ # @return [Array<Google::Apis::TagmanagerV1::Parameter>]
99
+ attr_accessor :parameter
100
+
101
+ # The type of operator for this condition.
102
+ # Corresponds to the JSON property `type`
103
+ # @return [String]
104
+ attr_accessor :type
105
+
106
+ def initialize(**args)
107
+ update!(**args)
108
+ end
109
+
110
+ # Update properties of this object
111
+ def update!(**args)
112
+ @parameter = args[:parameter] unless args[:parameter].nil?
113
+ @type = args[:type] unless args[:type].nil?
114
+ end
115
+ end
116
+
117
+ # Represents a Google Tag Manager Container.
118
+ class Container
119
+ include Google::Apis::Core::Hashable
120
+
121
+ # GTM Account ID.
122
+ # Corresponds to the JSON property `accountId`
123
+ # @return [String]
124
+ attr_accessor :account_id
125
+
126
+ # The Container ID uniquely identifies the GTM Container.
127
+ # Corresponds to the JSON property `containerId`
128
+ # @return [String]
129
+ attr_accessor :container_id
130
+
131
+ # Optional list of domain names associated with the Container.
132
+ # Corresponds to the JSON property `domainName`
133
+ # @return [Array<String>]
134
+ attr_accessor :domain_name
135
+
136
+ # List of enabled built-in variables. Valid values include: pageUrl,
137
+ # pageHostname, pagePath, referrer, event, clickElement, clickClasses, clickId,
138
+ # clickTarget, clickUrl, clickText, formElement, formClasses, formId, formTarget,
139
+ # formUrl, formText, errorMessage, errorUrl, errorLine, newHistoryFragment,
140
+ # oldHistoryFragment, newHistoryState, oldHistoryState, historySource,
141
+ # containerVersion, debugMode, randomNumber, containerId.
142
+ # Corresponds to the JSON property `enabledBuiltInVariable`
143
+ # @return [Array<String>]
144
+ attr_accessor :enabled_built_in_variable
145
+
146
+ # The fingerprint of the GTM Container as computed at storage time. This value
147
+ # is recomputed whenever the account is modified.
148
+ # Corresponds to the JSON property `fingerprint`
149
+ # @return [String]
150
+ attr_accessor :fingerprint
151
+
152
+ # Container display name.
153
+ # Corresponds to the JSON property `name`
154
+ # @return [String]
155
+ attr_accessor :name
156
+
157
+ # Container Notes.
158
+ # Corresponds to the JSON property `notes`
159
+ # @return [String]
160
+ attr_accessor :notes
161
+
162
+ # Container Public ID.
163
+ # Corresponds to the JSON property `publicId`
164
+ # @return [String]
165
+ attr_accessor :public_id
166
+
167
+ # Container Country ID.
168
+ # Corresponds to the JSON property `timeZoneCountryId`
169
+ # @return [String]
170
+ attr_accessor :time_zone_country_id
171
+
172
+ # Container Time Zone ID.
173
+ # Corresponds to the JSON property `timeZoneId`
174
+ # @return [String]
175
+ attr_accessor :time_zone_id
176
+
177
+ # List of Usage Contexts for the Container. Valid values include: web, android,
178
+ # ios.
179
+ # Corresponds to the JSON property `usageContext`
180
+ # @return [Array<String>]
181
+ attr_accessor :usage_context
182
+
183
+ def initialize(**args)
184
+ update!(**args)
185
+ end
186
+
187
+ # Update properties of this object
188
+ def update!(**args)
189
+ @account_id = args[:account_id] unless args[:account_id].nil?
190
+ @container_id = args[:container_id] unless args[:container_id].nil?
191
+ @domain_name = args[:domain_name] unless args[:domain_name].nil?
192
+ @enabled_built_in_variable = args[:enabled_built_in_variable] unless args[:enabled_built_in_variable].nil?
193
+ @fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
194
+ @name = args[:name] unless args[:name].nil?
195
+ @notes = args[:notes] unless args[:notes].nil?
196
+ @public_id = args[:public_id] unless args[:public_id].nil?
197
+ @time_zone_country_id = args[:time_zone_country_id] unless args[:time_zone_country_id].nil?
198
+ @time_zone_id = args[:time_zone_id] unless args[:time_zone_id].nil?
199
+ @usage_context = args[:usage_context] unless args[:usage_context].nil?
200
+ end
201
+ end
202
+
203
+ # Defines the Google Tag Manager Container access permissions.
204
+ class ContainerAccess
205
+ include Google::Apis::Core::Hashable
206
+
207
+ # GTM Container ID.
208
+ # Corresponds to the JSON property `containerId`
209
+ # @return [String]
210
+ attr_accessor :container_id
211
+
212
+ # List of Container permissions. Valid container permissions are: read, edit,
213
+ # delete, publish.
214
+ # Corresponds to the JSON property `permission`
215
+ # @return [Array<String>]
216
+ attr_accessor :permission
217
+
218
+ def initialize(**args)
219
+ update!(**args)
220
+ end
221
+
222
+ # Update properties of this object
223
+ def update!(**args)
224
+ @container_id = args[:container_id] unless args[:container_id].nil?
225
+ @permission = args[:permission] unless args[:permission].nil?
226
+ end
227
+ end
228
+
229
+ # Represents a Google Tag Manager Container Version.
230
+ class ContainerVersion
231
+ include Google::Apis::Core::Hashable
232
+
233
+ # GTM Account ID.
234
+ # Corresponds to the JSON property `accountId`
235
+ # @return [String]
236
+ attr_accessor :account_id
237
+
238
+ # Represents a Google Tag Manager Container.
239
+ # Corresponds to the JSON property `container`
240
+ # @return [Google::Apis::TagmanagerV1::Container]
241
+ attr_accessor :container
242
+
243
+ # GTM Container ID.
244
+ # Corresponds to the JSON property `containerId`
245
+ # @return [String]
246
+ attr_accessor :container_id
247
+
248
+ # The Container Version ID uniquely identifies the GTM Container Version.
249
+ # Corresponds to the JSON property `containerVersionId`
250
+ # @return [String]
251
+ attr_accessor :container_version_id
252
+
253
+ # A value of true indicates this container version has been deleted.
254
+ # Corresponds to the JSON property `deleted`
255
+ # @return [Boolean]
256
+ attr_accessor :deleted
257
+ alias_method :deleted?, :deleted
258
+
259
+ # The fingerprint of the GTM Container Version as computed at storage time. This
260
+ # value is recomputed whenever the container version is modified.
261
+ # Corresponds to the JSON property `fingerprint`
262
+ # @return [String]
263
+ attr_accessor :fingerprint
264
+
265
+ # The macros in the container that this version was taken from.
266
+ # Corresponds to the JSON property `macro`
267
+ # @return [Array<Google::Apis::TagmanagerV1::Macro>]
268
+ attr_accessor :macro
269
+
270
+ # Container version display name.
271
+ # Corresponds to the JSON property `name`
272
+ # @return [String]
273
+ attr_accessor :name
274
+
275
+ # User notes on how to apply this container version in the container.
276
+ # Corresponds to the JSON property `notes`
277
+ # @return [String]
278
+ attr_accessor :notes
279
+
280
+ # The rules in the container that this version was taken from.
281
+ # Corresponds to the JSON property `rule`
282
+ # @return [Array<Google::Apis::TagmanagerV1::Rule>]
283
+ attr_accessor :rule
284
+
285
+ # The tags in the container that this version was taken from.
286
+ # Corresponds to the JSON property `tag`
287
+ # @return [Array<Google::Apis::TagmanagerV1::Tag>]
288
+ attr_accessor :tag
289
+
290
+ # The triggers in the container that this version was taken from.
291
+ # Corresponds to the JSON property `trigger`
292
+ # @return [Array<Google::Apis::TagmanagerV1::Trigger>]
293
+ attr_accessor :trigger
294
+
295
+ # The variables in the container that this version was taken from.
296
+ # Corresponds to the JSON property `variable`
297
+ # @return [Array<Google::Apis::TagmanagerV1::Variable>]
298
+ attr_accessor :variable
299
+
300
+ def initialize(**args)
301
+ update!(**args)
302
+ end
303
+
304
+ # Update properties of this object
305
+ def update!(**args)
306
+ @account_id = args[:account_id] unless args[:account_id].nil?
307
+ @container = args[:container] unless args[:container].nil?
308
+ @container_id = args[:container_id] unless args[:container_id].nil?
309
+ @container_version_id = args[:container_version_id] unless args[:container_version_id].nil?
310
+ @deleted = args[:deleted] unless args[:deleted].nil?
311
+ @fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
312
+ @macro = args[:macro] unless args[:macro].nil?
313
+ @name = args[:name] unless args[:name].nil?
314
+ @notes = args[:notes] unless args[:notes].nil?
315
+ @rule = args[:rule] unless args[:rule].nil?
316
+ @tag = args[:tag] unless args[:tag].nil?
317
+ @trigger = args[:trigger] unless args[:trigger].nil?
318
+ @variable = args[:variable] unless args[:variable].nil?
319
+ end
320
+ end
321
+
322
+ # Represents a Google Tag Manager Container Version Header.
323
+ class ContainerVersionHeader
324
+ include Google::Apis::Core::Hashable
325
+
326
+ # GTM Account ID.
327
+ # Corresponds to the JSON property `accountId`
328
+ # @return [String]
329
+ attr_accessor :account_id
330
+
331
+ # GTM Container ID.
332
+ # Corresponds to the JSON property `containerId`
333
+ # @return [String]
334
+ attr_accessor :container_id
335
+
336
+ # The Container Version ID uniquely identifies the GTM Container Version.
337
+ # Corresponds to the JSON property `containerVersionId`
338
+ # @return [String]
339
+ attr_accessor :container_version_id
340
+
341
+ # A value of true indicates this container version has been deleted.
342
+ # Corresponds to the JSON property `deleted`
343
+ # @return [Boolean]
344
+ attr_accessor :deleted
345
+ alias_method :deleted?, :deleted
346
+
347
+ # Container version display name.
348
+ # Corresponds to the JSON property `name`
349
+ # @return [String]
350
+ attr_accessor :name
351
+
352
+ # Number of macros in the container version.
353
+ # Corresponds to the JSON property `numMacros`
354
+ # @return [String]
355
+ attr_accessor :num_macros
356
+
357
+ # Number of rules in the container version.
358
+ # Corresponds to the JSON property `numRules`
359
+ # @return [String]
360
+ attr_accessor :num_rules
361
+
362
+ # Number of tags in the container version.
363
+ # Corresponds to the JSON property `numTags`
364
+ # @return [String]
365
+ attr_accessor :num_tags
366
+
367
+ # Number of triggers in the container version.
368
+ # Corresponds to the JSON property `numTriggers`
369
+ # @return [String]
370
+ attr_accessor :num_triggers
371
+
372
+ # Number of variables in the container version.
373
+ # Corresponds to the JSON property `numVariables`
374
+ # @return [String]
375
+ attr_accessor :num_variables
376
+
377
+ def initialize(**args)
378
+ update!(**args)
379
+ end
380
+
381
+ # Update properties of this object
382
+ def update!(**args)
383
+ @account_id = args[:account_id] unless args[:account_id].nil?
384
+ @container_id = args[:container_id] unless args[:container_id].nil?
385
+ @container_version_id = args[:container_version_id] unless args[:container_version_id].nil?
386
+ @deleted = args[:deleted] unless args[:deleted].nil?
387
+ @name = args[:name] unless args[:name].nil?
388
+ @num_macros = args[:num_macros] unless args[:num_macros].nil?
389
+ @num_rules = args[:num_rules] unless args[:num_rules].nil?
390
+ @num_tags = args[:num_tags] unless args[:num_tags].nil?
391
+ @num_triggers = args[:num_triggers] unless args[:num_triggers].nil?
392
+ @num_variables = args[:num_variables] unless args[:num_variables].nil?
393
+ end
394
+ end
395
+
396
+ # Options for new container versions.
397
+ class CreateContainerVersionRequestVersionOptions
398
+ include Google::Apis::Core::Hashable
399
+
400
+ # The name of the container version to be created.
401
+ # Corresponds to the JSON property `name`
402
+ # @return [String]
403
+ attr_accessor :name
404
+
405
+ # The notes of the container version to be created.
406
+ # Corresponds to the JSON property `notes`
407
+ # @return [String]
408
+ attr_accessor :notes
409
+
410
+ # The creation of this version may be for quick preview and shouldn't be saved.
411
+ # Corresponds to the JSON property `quickPreview`
412
+ # @return [Boolean]
413
+ attr_accessor :quick_preview
414
+ alias_method :quick_preview?, :quick_preview
415
+
416
+ def initialize(**args)
417
+ update!(**args)
418
+ end
419
+
420
+ # Update properties of this object
421
+ def update!(**args)
422
+ @name = args[:name] unless args[:name].nil?
423
+ @notes = args[:notes] unless args[:notes].nil?
424
+ @quick_preview = args[:quick_preview] unless args[:quick_preview].nil?
425
+ end
426
+ end
427
+
428
+ # Create container versions response.
429
+ class CreateContainerVersionResponse
430
+ include Google::Apis::Core::Hashable
431
+
432
+ # Compiler errors or not.
433
+ # Corresponds to the JSON property `compilerError`
434
+ # @return [Boolean]
435
+ attr_accessor :compiler_error
436
+ alias_method :compiler_error?, :compiler_error
437
+
438
+ # Represents a Google Tag Manager Container Version.
439
+ # Corresponds to the JSON property `containerVersion`
440
+ # @return [Google::Apis::TagmanagerV1::ContainerVersion]
441
+ attr_accessor :container_version
442
+
443
+ def initialize(**args)
444
+ update!(**args)
445
+ end
446
+
447
+ # Update properties of this object
448
+ def update!(**args)
449
+ @compiler_error = args[:compiler_error] unless args[:compiler_error].nil?
450
+ @container_version = args[:container_version] unless args[:container_version].nil?
451
+ end
452
+ end
453
+
454
+ # List AccountUsers Response.
455
+ class ListAccountUsersResponse
456
+ include Google::Apis::Core::Hashable
457
+
458
+ # All GTM AccountUsers of a GTM Account.
459
+ # Corresponds to the JSON property `userAccess`
460
+ # @return [Array<Google::Apis::TagmanagerV1::UserAccess>]
461
+ attr_accessor :user_access
462
+
463
+ def initialize(**args)
464
+ update!(**args)
465
+ end
466
+
467
+ # Update properties of this object
468
+ def update!(**args)
469
+ @user_access = args[:user_access] unless args[:user_access].nil?
470
+ end
471
+ end
472
+
473
+ # List Accounts Response.
474
+ class ListAccountsResponse
475
+ include Google::Apis::Core::Hashable
476
+
477
+ # List of GTM Accounts that a user has access to.
478
+ # Corresponds to the JSON property `accounts`
479
+ # @return [Array<Google::Apis::TagmanagerV1::Account>]
480
+ attr_accessor :accounts
481
+
482
+ def initialize(**args)
483
+ update!(**args)
484
+ end
485
+
486
+ # Update properties of this object
487
+ def update!(**args)
488
+ @accounts = args[:accounts] unless args[:accounts].nil?
489
+ end
490
+ end
491
+
492
+ # List container versions response.
493
+ class ListContainerVersionsResponse
494
+ include Google::Apis::Core::Hashable
495
+
496
+ # All versions of a GTM Container.
497
+ # Corresponds to the JSON property `containerVersion`
498
+ # @return [Array<Google::Apis::TagmanagerV1::ContainerVersion>]
499
+ attr_accessor :container_version
500
+
501
+ # All container version headers of a GTM Container.
502
+ # Corresponds to the JSON property `containerVersionHeader`
503
+ # @return [Array<Google::Apis::TagmanagerV1::ContainerVersionHeader>]
504
+ attr_accessor :container_version_header
505
+
506
+ def initialize(**args)
507
+ update!(**args)
508
+ end
509
+
510
+ # Update properties of this object
511
+ def update!(**args)
512
+ @container_version = args[:container_version] unless args[:container_version].nil?
513
+ @container_version_header = args[:container_version_header] unless args[:container_version_header].nil?
514
+ end
515
+ end
516
+
517
+ # List Containers Response.
518
+ class ListContainersResponse
519
+ include Google::Apis::Core::Hashable
520
+
521
+ # All Containers of a GTM Account.
522
+ # Corresponds to the JSON property `containers`
523
+ # @return [Array<Google::Apis::TagmanagerV1::Container>]
524
+ attr_accessor :containers
525
+
526
+ def initialize(**args)
527
+ update!(**args)
528
+ end
529
+
530
+ # Update properties of this object
531
+ def update!(**args)
532
+ @containers = args[:containers] unless args[:containers].nil?
533
+ end
534
+ end
535
+
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
557
+ include Google::Apis::Core::Hashable
558
+
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
563
+
564
+ def initialize(**args)
565
+ update!(**args)
566
+ end
567
+
568
+ # Update properties of this object
569
+ def update!(**args)
570
+ @rules = args[:rules] unless args[:rules].nil?
571
+ end
572
+ end
573
+
574
+ # List Tags Response.
575
+ class ListTagsResponse
576
+ include Google::Apis::Core::Hashable
577
+
578
+ # All GTM Tags of a GTM Container.
579
+ # Corresponds to the JSON property `tags`
580
+ # @return [Array<Google::Apis::TagmanagerV1::Tag>]
581
+ attr_accessor :tags
582
+
583
+ def initialize(**args)
584
+ update!(**args)
585
+ end
586
+
587
+ # Update properties of this object
588
+ def update!(**args)
589
+ @tags = args[:tags] unless args[:tags].nil?
590
+ end
591
+ end
592
+
593
+ # List triggers response.
594
+ class ListTriggersResponse
595
+ include Google::Apis::Core::Hashable
596
+
597
+ # All GTM Triggers of a GTM Container.
598
+ # Corresponds to the JSON property `triggers`
599
+ # @return [Array<Google::Apis::TagmanagerV1::Trigger>]
600
+ attr_accessor :triggers
601
+
602
+ def initialize(**args)
603
+ update!(**args)
604
+ end
605
+
606
+ # Update properties of this object
607
+ def update!(**args)
608
+ @triggers = args[:triggers] unless args[:triggers].nil?
609
+ end
610
+ end
611
+
612
+ # List Variables Response.
613
+ class ListVariablesResponse
614
+ include Google::Apis::Core::Hashable
615
+
616
+ # All GTM Variables of a GTM Container.
617
+ # Corresponds to the JSON property `variables`
618
+ # @return [Array<Google::Apis::TagmanagerV1::Variable>]
619
+ attr_accessor :variables
620
+
621
+ def initialize(**args)
622
+ update!(**args)
623
+ end
624
+
625
+ # Update properties of this object
626
+ def update!(**args)
627
+ @variables = args[:variables] unless args[:variables].nil?
628
+ end
629
+ end
630
+
631
+ # Represents a Google Tag Manager Macro.
632
+ class Macro
633
+ include Google::Apis::Core::Hashable
634
+
635
+ # GTM Account ID.
636
+ # Corresponds to the JSON property `accountId`
637
+ # @return [String]
638
+ attr_accessor :account_id
639
+
640
+ # GTM Container ID.
641
+ # Corresponds to the JSON property `containerId`
642
+ # @return [String]
643
+ attr_accessor :container_id
644
+
645
+ # For mobile containers only: A list of rule IDs for disabling conditional
646
+ # macros; the macro is enabled if one of the enabling rules is true while all
647
+ # the disabling rules are false. Treated as an unordered set.
648
+ # Corresponds to the JSON property `disablingRuleId`
649
+ # @return [Array<String>]
650
+ attr_accessor :disabling_rule_id
651
+
652
+ # For mobile containers only: A list of rule IDs for enabling conditional macros;
653
+ # the macro is enabled if one of the enabling rules is true while all the
654
+ # disabling rules are false. Treated as an unordered set.
655
+ # Corresponds to the JSON property `enablingRuleId`
656
+ # @return [Array<String>]
657
+ attr_accessor :enabling_rule_id
658
+
659
+ # The fingerprint of the GTM Macro as computed at storage time. This value is
660
+ # recomputed whenever the macro is modified.
661
+ # Corresponds to the JSON property `fingerprint`
662
+ # @return [String]
663
+ attr_accessor :fingerprint
664
+
665
+ # The Macro ID uniquely identifies the GTM Macro.
666
+ # Corresponds to the JSON property `macroId`
667
+ # @return [String]
668
+ attr_accessor :macro_id
669
+
670
+ # Macro display name.
671
+ # Corresponds to the JSON property `name`
672
+ # @return [String]
673
+ attr_accessor :name
674
+
675
+ # User notes on how to apply this macro in the container.
676
+ # Corresponds to the JSON property `notes`
677
+ # @return [String]
678
+ attr_accessor :notes
679
+
680
+ # The macro's parameters.
681
+ # Corresponds to the JSON property `parameter`
682
+ # @return [Array<Google::Apis::TagmanagerV1::Parameter>]
683
+ attr_accessor :parameter
684
+
685
+ # The end timestamp in milliseconds to schedule a macro.
686
+ # Corresponds to the JSON property `scheduleEndMs`
687
+ # @return [String]
688
+ attr_accessor :schedule_end_ms
689
+
690
+ # The start timestamp in milliseconds to schedule a macro.
691
+ # Corresponds to the JSON property `scheduleStartMs`
692
+ # @return [String]
693
+ attr_accessor :schedule_start_ms
694
+
695
+ # GTM Macro Type.
696
+ # Corresponds to the JSON property `type`
697
+ # @return [String]
698
+ attr_accessor :type
699
+
700
+ def initialize(**args)
701
+ update!(**args)
702
+ end
703
+
704
+ # Update properties of this object
705
+ def update!(**args)
706
+ @account_id = args[:account_id] unless args[:account_id].nil?
707
+ @container_id = args[:container_id] unless args[:container_id].nil?
708
+ @disabling_rule_id = args[:disabling_rule_id] unless args[:disabling_rule_id].nil?
709
+ @enabling_rule_id = args[:enabling_rule_id] unless args[:enabling_rule_id].nil?
710
+ @fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
711
+ @macro_id = args[:macro_id] unless args[:macro_id].nil?
712
+ @name = args[:name] unless args[:name].nil?
713
+ @notes = args[:notes] unless args[:notes].nil?
714
+ @parameter = args[:parameter] unless args[:parameter].nil?
715
+ @schedule_end_ms = args[:schedule_end_ms] unless args[:schedule_end_ms].nil?
716
+ @schedule_start_ms = args[:schedule_start_ms] unless args[:schedule_start_ms].nil?
717
+ @type = args[:type] unless args[:type].nil?
718
+ end
719
+ end
720
+
721
+ # Represents a Google Tag Manager Parameter.
722
+ class Parameter
723
+ include Google::Apis::Core::Hashable
724
+
725
+ # The named key that uniquely identifies a parameter. Required for top-level
726
+ # parameters, as well as map values. Ignored for list values.
727
+ # Corresponds to the JSON property `key`
728
+ # @return [String]
729
+ attr_accessor :key
730
+
731
+ # This list parameter's parameters (keys will be ignored).
732
+ # Corresponds to the JSON property `list`
733
+ # @return [Array<Google::Apis::TagmanagerV1::Parameter>]
734
+ attr_accessor :list
735
+
736
+ # This map parameter's parameters (must have keys; keys must be unique).
737
+ # Corresponds to the JSON property `map`
738
+ # @return [Array<Google::Apis::TagmanagerV1::Parameter>]
739
+ attr_accessor :map
740
+
741
+ # The parameter type. Valid values are:
742
+ # - boolean: The value represents a boolean, represented as 'true' or 'false'
743
+ # - integer: The value represents a 64-bit signed integer value, in base 10
744
+ # - list: A list of parameters should be specified
745
+ # - 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)
748
+ # Corresponds to the JSON property `type`
749
+ # @return [String]
750
+ attr_accessor :type
751
+
752
+ # A parameter's value (may contain macro references such as "``myMacro``") as
753
+ # appropriate to the specified type.
754
+ # Corresponds to the JSON property `value`
755
+ # @return [String]
756
+ attr_accessor :value
757
+
758
+ def initialize(**args)
759
+ update!(**args)
760
+ end
761
+
762
+ # Update properties of this object
763
+ def update!(**args)
764
+ @key = args[:key] unless args[:key].nil?
765
+ @list = args[:list] unless args[:list].nil?
766
+ @map = args[:map] unless args[:map].nil?
767
+ @type = args[:type] unless args[:type].nil?
768
+ @value = args[:value] unless args[:value].nil?
769
+ end
770
+ end
771
+
772
+ # Publish container version response.
773
+ class PublishContainerVersionResponse
774
+ include Google::Apis::Core::Hashable
775
+
776
+ # Compiler errors or not.
777
+ # Corresponds to the JSON property `compilerError`
778
+ # @return [Boolean]
779
+ attr_accessor :compiler_error
780
+ alias_method :compiler_error?, :compiler_error
781
+
782
+ # Represents a Google Tag Manager Container Version.
783
+ # Corresponds to the JSON property `containerVersion`
784
+ # @return [Google::Apis::TagmanagerV1::ContainerVersion]
785
+ attr_accessor :container_version
786
+
787
+ def initialize(**args)
788
+ update!(**args)
789
+ end
790
+
791
+ # Update properties of this object
792
+ def update!(**args)
793
+ @compiler_error = args[:compiler_error] unless args[:compiler_error].nil?
794
+ @container_version = args[:container_version] unless args[:container_version].nil?
795
+ end
796
+ end
797
+
798
+ # Represents a Google Tag Manager Rule.
799
+ class Rule
800
+ include Google::Apis::Core::Hashable
801
+
802
+ # GTM Account ID.
803
+ # Corresponds to the JSON property `accountId`
804
+ # @return [String]
805
+ attr_accessor :account_id
806
+
807
+ # The list of conditions that make up this rule (implicit AND between them).
808
+ # Corresponds to the JSON property `condition`
809
+ # @return [Array<Google::Apis::TagmanagerV1::Condition>]
810
+ attr_accessor :condition
811
+
812
+ # GTM Container ID.
813
+ # Corresponds to the JSON property `containerId`
814
+ # @return [String]
815
+ attr_accessor :container_id
816
+
817
+ # The fingerprint of the GTM Rule as computed at storage time. This value is
818
+ # recomputed whenever the rule is modified.
819
+ # Corresponds to the JSON property `fingerprint`
820
+ # @return [String]
821
+ attr_accessor :fingerprint
822
+
823
+ # Rule display name.
824
+ # Corresponds to the JSON property `name`
825
+ # @return [String]
826
+ attr_accessor :name
827
+
828
+ # User notes on how to apply this rule in the container.
829
+ # Corresponds to the JSON property `notes`
830
+ # @return [String]
831
+ attr_accessor :notes
832
+
833
+ # The Rule ID uniquely identifies the GTM Rule.
834
+ # Corresponds to the JSON property `ruleId`
835
+ # @return [String]
836
+ attr_accessor :rule_id
837
+
838
+ def initialize(**args)
839
+ update!(**args)
840
+ end
841
+
842
+ # Update properties of this object
843
+ def update!(**args)
844
+ @account_id = args[:account_id] unless args[:account_id].nil?
845
+ @condition = args[:condition] unless args[:condition].nil?
846
+ @container_id = args[:container_id] unless args[:container_id].nil?
847
+ @fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
848
+ @name = args[:name] unless args[:name].nil?
849
+ @notes = args[:notes] unless args[:notes].nil?
850
+ @rule_id = args[:rule_id] unless args[:rule_id].nil?
851
+ end
852
+ end
853
+
854
+ # Represents a Google Tag Manager Tag.
855
+ class Tag
856
+ include Google::Apis::Core::Hashable
857
+
858
+ # GTM Account ID.
859
+ # Corresponds to the JSON property `accountId`
860
+ # @return [String]
861
+ attr_accessor :account_id
862
+
863
+ # Blocking rule IDs. If any of the listed rules evaluate to true, the tag will
864
+ # not fire.
865
+ # Corresponds to the JSON property `blockingRuleId`
866
+ # @return [Array<String>]
867
+ attr_accessor :blocking_rule_id
868
+
869
+ # Blocking trigger IDs. If any of the listed triggers evaluate to true, the tag
870
+ # will not fire.
871
+ # Corresponds to the JSON property `blockingTriggerId`
872
+ # @return [Array<String>]
873
+ attr_accessor :blocking_trigger_id
874
+
875
+ # GTM Container ID.
876
+ # Corresponds to the JSON property `containerId`
877
+ # @return [String]
878
+ attr_accessor :container_id
879
+
880
+ # The fingerprint of the GTM Tag as computed at storage time. This value is
881
+ # recomputed whenever the tag is modified.
882
+ # Corresponds to the JSON property `fingerprint`
883
+ # @return [String]
884
+ attr_accessor :fingerprint
885
+
886
+ # Firing rule IDs. A tag will fire when any of the listed rules are true and all
887
+ # of its blockingRuleIds (if any specified) are false.
888
+ # Corresponds to the JSON property `firingRuleId`
889
+ # @return [Array<String>]
890
+ attr_accessor :firing_rule_id
891
+
892
+ # Firing trigger IDs. A tag will fire when any of the listed triggers are true
893
+ # and all of its blockingTriggerIds (if any specified) are false.
894
+ # Corresponds to the JSON property `firingTriggerId`
895
+ # @return [Array<String>]
896
+ attr_accessor :firing_trigger_id
897
+
898
+ # If set to true, this tag will only fire in the live environment (e.g. not in
899
+ # preview or debug mode).
900
+ # Corresponds to the JSON property `liveOnly`
901
+ # @return [Boolean]
902
+ attr_accessor :live_only
903
+ alias_method :live_only?, :live_only
904
+
905
+ # Tag display name.
906
+ # Corresponds to the JSON property `name`
907
+ # @return [String]
908
+ attr_accessor :name
909
+
910
+ # User notes on how to apply this tag in the container.
911
+ # Corresponds to the JSON property `notes`
912
+ # @return [String]
913
+ attr_accessor :notes
914
+
915
+ # The tag's parameters.
916
+ # Corresponds to the JSON property `parameter`
917
+ # @return [Array<Google::Apis::TagmanagerV1::Parameter>]
918
+ attr_accessor :parameter
919
+
920
+ # Represents a Google Tag Manager Parameter.
921
+ # Corresponds to the JSON property `priority`
922
+ # @return [Google::Apis::TagmanagerV1::Parameter]
923
+ attr_accessor :priority
924
+
925
+ # The end timestamp in milliseconds to schedule a tag.
926
+ # Corresponds to the JSON property `scheduleEndMs`
927
+ # @return [String]
928
+ attr_accessor :schedule_end_ms
929
+
930
+ # The start timestamp in milliseconds to schedule a tag.
931
+ # Corresponds to the JSON property `scheduleStartMs`
932
+ # @return [String]
933
+ attr_accessor :schedule_start_ms
934
+
935
+ # The Tag ID uniquely identifies the GTM Tag.
936
+ # Corresponds to the JSON property `tagId`
937
+ # @return [String]
938
+ attr_accessor :tag_id
939
+
940
+ # GTM Tag Type.
941
+ # Corresponds to the JSON property `type`
942
+ # @return [String]
943
+ attr_accessor :type
944
+
945
+ def initialize(**args)
946
+ update!(**args)
947
+ end
948
+
949
+ # Update properties of this object
950
+ def update!(**args)
951
+ @account_id = args[:account_id] unless args[:account_id].nil?
952
+ @blocking_rule_id = args[:blocking_rule_id] unless args[:blocking_rule_id].nil?
953
+ @blocking_trigger_id = args[:blocking_trigger_id] unless args[:blocking_trigger_id].nil?
954
+ @container_id = args[:container_id] unless args[:container_id].nil?
955
+ @fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
956
+ @firing_rule_id = args[:firing_rule_id] unless args[:firing_rule_id].nil?
957
+ @firing_trigger_id = args[:firing_trigger_id] unless args[:firing_trigger_id].nil?
958
+ @live_only = args[:live_only] unless args[:live_only].nil?
959
+ @name = args[:name] unless args[:name].nil?
960
+ @notes = args[:notes] unless args[:notes].nil?
961
+ @parameter = args[:parameter] unless args[:parameter].nil?
962
+ @priority = args[:priority] unless args[:priority].nil?
963
+ @schedule_end_ms = args[:schedule_end_ms] unless args[:schedule_end_ms].nil?
964
+ @schedule_start_ms = args[:schedule_start_ms] unless args[:schedule_start_ms].nil?
965
+ @tag_id = args[:tag_id] unless args[:tag_id].nil?
966
+ @type = args[:type] unless args[:type].nil?
967
+ end
968
+ end
969
+
970
+ # Represents a Google Tag Manager Trigger
971
+ class Trigger
972
+ include Google::Apis::Core::Hashable
973
+
974
+ # GTM Account ID.
975
+ # Corresponds to the JSON property `accountId`
976
+ # @return [String]
977
+ attr_accessor :account_id
978
+
979
+ # Used in the case of auto event tracking.
980
+ # Corresponds to the JSON property `autoEventFilter`
981
+ # @return [Array<Google::Apis::TagmanagerV1::Condition>]
982
+ attr_accessor :auto_event_filter
983
+
984
+ # Represents a Google Tag Manager Parameter.
985
+ # Corresponds to the JSON property `checkValidation`
986
+ # @return [Google::Apis::TagmanagerV1::Parameter]
987
+ attr_accessor :check_validation
988
+
989
+ # GTM Container ID.
990
+ # Corresponds to the JSON property `containerId`
991
+ # @return [String]
992
+ attr_accessor :container_id
993
+
994
+ # Used in the case of custom event, which is fired iff all Conditions are true.
995
+ # Corresponds to the JSON property `customEventFilter`
996
+ # @return [Array<Google::Apis::TagmanagerV1::Condition>]
997
+ attr_accessor :custom_event_filter
998
+
999
+ # Represents a Google Tag Manager Parameter.
1000
+ # Corresponds to the JSON property `enableAllVideos`
1001
+ # @return [Google::Apis::TagmanagerV1::Parameter]
1002
+ attr_accessor :enable_all_videos
1003
+
1004
+ # Represents a Google Tag Manager Parameter.
1005
+ # Corresponds to the JSON property `eventName`
1006
+ # @return [Google::Apis::TagmanagerV1::Parameter]
1007
+ attr_accessor :event_name
1008
+
1009
+ # The trigger will only fire iff all Conditions are true.
1010
+ # Corresponds to the JSON property `filter`
1011
+ # @return [Array<Google::Apis::TagmanagerV1::Condition>]
1012
+ attr_accessor :filter
1013
+
1014
+ # The fingerprint of the GTM Trigger as computed at storage time. This value is
1015
+ # recomputed whenever the trigger is modified.
1016
+ # Corresponds to the JSON property `fingerprint`
1017
+ # @return [String]
1018
+ attr_accessor :fingerprint
1019
+
1020
+ # Represents a Google Tag Manager Parameter.
1021
+ # Corresponds to the JSON property `interval`
1022
+ # @return [Google::Apis::TagmanagerV1::Parameter]
1023
+ attr_accessor :interval
1024
+
1025
+ # Represents a Google Tag Manager Parameter.
1026
+ # Corresponds to the JSON property `limit`
1027
+ # @return [Google::Apis::TagmanagerV1::Parameter]
1028
+ attr_accessor :limit
1029
+
1030
+ # Trigger display name.
1031
+ # Corresponds to the JSON property `name`
1032
+ # @return [String]
1033
+ attr_accessor :name
1034
+
1035
+ # The Trigger ID uniquely identifies the GTM Trigger.
1036
+ # Corresponds to the JSON property `triggerId`
1037
+ # @return [String]
1038
+ attr_accessor :trigger_id
1039
+
1040
+ # Defines the data layer event that causes this trigger.
1041
+ # Corresponds to the JSON property `type`
1042
+ # @return [String]
1043
+ attr_accessor :type
1044
+
1045
+ # Represents a Google Tag Manager Parameter.
1046
+ # Corresponds to the JSON property `uniqueTriggerId`
1047
+ # @return [Google::Apis::TagmanagerV1::Parameter]
1048
+ attr_accessor :unique_trigger_id
1049
+
1050
+ # Represents a Google Tag Manager Parameter.
1051
+ # Corresponds to the JSON property `videoPercentageList`
1052
+ # @return [Google::Apis::TagmanagerV1::Parameter]
1053
+ attr_accessor :video_percentage_list
1054
+
1055
+ # Represents a Google Tag Manager Parameter.
1056
+ # Corresponds to the JSON property `waitForTags`
1057
+ # @return [Google::Apis::TagmanagerV1::Parameter]
1058
+ attr_accessor :wait_for_tags
1059
+
1060
+ # Represents a Google Tag Manager Parameter.
1061
+ # Corresponds to the JSON property `waitForTagsTimeout`
1062
+ # @return [Google::Apis::TagmanagerV1::Parameter]
1063
+ attr_accessor :wait_for_tags_timeout
1064
+
1065
+ def initialize(**args)
1066
+ update!(**args)
1067
+ end
1068
+
1069
+ # Update properties of this object
1070
+ def update!(**args)
1071
+ @account_id = args[:account_id] unless args[:account_id].nil?
1072
+ @auto_event_filter = args[:auto_event_filter] unless args[:auto_event_filter].nil?
1073
+ @check_validation = args[:check_validation] unless args[:check_validation].nil?
1074
+ @container_id = args[:container_id] unless args[:container_id].nil?
1075
+ @custom_event_filter = args[:custom_event_filter] unless args[:custom_event_filter].nil?
1076
+ @enable_all_videos = args[:enable_all_videos] unless args[:enable_all_videos].nil?
1077
+ @event_name = args[:event_name] unless args[:event_name].nil?
1078
+ @filter = args[:filter] unless args[:filter].nil?
1079
+ @fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
1080
+ @interval = args[:interval] unless args[:interval].nil?
1081
+ @limit = args[:limit] unless args[:limit].nil?
1082
+ @name = args[:name] unless args[:name].nil?
1083
+ @trigger_id = args[:trigger_id] unless args[:trigger_id].nil?
1084
+ @type = args[:type] unless args[:type].nil?
1085
+ @unique_trigger_id = args[:unique_trigger_id] unless args[:unique_trigger_id].nil?
1086
+ @video_percentage_list = args[:video_percentage_list] unless args[:video_percentage_list].nil?
1087
+ @wait_for_tags = args[:wait_for_tags] unless args[:wait_for_tags].nil?
1088
+ @wait_for_tags_timeout = args[:wait_for_tags_timeout] unless args[:wait_for_tags_timeout].nil?
1089
+ end
1090
+ end
1091
+
1092
+ # Represents a user's permissions to an account and its container.
1093
+ class UserAccess
1094
+ include Google::Apis::Core::Hashable
1095
+
1096
+ # Defines the Google Tag Manager Account access permissions.
1097
+ # Corresponds to the JSON property `accountAccess`
1098
+ # @return [Google::Apis::TagmanagerV1::AccountAccess]
1099
+ attr_accessor :account_access
1100
+
1101
+ # GTM Account ID.
1102
+ # Corresponds to the JSON property `accountId`
1103
+ # @return [String]
1104
+ attr_accessor :account_id
1105
+
1106
+ # GTM Container access permissions.
1107
+ # Corresponds to the JSON property `containerAccess`
1108
+ # @return [Array<Google::Apis::TagmanagerV1::ContainerAccess>]
1109
+ attr_accessor :container_access
1110
+
1111
+ # User's email address.
1112
+ # Corresponds to the JSON property `emailAddress`
1113
+ # @return [String]
1114
+ attr_accessor :email_address
1115
+
1116
+ # Account Permission ID.
1117
+ # Corresponds to the JSON property `permissionId`
1118
+ # @return [String]
1119
+ attr_accessor :permission_id
1120
+
1121
+ def initialize(**args)
1122
+ update!(**args)
1123
+ end
1124
+
1125
+ # Update properties of this object
1126
+ def update!(**args)
1127
+ @account_access = args[:account_access] unless args[:account_access].nil?
1128
+ @account_id = args[:account_id] unless args[:account_id].nil?
1129
+ @container_access = args[:container_access] unless args[:container_access].nil?
1130
+ @email_address = args[:email_address] unless args[:email_address].nil?
1131
+ @permission_id = args[:permission_id] unless args[:permission_id].nil?
1132
+ end
1133
+ end
1134
+
1135
+ # Represents a Google Tag Manager Variable.
1136
+ class Variable
1137
+ include Google::Apis::Core::Hashable
1138
+
1139
+ # GTM Account ID.
1140
+ # Corresponds to the JSON property `accountId`
1141
+ # @return [String]
1142
+ attr_accessor :account_id
1143
+
1144
+ # GTM Container ID.
1145
+ # Corresponds to the JSON property `containerId`
1146
+ # @return [String]
1147
+ attr_accessor :container_id
1148
+
1149
+ # For mobile containers only: A list of trigger IDs for disabling conditional
1150
+ # variables; the variable is enabled if one of the enabling trigger is true
1151
+ # while all the disabling trigger are false. Treated as an unordered set.
1152
+ # Corresponds to the JSON property `disablingTriggerId`
1153
+ # @return [Array<String>]
1154
+ attr_accessor :disabling_trigger_id
1155
+
1156
+ # For mobile containers only: A list of trigger IDs for enabling conditional
1157
+ # variables; the variable is enabled if one of the enabling triggers is true
1158
+ # while all the disabling triggers are false. Treated as an unordered set.
1159
+ # Corresponds to the JSON property `enablingTriggerId`
1160
+ # @return [Array<String>]
1161
+ attr_accessor :enabling_trigger_id
1162
+
1163
+ # The fingerprint of the GTM Variable as computed at storage time. This value is
1164
+ # recomputed whenever the variable is modified.
1165
+ # Corresponds to the JSON property `fingerprint`
1166
+ # @return [String]
1167
+ attr_accessor :fingerprint
1168
+
1169
+ # Variable display name.
1170
+ # Corresponds to the JSON property `name`
1171
+ # @return [String]
1172
+ attr_accessor :name
1173
+
1174
+ # User notes on how to apply this variable in the container.
1175
+ # Corresponds to the JSON property `notes`
1176
+ # @return [String]
1177
+ attr_accessor :notes
1178
+
1179
+ # The variable's parameters.
1180
+ # Corresponds to the JSON property `parameter`
1181
+ # @return [Array<Google::Apis::TagmanagerV1::Parameter>]
1182
+ attr_accessor :parameter
1183
+
1184
+ # The end timestamp in milliseconds to schedule a variable.
1185
+ # Corresponds to the JSON property `scheduleEndMs`
1186
+ # @return [String]
1187
+ attr_accessor :schedule_end_ms
1188
+
1189
+ # The start timestamp in milliseconds to schedule a variable.
1190
+ # Corresponds to the JSON property `scheduleStartMs`
1191
+ # @return [String]
1192
+ attr_accessor :schedule_start_ms
1193
+
1194
+ # GTM Variable Type.
1195
+ # Corresponds to the JSON property `type`
1196
+ # @return [String]
1197
+ attr_accessor :type
1198
+
1199
+ # The Variable ID uniquely identifies the GTM Variable.
1200
+ # Corresponds to the JSON property `variableId`
1201
+ # @return [String]
1202
+ attr_accessor :variable_id
1203
+
1204
+ def initialize(**args)
1205
+ update!(**args)
1206
+ end
1207
+
1208
+ # Update properties of this object
1209
+ def update!(**args)
1210
+ @account_id = args[:account_id] unless args[:account_id].nil?
1211
+ @container_id = args[:container_id] unless args[:container_id].nil?
1212
+ @disabling_trigger_id = args[:disabling_trigger_id] unless args[:disabling_trigger_id].nil?
1213
+ @enabling_trigger_id = args[:enabling_trigger_id] unless args[:enabling_trigger_id].nil?
1214
+ @fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
1215
+ @name = args[:name] unless args[:name].nil?
1216
+ @notes = args[:notes] unless args[:notes].nil?
1217
+ @parameter = args[:parameter] unless args[:parameter].nil?
1218
+ @schedule_end_ms = args[:schedule_end_ms] unless args[:schedule_end_ms].nil?
1219
+ @schedule_start_ms = args[:schedule_start_ms] unless args[:schedule_start_ms].nil?
1220
+ @type = args[:type] unless args[:type].nil?
1221
+ @variable_id = args[:variable_id] unless args[:variable_id].nil?
1222
+ end
1223
+ end
1224
+ end
1225
+ end
1226
+ end