google-api-client 0.8.3 → 0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (497) 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 +22 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +52 -2
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +35 -1
  11. data/MIGRATING.md +171 -0
  12. data/README.md +181 -148
  13. data/Rakefile +1 -40
  14. data/api_names.yaml +1036 -0
  15. data/api_names_out.yaml +26053 -0
  16. data/bin/generate-api +95 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  20. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  21. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  22. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +309 -0
  23. data/generated/google/apis/adexchangeseller_v2_0/service.rb +668 -0
  24. data/generated/google/apis/adexchangeseller_v2_0.rb +38 -0
  25. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  26. data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
  27. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  28. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  29. data/generated/google/apis/admin_directory_v1/classes.rb +3141 -0
  30. data/generated/google/apis/admin_directory_v1/representations.rb +1029 -0
  31. data/generated/google/apis/admin_directory_v1/service.rb +3818 -0
  32. data/generated/google/apis/admin_directory_v1.rb +113 -0
  33. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  34. data/generated/google/apis/admin_reports_v1/representations.rb +231 -0
  35. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  36. data/generated/google/apis/admin_reports_v1.rb +38 -0
  37. data/generated/google/apis/adsense_v1_4/classes.rb +1285 -0
  38. data/generated/google/apis/adsense_v1_4/representations.rb +494 -0
  39. data/generated/google/apis/adsense_v1_4/service.rb +1714 -0
  40. data/generated/google/apis/adsense_v1_4.rb +38 -0
  41. data/generated/google/apis/adsensehost_v4_1/classes.rb +834 -0
  42. data/generated/google/apis/adsensehost_v4_1/representations.rb +327 -0
  43. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  44. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  45. data/generated/google/apis/analytics_v3/classes.rb +5118 -0
  46. data/generated/google/apis/analytics_v3/representations.rb +1662 -0
  47. data/generated/google/apis/analytics_v3/service.rb +3568 -0
  48. data/generated/google/apis/analytics_v3.rb +49 -0
  49. data/generated/google/apis/androidenterprise_v1/classes.rb +1443 -0
  50. data/generated/google/apis/androidenterprise_v1/representations.rb +538 -0
  51. data/generated/google/apis/androidenterprise_v1/service.rb +2602 -0
  52. data/generated/google/apis/androidenterprise_v1.rb +35 -0
  53. data/generated/google/apis/androidpublisher_v2/classes.rb +1411 -0
  54. data/generated/google/apis/androidpublisher_v2/representations.rb +646 -0
  55. data/generated/google/apis/androidpublisher_v2/service.rb +2338 -0
  56. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  57. data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
  58. data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
  59. data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
  60. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  61. data/generated/google/apis/appsactivity_v1/classes.rb +392 -0
  62. data/generated/google/apis/appsactivity_v1/representations.rb +184 -0
  63. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  64. data/generated/google/apis/appsactivity_v1.rb +46 -0
  65. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  66. data/generated/google/apis/appstate_v1/representations.rb +79 -0
  67. data/generated/google/apis/appstate_v1/service.rb +260 -0
  68. data/generated/google/apis/appstate_v1.rb +34 -0
  69. data/generated/google/apis/autoscaler_v1beta2/classes.rb +747 -0
  70. data/generated/google/apis/autoscaler_v1beta2/representations.rb +281 -0
  71. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  72. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  73. data/generated/google/apis/bigquery_v2/classes.rb +2471 -0
  74. data/generated/google/apis/bigquery_v2/representations.rb +816 -0
  75. data/generated/google/apis/bigquery_v2/service.rb +982 -0
  76. data/generated/google/apis/bigquery_v2.rb +52 -0
  77. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  78. data/generated/google/apis/blogger_v3/representations.rb +562 -0
  79. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  80. data/generated/google/apis/blogger_v3.rb +37 -0
  81. data/generated/google/apis/books_v1/classes.rb +3956 -0
  82. data/generated/google/apis/books_v1/representations.rb +1538 -0
  83. data/generated/google/apis/books_v1/service.rb +2290 -0
  84. data/generated/google/apis/books_v1.rb +34 -0
  85. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  86. data/generated/google/apis/calendar_v3/representations.rb +567 -0
  87. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  88. data/generated/google/apis/calendar_v3.rb +37 -0
  89. data/generated/google/apis/civicinfo_v2/classes.rb +1127 -0
  90. data/generated/google/apis/civicinfo_v2/representations.rb +383 -0
  91. data/generated/google/apis/civicinfo_v2/service.rb +279 -0
  92. data/{lib/google/api_client/service_account.rb → generated/google/apis/civicinfo_v2.rb} +18 -8
  93. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  94. data/generated/google/apis/classroom_v1/representations.rb +217 -0
  95. data/generated/google/apis/classroom_v1/service.rb +970 -0
  96. data/generated/google/apis/classroom_v1.rb +49 -0
  97. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  98. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  99. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  100. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  101. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  102. data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
  103. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  104. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  105. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  106. data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
  107. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  108. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  109. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  110. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +311 -0
  111. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  112. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  113. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +437 -0
  114. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +188 -0
  115. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +623 -0
  116. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  117. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  118. data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
  119. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  120. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  121. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  122. data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
  123. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  124. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  125. data/generated/google/apis/compute_beta/classes.rb +9128 -0
  126. data/generated/google/apis/compute_beta/representations.rb +3048 -0
  127. data/generated/google/apis/compute_beta/service.rb +10154 -0
  128. data/generated/google/apis/compute_beta.rb +49 -0
  129. data/generated/google/apis/compute_v1/classes.rb +8681 -0
  130. data/generated/google/apis/compute_v1/representations.rb +2895 -0
  131. data/generated/google/apis/compute_v1/service.rb +9252 -0
  132. data/generated/google/apis/compute_v1.rb +49 -0
  133. data/generated/google/apis/container_v1/classes.rb +463 -0
  134. data/generated/google/apis/container_v1/representations.rb +175 -0
  135. data/generated/google/apis/container_v1/service.rb +367 -0
  136. data/generated/google/apis/container_v1.rb +35 -0
  137. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  138. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  139. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  140. data/generated/google/apis/container_v1beta1.rb +35 -0
  141. data/generated/google/apis/content_v2/classes.rb +5986 -0
  142. data/generated/google/apis/content_v2/representations.rb +2288 -0
  143. data/generated/google/apis/content_v2/service.rb +2338 -0
  144. data/generated/google/apis/content_v2.rb +35 -0
  145. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  146. data/generated/google/apis/coordinate_v1/representations.rb +285 -0
  147. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  148. data/generated/google/apis/coordinate_v1.rb +37 -0
  149. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  150. data/generated/google/apis/customsearch_v1/representations.rb +276 -0
  151. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  152. data/{lib/google/api_client/auth/compute_service_account.rb → generated/google/apis/customsearch_v1.rb} +13 -10
  153. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  154. data/generated/google/apis/datastore_v1beta2/representations.rb +526 -0
  155. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  156. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  157. data/generated/google/apis/deploymentmanager_v2/classes.rb +1091 -0
  158. data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
  159. data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
  160. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  161. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  162. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  163. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  164. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  165. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  166. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  167. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  168. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  169. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  170. data/generated/google/apis/discovery_v1/representations.rb +357 -0
  171. data/generated/google/apis/discovery_v1/service.rb +142 -0
  172. data/generated/google/apis/discovery_v1.rb +32 -0
  173. data/generated/google/apis/dns_v1/classes.rb +406 -0
  174. data/generated/google/apis/dns_v1/representations.rb +151 -0
  175. data/generated/google/apis/dns_v1/service.rb +454 -0
  176. data/generated/google/apis/dns_v1.rb +44 -0
  177. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +716 -0
  178. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +298 -0
  179. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +341 -0
  180. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  181. data/generated/google/apis/doubleclicksearch_v2/classes.rb +956 -0
  182. data/generated/google/apis/doubleclicksearch_v2/representations.rb +316 -0
  183. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  184. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  185. data/generated/google/apis/drive_v2/classes.rb +2562 -0
  186. data/generated/google/apis/drive_v2/representations.rb +795 -0
  187. data/generated/google/apis/drive_v2/service.rb +2696 -0
  188. data/generated/google/apis/drive_v2.rb +58 -0
  189. data/generated/google/apis/drive_v3/classes.rb +1534 -0
  190. data/generated/google/apis/drive_v3/representations.rb +497 -0
  191. data/generated/google/apis/drive_v3/service.rb +1541 -0
  192. data/generated/google/apis/drive_v3.rb +55 -0
  193. data/generated/google/apis/fitness_v1/classes.rb +885 -0
  194. data/generated/google/apis/fitness_v1/representations.rb +320 -0
  195. data/generated/google/apis/fitness_v1/service.rb +675 -0
  196. data/generated/google/apis/fitness_v1.rb +49 -0
  197. data/generated/google/apis/fusiontables_v2/classes.rb +1048 -0
  198. data/generated/google/apis/fusiontables_v2/representations.rb +409 -0
  199. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  200. data/generated/google/apis/fusiontables_v2.rb +37 -0
  201. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  202. data/generated/google/apis/games_configuration_v1configuration/representations.rb +206 -0
  203. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  204. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  205. data/generated/google/apis/games_management_v1management/classes.rb +524 -0
  206. data/generated/google/apis/games_management_v1management/representations.rb +231 -0
  207. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  208. data/generated/google/apis/games_management_v1management.rb +37 -0
  209. data/generated/google/apis/games_v1/classes.rb +4617 -0
  210. data/generated/google/apis/games_v1/representations.rb +1584 -0
  211. data/generated/google/apis/games_v1/service.rb +2290 -0
  212. data/generated/google/apis/games_v1.rb +40 -0
  213. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  214. data/generated/google/apis/gan_v1beta1/representations.rb +428 -0
  215. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  216. data/generated/google/apis/gan_v1beta1.rb +31 -0
  217. data/generated/google/apis/genomics_v1/classes.rb +2609 -0
  218. data/generated/google/apis/genomics_v1/representations.rb +909 -0
  219. data/generated/google/apis/genomics_v1/service.rb +1676 -0
  220. data/generated/google/apis/genomics_v1.rb +49 -0
  221. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  222. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  223. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  224. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  225. data/generated/google/apis/gmail_v1/classes.rb +794 -0
  226. data/generated/google/apis/gmail_v1/representations.rb +339 -0
  227. data/generated/google/apis/gmail_v1/service.rb +1470 -0
  228. data/generated/google/apis/gmail_v1.rb +52 -0
  229. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  230. data/generated/google/apis/groupsmigration_v1/representations.rb +38 -0
  231. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  232. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  233. data/generated/google/apis/groupssettings_v1/classes.rb +221 -0
  234. data/generated/google/apis/groupssettings_v1/representations.rb +64 -0
  235. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  236. data/generated/google/apis/groupssettings_v1.rb +34 -0
  237. data/generated/google/apis/identitytoolkit_v3/classes.rb +1466 -0
  238. data/generated/google/apis/identitytoolkit_v3/representations.rb +509 -0
  239. data/generated/google/apis/identitytoolkit_v3/service.rb +581 -0
  240. data/generated/google/apis/identitytoolkit_v3.rb +31 -0
  241. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  242. data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
  243. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  244. data/{spec/google/api_client/request_spec.rb → generated/google/apis/kgsearch_v1.rb} +16 -13
  245. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  246. data/generated/google/apis/licensing_v1/representations.rb +68 -0
  247. data/generated/google/apis/licensing_v1/service.rb +369 -0
  248. data/generated/google/apis/licensing_v1.rb +34 -0
  249. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  250. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  251. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  252. data/generated/google/apis/logging_v1beta3.rb +47 -0
  253. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  254. data/generated/google/apis/manager_v1beta2/representations.rb +536 -0
  255. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  256. data/generated/google/apis/manager_v1beta2.rb +53 -0
  257. data/generated/google/apis/mapsengine_v1/classes.rb +2873 -0
  258. data/generated/google/apis/mapsengine_v1/representations.rb +1235 -0
  259. data/generated/google/apis/mapsengine_v1/service.rb +3388 -0
  260. data/generated/google/apis/mapsengine_v1.rb +38 -0
  261. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  262. data/generated/google/apis/mirror_v1/representations.rb +350 -0
  263. data/generated/google/apis/mirror_v1/service.rb +977 -0
  264. data/generated/google/apis/mirror_v1.rb +37 -0
  265. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  266. data/generated/google/apis/oauth2_v2/representations.rb +94 -0
  267. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  268. data/generated/google/apis/oauth2_v2.rb +43 -0
  269. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  270. data/generated/google/apis/pagespeedonline_v2/representations.rb +244 -0
  271. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  272. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  273. data/generated/google/apis/partners_v2/classes.rb +942 -0
  274. data/generated/google/apis/partners_v2/representations.rb +402 -0
  275. data/generated/google/apis/partners_v2/service.rb +400 -0
  276. data/generated/google/apis/partners_v2.rb +32 -0
  277. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  278. data/generated/google/apis/plus_domains_v1/representations.rb +987 -0
  279. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  280. data/generated/google/apis/plus_domains_v1.rb +61 -0
  281. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  282. data/generated/google/apis/plus_v1/representations.rb +805 -0
  283. data/generated/google/apis/plus_v1/service.rb +470 -0
  284. data/generated/google/apis/plus_v1.rb +43 -0
  285. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  286. data/generated/google/apis/prediction_v1_6/representations.rb +327 -0
  287. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  288. data/generated/google/apis/prediction_v1_6.rb +44 -0
  289. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  290. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
  291. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  292. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  293. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  294. data/generated/google/apis/pubsub_v1/representations.rb +281 -0
  295. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  296. data/generated/google/apis/pubsub_v1.rb +37 -0
  297. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  298. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  299. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  300. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  301. data/generated/google/apis/qpx_express_v1/classes.rb +1268 -0
  302. data/generated/google/apis/qpx_express_v1/representations.rb +424 -0
  303. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  304. data/generated/google/apis/qpx_express_v1.rb +31 -0
  305. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  306. data/generated/google/apis/replicapool_v1beta2/representations.rb +236 -0
  307. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  308. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  309. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  310. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +264 -0
  311. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +508 -0
  312. data/generated/google/apis/replicapoolupdater_v1beta1.rb +44 -0
  313. data/generated/google/apis/reseller_v1/classes.rb +520 -0
  314. data/generated/google/apis/reseller_v1/representations.rb +200 -0
  315. data/generated/google/apis/reseller_v1/service.rb +623 -0
  316. data/generated/google/apis/reseller_v1.rb +37 -0
  317. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  318. data/generated/google/apis/resourceviews_v1beta2/representations.rb +269 -0
  319. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  320. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  321. data/generated/google/apis/script_v1/classes.rb +259 -0
  322. data/generated/google/apis/script_v1/representations.rb +106 -0
  323. data/generated/google/apis/script_v1/service.rb +98 -0
  324. data/generated/google/apis/script_v1.rb +61 -0
  325. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  326. data/generated/google/apis/site_verification_v1/representations.rb +101 -0
  327. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  328. data/generated/google/apis/site_verification_v1.rb +37 -0
  329. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2001 -0
  330. data/generated/google/apis/sqladmin_v1beta4/representations.rb +758 -0
  331. data/generated/google/apis/sqladmin_v1beta4/service.rb +1625 -0
  332. data/generated/google/apis/sqladmin_v1beta4.rb +37 -0
  333. data/generated/google/apis/storage_v1/classes.rb +1222 -0
  334. data/generated/google/apis/storage_v1/representations.rb +445 -0
  335. data/generated/google/apis/storage_v1/service.rb +1903 -0
  336. data/generated/google/apis/storage_v1.rb +46 -0
  337. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  338. data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
  339. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  340. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  341. data/generated/google/apis/tagmanager_v1/classes.rb +1384 -0
  342. data/generated/google/apis/tagmanager_v1/representations.rb +515 -0
  343. data/generated/google/apis/tagmanager_v1/service.rb +1817 -0
  344. data/generated/google/apis/tagmanager_v1.rb +52 -0
  345. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  346. data/generated/google/apis/taskqueue_v1beta2/representations.rb +114 -0
  347. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  348. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  349. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  350. data/generated/google/apis/tasks_v1/representations.rb +115 -0
  351. data/generated/google/apis/tasks_v1/service.rb +643 -0
  352. data/generated/google/apis/tasks_v1.rb +37 -0
  353. data/generated/google/apis/translate_v2/classes.rb +168 -0
  354. data/generated/google/apis/translate_v2/representations.rb +109 -0
  355. data/generated/google/apis/translate_v2/service.rb +182 -0
  356. data/generated/google/apis/translate_v2.rb +31 -0
  357. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  358. data/generated/google/apis/urlshortener_v1/representations.rb +111 -0
  359. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  360. data/generated/google/apis/urlshortener_v1.rb +34 -0
  361. data/generated/google/apis/webmasters_v3/classes.rb +563 -0
  362. data/generated/google/apis/webmasters_v3/representations.rb +250 -0
  363. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  364. data/generated/google/apis/webmasters_v3.rb +37 -0
  365. data/generated/google/apis/youtube_analytics_v1/classes.rb +546 -0
  366. data/generated/google/apis/youtube_analytics_v1/representations.rb +243 -0
  367. data/generated/google/apis/youtube_analytics_v1/service.rb +562 -0
  368. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  369. data/generated/google/apis/youtube_v3/classes.rb +8136 -0
  370. data/generated/google/apis/youtube_v3/representations.rb +2838 -0
  371. data/generated/google/apis/youtube_v3/service.rb +4403 -0
  372. data/generated/google/apis/youtube_v3.rb +49 -0
  373. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  374. data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
  375. data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
  376. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  377. data/google-api-client.gemspec +27 -39
  378. data/lib/google/api_client/auth/installed_app.rb +7 -5
  379. data/lib/google/api_client/auth/key_utils.rb +12 -11
  380. data/lib/google/api_client/auth/storage.rb +5 -2
  381. data/lib/google/api_client/auth/storages/file_store.rb +2 -3
  382. data/lib/google/api_client/auth/storages/redis_store.rb +7 -2
  383. data/lib/google/api_client/client_secrets.rb +4 -5
  384. data/lib/google/apis/core/api_command.rb +135 -0
  385. data/lib/google/apis/core/base_service.rb +317 -0
  386. data/lib/google/apis/core/batch.rb +239 -0
  387. data/lib/google/apis/core/download.rb +94 -0
  388. data/lib/google/apis/core/hashable.rb +44 -0
  389. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  390. data/lib/google/apis/core/http_command.rb +312 -0
  391. data/lib/google/apis/core/json_representation.rb +127 -0
  392. data/lib/google/{api_client/version.rb → apis/core/logging.rb} +12 -8
  393. data/lib/google/apis/core/multipart.rb +187 -0
  394. data/lib/google/apis/core/upload.rb +288 -0
  395. data/lib/google/{api_client → apis}/errors.rb +39 -28
  396. data/lib/google/apis/generator/annotator.rb +295 -0
  397. data/lib/google/apis/generator/helpers.rb +74 -0
  398. data/lib/google/apis/generator/model.rb +143 -0
  399. data/lib/google/apis/generator/template.rb +124 -0
  400. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  401. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  402. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  403. data/lib/google/apis/generator/templates/_representation_stub.tmpl +15 -0
  404. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  405. data/lib/google/{api_client/reference.rb → apis/generator/templates/classes.rb.tmpl} +11 -9
  406. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  407. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  408. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  409. data/lib/google/apis/generator.rb +70 -0
  410. data/lib/google/apis/options.rb +85 -0
  411. data/lib/google/apis/version.rb +39 -0
  412. data/lib/google/apis.rb +48 -0
  413. data/rakelib/metrics.rake +22 -0
  414. data/rakelib/rubocop.rake +10 -0
  415. data/rakelib/spec.rake +11 -0
  416. data/rakelib/yard.rake +11 -0
  417. data/samples/Gemfile +7 -0
  418. data/samples/README.md +51 -0
  419. data/samples/google-api-samples +32 -0
  420. data/samples/lib/base_cli.rb +94 -0
  421. data/samples/lib/samples/analytics.rb +62 -0
  422. data/samples/lib/samples/calendar.rb +83 -0
  423. data/samples/lib/samples/drive.rb +82 -0
  424. data/samples/lib/samples/gmail.rb +50 -0
  425. data/samples/lib/samples/pubsub.rb +114 -0
  426. data/samples/lib/samples/translate.rb +44 -0
  427. data/samples/lib/samples/you_tube.rb +44 -0
  428. data/script/generate +95 -0
  429. data/script/package +8 -0
  430. data/script/release +15 -0
  431. data/spec/fixtures/files/api_names.yaml +3 -0
  432. data/spec/fixtures/files/auth_stored_credentials.json +8 -0
  433. data/spec/fixtures/files/child/.gitignore +0 -0
  434. data/spec/fixtures/files/client_secrets.json +1 -0
  435. data/spec/fixtures/files/invalid.json +1 -0
  436. data/spec/fixtures/files/test.blah +1 -0
  437. data/spec/fixtures/files/test.txt +1 -0
  438. data/spec/fixtures/files/test_api.json +440 -0
  439. data/spec/google/api_client/auth/storage_spec.rb +1 -3
  440. data/spec/google/api_client/auth/storages/file_store_spec.rb +1 -2
  441. data/spec/google/api_client/auth/storages/redis_store_spec.rb +1 -3
  442. data/spec/google/api_client/client_secrets_spec.rb +38 -1
  443. data/spec/google/apis/core/api_command_spec.rb +209 -0
  444. data/spec/google/apis/core/batch_spec.rb +142 -0
  445. data/spec/google/apis/core/download_spec.rb +103 -0
  446. data/spec/google/apis/core/hashable_spec.rb +60 -0
  447. data/spec/google/apis/core/http_command_spec.rb +284 -0
  448. data/spec/google/apis/core/json_representation_spec.rb +192 -0
  449. data/spec/google/apis/core/service_spec.rb +247 -0
  450. data/spec/google/apis/core/upload_spec.rb +300 -0
  451. data/{lib/google/api_client/discovery.rb → spec/google/apis/generated_spec.rb} +13 -5
  452. data/spec/google/apis/generator/generator_spec.rb +272 -0
  453. data/spec/google/apis/logging_spec.rb +45 -0
  454. data/spec/google/apis/options_spec.rb +40 -0
  455. data/spec/integration_tests/adsense_spec.rb +29 -0
  456. data/spec/integration_tests/drive_spec.rb +35 -0
  457. data/spec/integration_tests/pubsub_spec.rb +48 -0
  458. data/spec/integration_tests/url_shortener_spec.rb +45 -0
  459. data/spec/spec_helper/load_path_spec.rb +33 -0
  460. data/spec/spec_helper.rb +131 -44
  461. data/third_party/hurley_patches.rb +103 -0
  462. metadata +533 -170
  463. data/lib/compat/multi_json.rb +0 -19
  464. data/lib/google/api_client/auth/file_storage.rb +0 -59
  465. data/lib/google/api_client/auth/jwt_asserter.rb +0 -126
  466. data/lib/google/api_client/auth/pkcs12.rb +0 -41
  467. data/lib/google/api_client/batch.rb +0 -325
  468. data/lib/google/api_client/charset.rb +0 -33
  469. data/lib/google/api_client/discovery/api.rb +0 -300
  470. data/lib/google/api_client/discovery/media.rb +0 -77
  471. data/lib/google/api_client/discovery/method.rb +0 -363
  472. data/lib/google/api_client/discovery/resource.rb +0 -156
  473. data/lib/google/api_client/discovery/schema.rb +0 -119
  474. data/lib/google/api_client/environment.rb +0 -42
  475. data/lib/google/api_client/gzip.rb +0 -28
  476. data/lib/google/api_client/logging.rb +0 -32
  477. data/lib/google/api_client/media.rb +0 -259
  478. data/lib/google/api_client/railtie.rb +0 -18
  479. data/lib/google/api_client/request.rb +0 -350
  480. data/lib/google/api_client/result.rb +0 -255
  481. data/lib/google/api_client/service/batch.rb +0 -110
  482. data/lib/google/api_client/service/request.rb +0 -144
  483. data/lib/google/api_client/service/resource.rb +0 -40
  484. data/lib/google/api_client/service/result.rb +0 -162
  485. data/lib/google/api_client/service/simple_file_store.rb +0 -151
  486. data/lib/google/api_client/service/stub_generator.rb +0 -61
  487. data/lib/google/api_client/service.rb +0 -233
  488. data/lib/google/api_client.rb +0 -750
  489. data/spec/google/api_client/batch_spec.rb +0 -248
  490. data/spec/google/api_client/discovery_spec.rb +0 -662
  491. data/spec/google/api_client/gzip_spec.rb +0 -98
  492. data/spec/google/api_client/media_spec.rb +0 -178
  493. data/spec/google/api_client/result_spec.rb +0 -207
  494. data/spec/google/api_client/service_account_spec.rb +0 -169
  495. data/spec/google/api_client/service_spec.rb +0 -618
  496. data/spec/google/api_client/simple_file_store_spec.rb +0 -133
  497. data/spec/google/api_client_spec.rb +0 -352
@@ -0,0 +1,1817 @@
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/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module TagmanagerV1
23
+ # Tag Manager API
24
+ #
25
+ # API for accessing Tag Manager accounts and containers.
26
+ #
27
+ # @example
28
+ # require 'google/apis/tagmanager_v1'
29
+ #
30
+ # Tagmanager = Google::Apis::TagmanagerV1 # Alias the module
31
+ # service = Tagmanager::TagManagerService.new
32
+ #
33
+ # @see https://developers.google.com/tag-manager/api/v1/
34
+ class TagManagerService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ # Overrides userIp if both are provided.
44
+ attr_accessor :quota_user
45
+
46
+ # @return [String]
47
+ # IP address of the site where the request originates. Use this if you want to
48
+ # enforce per-user limits.
49
+ attr_accessor :user_ip
50
+
51
+ def initialize
52
+ super('https://www.googleapis.com/', 'tagmanager/v1/')
53
+ end
54
+
55
+ # Gets a GTM Account.
56
+ # @param [String] account_id
57
+ # The GTM Account ID.
58
+ # @param [String] fields
59
+ # Selector specifying which fields to include in a partial response.
60
+ # @param [String] quota_user
61
+ # Available to use for quota purposes for server-side applications. Can be any
62
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
63
+ # Overrides userIp if both are provided.
64
+ # @param [String] user_ip
65
+ # IP address of the site where the request originates. Use this if you want to
66
+ # enforce per-user limits.
67
+ # @param [Google::Apis::RequestOptions] options
68
+ # Request-specific options
69
+ #
70
+ # @yield [result, err] Result & error if block supplied
71
+ # @yieldparam result [Google::Apis::TagmanagerV1::Account] parsed result object
72
+ # @yieldparam err [StandardError] error object if request failed
73
+ #
74
+ # @return [Google::Apis::TagmanagerV1::Account]
75
+ #
76
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
77
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
78
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
79
+ def get_account(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
80
+ command = make_simple_command(:get, 'accounts/{accountId}', options)
81
+ command.response_representation = Google::Apis::TagmanagerV1::Account::Representation
82
+ command.response_class = Google::Apis::TagmanagerV1::Account
83
+ command.params['accountId'] = account_id unless account_id.nil?
84
+ command.query['fields'] = fields unless fields.nil?
85
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
86
+ command.query['userIp'] = user_ip unless user_ip.nil?
87
+ execute_or_queue_command(command, &block)
88
+ end
89
+
90
+ # Lists all GTM Accounts that a user has access to.
91
+ # @param [String] fields
92
+ # Selector specifying which fields to include in a partial response.
93
+ # @param [String] quota_user
94
+ # Available to use for quota purposes for server-side applications. Can be any
95
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
96
+ # Overrides userIp if both are provided.
97
+ # @param [String] user_ip
98
+ # IP address of the site where the request originates. Use this if you want to
99
+ # enforce per-user limits.
100
+ # @param [Google::Apis::RequestOptions] options
101
+ # Request-specific options
102
+ #
103
+ # @yield [result, err] Result & error if block supplied
104
+ # @yieldparam result [Google::Apis::TagmanagerV1::ListAccountsResponse] parsed result object
105
+ # @yieldparam err [StandardError] error object if request failed
106
+ #
107
+ # @return [Google::Apis::TagmanagerV1::ListAccountsResponse]
108
+ #
109
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
110
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
111
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
112
+ def list_accounts(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
113
+ command = make_simple_command(:get, 'accounts', options)
114
+ command.response_representation = Google::Apis::TagmanagerV1::ListAccountsResponse::Representation
115
+ command.response_class = Google::Apis::TagmanagerV1::ListAccountsResponse
116
+ command.query['fields'] = fields unless fields.nil?
117
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
118
+ command.query['userIp'] = user_ip unless user_ip.nil?
119
+ execute_or_queue_command(command, &block)
120
+ end
121
+
122
+ # Updates a GTM Account.
123
+ # @param [String] account_id
124
+ # The GTM Account ID.
125
+ # @param [Google::Apis::TagmanagerV1::Account] account_object
126
+ # @param [String] fingerprint
127
+ # When provided, this fingerprint must match the fingerprint of the account in
128
+ # storage.
129
+ # @param [String] fields
130
+ # Selector specifying which fields to include in a partial response.
131
+ # @param [String] quota_user
132
+ # Available to use for quota purposes for server-side applications. Can be any
133
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
134
+ # Overrides userIp if both are provided.
135
+ # @param [String] user_ip
136
+ # IP address of the site where the request originates. Use this if you want to
137
+ # enforce per-user limits.
138
+ # @param [Google::Apis::RequestOptions] options
139
+ # Request-specific options
140
+ #
141
+ # @yield [result, err] Result & error if block supplied
142
+ # @yieldparam result [Google::Apis::TagmanagerV1::Account] parsed result object
143
+ # @yieldparam err [StandardError] error object if request failed
144
+ #
145
+ # @return [Google::Apis::TagmanagerV1::Account]
146
+ #
147
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
148
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
149
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
150
+ def update_account(account_id, account_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
151
+ command = make_simple_command(:put, 'accounts/{accountId}', options)
152
+ command.request_representation = Google::Apis::TagmanagerV1::Account::Representation
153
+ command.request_object = account_object
154
+ command.response_representation = Google::Apis::TagmanagerV1::Account::Representation
155
+ command.response_class = Google::Apis::TagmanagerV1::Account
156
+ command.params['accountId'] = account_id unless account_id.nil?
157
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
158
+ command.query['fields'] = fields unless fields.nil?
159
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
160
+ command.query['userIp'] = user_ip unless user_ip.nil?
161
+ execute_or_queue_command(command, &block)
162
+ end
163
+
164
+ # Creates a Container.
165
+ # @param [String] account_id
166
+ # The GTM Account ID.
167
+ # @param [Google::Apis::TagmanagerV1::Container] container_object
168
+ # @param [String] fields
169
+ # Selector specifying which fields to include in a partial response.
170
+ # @param [String] quota_user
171
+ # Available to use for quota purposes for server-side applications. Can be any
172
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
173
+ # Overrides userIp if both are provided.
174
+ # @param [String] user_ip
175
+ # IP address of the site where the request originates. Use this if you want to
176
+ # enforce per-user limits.
177
+ # @param [Google::Apis::RequestOptions] options
178
+ # Request-specific options
179
+ #
180
+ # @yield [result, err] Result & error if block supplied
181
+ # @yieldparam result [Google::Apis::TagmanagerV1::Container] parsed result object
182
+ # @yieldparam err [StandardError] error object if request failed
183
+ #
184
+ # @return [Google::Apis::TagmanagerV1::Container]
185
+ #
186
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
187
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
188
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
189
+ def create_container(account_id, container_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
190
+ command = make_simple_command(:post, 'accounts/{accountId}/containers', options)
191
+ command.request_representation = Google::Apis::TagmanagerV1::Container::Representation
192
+ command.request_object = container_object
193
+ command.response_representation = Google::Apis::TagmanagerV1::Container::Representation
194
+ command.response_class = Google::Apis::TagmanagerV1::Container
195
+ command.params['accountId'] = account_id unless account_id.nil?
196
+ command.query['fields'] = fields unless fields.nil?
197
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
198
+ command.query['userIp'] = user_ip unless user_ip.nil?
199
+ execute_or_queue_command(command, &block)
200
+ end
201
+
202
+ # Deletes a Container.
203
+ # @param [String] account_id
204
+ # The GTM Account ID.
205
+ # @param [String] container_id
206
+ # The GTM Container ID.
207
+ # @param [String] fields
208
+ # Selector specifying which fields to include in a partial response.
209
+ # @param [String] quota_user
210
+ # Available to use for quota purposes for server-side applications. Can be any
211
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
212
+ # Overrides userIp if both are provided.
213
+ # @param [String] user_ip
214
+ # IP address of the site where the request originates. Use this if you want to
215
+ # enforce per-user limits.
216
+ # @param [Google::Apis::RequestOptions] options
217
+ # Request-specific options
218
+ #
219
+ # @yield [result, err] Result & error if block supplied
220
+ # @yieldparam result [NilClass] No result returned for this method
221
+ # @yieldparam err [StandardError] error object if request failed
222
+ #
223
+ # @return [void]
224
+ #
225
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
226
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
227
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
228
+ def delete_container(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
229
+ command = make_simple_command(:delete, 'accounts/{accountId}/containers/{containerId}', options)
230
+ command.params['accountId'] = account_id unless account_id.nil?
231
+ command.params['containerId'] = container_id unless container_id.nil?
232
+ command.query['fields'] = fields unless fields.nil?
233
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
234
+ command.query['userIp'] = user_ip unless user_ip.nil?
235
+ execute_or_queue_command(command, &block)
236
+ end
237
+
238
+ # Gets a Container.
239
+ # @param [String] account_id
240
+ # The GTM Account ID.
241
+ # @param [String] container_id
242
+ # The GTM Container ID.
243
+ # @param [String] fields
244
+ # Selector specifying which fields to include in a partial response.
245
+ # @param [String] quota_user
246
+ # Available to use for quota purposes for server-side applications. Can be any
247
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
248
+ # Overrides userIp if both are provided.
249
+ # @param [String] user_ip
250
+ # IP address of the site where the request originates. Use this if you want to
251
+ # enforce per-user limits.
252
+ # @param [Google::Apis::RequestOptions] options
253
+ # Request-specific options
254
+ #
255
+ # @yield [result, err] Result & error if block supplied
256
+ # @yieldparam result [Google::Apis::TagmanagerV1::Container] parsed result object
257
+ # @yieldparam err [StandardError] error object if request failed
258
+ #
259
+ # @return [Google::Apis::TagmanagerV1::Container]
260
+ #
261
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
262
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
263
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
264
+ def get_container(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
265
+ command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}', options)
266
+ command.response_representation = Google::Apis::TagmanagerV1::Container::Representation
267
+ command.response_class = Google::Apis::TagmanagerV1::Container
268
+ command.params['accountId'] = account_id unless account_id.nil?
269
+ command.params['containerId'] = container_id unless container_id.nil?
270
+ command.query['fields'] = fields unless fields.nil?
271
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
272
+ command.query['userIp'] = user_ip unless user_ip.nil?
273
+ execute_or_queue_command(command, &block)
274
+ end
275
+
276
+ # Lists all Containers that belongs to a GTM Account.
277
+ # @param [String] account_id
278
+ # The GTM Account ID.
279
+ # @param [String] fields
280
+ # Selector specifying which fields to include in a partial response.
281
+ # @param [String] quota_user
282
+ # Available to use for quota purposes for server-side applications. Can be any
283
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
284
+ # Overrides userIp if both are provided.
285
+ # @param [String] user_ip
286
+ # IP address of the site where the request originates. Use this if you want to
287
+ # enforce per-user limits.
288
+ # @param [Google::Apis::RequestOptions] options
289
+ # Request-specific options
290
+ #
291
+ # @yield [result, err] Result & error if block supplied
292
+ # @yieldparam result [Google::Apis::TagmanagerV1::ListContainersResponse] parsed result object
293
+ # @yieldparam err [StandardError] error object if request failed
294
+ #
295
+ # @return [Google::Apis::TagmanagerV1::ListContainersResponse]
296
+ #
297
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
298
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
299
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
300
+ def list_containers(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
301
+ command = make_simple_command(:get, 'accounts/{accountId}/containers', options)
302
+ command.response_representation = Google::Apis::TagmanagerV1::ListContainersResponse::Representation
303
+ command.response_class = Google::Apis::TagmanagerV1::ListContainersResponse
304
+ command.params['accountId'] = account_id unless account_id.nil?
305
+ command.query['fields'] = fields unless fields.nil?
306
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
307
+ command.query['userIp'] = user_ip unless user_ip.nil?
308
+ execute_or_queue_command(command, &block)
309
+ end
310
+
311
+ # Updates a Container.
312
+ # @param [String] account_id
313
+ # The GTM Account ID.
314
+ # @param [String] container_id
315
+ # The GTM Container ID.
316
+ # @param [Google::Apis::TagmanagerV1::Container] container_object
317
+ # @param [String] fingerprint
318
+ # When provided, this fingerprint must match the fingerprint of the container in
319
+ # storage.
320
+ # @param [String] fields
321
+ # Selector specifying which fields to include in a partial response.
322
+ # @param [String] quota_user
323
+ # Available to use for quota purposes for server-side applications. Can be any
324
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
325
+ # Overrides userIp if both are provided.
326
+ # @param [String] user_ip
327
+ # IP address of the site where the request originates. Use this if you want to
328
+ # enforce per-user limits.
329
+ # @param [Google::Apis::RequestOptions] options
330
+ # Request-specific options
331
+ #
332
+ # @yield [result, err] Result & error if block supplied
333
+ # @yieldparam result [Google::Apis::TagmanagerV1::Container] parsed result object
334
+ # @yieldparam err [StandardError] error object if request failed
335
+ #
336
+ # @return [Google::Apis::TagmanagerV1::Container]
337
+ #
338
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
339
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
340
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
341
+ def update_container(account_id, container_id, container_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
342
+ command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}', options)
343
+ command.request_representation = Google::Apis::TagmanagerV1::Container::Representation
344
+ command.request_object = container_object
345
+ command.response_representation = Google::Apis::TagmanagerV1::Container::Representation
346
+ command.response_class = Google::Apis::TagmanagerV1::Container
347
+ command.params['accountId'] = account_id unless account_id.nil?
348
+ command.params['containerId'] = container_id unless container_id.nil?
349
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
350
+ command.query['fields'] = fields unless fields.nil?
351
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
352
+ command.query['userIp'] = user_ip unless user_ip.nil?
353
+ execute_or_queue_command(command, &block)
354
+ end
355
+
356
+ # Creates a GTM Folder.
357
+ # @param [String] account_id
358
+ # The GTM Account ID.
359
+ # @param [String] container_id
360
+ # The GTM Container ID.
361
+ # @param [Google::Apis::TagmanagerV1::Folder] folder_object
362
+ # @param [String] fields
363
+ # Selector specifying which fields to include in a partial response.
364
+ # @param [String] quota_user
365
+ # Available to use for quota purposes for server-side applications. Can be any
366
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
367
+ # Overrides userIp if both are provided.
368
+ # @param [String] user_ip
369
+ # IP address of the site where the request originates. Use this if you want to
370
+ # enforce per-user limits.
371
+ # @param [Google::Apis::RequestOptions] options
372
+ # Request-specific options
373
+ #
374
+ # @yield [result, err] Result & error if block supplied
375
+ # @yieldparam result [Google::Apis::TagmanagerV1::Folder] parsed result object
376
+ # @yieldparam err [StandardError] error object if request failed
377
+ #
378
+ # @return [Google::Apis::TagmanagerV1::Folder]
379
+ #
380
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
381
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
382
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
383
+ def create_account_container_folder(account_id, container_id, folder_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
384
+ command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/folders', options)
385
+ command.request_representation = Google::Apis::TagmanagerV1::Folder::Representation
386
+ command.request_object = folder_object
387
+ command.response_representation = Google::Apis::TagmanagerV1::Folder::Representation
388
+ command.response_class = Google::Apis::TagmanagerV1::Folder
389
+ command.params['accountId'] = account_id unless account_id.nil?
390
+ command.params['containerId'] = container_id unless container_id.nil?
391
+ command.query['fields'] = fields unless fields.nil?
392
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
393
+ command.query['userIp'] = user_ip unless user_ip.nil?
394
+ execute_or_queue_command(command, &block)
395
+ end
396
+
397
+ # Deletes a GTM Folder.
398
+ # @param [String] account_id
399
+ # The GTM Account ID.
400
+ # @param [String] container_id
401
+ # The GTM Container ID.
402
+ # @param [String] folder_id
403
+ # The GTM Folder ID.
404
+ # @param [String] fields
405
+ # Selector specifying which fields to include in a partial response.
406
+ # @param [String] quota_user
407
+ # Available to use for quota purposes for server-side applications. Can be any
408
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
409
+ # Overrides userIp if both are provided.
410
+ # @param [String] user_ip
411
+ # IP address of the site where the request originates. Use this if you want to
412
+ # enforce per-user limits.
413
+ # @param [Google::Apis::RequestOptions] options
414
+ # Request-specific options
415
+ #
416
+ # @yield [result, err] Result & error if block supplied
417
+ # @yieldparam result [NilClass] No result returned for this method
418
+ # @yieldparam err [StandardError] error object if request failed
419
+ #
420
+ # @return [void]
421
+ #
422
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
423
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
424
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
425
+ def delete_account_container_folder(account_id, container_id, folder_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
426
+ command = make_simple_command(:delete, 'accounts/{accountId}/containers/{containerId}/folders/{folderId}', options)
427
+ command.params['accountId'] = account_id unless account_id.nil?
428
+ command.params['containerId'] = container_id unless container_id.nil?
429
+ command.params['folderId'] = folder_id unless folder_id.nil?
430
+ command.query['fields'] = fields unless fields.nil?
431
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
432
+ command.query['userIp'] = user_ip unless user_ip.nil?
433
+ execute_or_queue_command(command, &block)
434
+ end
435
+
436
+ # Gets a GTM Folder.
437
+ # @param [String] account_id
438
+ # The GTM Account ID.
439
+ # @param [String] container_id
440
+ # The GTM Container ID.
441
+ # @param [String] folder_id
442
+ # The GTM Folder ID.
443
+ # @param [String] fields
444
+ # Selector specifying which fields to include in a partial response.
445
+ # @param [String] quota_user
446
+ # Available to use for quota purposes for server-side applications. Can be any
447
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
448
+ # Overrides userIp if both are provided.
449
+ # @param [String] user_ip
450
+ # IP address of the site where the request originates. Use this if you want to
451
+ # enforce per-user limits.
452
+ # @param [Google::Apis::RequestOptions] options
453
+ # Request-specific options
454
+ #
455
+ # @yield [result, err] Result & error if block supplied
456
+ # @yieldparam result [Google::Apis::TagmanagerV1::Folder] parsed result object
457
+ # @yieldparam err [StandardError] error object if request failed
458
+ #
459
+ # @return [Google::Apis::TagmanagerV1::Folder]
460
+ #
461
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
462
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
463
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
464
+ def get_account_container_folder(account_id, container_id, folder_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
465
+ command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/folders/{folderId}', options)
466
+ command.response_representation = Google::Apis::TagmanagerV1::Folder::Representation
467
+ command.response_class = Google::Apis::TagmanagerV1::Folder
468
+ command.params['accountId'] = account_id unless account_id.nil?
469
+ command.params['containerId'] = container_id unless container_id.nil?
470
+ command.params['folderId'] = folder_id unless folder_id.nil?
471
+ command.query['fields'] = fields unless fields.nil?
472
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
473
+ command.query['userIp'] = user_ip unless user_ip.nil?
474
+ execute_or_queue_command(command, &block)
475
+ end
476
+
477
+ # Lists all GTM Folders of a Container.
478
+ # @param [String] account_id
479
+ # The GTM Account ID.
480
+ # @param [String] container_id
481
+ # The GTM Container ID.
482
+ # @param [String] fields
483
+ # Selector specifying which fields to include in a partial response.
484
+ # @param [String] quota_user
485
+ # Available to use for quota purposes for server-side applications. Can be any
486
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
487
+ # Overrides userIp if both are provided.
488
+ # @param [String] user_ip
489
+ # IP address of the site where the request originates. Use this if you want to
490
+ # enforce per-user limits.
491
+ # @param [Google::Apis::RequestOptions] options
492
+ # Request-specific options
493
+ #
494
+ # @yield [result, err] Result & error if block supplied
495
+ # @yieldparam result [Google::Apis::TagmanagerV1::ListFoldersResponse] parsed result object
496
+ # @yieldparam err [StandardError] error object if request failed
497
+ #
498
+ # @return [Google::Apis::TagmanagerV1::ListFoldersResponse]
499
+ #
500
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
501
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
502
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
503
+ def list_account_container_folders(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
504
+ command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/folders', options)
505
+ command.response_representation = Google::Apis::TagmanagerV1::ListFoldersResponse::Representation
506
+ command.response_class = Google::Apis::TagmanagerV1::ListFoldersResponse
507
+ command.params['accountId'] = account_id unless account_id.nil?
508
+ command.params['containerId'] = container_id unless container_id.nil?
509
+ command.query['fields'] = fields unless fields.nil?
510
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
511
+ command.query['userIp'] = user_ip unless user_ip.nil?
512
+ execute_or_queue_command(command, &block)
513
+ end
514
+
515
+ # Updates a GTM Folder.
516
+ # @param [String] account_id
517
+ # The GTM Account ID.
518
+ # @param [String] container_id
519
+ # The GTM Container ID.
520
+ # @param [String] folder_id
521
+ # The GTM Folder ID.
522
+ # @param [Google::Apis::TagmanagerV1::Folder] folder_object
523
+ # @param [String] fingerprint
524
+ # When provided, this fingerprint must match the fingerprint of the folder in
525
+ # storage.
526
+ # @param [String] fields
527
+ # Selector specifying which fields to include in a partial response.
528
+ # @param [String] quota_user
529
+ # Available to use for quota purposes for server-side applications. Can be any
530
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
531
+ # Overrides userIp if both are provided.
532
+ # @param [String] user_ip
533
+ # IP address of the site where the request originates. Use this if you want to
534
+ # enforce per-user limits.
535
+ # @param [Google::Apis::RequestOptions] options
536
+ # Request-specific options
537
+ #
538
+ # @yield [result, err] Result & error if block supplied
539
+ # @yieldparam result [Google::Apis::TagmanagerV1::Folder] parsed result object
540
+ # @yieldparam err [StandardError] error object if request failed
541
+ #
542
+ # @return [Google::Apis::TagmanagerV1::Folder]
543
+ #
544
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
545
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
546
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
547
+ def update_account_container_folder(account_id, container_id, folder_id, folder_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
548
+ command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/folders/{folderId}', options)
549
+ command.request_representation = Google::Apis::TagmanagerV1::Folder::Representation
550
+ command.request_object = folder_object
551
+ command.response_representation = Google::Apis::TagmanagerV1::Folder::Representation
552
+ command.response_class = Google::Apis::TagmanagerV1::Folder
553
+ command.params['accountId'] = account_id unless account_id.nil?
554
+ command.params['containerId'] = container_id unless container_id.nil?
555
+ command.params['folderId'] = folder_id unless folder_id.nil?
556
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
557
+ command.query['fields'] = fields unless fields.nil?
558
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
559
+ command.query['userIp'] = user_ip unless user_ip.nil?
560
+ execute_or_queue_command(command, &block)
561
+ end
562
+
563
+ # List all entities in a GTM Folder.
564
+ # @param [String] account_id
565
+ # The GTM Account ID.
566
+ # @param [String] container_id
567
+ # The GTM Container ID.
568
+ # @param [String] folder_id
569
+ # The GTM Folder ID.
570
+ # @param [String] fields
571
+ # Selector specifying which fields to include in a partial response.
572
+ # @param [String] quota_user
573
+ # Available to use for quota purposes for server-side applications. Can be any
574
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
575
+ # Overrides userIp if both are provided.
576
+ # @param [String] user_ip
577
+ # IP address of the site where the request originates. Use this if you want to
578
+ # enforce per-user limits.
579
+ # @param [Google::Apis::RequestOptions] options
580
+ # Request-specific options
581
+ #
582
+ # @yield [result, err] Result & error if block supplied
583
+ # @yieldparam result [Google::Apis::TagmanagerV1::FolderEntities] parsed result object
584
+ # @yieldparam err [StandardError] error object if request failed
585
+ #
586
+ # @return [Google::Apis::TagmanagerV1::FolderEntities]
587
+ #
588
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
589
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
590
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
591
+ def list_account_container_folder_entities(account_id, container_id, folder_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
592
+ command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/folders/{folderId}/entities', options)
593
+ command.response_representation = Google::Apis::TagmanagerV1::FolderEntities::Representation
594
+ command.response_class = Google::Apis::TagmanagerV1::FolderEntities
595
+ command.params['accountId'] = account_id unless account_id.nil?
596
+ command.params['containerId'] = container_id unless container_id.nil?
597
+ command.params['folderId'] = folder_id unless folder_id.nil?
598
+ command.query['fields'] = fields unless fields.nil?
599
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
600
+ command.query['userIp'] = user_ip unless user_ip.nil?
601
+ execute_or_queue_command(command, &block)
602
+ end
603
+
604
+ # Moves entities to a GTM Folder.
605
+ # @param [String] account_id
606
+ # The GTM Account ID.
607
+ # @param [String] container_id
608
+ # The GTM Container ID.
609
+ # @param [String] folder_id
610
+ # The GTM Folder ID.
611
+ # @param [Array<String>, String] tag_id
612
+ # The tags to be moved to the folder.
613
+ # @param [Array<String>, String] trigger_id
614
+ # The triggers to be moved to the folder.
615
+ # @param [Array<String>, String] variable_id
616
+ # The variables to be moved to the folder.
617
+ # @param [String] fields
618
+ # Selector specifying which fields to include in a partial response.
619
+ # @param [String] quota_user
620
+ # Available to use for quota purposes for server-side applications. Can be any
621
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
622
+ # Overrides userIp if both are provided.
623
+ # @param [String] user_ip
624
+ # IP address of the site where the request originates. Use this if you want to
625
+ # enforce per-user limits.
626
+ # @param [Google::Apis::RequestOptions] options
627
+ # Request-specific options
628
+ #
629
+ # @yield [result, err] Result & error if block supplied
630
+ # @yieldparam result [NilClass] No result returned for this method
631
+ # @yieldparam err [StandardError] error object if request failed
632
+ #
633
+ # @return [void]
634
+ #
635
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
636
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
637
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
638
+ def update_account_container_move_folder(account_id, container_id, folder_id, tag_id: nil, trigger_id: nil, variable_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
639
+ command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/move_folders/{folderId}', options)
640
+ command.params['accountId'] = account_id unless account_id.nil?
641
+ command.params['containerId'] = container_id unless container_id.nil?
642
+ command.params['folderId'] = folder_id unless folder_id.nil?
643
+ command.query['tagId'] = tag_id unless tag_id.nil?
644
+ command.query['triggerId'] = trigger_id unless trigger_id.nil?
645
+ command.query['variableId'] = variable_id unless variable_id.nil?
646
+ command.query['fields'] = fields unless fields.nil?
647
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
648
+ command.query['userIp'] = user_ip unless user_ip.nil?
649
+ execute_or_queue_command(command, &block)
650
+ end
651
+
652
+ # Creates a GTM Tag.
653
+ # @param [String] account_id
654
+ # The GTM Account ID.
655
+ # @param [String] container_id
656
+ # The GTM Container ID.
657
+ # @param [Google::Apis::TagmanagerV1::Tag] tag_object
658
+ # @param [String] fields
659
+ # Selector specifying which fields to include in a partial response.
660
+ # @param [String] quota_user
661
+ # Available to use for quota purposes for server-side applications. Can be any
662
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
663
+ # Overrides userIp if both are provided.
664
+ # @param [String] user_ip
665
+ # IP address of the site where the request originates. Use this if you want to
666
+ # enforce per-user limits.
667
+ # @param [Google::Apis::RequestOptions] options
668
+ # Request-specific options
669
+ #
670
+ # @yield [result, err] Result & error if block supplied
671
+ # @yieldparam result [Google::Apis::TagmanagerV1::Tag] parsed result object
672
+ # @yieldparam err [StandardError] error object if request failed
673
+ #
674
+ # @return [Google::Apis::TagmanagerV1::Tag]
675
+ #
676
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
677
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
678
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
679
+ def create_tag(account_id, container_id, tag_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
680
+ command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/tags', options)
681
+ command.request_representation = Google::Apis::TagmanagerV1::Tag::Representation
682
+ command.request_object = tag_object
683
+ command.response_representation = Google::Apis::TagmanagerV1::Tag::Representation
684
+ command.response_class = Google::Apis::TagmanagerV1::Tag
685
+ command.params['accountId'] = account_id unless account_id.nil?
686
+ command.params['containerId'] = container_id unless container_id.nil?
687
+ command.query['fields'] = fields unless fields.nil?
688
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
689
+ command.query['userIp'] = user_ip unless user_ip.nil?
690
+ execute_or_queue_command(command, &block)
691
+ end
692
+
693
+ # Deletes a GTM Tag.
694
+ # @param [String] account_id
695
+ # The GTM Account ID.
696
+ # @param [String] container_id
697
+ # The GTM Container ID.
698
+ # @param [String] tag_id
699
+ # The GTM Tag ID.
700
+ # @param [String] fields
701
+ # Selector specifying which fields to include in a partial response.
702
+ # @param [String] quota_user
703
+ # Available to use for quota purposes for server-side applications. Can be any
704
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
705
+ # Overrides userIp if both are provided.
706
+ # @param [String] user_ip
707
+ # IP address of the site where the request originates. Use this if you want to
708
+ # enforce per-user limits.
709
+ # @param [Google::Apis::RequestOptions] options
710
+ # Request-specific options
711
+ #
712
+ # @yield [result, err] Result & error if block supplied
713
+ # @yieldparam result [NilClass] No result returned for this method
714
+ # @yieldparam err [StandardError] error object if request failed
715
+ #
716
+ # @return [void]
717
+ #
718
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
719
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
720
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
721
+ def delete_tag(account_id, container_id, tag_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
722
+ command = make_simple_command(:delete, 'accounts/{accountId}/containers/{containerId}/tags/{tagId}', options)
723
+ command.params['accountId'] = account_id unless account_id.nil?
724
+ command.params['containerId'] = container_id unless container_id.nil?
725
+ command.params['tagId'] = tag_id unless tag_id.nil?
726
+ command.query['fields'] = fields unless fields.nil?
727
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
728
+ command.query['userIp'] = user_ip unless user_ip.nil?
729
+ execute_or_queue_command(command, &block)
730
+ end
731
+
732
+ # Gets a GTM Tag.
733
+ # @param [String] account_id
734
+ # The GTM Account ID.
735
+ # @param [String] container_id
736
+ # The GTM Container ID.
737
+ # @param [String] tag_id
738
+ # The GTM Tag ID.
739
+ # @param [String] fields
740
+ # Selector specifying which fields to include in a partial response.
741
+ # @param [String] quota_user
742
+ # Available to use for quota purposes for server-side applications. Can be any
743
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
744
+ # Overrides userIp if both are provided.
745
+ # @param [String] user_ip
746
+ # IP address of the site where the request originates. Use this if you want to
747
+ # enforce per-user limits.
748
+ # @param [Google::Apis::RequestOptions] options
749
+ # Request-specific options
750
+ #
751
+ # @yield [result, err] Result & error if block supplied
752
+ # @yieldparam result [Google::Apis::TagmanagerV1::Tag] parsed result object
753
+ # @yieldparam err [StandardError] error object if request failed
754
+ #
755
+ # @return [Google::Apis::TagmanagerV1::Tag]
756
+ #
757
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
758
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
759
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
760
+ def get_tag(account_id, container_id, tag_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
761
+ command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/tags/{tagId}', options)
762
+ command.response_representation = Google::Apis::TagmanagerV1::Tag::Representation
763
+ command.response_class = Google::Apis::TagmanagerV1::Tag
764
+ command.params['accountId'] = account_id unless account_id.nil?
765
+ command.params['containerId'] = container_id unless container_id.nil?
766
+ command.params['tagId'] = tag_id unless tag_id.nil?
767
+ command.query['fields'] = fields unless fields.nil?
768
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
769
+ command.query['userIp'] = user_ip unless user_ip.nil?
770
+ execute_or_queue_command(command, &block)
771
+ end
772
+
773
+ # Lists all GTM Tags of a Container.
774
+ # @param [String] account_id
775
+ # The GTM Account ID.
776
+ # @param [String] container_id
777
+ # The GTM Container ID.
778
+ # @param [String] fields
779
+ # Selector specifying which fields to include in a partial response.
780
+ # @param [String] quota_user
781
+ # Available to use for quota purposes for server-side applications. Can be any
782
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
783
+ # Overrides userIp if both are provided.
784
+ # @param [String] user_ip
785
+ # IP address of the site where the request originates. Use this if you want to
786
+ # enforce per-user limits.
787
+ # @param [Google::Apis::RequestOptions] options
788
+ # Request-specific options
789
+ #
790
+ # @yield [result, err] Result & error if block supplied
791
+ # @yieldparam result [Google::Apis::TagmanagerV1::ListTagsResponse] parsed result object
792
+ # @yieldparam err [StandardError] error object if request failed
793
+ #
794
+ # @return [Google::Apis::TagmanagerV1::ListTagsResponse]
795
+ #
796
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
797
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
798
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
799
+ def list_tags(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
800
+ command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/tags', options)
801
+ command.response_representation = Google::Apis::TagmanagerV1::ListTagsResponse::Representation
802
+ command.response_class = Google::Apis::TagmanagerV1::ListTagsResponse
803
+ command.params['accountId'] = account_id unless account_id.nil?
804
+ command.params['containerId'] = container_id unless container_id.nil?
805
+ command.query['fields'] = fields unless fields.nil?
806
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
807
+ command.query['userIp'] = user_ip unless user_ip.nil?
808
+ execute_or_queue_command(command, &block)
809
+ end
810
+
811
+ # Updates a GTM Tag.
812
+ # @param [String] account_id
813
+ # The GTM Account ID.
814
+ # @param [String] container_id
815
+ # The GTM Container ID.
816
+ # @param [String] tag_id
817
+ # The GTM Tag ID.
818
+ # @param [Google::Apis::TagmanagerV1::Tag] tag_object
819
+ # @param [String] fingerprint
820
+ # When provided, this fingerprint must match the fingerprint of the tag in
821
+ # storage.
822
+ # @param [String] fields
823
+ # Selector specifying which fields to include in a partial response.
824
+ # @param [String] quota_user
825
+ # Available to use for quota purposes for server-side applications. Can be any
826
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
827
+ # Overrides userIp if both are provided.
828
+ # @param [String] user_ip
829
+ # IP address of the site where the request originates. Use this if you want to
830
+ # enforce per-user limits.
831
+ # @param [Google::Apis::RequestOptions] options
832
+ # Request-specific options
833
+ #
834
+ # @yield [result, err] Result & error if block supplied
835
+ # @yieldparam result [Google::Apis::TagmanagerV1::Tag] parsed result object
836
+ # @yieldparam err [StandardError] error object if request failed
837
+ #
838
+ # @return [Google::Apis::TagmanagerV1::Tag]
839
+ #
840
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
841
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
842
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
843
+ def update_tag(account_id, container_id, tag_id, tag_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
844
+ command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/tags/{tagId}', options)
845
+ command.request_representation = Google::Apis::TagmanagerV1::Tag::Representation
846
+ command.request_object = tag_object
847
+ command.response_representation = Google::Apis::TagmanagerV1::Tag::Representation
848
+ command.response_class = Google::Apis::TagmanagerV1::Tag
849
+ command.params['accountId'] = account_id unless account_id.nil?
850
+ command.params['containerId'] = container_id unless container_id.nil?
851
+ command.params['tagId'] = tag_id unless tag_id.nil?
852
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
853
+ command.query['fields'] = fields unless fields.nil?
854
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
855
+ command.query['userIp'] = user_ip unless user_ip.nil?
856
+ execute_or_queue_command(command, &block)
857
+ end
858
+
859
+ # Creates a GTM Trigger.
860
+ # @param [String] account_id
861
+ # The GTM Account ID.
862
+ # @param [String] container_id
863
+ # The GTM Container ID.
864
+ # @param [Google::Apis::TagmanagerV1::Trigger] trigger_object
865
+ # @param [String] fields
866
+ # Selector specifying which fields to include in a partial response.
867
+ # @param [String] quota_user
868
+ # Available to use for quota purposes for server-side applications. Can be any
869
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
870
+ # Overrides userIp if both are provided.
871
+ # @param [String] user_ip
872
+ # IP address of the site where the request originates. Use this if you want to
873
+ # enforce per-user limits.
874
+ # @param [Google::Apis::RequestOptions] options
875
+ # Request-specific options
876
+ #
877
+ # @yield [result, err] Result & error if block supplied
878
+ # @yieldparam result [Google::Apis::TagmanagerV1::Trigger] parsed result object
879
+ # @yieldparam err [StandardError] error object if request failed
880
+ #
881
+ # @return [Google::Apis::TagmanagerV1::Trigger]
882
+ #
883
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
884
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
885
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
886
+ def create_trigger(account_id, container_id, trigger_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
887
+ command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/triggers', options)
888
+ command.request_representation = Google::Apis::TagmanagerV1::Trigger::Representation
889
+ command.request_object = trigger_object
890
+ command.response_representation = Google::Apis::TagmanagerV1::Trigger::Representation
891
+ command.response_class = Google::Apis::TagmanagerV1::Trigger
892
+ command.params['accountId'] = account_id unless account_id.nil?
893
+ command.params['containerId'] = container_id unless container_id.nil?
894
+ command.query['fields'] = fields unless fields.nil?
895
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
896
+ command.query['userIp'] = user_ip unless user_ip.nil?
897
+ execute_or_queue_command(command, &block)
898
+ end
899
+
900
+ # Deletes a GTM Trigger.
901
+ # @param [String] account_id
902
+ # The GTM Account ID.
903
+ # @param [String] container_id
904
+ # The GTM Container ID.
905
+ # @param [String] trigger_id
906
+ # The GTM Trigger ID.
907
+ # @param [String] fields
908
+ # Selector specifying which fields to include in a partial response.
909
+ # @param [String] quota_user
910
+ # Available to use for quota purposes for server-side applications. Can be any
911
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
912
+ # Overrides userIp if both are provided.
913
+ # @param [String] user_ip
914
+ # IP address of the site where the request originates. Use this if you want to
915
+ # enforce per-user limits.
916
+ # @param [Google::Apis::RequestOptions] options
917
+ # Request-specific options
918
+ #
919
+ # @yield [result, err] Result & error if block supplied
920
+ # @yieldparam result [NilClass] No result returned for this method
921
+ # @yieldparam err [StandardError] error object if request failed
922
+ #
923
+ # @return [void]
924
+ #
925
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
926
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
927
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
928
+ def delete_trigger(account_id, container_id, trigger_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
929
+ command = make_simple_command(:delete, 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', options)
930
+ command.params['accountId'] = account_id unless account_id.nil?
931
+ command.params['containerId'] = container_id unless container_id.nil?
932
+ command.params['triggerId'] = trigger_id unless trigger_id.nil?
933
+ command.query['fields'] = fields unless fields.nil?
934
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
935
+ command.query['userIp'] = user_ip unless user_ip.nil?
936
+ execute_or_queue_command(command, &block)
937
+ end
938
+
939
+ # Gets a GTM Trigger.
940
+ # @param [String] account_id
941
+ # The GTM Account ID.
942
+ # @param [String] container_id
943
+ # The GTM Container ID.
944
+ # @param [String] trigger_id
945
+ # The GTM Trigger ID.
946
+ # @param [String] fields
947
+ # Selector specifying which fields to include in a partial response.
948
+ # @param [String] quota_user
949
+ # Available to use for quota purposes for server-side applications. Can be any
950
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
951
+ # Overrides userIp if both are provided.
952
+ # @param [String] user_ip
953
+ # IP address of the site where the request originates. Use this if you want to
954
+ # enforce per-user limits.
955
+ # @param [Google::Apis::RequestOptions] options
956
+ # Request-specific options
957
+ #
958
+ # @yield [result, err] Result & error if block supplied
959
+ # @yieldparam result [Google::Apis::TagmanagerV1::Trigger] parsed result object
960
+ # @yieldparam err [StandardError] error object if request failed
961
+ #
962
+ # @return [Google::Apis::TagmanagerV1::Trigger]
963
+ #
964
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
965
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
966
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
967
+ def get_trigger(account_id, container_id, trigger_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
968
+ command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', options)
969
+ command.response_representation = Google::Apis::TagmanagerV1::Trigger::Representation
970
+ command.response_class = Google::Apis::TagmanagerV1::Trigger
971
+ command.params['accountId'] = account_id unless account_id.nil?
972
+ command.params['containerId'] = container_id unless container_id.nil?
973
+ command.params['triggerId'] = trigger_id unless trigger_id.nil?
974
+ command.query['fields'] = fields unless fields.nil?
975
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
976
+ command.query['userIp'] = user_ip unless user_ip.nil?
977
+ execute_or_queue_command(command, &block)
978
+ end
979
+
980
+ # Lists all GTM Triggers of a Container.
981
+ # @param [String] account_id
982
+ # The GTM Account ID.
983
+ # @param [String] container_id
984
+ # The GTM Container ID.
985
+ # @param [String] fields
986
+ # Selector specifying which fields to include in a partial response.
987
+ # @param [String] quota_user
988
+ # Available to use for quota purposes for server-side applications. Can be any
989
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
990
+ # Overrides userIp if both are provided.
991
+ # @param [String] user_ip
992
+ # IP address of the site where the request originates. Use this if you want to
993
+ # enforce per-user limits.
994
+ # @param [Google::Apis::RequestOptions] options
995
+ # Request-specific options
996
+ #
997
+ # @yield [result, err] Result & error if block supplied
998
+ # @yieldparam result [Google::Apis::TagmanagerV1::ListTriggersResponse] parsed result object
999
+ # @yieldparam err [StandardError] error object if request failed
1000
+ #
1001
+ # @return [Google::Apis::TagmanagerV1::ListTriggersResponse]
1002
+ #
1003
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1004
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1005
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1006
+ def list_triggers(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1007
+ command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/triggers', options)
1008
+ command.response_representation = Google::Apis::TagmanagerV1::ListTriggersResponse::Representation
1009
+ command.response_class = Google::Apis::TagmanagerV1::ListTriggersResponse
1010
+ command.params['accountId'] = account_id unless account_id.nil?
1011
+ command.params['containerId'] = container_id unless container_id.nil?
1012
+ command.query['fields'] = fields unless fields.nil?
1013
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1014
+ command.query['userIp'] = user_ip unless user_ip.nil?
1015
+ execute_or_queue_command(command, &block)
1016
+ end
1017
+
1018
+ # Updates a GTM Trigger.
1019
+ # @param [String] account_id
1020
+ # The GTM Account ID.
1021
+ # @param [String] container_id
1022
+ # The GTM Container ID.
1023
+ # @param [String] trigger_id
1024
+ # The GTM Trigger ID.
1025
+ # @param [Google::Apis::TagmanagerV1::Trigger] trigger_object
1026
+ # @param [String] fingerprint
1027
+ # When provided, this fingerprint must match the fingerprint of the trigger in
1028
+ # storage.
1029
+ # @param [String] fields
1030
+ # Selector specifying which fields to include in a partial response.
1031
+ # @param [String] quota_user
1032
+ # Available to use for quota purposes for server-side applications. Can be any
1033
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1034
+ # Overrides userIp if both are provided.
1035
+ # @param [String] user_ip
1036
+ # IP address of the site where the request originates. Use this if you want to
1037
+ # enforce per-user limits.
1038
+ # @param [Google::Apis::RequestOptions] options
1039
+ # Request-specific options
1040
+ #
1041
+ # @yield [result, err] Result & error if block supplied
1042
+ # @yieldparam result [Google::Apis::TagmanagerV1::Trigger] parsed result object
1043
+ # @yieldparam err [StandardError] error object if request failed
1044
+ #
1045
+ # @return [Google::Apis::TagmanagerV1::Trigger]
1046
+ #
1047
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1048
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1049
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1050
+ def update_trigger(account_id, container_id, trigger_id, trigger_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1051
+ command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', options)
1052
+ command.request_representation = Google::Apis::TagmanagerV1::Trigger::Representation
1053
+ command.request_object = trigger_object
1054
+ command.response_representation = Google::Apis::TagmanagerV1::Trigger::Representation
1055
+ command.response_class = Google::Apis::TagmanagerV1::Trigger
1056
+ command.params['accountId'] = account_id unless account_id.nil?
1057
+ command.params['containerId'] = container_id unless container_id.nil?
1058
+ command.params['triggerId'] = trigger_id unless trigger_id.nil?
1059
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
1060
+ command.query['fields'] = fields unless fields.nil?
1061
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1062
+ command.query['userIp'] = user_ip unless user_ip.nil?
1063
+ execute_or_queue_command(command, &block)
1064
+ end
1065
+
1066
+ # Creates a GTM Variable.
1067
+ # @param [String] account_id
1068
+ # The GTM Account ID.
1069
+ # @param [String] container_id
1070
+ # The GTM Container ID.
1071
+ # @param [Google::Apis::TagmanagerV1::Variable] variable_object
1072
+ # @param [String] fields
1073
+ # Selector specifying which fields to include in a partial response.
1074
+ # @param [String] quota_user
1075
+ # Available to use for quota purposes for server-side applications. Can be any
1076
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1077
+ # Overrides userIp if both are provided.
1078
+ # @param [String] user_ip
1079
+ # IP address of the site where the request originates. Use this if you want to
1080
+ # enforce per-user limits.
1081
+ # @param [Google::Apis::RequestOptions] options
1082
+ # Request-specific options
1083
+ #
1084
+ # @yield [result, err] Result & error if block supplied
1085
+ # @yieldparam result [Google::Apis::TagmanagerV1::Variable] parsed result object
1086
+ # @yieldparam err [StandardError] error object if request failed
1087
+ #
1088
+ # @return [Google::Apis::TagmanagerV1::Variable]
1089
+ #
1090
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1091
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1092
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1093
+ def create_variable(account_id, container_id, variable_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1094
+ command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/variables', options)
1095
+ command.request_representation = Google::Apis::TagmanagerV1::Variable::Representation
1096
+ command.request_object = variable_object
1097
+ command.response_representation = Google::Apis::TagmanagerV1::Variable::Representation
1098
+ command.response_class = Google::Apis::TagmanagerV1::Variable
1099
+ command.params['accountId'] = account_id unless account_id.nil?
1100
+ command.params['containerId'] = container_id unless container_id.nil?
1101
+ command.query['fields'] = fields unless fields.nil?
1102
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1103
+ command.query['userIp'] = user_ip unless user_ip.nil?
1104
+ execute_or_queue_command(command, &block)
1105
+ end
1106
+
1107
+ # Deletes a GTM Variable.
1108
+ # @param [String] account_id
1109
+ # The GTM Account ID.
1110
+ # @param [String] container_id
1111
+ # The GTM Container ID.
1112
+ # @param [String] variable_id
1113
+ # The GTM Variable ID.
1114
+ # @param [String] fields
1115
+ # Selector specifying which fields to include in a partial response.
1116
+ # @param [String] quota_user
1117
+ # Available to use for quota purposes for server-side applications. Can be any
1118
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1119
+ # Overrides userIp if both are provided.
1120
+ # @param [String] user_ip
1121
+ # IP address of the site where the request originates. Use this if you want to
1122
+ # enforce per-user limits.
1123
+ # @param [Google::Apis::RequestOptions] options
1124
+ # Request-specific options
1125
+ #
1126
+ # @yield [result, err] Result & error if block supplied
1127
+ # @yieldparam result [NilClass] No result returned for this method
1128
+ # @yieldparam err [StandardError] error object if request failed
1129
+ #
1130
+ # @return [void]
1131
+ #
1132
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1133
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1134
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1135
+ def delete_variable(account_id, container_id, variable_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1136
+ command = make_simple_command(:delete, 'accounts/{accountId}/containers/{containerId}/variables/{variableId}', options)
1137
+ command.params['accountId'] = account_id unless account_id.nil?
1138
+ command.params['containerId'] = container_id unless container_id.nil?
1139
+ command.params['variableId'] = variable_id unless variable_id.nil?
1140
+ command.query['fields'] = fields unless fields.nil?
1141
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1142
+ command.query['userIp'] = user_ip unless user_ip.nil?
1143
+ execute_or_queue_command(command, &block)
1144
+ end
1145
+
1146
+ # Gets a GTM Variable.
1147
+ # @param [String] account_id
1148
+ # The GTM Account ID.
1149
+ # @param [String] container_id
1150
+ # The GTM Container ID.
1151
+ # @param [String] variable_id
1152
+ # The GTM Variable ID.
1153
+ # @param [String] fields
1154
+ # Selector specifying which fields to include in a partial response.
1155
+ # @param [String] quota_user
1156
+ # Available to use for quota purposes for server-side applications. Can be any
1157
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1158
+ # Overrides userIp if both are provided.
1159
+ # @param [String] user_ip
1160
+ # IP address of the site where the request originates. Use this if you want to
1161
+ # enforce per-user limits.
1162
+ # @param [Google::Apis::RequestOptions] options
1163
+ # Request-specific options
1164
+ #
1165
+ # @yield [result, err] Result & error if block supplied
1166
+ # @yieldparam result [Google::Apis::TagmanagerV1::Variable] parsed result object
1167
+ # @yieldparam err [StandardError] error object if request failed
1168
+ #
1169
+ # @return [Google::Apis::TagmanagerV1::Variable]
1170
+ #
1171
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1172
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1173
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1174
+ def get_variable(account_id, container_id, variable_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1175
+ command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/variables/{variableId}', options)
1176
+ command.response_representation = Google::Apis::TagmanagerV1::Variable::Representation
1177
+ command.response_class = Google::Apis::TagmanagerV1::Variable
1178
+ command.params['accountId'] = account_id unless account_id.nil?
1179
+ command.params['containerId'] = container_id unless container_id.nil?
1180
+ command.params['variableId'] = variable_id unless variable_id.nil?
1181
+ command.query['fields'] = fields unless fields.nil?
1182
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1183
+ command.query['userIp'] = user_ip unless user_ip.nil?
1184
+ execute_or_queue_command(command, &block)
1185
+ end
1186
+
1187
+ # Lists all GTM Variables of a Container.
1188
+ # @param [String] account_id
1189
+ # The GTM Account ID.
1190
+ # @param [String] container_id
1191
+ # The GTM Container ID.
1192
+ # @param [String] fields
1193
+ # Selector specifying which fields to include in a partial response.
1194
+ # @param [String] quota_user
1195
+ # Available to use for quota purposes for server-side applications. Can be any
1196
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1197
+ # Overrides userIp if both are provided.
1198
+ # @param [String] user_ip
1199
+ # IP address of the site where the request originates. Use this if you want to
1200
+ # enforce per-user limits.
1201
+ # @param [Google::Apis::RequestOptions] options
1202
+ # Request-specific options
1203
+ #
1204
+ # @yield [result, err] Result & error if block supplied
1205
+ # @yieldparam result [Google::Apis::TagmanagerV1::ListVariablesResponse] parsed result object
1206
+ # @yieldparam err [StandardError] error object if request failed
1207
+ #
1208
+ # @return [Google::Apis::TagmanagerV1::ListVariablesResponse]
1209
+ #
1210
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1211
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1212
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1213
+ def list_variables(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1214
+ command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/variables', options)
1215
+ command.response_representation = Google::Apis::TagmanagerV1::ListVariablesResponse::Representation
1216
+ command.response_class = Google::Apis::TagmanagerV1::ListVariablesResponse
1217
+ command.params['accountId'] = account_id unless account_id.nil?
1218
+ command.params['containerId'] = container_id unless container_id.nil?
1219
+ command.query['fields'] = fields unless fields.nil?
1220
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1221
+ command.query['userIp'] = user_ip unless user_ip.nil?
1222
+ execute_or_queue_command(command, &block)
1223
+ end
1224
+
1225
+ # Updates a GTM Variable.
1226
+ # @param [String] account_id
1227
+ # The GTM Account ID.
1228
+ # @param [String] container_id
1229
+ # The GTM Container ID.
1230
+ # @param [String] variable_id
1231
+ # The GTM Variable ID.
1232
+ # @param [Google::Apis::TagmanagerV1::Variable] variable_object
1233
+ # @param [String] fingerprint
1234
+ # When provided, this fingerprint must match the fingerprint of the variable in
1235
+ # storage.
1236
+ # @param [String] fields
1237
+ # Selector specifying which fields to include in a partial response.
1238
+ # @param [String] quota_user
1239
+ # Available to use for quota purposes for server-side applications. Can be any
1240
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1241
+ # Overrides userIp if both are provided.
1242
+ # @param [String] user_ip
1243
+ # IP address of the site where the request originates. Use this if you want to
1244
+ # enforce per-user limits.
1245
+ # @param [Google::Apis::RequestOptions] options
1246
+ # Request-specific options
1247
+ #
1248
+ # @yield [result, err] Result & error if block supplied
1249
+ # @yieldparam result [Google::Apis::TagmanagerV1::Variable] parsed result object
1250
+ # @yieldparam err [StandardError] error object if request failed
1251
+ #
1252
+ # @return [Google::Apis::TagmanagerV1::Variable]
1253
+ #
1254
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1255
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1256
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1257
+ def update_variable(account_id, container_id, variable_id, variable_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1258
+ command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/variables/{variableId}', options)
1259
+ command.request_representation = Google::Apis::TagmanagerV1::Variable::Representation
1260
+ command.request_object = variable_object
1261
+ command.response_representation = Google::Apis::TagmanagerV1::Variable::Representation
1262
+ command.response_class = Google::Apis::TagmanagerV1::Variable
1263
+ command.params['accountId'] = account_id unless account_id.nil?
1264
+ command.params['containerId'] = container_id unless container_id.nil?
1265
+ command.params['variableId'] = variable_id unless variable_id.nil?
1266
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
1267
+ command.query['fields'] = fields unless fields.nil?
1268
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1269
+ command.query['userIp'] = user_ip unless user_ip.nil?
1270
+ execute_or_queue_command(command, &block)
1271
+ end
1272
+
1273
+ # Creates a Container Version.
1274
+ # @param [String] account_id
1275
+ # The GTM Account ID.
1276
+ # @param [String] container_id
1277
+ # The GTM Container ID.
1278
+ # @param [Google::Apis::TagmanagerV1::CreateContainerVersionRequestVersionOptions] create_container_version_request_version_options_object
1279
+ # @param [String] fields
1280
+ # Selector specifying which fields to include in a partial response.
1281
+ # @param [String] quota_user
1282
+ # Available to use for quota purposes for server-side applications. Can be any
1283
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1284
+ # Overrides userIp if both are provided.
1285
+ # @param [String] user_ip
1286
+ # IP address of the site where the request originates. Use this if you want to
1287
+ # enforce per-user limits.
1288
+ # @param [Google::Apis::RequestOptions] options
1289
+ # Request-specific options
1290
+ #
1291
+ # @yield [result, err] Result & error if block supplied
1292
+ # @yieldparam result [Google::Apis::TagmanagerV1::CreateContainerVersionResponse] parsed result object
1293
+ # @yieldparam err [StandardError] error object if request failed
1294
+ #
1295
+ # @return [Google::Apis::TagmanagerV1::CreateContainerVersionResponse]
1296
+ #
1297
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1298
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1299
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1300
+ def create_version(account_id, container_id, create_container_version_request_version_options_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1301
+ command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/versions', options)
1302
+ command.request_representation = Google::Apis::TagmanagerV1::CreateContainerVersionRequestVersionOptions::Representation
1303
+ command.request_object = create_container_version_request_version_options_object
1304
+ command.response_representation = Google::Apis::TagmanagerV1::CreateContainerVersionResponse::Representation
1305
+ command.response_class = Google::Apis::TagmanagerV1::CreateContainerVersionResponse
1306
+ command.params['accountId'] = account_id unless account_id.nil?
1307
+ command.params['containerId'] = container_id unless container_id.nil?
1308
+ command.query['fields'] = fields unless fields.nil?
1309
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1310
+ command.query['userIp'] = user_ip unless user_ip.nil?
1311
+ execute_or_queue_command(command, &block)
1312
+ end
1313
+
1314
+ # Deletes a Container Version.
1315
+ # @param [String] account_id
1316
+ # The GTM Account ID.
1317
+ # @param [String] container_id
1318
+ # The GTM Container ID.
1319
+ # @param [String] container_version_id
1320
+ # The GTM Container Version ID.
1321
+ # @param [String] fields
1322
+ # Selector specifying which fields to include in a partial response.
1323
+ # @param [String] quota_user
1324
+ # Available to use for quota purposes for server-side applications. Can be any
1325
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1326
+ # Overrides userIp if both are provided.
1327
+ # @param [String] user_ip
1328
+ # IP address of the site where the request originates. Use this if you want to
1329
+ # enforce per-user limits.
1330
+ # @param [Google::Apis::RequestOptions] options
1331
+ # Request-specific options
1332
+ #
1333
+ # @yield [result, err] Result & error if block supplied
1334
+ # @yieldparam result [NilClass] No result returned for this method
1335
+ # @yieldparam err [StandardError] error object if request failed
1336
+ #
1337
+ # @return [void]
1338
+ #
1339
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1340
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1341
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1342
+ def delete_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1343
+ command = make_simple_command(:delete, 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', options)
1344
+ command.params['accountId'] = account_id unless account_id.nil?
1345
+ command.params['containerId'] = container_id unless container_id.nil?
1346
+ command.params['containerVersionId'] = container_version_id unless container_version_id.nil?
1347
+ command.query['fields'] = fields unless fields.nil?
1348
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1349
+ command.query['userIp'] = user_ip unless user_ip.nil?
1350
+ execute_or_queue_command(command, &block)
1351
+ end
1352
+
1353
+ # Gets a Container Version.
1354
+ # @param [String] account_id
1355
+ # The GTM Account ID.
1356
+ # @param [String] container_id
1357
+ # The GTM Container ID.
1358
+ # @param [String] container_version_id
1359
+ # The GTM Container Version ID. Specify published to retrieve the currently
1360
+ # published version.
1361
+ # @param [String] fields
1362
+ # Selector specifying which fields to include in a partial response.
1363
+ # @param [String] quota_user
1364
+ # Available to use for quota purposes for server-side applications. Can be any
1365
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1366
+ # Overrides userIp if both are provided.
1367
+ # @param [String] user_ip
1368
+ # IP address of the site where the request originates. Use this if you want to
1369
+ # enforce per-user limits.
1370
+ # @param [Google::Apis::RequestOptions] options
1371
+ # Request-specific options
1372
+ #
1373
+ # @yield [result, err] Result & error if block supplied
1374
+ # @yieldparam result [Google::Apis::TagmanagerV1::ContainerVersion] parsed result object
1375
+ # @yieldparam err [StandardError] error object if request failed
1376
+ #
1377
+ # @return [Google::Apis::TagmanagerV1::ContainerVersion]
1378
+ #
1379
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1380
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1381
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1382
+ def get_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1383
+ command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', options)
1384
+ command.response_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation
1385
+ command.response_class = Google::Apis::TagmanagerV1::ContainerVersion
1386
+ command.params['accountId'] = account_id unless account_id.nil?
1387
+ command.params['containerId'] = container_id unless container_id.nil?
1388
+ command.params['containerVersionId'] = container_version_id unless container_version_id.nil?
1389
+ command.query['fields'] = fields unless fields.nil?
1390
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1391
+ command.query['userIp'] = user_ip unless user_ip.nil?
1392
+ execute_or_queue_command(command, &block)
1393
+ end
1394
+
1395
+ # Lists all Container Versions of a GTM Container.
1396
+ # @param [String] account_id
1397
+ # The GTM Account ID.
1398
+ # @param [String] container_id
1399
+ # The GTM Container ID.
1400
+ # @param [Boolean] headers
1401
+ # Retrieve headers only when true.
1402
+ # @param [Boolean] include_deleted
1403
+ # Also retrieve deleted (archived) versions when true.
1404
+ # @param [String] fields
1405
+ # Selector specifying which fields to include in a partial response.
1406
+ # @param [String] quota_user
1407
+ # Available to use for quota purposes for server-side applications. Can be any
1408
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1409
+ # Overrides userIp if both are provided.
1410
+ # @param [String] user_ip
1411
+ # IP address of the site where the request originates. Use this if you want to
1412
+ # enforce per-user limits.
1413
+ # @param [Google::Apis::RequestOptions] options
1414
+ # Request-specific options
1415
+ #
1416
+ # @yield [result, err] Result & error if block supplied
1417
+ # @yieldparam result [Google::Apis::TagmanagerV1::ListContainerVersionsResponse] parsed result object
1418
+ # @yieldparam err [StandardError] error object if request failed
1419
+ #
1420
+ # @return [Google::Apis::TagmanagerV1::ListContainerVersionsResponse]
1421
+ #
1422
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1423
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1424
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1425
+ def list_versions(account_id, container_id, headers: nil, include_deleted: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1426
+ command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/versions', options)
1427
+ command.response_representation = Google::Apis::TagmanagerV1::ListContainerVersionsResponse::Representation
1428
+ command.response_class = Google::Apis::TagmanagerV1::ListContainerVersionsResponse
1429
+ command.params['accountId'] = account_id unless account_id.nil?
1430
+ command.params['containerId'] = container_id unless container_id.nil?
1431
+ command.query['headers'] = headers unless headers.nil?
1432
+ command.query['includeDeleted'] = include_deleted unless include_deleted.nil?
1433
+ command.query['fields'] = fields unless fields.nil?
1434
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1435
+ command.query['userIp'] = user_ip unless user_ip.nil?
1436
+ execute_or_queue_command(command, &block)
1437
+ end
1438
+
1439
+ # Publishes a Container Version.
1440
+ # @param [String] account_id
1441
+ # The GTM Account ID.
1442
+ # @param [String] container_id
1443
+ # The GTM Container ID.
1444
+ # @param [String] container_version_id
1445
+ # The GTM Container Version ID.
1446
+ # @param [String] fingerprint
1447
+ # When provided, this fingerprint must match the fingerprint of the container
1448
+ # version in storage.
1449
+ # @param [String] fields
1450
+ # Selector specifying which fields to include in a partial response.
1451
+ # @param [String] quota_user
1452
+ # Available to use for quota purposes for server-side applications. Can be any
1453
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1454
+ # Overrides userIp if both are provided.
1455
+ # @param [String] user_ip
1456
+ # IP address of the site where the request originates. Use this if you want to
1457
+ # enforce per-user limits.
1458
+ # @param [Google::Apis::RequestOptions] options
1459
+ # Request-specific options
1460
+ #
1461
+ # @yield [result, err] Result & error if block supplied
1462
+ # @yieldparam result [Google::Apis::TagmanagerV1::PublishContainerVersionResponse] parsed result object
1463
+ # @yieldparam err [StandardError] error object if request failed
1464
+ #
1465
+ # @return [Google::Apis::TagmanagerV1::PublishContainerVersionResponse]
1466
+ #
1467
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1468
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1469
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1470
+ def publish_version(account_id, container_id, container_version_id, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1471
+ command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/publish', options)
1472
+ command.response_representation = Google::Apis::TagmanagerV1::PublishContainerVersionResponse::Representation
1473
+ command.response_class = Google::Apis::TagmanagerV1::PublishContainerVersionResponse
1474
+ command.params['accountId'] = account_id unless account_id.nil?
1475
+ command.params['containerId'] = container_id unless container_id.nil?
1476
+ command.params['containerVersionId'] = container_version_id unless container_version_id.nil?
1477
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
1478
+ command.query['fields'] = fields unless fields.nil?
1479
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1480
+ command.query['userIp'] = user_ip unless user_ip.nil?
1481
+ execute_or_queue_command(command, &block)
1482
+ end
1483
+
1484
+ # Restores a Container Version. This will overwrite the container's current
1485
+ # configuration (including its variables, triggers and tags). The operation will
1486
+ # not have any effect on the version that is being served (i.e. the published
1487
+ # version).
1488
+ # @param [String] account_id
1489
+ # The GTM Account ID.
1490
+ # @param [String] container_id
1491
+ # The GTM Container ID.
1492
+ # @param [String] container_version_id
1493
+ # The GTM Container Version ID.
1494
+ # @param [String] fields
1495
+ # Selector specifying which fields to include in a partial response.
1496
+ # @param [String] quota_user
1497
+ # Available to use for quota purposes for server-side applications. Can be any
1498
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1499
+ # Overrides userIp if both are provided.
1500
+ # @param [String] user_ip
1501
+ # IP address of the site where the request originates. Use this if you want to
1502
+ # enforce per-user limits.
1503
+ # @param [Google::Apis::RequestOptions] options
1504
+ # Request-specific options
1505
+ #
1506
+ # @yield [result, err] Result & error if block supplied
1507
+ # @yieldparam result [Google::Apis::TagmanagerV1::ContainerVersion] parsed result object
1508
+ # @yieldparam err [StandardError] error object if request failed
1509
+ #
1510
+ # @return [Google::Apis::TagmanagerV1::ContainerVersion]
1511
+ #
1512
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1513
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1514
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1515
+ def restore_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1516
+ command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/restore', options)
1517
+ command.response_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation
1518
+ command.response_class = Google::Apis::TagmanagerV1::ContainerVersion
1519
+ command.params['accountId'] = account_id unless account_id.nil?
1520
+ command.params['containerId'] = container_id unless container_id.nil?
1521
+ command.params['containerVersionId'] = container_version_id unless container_version_id.nil?
1522
+ command.query['fields'] = fields unless fields.nil?
1523
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1524
+ command.query['userIp'] = user_ip unless user_ip.nil?
1525
+ execute_or_queue_command(command, &block)
1526
+ end
1527
+
1528
+ # Undeletes a Container Version.
1529
+ # @param [String] account_id
1530
+ # The GTM Account ID.
1531
+ # @param [String] container_id
1532
+ # The GTM Container ID.
1533
+ # @param [String] container_version_id
1534
+ # The GTM Container Version ID.
1535
+ # @param [String] fields
1536
+ # Selector specifying which fields to include in a partial response.
1537
+ # @param [String] quota_user
1538
+ # Available to use for quota purposes for server-side applications. Can be any
1539
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1540
+ # Overrides userIp if both are provided.
1541
+ # @param [String] user_ip
1542
+ # IP address of the site where the request originates. Use this if you want to
1543
+ # enforce per-user limits.
1544
+ # @param [Google::Apis::RequestOptions] options
1545
+ # Request-specific options
1546
+ #
1547
+ # @yield [result, err] Result & error if block supplied
1548
+ # @yieldparam result [Google::Apis::TagmanagerV1::ContainerVersion] parsed result object
1549
+ # @yieldparam err [StandardError] error object if request failed
1550
+ #
1551
+ # @return [Google::Apis::TagmanagerV1::ContainerVersion]
1552
+ #
1553
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1554
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1555
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1556
+ def undelete_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1557
+ command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/undelete', options)
1558
+ command.response_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation
1559
+ command.response_class = Google::Apis::TagmanagerV1::ContainerVersion
1560
+ command.params['accountId'] = account_id unless account_id.nil?
1561
+ command.params['containerId'] = container_id unless container_id.nil?
1562
+ command.params['containerVersionId'] = container_version_id unless container_version_id.nil?
1563
+ command.query['fields'] = fields unless fields.nil?
1564
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1565
+ command.query['userIp'] = user_ip unless user_ip.nil?
1566
+ execute_or_queue_command(command, &block)
1567
+ end
1568
+
1569
+ # Updates a Container Version.
1570
+ # @param [String] account_id
1571
+ # The GTM Account ID.
1572
+ # @param [String] container_id
1573
+ # The GTM Container ID.
1574
+ # @param [String] container_version_id
1575
+ # The GTM Container Version ID.
1576
+ # @param [Google::Apis::TagmanagerV1::ContainerVersion] container_version_object
1577
+ # @param [String] fingerprint
1578
+ # When provided, this fingerprint must match the fingerprint of the container
1579
+ # version in storage.
1580
+ # @param [String] fields
1581
+ # Selector specifying which fields to include in a partial response.
1582
+ # @param [String] quota_user
1583
+ # Available to use for quota purposes for server-side applications. Can be any
1584
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1585
+ # Overrides userIp if both are provided.
1586
+ # @param [String] user_ip
1587
+ # IP address of the site where the request originates. Use this if you want to
1588
+ # enforce per-user limits.
1589
+ # @param [Google::Apis::RequestOptions] options
1590
+ # Request-specific options
1591
+ #
1592
+ # @yield [result, err] Result & error if block supplied
1593
+ # @yieldparam result [Google::Apis::TagmanagerV1::ContainerVersion] parsed result object
1594
+ # @yieldparam err [StandardError] error object if request failed
1595
+ #
1596
+ # @return [Google::Apis::TagmanagerV1::ContainerVersion]
1597
+ #
1598
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1599
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1600
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1601
+ def update_version(account_id, container_id, container_version_id, container_version_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1602
+ command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', options)
1603
+ command.request_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation
1604
+ command.request_object = container_version_object
1605
+ command.response_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation
1606
+ command.response_class = Google::Apis::TagmanagerV1::ContainerVersion
1607
+ command.params['accountId'] = account_id unless account_id.nil?
1608
+ command.params['containerId'] = container_id unless container_id.nil?
1609
+ command.params['containerVersionId'] = container_version_id unless container_version_id.nil?
1610
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
1611
+ command.query['fields'] = fields unless fields.nil?
1612
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1613
+ command.query['userIp'] = user_ip unless user_ip.nil?
1614
+ execute_or_queue_command(command, &block)
1615
+ end
1616
+
1617
+ # Creates a user's Account & Container Permissions.
1618
+ # @param [String] account_id
1619
+ # The GTM Account ID.
1620
+ # @param [Google::Apis::TagmanagerV1::UserAccess] user_access_object
1621
+ # @param [String] fields
1622
+ # Selector specifying which fields to include in a partial response.
1623
+ # @param [String] quota_user
1624
+ # Available to use for quota purposes for server-side applications. Can be any
1625
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1626
+ # Overrides userIp if both are provided.
1627
+ # @param [String] user_ip
1628
+ # IP address of the site where the request originates. Use this if you want to
1629
+ # enforce per-user limits.
1630
+ # @param [Google::Apis::RequestOptions] options
1631
+ # Request-specific options
1632
+ #
1633
+ # @yield [result, err] Result & error if block supplied
1634
+ # @yieldparam result [Google::Apis::TagmanagerV1::UserAccess] parsed result object
1635
+ # @yieldparam err [StandardError] error object if request failed
1636
+ #
1637
+ # @return [Google::Apis::TagmanagerV1::UserAccess]
1638
+ #
1639
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1640
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1641
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1642
+ def create_permission(account_id, user_access_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1643
+ command = make_simple_command(:post, 'accounts/{accountId}/permissions', options)
1644
+ command.request_representation = Google::Apis::TagmanagerV1::UserAccess::Representation
1645
+ command.request_object = user_access_object
1646
+ command.response_representation = Google::Apis::TagmanagerV1::UserAccess::Representation
1647
+ command.response_class = Google::Apis::TagmanagerV1::UserAccess
1648
+ command.params['accountId'] = account_id unless account_id.nil?
1649
+ command.query['fields'] = fields unless fields.nil?
1650
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1651
+ command.query['userIp'] = user_ip unless user_ip.nil?
1652
+ execute_or_queue_command(command, &block)
1653
+ end
1654
+
1655
+ # Removes a user from the account, revoking access to it and all of its
1656
+ # containers.
1657
+ # @param [String] account_id
1658
+ # The GTM Account ID.
1659
+ # @param [String] permission_id
1660
+ # The GTM User ID.
1661
+ # @param [String] fields
1662
+ # Selector specifying which fields to include in a partial response.
1663
+ # @param [String] quota_user
1664
+ # Available to use for quota purposes for server-side applications. Can be any
1665
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1666
+ # Overrides userIp if both are provided.
1667
+ # @param [String] user_ip
1668
+ # IP address of the site where the request originates. Use this if you want to
1669
+ # enforce per-user limits.
1670
+ # @param [Google::Apis::RequestOptions] options
1671
+ # Request-specific options
1672
+ #
1673
+ # @yield [result, err] Result & error if block supplied
1674
+ # @yieldparam result [NilClass] No result returned for this method
1675
+ # @yieldparam err [StandardError] error object if request failed
1676
+ #
1677
+ # @return [void]
1678
+ #
1679
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1680
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1681
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1682
+ def delete_permission(account_id, permission_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1683
+ command = make_simple_command(:delete, 'accounts/{accountId}/permissions/{permissionId}', options)
1684
+ command.params['accountId'] = account_id unless account_id.nil?
1685
+ command.params['permissionId'] = permission_id unless permission_id.nil?
1686
+ command.query['fields'] = fields unless fields.nil?
1687
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1688
+ command.query['userIp'] = user_ip unless user_ip.nil?
1689
+ execute_or_queue_command(command, &block)
1690
+ end
1691
+
1692
+ # Gets a user's Account & Container Permissions.
1693
+ # @param [String] account_id
1694
+ # The GTM Account ID.
1695
+ # @param [String] permission_id
1696
+ # The GTM User ID.
1697
+ # @param [String] fields
1698
+ # Selector specifying which fields to include in a partial response.
1699
+ # @param [String] quota_user
1700
+ # Available to use for quota purposes for server-side applications. Can be any
1701
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1702
+ # Overrides userIp if both are provided.
1703
+ # @param [String] user_ip
1704
+ # IP address of the site where the request originates. Use this if you want to
1705
+ # enforce per-user limits.
1706
+ # @param [Google::Apis::RequestOptions] options
1707
+ # Request-specific options
1708
+ #
1709
+ # @yield [result, err] Result & error if block supplied
1710
+ # @yieldparam result [Google::Apis::TagmanagerV1::UserAccess] parsed result object
1711
+ # @yieldparam err [StandardError] error object if request failed
1712
+ #
1713
+ # @return [Google::Apis::TagmanagerV1::UserAccess]
1714
+ #
1715
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1716
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1717
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1718
+ def get_permission(account_id, permission_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1719
+ command = make_simple_command(:get, 'accounts/{accountId}/permissions/{permissionId}', options)
1720
+ command.response_representation = Google::Apis::TagmanagerV1::UserAccess::Representation
1721
+ command.response_class = Google::Apis::TagmanagerV1::UserAccess
1722
+ command.params['accountId'] = account_id unless account_id.nil?
1723
+ command.params['permissionId'] = permission_id unless permission_id.nil?
1724
+ command.query['fields'] = fields unless fields.nil?
1725
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1726
+ command.query['userIp'] = user_ip unless user_ip.nil?
1727
+ execute_or_queue_command(command, &block)
1728
+ end
1729
+
1730
+ # List all users that have access to the account along with Account and
1731
+ # Container Permissions granted to each of them.
1732
+ # @param [String] account_id
1733
+ # The GTM Account ID. @required tagmanager.accounts.permissions.list
1734
+ # @param [String] fields
1735
+ # Selector specifying which fields to include in a partial response.
1736
+ # @param [String] quota_user
1737
+ # Available to use for quota purposes for server-side applications. Can be any
1738
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1739
+ # Overrides userIp if both are provided.
1740
+ # @param [String] user_ip
1741
+ # IP address of the site where the request originates. Use this if you want to
1742
+ # enforce per-user limits.
1743
+ # @param [Google::Apis::RequestOptions] options
1744
+ # Request-specific options
1745
+ #
1746
+ # @yield [result, err] Result & error if block supplied
1747
+ # @yieldparam result [Google::Apis::TagmanagerV1::ListAccountUsersResponse] parsed result object
1748
+ # @yieldparam err [StandardError] error object if request failed
1749
+ #
1750
+ # @return [Google::Apis::TagmanagerV1::ListAccountUsersResponse]
1751
+ #
1752
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1753
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1754
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1755
+ def list_permissions(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1756
+ command = make_simple_command(:get, 'accounts/{accountId}/permissions', options)
1757
+ command.response_representation = Google::Apis::TagmanagerV1::ListAccountUsersResponse::Representation
1758
+ command.response_class = Google::Apis::TagmanagerV1::ListAccountUsersResponse
1759
+ command.params['accountId'] = account_id unless account_id.nil?
1760
+ command.query['fields'] = fields unless fields.nil?
1761
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1762
+ command.query['userIp'] = user_ip unless user_ip.nil?
1763
+ execute_or_queue_command(command, &block)
1764
+ end
1765
+
1766
+ # Updates a user's Account & Container Permissions.
1767
+ # @param [String] account_id
1768
+ # The GTM Account ID.
1769
+ # @param [String] permission_id
1770
+ # The GTM User ID.
1771
+ # @param [Google::Apis::TagmanagerV1::UserAccess] user_access_object
1772
+ # @param [String] fields
1773
+ # Selector specifying which fields to include in a partial response.
1774
+ # @param [String] quota_user
1775
+ # Available to use for quota purposes for server-side applications. Can be any
1776
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1777
+ # Overrides userIp if both are provided.
1778
+ # @param [String] user_ip
1779
+ # IP address of the site where the request originates. Use this if you want to
1780
+ # enforce per-user limits.
1781
+ # @param [Google::Apis::RequestOptions] options
1782
+ # Request-specific options
1783
+ #
1784
+ # @yield [result, err] Result & error if block supplied
1785
+ # @yieldparam result [Google::Apis::TagmanagerV1::UserAccess] parsed result object
1786
+ # @yieldparam err [StandardError] error object if request failed
1787
+ #
1788
+ # @return [Google::Apis::TagmanagerV1::UserAccess]
1789
+ #
1790
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1791
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1792
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1793
+ def update_permission(account_id, permission_id, user_access_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1794
+ command = make_simple_command(:put, 'accounts/{accountId}/permissions/{permissionId}', options)
1795
+ command.request_representation = Google::Apis::TagmanagerV1::UserAccess::Representation
1796
+ command.request_object = user_access_object
1797
+ command.response_representation = Google::Apis::TagmanagerV1::UserAccess::Representation
1798
+ command.response_class = Google::Apis::TagmanagerV1::UserAccess
1799
+ command.params['accountId'] = account_id unless account_id.nil?
1800
+ command.params['permissionId'] = permission_id unless permission_id.nil?
1801
+ command.query['fields'] = fields unless fields.nil?
1802
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1803
+ command.query['userIp'] = user_ip unless user_ip.nil?
1804
+ execute_or_queue_command(command, &block)
1805
+ end
1806
+
1807
+ protected
1808
+
1809
+ def apply_command_defaults(command)
1810
+ command.query['key'] = key unless key.nil?
1811
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1812
+ command.query['userIp'] = user_ip unless user_ip.nil?
1813
+ end
1814
+ end
1815
+ end
1816
+ end
1817
+ end