lemboy-google-api-client 0.9.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (555) hide show
  1. checksums.yaml +7 -0
  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 +27 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +309 -0
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +53 -0
  11. data/LICENSE +202 -0
  12. data/MIGRATING.md +171 -0
  13. data/README.md +327 -0
  14. data/Rakefile +2 -0
  15. data/api_names.yaml +36215 -0
  16. data/bin/generate-api +109 -0
  17. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  19. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  20. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  21. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  22. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  23. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  24. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  25. data/generated/google/apis/adexchangebuyer_v1_4.rb +35 -0
  26. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +3550 -0
  27. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1421 -0
  28. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +1538 -0
  29. data/generated/google/apis/adexchangeseller_v2_0.rb +37 -0
  30. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  31. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +347 -0
  32. data/generated/google/apis/adexchangeseller_v2_0/service.rb +667 -0
  33. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  34. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  35. data/generated/google/apis/admin_datatransfer_v1/representations.rb +130 -0
  36. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  37. data/generated/google/apis/admin_directory_v1.rb +113 -0
  38. data/generated/google/apis/admin_directory_v1/classes.rb +3241 -0
  39. data/generated/google/apis/admin_directory_v1/representations.rb +1172 -0
  40. data/generated/google/apis/admin_directory_v1/service.rb +3857 -0
  41. data/generated/google/apis/admin_reports_v1.rb +38 -0
  42. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  43. data/generated/google/apis/admin_reports_v1/representations.rb +257 -0
  44. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  45. data/generated/google/apis/adsense_v1_4.rb +37 -0
  46. data/generated/google/apis/adsense_v1_4/classes.rb +1280 -0
  47. data/generated/google/apis/adsense_v1_4/representations.rb +555 -0
  48. data/generated/google/apis/adsense_v1_4/service.rb +1713 -0
  49. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  50. data/generated/google/apis/adsensehost_v4_1/classes.rb +836 -0
  51. data/generated/google/apis/adsensehost_v4_1/representations.rb +367 -0
  52. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  53. data/generated/google/apis/analytics_v3.rb +49 -0
  54. data/generated/google/apis/analytics_v3/classes.rb +5536 -0
  55. data/generated/google/apis/analytics_v3/representations.rb +1992 -0
  56. data/generated/google/apis/analytics_v3/service.rb +3785 -0
  57. data/generated/google/apis/analyticsreporting_v4.rb +37 -0
  58. data/generated/google/apis/analyticsreporting_v4/classes.rb +1420 -0
  59. data/generated/google/apis/analyticsreporting_v4/representations.rb +598 -0
  60. data/generated/google/apis/analyticsreporting_v4/service.rb +88 -0
  61. data/generated/google/apis/androidenterprise_v1.rb +34 -0
  62. data/generated/google/apis/androidenterprise_v1/classes.rb +2250 -0
  63. data/generated/google/apis/androidenterprise_v1/representations.rb +970 -0
  64. data/generated/google/apis/androidenterprise_v1/service.rb +3267 -0
  65. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  66. data/generated/google/apis/androidpublisher_v2/classes.rb +1941 -0
  67. data/generated/google/apis/androidpublisher_v2/representations.rb +975 -0
  68. data/generated/google/apis/androidpublisher_v2/service.rb +2572 -0
  69. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  70. data/generated/google/apis/appengine_v1beta4/classes.rb +1585 -0
  71. data/generated/google/apis/appengine_v1beta4/representations.rb +542 -0
  72. data/generated/google/apis/appengine_v1beta4/service.rb +477 -0
  73. data/generated/google/apis/appengine_v1beta5.rb +40 -0
  74. data/generated/google/apis/appengine_v1beta5/classes.rb +1984 -0
  75. data/generated/google/apis/appengine_v1beta5/representations.rb +765 -0
  76. data/generated/google/apis/appengine_v1beta5/service.rb +864 -0
  77. data/generated/google/apis/appsactivity_v1.rb +46 -0
  78. data/generated/google/apis/appsactivity_v1/classes.rb +415 -0
  79. data/generated/google/apis/appsactivity_v1/representations.rb +209 -0
  80. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  81. data/generated/google/apis/appstate_v1.rb +34 -0
  82. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  83. data/generated/google/apis/appstate_v1/representations.rb +87 -0
  84. data/generated/google/apis/appstate_v1/service.rb +260 -0
  85. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  86. data/generated/google/apis/autoscaler_v1beta2/classes.rb +710 -0
  87. data/generated/google/apis/autoscaler_v1beta2/representations.rb +296 -0
  88. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  89. data/generated/google/apis/bigquery_v2.rb +52 -0
  90. data/generated/google/apis/bigquery_v2/classes.rb +3081 -0
  91. data/generated/google/apis/bigquery_v2/representations.rb +1094 -0
  92. data/generated/google/apis/bigquery_v2/service.rb +988 -0
  93. data/generated/google/apis/blogger_v3.rb +37 -0
  94. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  95. data/generated/google/apis/blogger_v3/representations.rb +632 -0
  96. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  97. data/generated/google/apis/books_v1.rb +34 -0
  98. data/generated/google/apis/books_v1/classes.rb +4160 -0
  99. data/generated/google/apis/books_v1/representations.rb +1799 -0
  100. data/generated/google/apis/books_v1/service.rb +2300 -0
  101. data/generated/google/apis/calendar_v3.rb +37 -0
  102. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  103. data/generated/google/apis/calendar_v3/representations.rb +631 -0
  104. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  105. data/generated/google/apis/civicinfo_v2.rb +32 -0
  106. data/generated/google/apis/civicinfo_v2/classes.rb +1499 -0
  107. data/generated/google/apis/civicinfo_v2/representations.rb +572 -0
  108. data/generated/google/apis/civicinfo_v2/service.rb +300 -0
  109. data/generated/google/apis/classroom_v1.rb +70 -0
  110. data/generated/google/apis/classroom_v1/classes.rb +1572 -0
  111. data/generated/google/apis/classroom_v1/representations.rb +729 -0
  112. data/generated/google/apis/classroom_v1/service.rb +1945 -0
  113. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  114. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  115. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  116. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  117. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  118. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  119. data/generated/google/apis/cloudbilling_v1/representations.rb +87 -0
  120. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  121. data/generated/google/apis/cloudbuild_v1.rb +34 -0
  122. data/generated/google/apis/cloudbuild_v1/classes.rb +919 -0
  123. data/generated/google/apis/cloudbuild_v1/representations.rb +364 -0
  124. data/generated/google/apis/cloudbuild_v1/service.rb +492 -0
  125. data/generated/google/apis/clouddebugger_v2.rb +38 -0
  126. data/generated/google/apis/clouddebugger_v2/classes.rb +1081 -0
  127. data/generated/google/apis/clouddebugger_v2/representations.rb +465 -0
  128. data/generated/google/apis/clouddebugger_v2/service.rb +396 -0
  129. data/generated/google/apis/cloudkms_v1beta1.rb +34 -0
  130. data/generated/google/apis/cloudkms_v1beta1/classes.rb +999 -0
  131. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  132. data/generated/google/apis/cloudkms_v1beta1/service.rb +932 -0
  133. data/generated/google/apis/cloudlatencytest_v2.rb +34 -0
  134. data/generated/google/apis/cloudlatencytest_v2/classes.rb +195 -0
  135. data/generated/google/apis/cloudlatencytest_v2/representations.rb +127 -0
  136. data/generated/google/apis/cloudlatencytest_v2/service.rb +135 -0
  137. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  138. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  139. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +353 -0
  140. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  141. data/generated/google/apis/cloudresourcemanager_v1.rb +38 -0
  142. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +886 -0
  143. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +359 -0
  144. data/generated/google/apis/cloudresourcemanager_v1/service.rb +686 -0
  145. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  146. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +682 -0
  147. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +312 -0
  148. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +710 -0
  149. data/generated/google/apis/cloudtrace_v1.rb +43 -0
  150. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  151. data/generated/google/apis/cloudtrace_v1/representations.rb +102 -0
  152. data/generated/google/apis/cloudtrace_v1/service.rb +192 -0
  153. data/generated/google/apis/clouduseraccounts_beta.rb +44 -0
  154. data/generated/google/apis/clouduseraccounts_beta/classes.rb +845 -0
  155. data/generated/google/apis/clouduseraccounts_beta/representations.rb +352 -0
  156. data/generated/google/apis/clouduseraccounts_beta/service.rb +907 -0
  157. data/generated/google/apis/compute_beta.rb +49 -0
  158. data/generated/google/apis/compute_beta/classes.rb +12261 -0
  159. data/generated/google/apis/compute_beta/representations.rb +4615 -0
  160. data/generated/google/apis/compute_beta/service.rb +15330 -0
  161. data/generated/google/apis/compute_v1.rb +49 -0
  162. data/generated/google/apis/compute_v1/classes.rb +11179 -0
  163. data/generated/google/apis/compute_v1/representations.rb +4203 -0
  164. data/generated/google/apis/compute_v1/service.rb +12937 -0
  165. data/generated/google/apis/container_v1.rb +35 -0
  166. data/generated/google/apis/container_v1/classes.rb +1040 -0
  167. data/generated/google/apis/container_v1/representations.rb +415 -0
  168. data/generated/google/apis/container_v1/service.rb +659 -0
  169. data/generated/google/apis/container_v1beta1.rb +35 -0
  170. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  171. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  172. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  173. data/generated/google/apis/content_v2.rb +35 -0
  174. data/generated/google/apis/content_v2/classes.rb +6887 -0
  175. data/generated/google/apis/content_v2/representations.rb +2963 -0
  176. data/generated/google/apis/content_v2/service.rb +2653 -0
  177. data/generated/google/apis/coordinate_v1.rb +37 -0
  178. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  179. data/generated/google/apis/coordinate_v1/representations.rb +321 -0
  180. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  181. data/generated/google/apis/customsearch_v1.rb +31 -0
  182. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  183. data/generated/google/apis/customsearch_v1/representations.rb +302 -0
  184. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  185. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  186. data/generated/google/apis/dataflow_v1b3/classes.rb +4225 -0
  187. data/generated/google/apis/dataflow_v1b3/representations.rb +1809 -0
  188. data/generated/google/apis/dataflow_v1b3/service.rb +874 -0
  189. data/generated/google/apis/dataproc_v1.rb +34 -0
  190. data/generated/google/apis/dataproc_v1/classes.rb +1716 -0
  191. data/generated/google/apis/dataproc_v1/representations.rb +678 -0
  192. data/generated/google/apis/dataproc_v1/service.rb +670 -0
  193. data/generated/google/apis/datastore_v1.rb +38 -0
  194. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  195. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  196. data/generated/google/apis/datastore_v1/service.rb +259 -0
  197. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  198. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  199. data/generated/google/apis/datastore_v1beta2/representations.rb +594 -0
  200. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  201. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  202. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  203. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  204. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  205. data/generated/google/apis/deploymentmanager_v2.rb +43 -0
  206. data/generated/google/apis/deploymentmanager_v2/classes.rb +1582 -0
  207. data/generated/google/apis/deploymentmanager_v2/representations.rb +686 -0
  208. data/generated/google/apis/deploymentmanager_v2/service.rb +1026 -0
  209. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  210. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  211. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  212. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  213. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  214. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  215. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  216. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  217. data/generated/google/apis/dfareporting_v2_3.rb +37 -0
  218. data/generated/google/apis/dfareporting_v2_3/classes.rb +10839 -0
  219. data/generated/google/apis/dfareporting_v2_3/representations.rb +3829 -0
  220. data/generated/google/apis/dfareporting_v2_3/service.rb +8581 -0
  221. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  222. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  223. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  224. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  225. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  226. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  227. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  228. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  229. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  230. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  231. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  232. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  233. data/generated/google/apis/discovery_v1.rb +32 -0
  234. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  235. data/generated/google/apis/discovery_v1/representations.rb +397 -0
  236. data/generated/google/apis/discovery_v1/service.rb +142 -0
  237. data/generated/google/apis/dns_v1.rb +43 -0
  238. data/generated/google/apis/dns_v1/classes.rb +406 -0
  239. data/generated/google/apis/dns_v1/representations.rb +167 -0
  240. data/generated/google/apis/dns_v1/service.rb +453 -0
  241. data/generated/google/apis/dns_v2beta1.rb +43 -0
  242. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  243. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  244. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  245. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  246. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +795 -0
  247. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +368 -0
  248. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +376 -0
  249. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  250. data/generated/google/apis/doubleclicksearch_v2/classes.rb +960 -0
  251. data/generated/google/apis/doubleclicksearch_v2/representations.rb +350 -0
  252. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  253. data/generated/google/apis/drive_v2.rb +59 -0
  254. data/generated/google/apis/drive_v2/classes.rb +2633 -0
  255. data/generated/google/apis/drive_v2/representations.rb +885 -0
  256. data/generated/google/apis/drive_v2/service.rb +2754 -0
  257. data/generated/google/apis/drive_v3.rb +56 -0
  258. data/generated/google/apis/drive_v3/classes.rb +1611 -0
  259. data/generated/google/apis/drive_v3/representations.rb +555 -0
  260. data/generated/google/apis/drive_v3/service.rb +1553 -0
  261. data/generated/google/apis/fitness_v1.rb +85 -0
  262. data/generated/google/apis/fitness_v1/classes.rb +943 -0
  263. data/generated/google/apis/fitness_v1/representations.rb +380 -0
  264. data/generated/google/apis/fitness_v1/service.rb +674 -0
  265. data/generated/google/apis/fusiontables_v2.rb +37 -0
  266. data/generated/google/apis/fusiontables_v2/classes.rb +1049 -0
  267. data/generated/google/apis/fusiontables_v2/representations.rb +457 -0
  268. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  270. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  271. data/generated/google/apis/games_configuration_v1configuration/representations.rb +228 -0
  272. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  273. data/generated/google/apis/games_management_v1management.rb +37 -0
  274. data/generated/google/apis/games_management_v1management/classes.rb +567 -0
  275. data/generated/google/apis/games_management_v1management/representations.rb +278 -0
  276. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  277. data/generated/google/apis/games_v1.rb +40 -0
  278. data/generated/google/apis/games_v1/classes.rb +4667 -0
  279. data/generated/google/apis/games_v1/representations.rb +1800 -0
  280. data/generated/google/apis/games_v1/service.rb +2449 -0
  281. data/generated/google/apis/gan_v1beta1.rb +31 -0
  282. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  283. data/generated/google/apis/gan_v1beta1/representations.rb +462 -0
  284. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  285. data/generated/google/apis/genomics_v1.rb +46 -0
  286. data/generated/google/apis/genomics_v1/classes.rb +3477 -0
  287. data/generated/google/apis/genomics_v1/representations.rb +1284 -0
  288. data/generated/google/apis/genomics_v1/service.rb +2207 -0
  289. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  290. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  291. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  292. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  293. data/generated/google/apis/gmail_v1.rb +61 -0
  294. data/generated/google/apis/gmail_v1/classes.rb +1382 -0
  295. data/generated/google/apis/gmail_v1/representations.rb +624 -0
  296. data/generated/google/apis/gmail_v1/service.rb +2447 -0
  297. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  298. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  299. data/generated/google/apis/groupsmigration_v1/representations.rb +40 -0
  300. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  301. data/generated/google/apis/groupssettings_v1.rb +34 -0
  302. data/generated/google/apis/groupssettings_v1/classes.rb +240 -0
  303. data/generated/google/apis/groupssettings_v1/representations.rb +69 -0
  304. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  305. data/generated/google/apis/iam_v1.rb +36 -0
  306. data/generated/google/apis/iam_v1/classes.rb +640 -0
  307. data/generated/google/apis/iam_v1/representations.rb +316 -0
  308. data/generated/google/apis/iam_v1/service.rb +554 -0
  309. data/generated/google/apis/identitytoolkit_v3.rb +37 -0
  310. data/generated/google/apis/identitytoolkit_v3/classes.rb +2182 -0
  311. data/generated/google/apis/identitytoolkit_v3/representations.rb +742 -0
  312. data/generated/google/apis/identitytoolkit_v3/service.rb +657 -0
  313. data/generated/google/apis/kgsearch_v1.rb +31 -0
  314. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  315. data/generated/google/apis/kgsearch_v1/representations.rb +41 -0
  316. data/generated/google/apis/kgsearch_v1/service.rb +113 -0
  317. data/generated/google/apis/language_v1beta1.rb +36 -0
  318. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  319. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  320. data/generated/google/apis/language_v1beta1/service.rb +184 -0
  321. data/generated/google/apis/licensing_v1.rb +34 -0
  322. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  323. data/generated/google/apis/licensing_v1/representations.rb +74 -0
  324. data/generated/google/apis/licensing_v1/service.rb +369 -0
  325. data/generated/google/apis/logging_v1beta3.rb +47 -0
  326. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  327. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  328. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  329. data/generated/google/apis/logging_v2beta1.rb +46 -0
  330. data/generated/google/apis/logging_v2beta1/classes.rb +1254 -0
  331. data/generated/google/apis/logging_v2beta1/representations.rb +421 -0
  332. data/generated/google/apis/logging_v2beta1/service.rb +788 -0
  333. data/generated/google/apis/manager_v1beta2.rb +53 -0
  334. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  335. data/generated/google/apis/manager_v1beta2/representations.rb +606 -0
  336. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  337. data/generated/google/apis/manufacturers_v1.rb +34 -0
  338. data/generated/google/apis/manufacturers_v1/classes.rb +258 -0
  339. data/generated/google/apis/manufacturers_v1/representations.rb +103 -0
  340. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  341. data/generated/google/apis/mirror_v1.rb +37 -0
  342. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  343. data/generated/google/apis/mirror_v1/representations.rb +390 -0
  344. data/generated/google/apis/mirror_v1/service.rb +977 -0
  345. data/generated/google/apis/monitoring_v3.rb +45 -0
  346. data/generated/google/apis/monitoring_v3/classes.rb +1335 -0
  347. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  348. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  349. data/generated/google/apis/mybusiness_v3.rb +32 -0
  350. data/generated/google/apis/mybusiness_v3/classes.rb +1864 -0
  351. data/generated/google/apis/mybusiness_v3/representations.rb +741 -0
  352. data/generated/google/apis/mybusiness_v3/service.rb +960 -0
  353. data/generated/google/apis/oauth2_v2.rb +43 -0
  354. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  355. data/generated/google/apis/oauth2_v2/representations.rb +102 -0
  356. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  357. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  358. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  359. data/generated/google/apis/pagespeedonline_v2/representations.rb +272 -0
  360. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  361. data/generated/google/apis/partners_v2.rb +32 -0
  362. data/generated/google/apis/partners_v2/classes.rb +942 -0
  363. data/generated/google/apis/partners_v2/representations.rb +454 -0
  364. data/generated/google/apis/partners_v2/service.rb +400 -0
  365. data/generated/google/apis/people_v1.rb +59 -0
  366. data/generated/google/apis/people_v1/classes.rb +1521 -0
  367. data/generated/google/apis/people_v1/representations.rb +663 -0
  368. data/generated/google/apis/people_v1/service.rb +189 -0
  369. data/generated/google/apis/plus_domains_v1.rb +61 -0
  370. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  371. data/generated/google/apis/plus_domains_v1/representations.rb +1111 -0
  372. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  373. data/generated/google/apis/plus_v1.rb +43 -0
  374. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  375. data/generated/google/apis/plus_v1/representations.rb +907 -0
  376. data/generated/google/apis/plus_v1/service.rb +470 -0
  377. data/generated/google/apis/prediction_v1_6.rb +47 -0
  378. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  379. data/generated/google/apis/prediction_v1_6/representations.rb +369 -0
  380. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  381. data/generated/google/apis/proximitybeacon_v1beta1.rb +34 -0
  382. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +786 -0
  383. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +347 -0
  384. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +806 -0
  385. data/generated/google/apis/pubsub_v1.rb +37 -0
  386. data/generated/google/apis/pubsub_v1/classes.rb +676 -0
  387. data/generated/google/apis/pubsub_v1/representations.rb +323 -0
  388. data/generated/google/apis/pubsub_v1/service.rb +900 -0
  389. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  390. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  391. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  392. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  393. data/generated/google/apis/qpx_express_v1.rb +31 -0
  394. data/generated/google/apis/qpx_express_v1/classes.rb +1274 -0
  395. data/generated/google/apis/qpx_express_v1/representations.rb +473 -0
  396. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  397. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  398. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  399. data/generated/google/apis/replicapool_v1beta2/representations.rb +264 -0
  400. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  401. data/generated/google/apis/replicapoolupdater_v1beta1.rb +45 -0
  402. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  403. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +294 -0
  404. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +509 -0
  405. data/generated/google/apis/reseller_v1.rb +37 -0
  406. data/generated/google/apis/reseller_v1/classes.rb +540 -0
  407. data/generated/google/apis/reseller_v1/representations.rb +225 -0
  408. data/generated/google/apis/reseller_v1/service.rb +623 -0
  409. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  410. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  411. data/generated/google/apis/resourceviews_v1beta2/representations.rb +301 -0
  412. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  413. data/generated/google/apis/script_v1.rb +64 -0
  414. data/generated/google/apis/script_v1/classes.rb +265 -0
  415. data/generated/google/apis/script_v1/representations.rb +119 -0
  416. data/generated/google/apis/script_v1/service.rb +98 -0
  417. data/generated/google/apis/sheets_v4.rb +43 -0
  418. data/generated/google/apis/sheets_v4/classes.rb +6368 -0
  419. data/generated/google/apis/sheets_v4/representations.rb +2289 -0
  420. data/generated/google/apis/sheets_v4/service.rb +569 -0
  421. data/generated/google/apis/site_verification_v1.rb +37 -0
  422. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  423. data/generated/google/apis/site_verification_v1/representations.rb +113 -0
  424. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  425. data/generated/google/apis/slides_v1.rb +49 -0
  426. data/generated/google/apis/slides_v1/classes.rb +4044 -0
  427. data/generated/google/apis/slides_v1/representations.rb +1765 -0
  428. data/generated/google/apis/slides_v1/service.rb +202 -0
  429. data/generated/google/apis/speech_v1beta1.rb +34 -0
  430. data/generated/google/apis/speech_v1beta1/classes.rb +513 -0
  431. data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
  432. data/generated/google/apis/speech_v1beta1/service.rb +273 -0
  433. data/generated/google/apis/sqladmin_v1beta4.rb +38 -0
  434. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2142 -0
  435. data/generated/google/apis/sqladmin_v1beta4/representations.rb +893 -0
  436. data/generated/google/apis/sqladmin_v1beta4/service.rb +1709 -0
  437. data/generated/google/apis/storage_v1.rb +46 -0
  438. data/generated/google/apis/storage_v1/classes.rb +1255 -0
  439. data/generated/google/apis/storage_v1/representations.rb +502 -0
  440. data/generated/google/apis/storage_v1/service.rb +1906 -0
  441. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  442. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  443. data/generated/google/apis/storagetransfer_v1/representations.rb +418 -0
  444. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  445. data/generated/google/apis/tagmanager_v1.rb +52 -0
  446. data/generated/google/apis/tagmanager_v1/classes.rb +1494 -0
  447. data/generated/google/apis/tagmanager_v1/representations.rb +611 -0
  448. data/generated/google/apis/tagmanager_v1/service.rb +2119 -0
  449. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  450. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  451. data/generated/google/apis/taskqueue_v1beta2/representations.rb +126 -0
  452. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  453. data/generated/google/apis/tasks_v1.rb +37 -0
  454. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  455. data/generated/google/apis/tasks_v1/representations.rb +125 -0
  456. data/generated/google/apis/tasks_v1/service.rb +643 -0
  457. data/generated/google/apis/translate_v2.rb +31 -0
  458. data/generated/google/apis/translate_v2/classes.rb +168 -0
  459. data/generated/google/apis/translate_v2/representations.rb +121 -0
  460. data/generated/google/apis/translate_v2/service.rb +182 -0
  461. data/generated/google/apis/urlshortener_v1.rb +34 -0
  462. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  463. data/generated/google/apis/urlshortener_v1/representations.rb +121 -0
  464. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  465. data/generated/google/apis/vision_v1.rb +36 -0
  466. data/generated/google/apis/vision_v1/classes.rb +1267 -0
  467. data/generated/google/apis/vision_v1/representations.rb +418 -0
  468. data/generated/google/apis/vision_v1/service.rb +90 -0
  469. data/generated/google/apis/webmasters_v3.rb +37 -0
  470. data/generated/google/apis/webmasters_v3/classes.rb +570 -0
  471. data/generated/google/apis/webmasters_v3/representations.rb +283 -0
  472. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  473. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  474. data/generated/google/apis/youtube_analytics_v1/classes.rb +337 -0
  475. data/generated/google/apis/youtube_analytics_v1/representations.rb +174 -0
  476. data/generated/google/apis/youtube_analytics_v1/service.rb +486 -0
  477. data/generated/google/apis/youtube_partner_v1.rb +37 -0
  478. data/generated/google/apis/youtube_partner_v1/classes.rb +3854 -0
  479. data/generated/google/apis/youtube_partner_v1/representations.rb +1537 -0
  480. data/generated/google/apis/youtube_partner_v1/service.rb +3269 -0
  481. data/generated/google/apis/youtube_v3.rb +50 -0
  482. data/generated/google/apis/youtube_v3/classes.rb +8375 -0
  483. data/generated/google/apis/youtube_v3/representations.rb +3273 -0
  484. data/generated/google/apis/youtube_v3/service.rb +4440 -0
  485. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  486. data/generated/google/apis/youtubereporting_v1/classes.rb +302 -0
  487. data/generated/google/apis/youtubereporting_v1/representations.rb +149 -0
  488. data/generated/google/apis/youtubereporting_v1/service.rb +385 -0
  489. data/google-api-client.gemspec +33 -0
  490. data/lib/cacerts.pem +2183 -0
  491. data/lib/google/api_client/auth/installed_app.rb +128 -0
  492. data/lib/google/api_client/auth/key_utils.rb +94 -0
  493. data/lib/google/api_client/auth/storage.rb +104 -0
  494. data/lib/google/api_client/auth/storages/file_store.rb +57 -0
  495. data/lib/google/api_client/auth/storages/redis_store.rb +59 -0
  496. data/lib/google/api_client/client_secrets.rb +177 -0
  497. data/lib/google/apis.rb +58 -0
  498. data/lib/google/apis/core/api_command.rb +146 -0
  499. data/lib/google/apis/core/base_service.rb +401 -0
  500. data/lib/google/apis/core/batch.rb +239 -0
  501. data/lib/google/apis/core/download.rb +108 -0
  502. data/lib/google/apis/core/hashable.rb +44 -0
  503. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  504. data/lib/google/apis/core/http_command.rb +332 -0
  505. data/lib/google/apis/core/json_representation.rb +145 -0
  506. data/lib/google/apis/core/logging.rb +30 -0
  507. data/lib/google/apis/core/multipart.rb +187 -0
  508. data/lib/google/apis/core/upload.rb +295 -0
  509. data/lib/google/apis/errors.rb +80 -0
  510. data/lib/google/apis/generator.rb +70 -0
  511. data/lib/google/apis/generator/annotator.rb +301 -0
  512. data/lib/google/apis/generator/helpers.rb +74 -0
  513. data/lib/google/apis/generator/model.rb +143 -0
  514. data/lib/google/apis/generator/template.rb +124 -0
  515. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  516. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  517. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  518. data/lib/google/apis/generator/templates/_representation_stub.tmpl +17 -0
  519. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  520. data/lib/google/apis/generator/templates/classes.rb.tmpl +29 -0
  521. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  522. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  523. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  524. data/lib/google/apis/options.rb +85 -0
  525. data/lib/google/apis/version.rb +39 -0
  526. data/rakelib/metrics.rake +22 -0
  527. data/rakelib/rubocop.rake +10 -0
  528. data/rakelib/spec.rake +11 -0
  529. data/rakelib/yard.rake +11 -0
  530. data/samples/cli/.env +4 -0
  531. data/samples/cli/Gemfile +7 -0
  532. data/samples/cli/README.md +51 -0
  533. data/samples/cli/google-api-samples +32 -0
  534. data/samples/cli/lib/base_cli.rb +95 -0
  535. data/samples/cli/lib/samples/analytics.rb +62 -0
  536. data/samples/cli/lib/samples/androidpublisher.rb +47 -0
  537. data/samples/cli/lib/samples/bigquery.rb +101 -0
  538. data/samples/cli/lib/samples/calendar.rb +83 -0
  539. data/samples/cli/lib/samples/drive.rb +82 -0
  540. data/samples/cli/lib/samples/gmail.rb +124 -0
  541. data/samples/cli/lib/samples/pubsub.rb +114 -0
  542. data/samples/cli/lib/samples/sheets.rb +61 -0
  543. data/samples/cli/lib/samples/translate.rb +44 -0
  544. data/samples/cli/lib/samples/you_tube.rb +44 -0
  545. data/samples/web/.env +2 -0
  546. data/samples/web/Gemfile +7 -0
  547. data/samples/web/README.md +44 -0
  548. data/samples/web/app.rb +120 -0
  549. data/samples/web/views/calendar.erb +34 -0
  550. data/samples/web/views/drive.erb +33 -0
  551. data/samples/web/views/home.erb +34 -0
  552. data/samples/web/views/layout.erb +40 -0
  553. data/sync.rb +71 -0
  554. data/third_party/hurley_patches.rb +103 -0
  555. metadata +735 -0
@@ -0,0 +1,2119 @@
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
+ # Accesses 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 Environment.
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::Environment] environment_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::Environment] parsed result object
376
+ # @yieldparam err [StandardError] error object if request failed
377
+ #
378
+ # @return [Google::Apis::TagmanagerV1::Environment]
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_environment(account_id, container_id, environment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
384
+ command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/environments', options)
385
+ command.request_representation = Google::Apis::TagmanagerV1::Environment::Representation
386
+ command.request_object = environment_object
387
+ command.response_representation = Google::Apis::TagmanagerV1::Environment::Representation
388
+ command.response_class = Google::Apis::TagmanagerV1::Environment
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 Environment.
398
+ # @param [String] account_id
399
+ # The GTM Account ID.
400
+ # @param [String] container_id
401
+ # The GTM Container ID.
402
+ # @param [String] environment_id
403
+ # The GTM Environment 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_environment(account_id, container_id, environment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
426
+ command = make_simple_command(:delete, 'accounts/{accountId}/containers/{containerId}/environments/{environmentId}', options)
427
+ command.params['accountId'] = account_id unless account_id.nil?
428
+ command.params['containerId'] = container_id unless container_id.nil?
429
+ command.params['environmentId'] = environment_id unless environment_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 Environment.
437
+ # @param [String] account_id
438
+ # The GTM Account ID.
439
+ # @param [String] container_id
440
+ # The GTM Container ID.
441
+ # @param [String] environment_id
442
+ # The GTM Environment 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::Environment] parsed result object
457
+ # @yieldparam err [StandardError] error object if request failed
458
+ #
459
+ # @return [Google::Apis::TagmanagerV1::Environment]
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_environment(account_id, container_id, environment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
465
+ command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/environments/{environmentId}', options)
466
+ command.response_representation = Google::Apis::TagmanagerV1::Environment::Representation
467
+ command.response_class = Google::Apis::TagmanagerV1::Environment
468
+ command.params['accountId'] = account_id unless account_id.nil?
469
+ command.params['containerId'] = container_id unless container_id.nil?
470
+ command.params['environmentId'] = environment_id unless environment_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 Environments of a GTM 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::ListEnvironmentsResponse] parsed result object
496
+ # @yieldparam err [StandardError] error object if request failed
497
+ #
498
+ # @return [Google::Apis::TagmanagerV1::ListEnvironmentsResponse]
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_environments(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}/environments', options)
505
+ command.response_representation = Google::Apis::TagmanagerV1::ListEnvironmentsResponse::Representation
506
+ command.response_class = Google::Apis::TagmanagerV1::ListEnvironmentsResponse
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 Environment. This method supports patch semantics.
516
+ # @param [String] account_id
517
+ # The GTM Account ID.
518
+ # @param [String] container_id
519
+ # The GTM Container ID.
520
+ # @param [String] environment_id
521
+ # The GTM Environment ID.
522
+ # @param [Google::Apis::TagmanagerV1::Environment] environment_object
523
+ # @param [String] fingerprint
524
+ # When provided, this fingerprint must match the fingerprint of the environment
525
+ # in 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::Environment] parsed result object
540
+ # @yieldparam err [StandardError] error object if request failed
541
+ #
542
+ # @return [Google::Apis::TagmanagerV1::Environment]
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 patch_account_container_environment(account_id, container_id, environment_id, environment_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
548
+ command = make_simple_command(:patch, 'accounts/{accountId}/containers/{containerId}/environments/{environmentId}', options)
549
+ command.request_representation = Google::Apis::TagmanagerV1::Environment::Representation
550
+ command.request_object = environment_object
551
+ command.response_representation = Google::Apis::TagmanagerV1::Environment::Representation
552
+ command.response_class = Google::Apis::TagmanagerV1::Environment
553
+ command.params['accountId'] = account_id unless account_id.nil?
554
+ command.params['containerId'] = container_id unless container_id.nil?
555
+ command.params['environmentId'] = environment_id unless environment_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
+ # Updates a GTM Environment.
564
+ # @param [String] account_id
565
+ # The GTM Account ID.
566
+ # @param [String] container_id
567
+ # The GTM Container ID.
568
+ # @param [String] environment_id
569
+ # The GTM Environment ID.
570
+ # @param [Google::Apis::TagmanagerV1::Environment] environment_object
571
+ # @param [String] fingerprint
572
+ # When provided, this fingerprint must match the fingerprint of the environment
573
+ # in storage.
574
+ # @param [String] fields
575
+ # Selector specifying which fields to include in a partial response.
576
+ # @param [String] quota_user
577
+ # Available to use for quota purposes for server-side applications. Can be any
578
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
579
+ # Overrides userIp if both are provided.
580
+ # @param [String] user_ip
581
+ # IP address of the site where the request originates. Use this if you want to
582
+ # enforce per-user limits.
583
+ # @param [Google::Apis::RequestOptions] options
584
+ # Request-specific options
585
+ #
586
+ # @yield [result, err] Result & error if block supplied
587
+ # @yieldparam result [Google::Apis::TagmanagerV1::Environment] parsed result object
588
+ # @yieldparam err [StandardError] error object if request failed
589
+ #
590
+ # @return [Google::Apis::TagmanagerV1::Environment]
591
+ #
592
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
593
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
594
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
595
+ def update_account_container_environment(account_id, container_id, environment_id, environment_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
596
+ command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/environments/{environmentId}', options)
597
+ command.request_representation = Google::Apis::TagmanagerV1::Environment::Representation
598
+ command.request_object = environment_object
599
+ command.response_representation = Google::Apis::TagmanagerV1::Environment::Representation
600
+ command.response_class = Google::Apis::TagmanagerV1::Environment
601
+ command.params['accountId'] = account_id unless account_id.nil?
602
+ command.params['containerId'] = container_id unless container_id.nil?
603
+ command.params['environmentId'] = environment_id unless environment_id.nil?
604
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
605
+ command.query['fields'] = fields unless fields.nil?
606
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
607
+ command.query['userIp'] = user_ip unless user_ip.nil?
608
+ execute_or_queue_command(command, &block)
609
+ end
610
+
611
+ # Creates a GTM Folder.
612
+ # @param [String] account_id
613
+ # The GTM Account ID.
614
+ # @param [String] container_id
615
+ # The GTM Container ID.
616
+ # @param [Google::Apis::TagmanagerV1::Folder] folder_object
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 [Google::Apis::TagmanagerV1::Folder] parsed result object
631
+ # @yieldparam err [StandardError] error object if request failed
632
+ #
633
+ # @return [Google::Apis::TagmanagerV1::Folder]
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 create_account_container_folder(account_id, container_id, folder_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
639
+ command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/folders', options)
640
+ command.request_representation = Google::Apis::TagmanagerV1::Folder::Representation
641
+ command.request_object = folder_object
642
+ command.response_representation = Google::Apis::TagmanagerV1::Folder::Representation
643
+ command.response_class = Google::Apis::TagmanagerV1::Folder
644
+ command.params['accountId'] = account_id unless account_id.nil?
645
+ command.params['containerId'] = container_id unless container_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
+ # Deletes a GTM Folder.
653
+ # @param [String] account_id
654
+ # The GTM Account ID.
655
+ # @param [String] container_id
656
+ # The GTM Container ID.
657
+ # @param [String] folder_id
658
+ # The GTM Folder ID.
659
+ # @param [String] fields
660
+ # Selector specifying which fields to include in a partial response.
661
+ # @param [String] quota_user
662
+ # Available to use for quota purposes for server-side applications. Can be any
663
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
664
+ # Overrides userIp if both are provided.
665
+ # @param [String] user_ip
666
+ # IP address of the site where the request originates. Use this if you want to
667
+ # enforce per-user limits.
668
+ # @param [Google::Apis::RequestOptions] options
669
+ # Request-specific options
670
+ #
671
+ # @yield [result, err] Result & error if block supplied
672
+ # @yieldparam result [NilClass] No result returned for this method
673
+ # @yieldparam err [StandardError] error object if request failed
674
+ #
675
+ # @return [void]
676
+ #
677
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
678
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
679
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
680
+ def delete_account_container_folder(account_id, container_id, folder_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
681
+ command = make_simple_command(:delete, 'accounts/{accountId}/containers/{containerId}/folders/{folderId}', options)
682
+ command.params['accountId'] = account_id unless account_id.nil?
683
+ command.params['containerId'] = container_id unless container_id.nil?
684
+ command.params['folderId'] = folder_id unless folder_id.nil?
685
+ command.query['fields'] = fields unless fields.nil?
686
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
687
+ command.query['userIp'] = user_ip unless user_ip.nil?
688
+ execute_or_queue_command(command, &block)
689
+ end
690
+
691
+ # Gets a GTM Folder.
692
+ # @param [String] account_id
693
+ # The GTM Account ID.
694
+ # @param [String] container_id
695
+ # The GTM Container ID.
696
+ # @param [String] folder_id
697
+ # The GTM Folder ID.
698
+ # @param [String] fields
699
+ # Selector specifying which fields to include in a partial response.
700
+ # @param [String] quota_user
701
+ # Available to use for quota purposes for server-side applications. Can be any
702
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
703
+ # Overrides userIp if both are provided.
704
+ # @param [String] user_ip
705
+ # IP address of the site where the request originates. Use this if you want to
706
+ # enforce per-user limits.
707
+ # @param [Google::Apis::RequestOptions] options
708
+ # Request-specific options
709
+ #
710
+ # @yield [result, err] Result & error if block supplied
711
+ # @yieldparam result [Google::Apis::TagmanagerV1::Folder] parsed result object
712
+ # @yieldparam err [StandardError] error object if request failed
713
+ #
714
+ # @return [Google::Apis::TagmanagerV1::Folder]
715
+ #
716
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
717
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
718
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
719
+ def get_account_container_folder(account_id, container_id, folder_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
720
+ command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/folders/{folderId}', options)
721
+ command.response_representation = Google::Apis::TagmanagerV1::Folder::Representation
722
+ command.response_class = Google::Apis::TagmanagerV1::Folder
723
+ command.params['accountId'] = account_id unless account_id.nil?
724
+ command.params['containerId'] = container_id unless container_id.nil?
725
+ command.params['folderId'] = folder_id unless folder_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
+ # Lists all GTM Folders of a Container.
733
+ # @param [String] account_id
734
+ # The GTM Account ID.
735
+ # @param [String] container_id
736
+ # The GTM Container ID.
737
+ # @param [String] fields
738
+ # Selector specifying which fields to include in a partial response.
739
+ # @param [String] quota_user
740
+ # Available to use for quota purposes for server-side applications. Can be any
741
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
742
+ # Overrides userIp if both are provided.
743
+ # @param [String] user_ip
744
+ # IP address of the site where the request originates. Use this if you want to
745
+ # enforce per-user limits.
746
+ # @param [Google::Apis::RequestOptions] options
747
+ # Request-specific options
748
+ #
749
+ # @yield [result, err] Result & error if block supplied
750
+ # @yieldparam result [Google::Apis::TagmanagerV1::ListFoldersResponse] parsed result object
751
+ # @yieldparam err [StandardError] error object if request failed
752
+ #
753
+ # @return [Google::Apis::TagmanagerV1::ListFoldersResponse]
754
+ #
755
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
756
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
757
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
758
+ def list_account_container_folders(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
759
+ command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/folders', options)
760
+ command.response_representation = Google::Apis::TagmanagerV1::ListFoldersResponse::Representation
761
+ command.response_class = Google::Apis::TagmanagerV1::ListFoldersResponse
762
+ command.params['accountId'] = account_id unless account_id.nil?
763
+ command.params['containerId'] = container_id unless container_id.nil?
764
+ command.query['fields'] = fields unless fields.nil?
765
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
766
+ command.query['userIp'] = user_ip unless user_ip.nil?
767
+ execute_or_queue_command(command, &block)
768
+ end
769
+
770
+ # Updates a GTM Folder.
771
+ # @param [String] account_id
772
+ # The GTM Account ID.
773
+ # @param [String] container_id
774
+ # The GTM Container ID.
775
+ # @param [String] folder_id
776
+ # The GTM Folder ID.
777
+ # @param [Google::Apis::TagmanagerV1::Folder] folder_object
778
+ # @param [String] fingerprint
779
+ # When provided, this fingerprint must match the fingerprint of the folder in
780
+ # storage.
781
+ # @param [String] fields
782
+ # Selector specifying which fields to include in a partial response.
783
+ # @param [String] quota_user
784
+ # Available to use for quota purposes for server-side applications. Can be any
785
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
786
+ # Overrides userIp if both are provided.
787
+ # @param [String] user_ip
788
+ # IP address of the site where the request originates. Use this if you want to
789
+ # enforce per-user limits.
790
+ # @param [Google::Apis::RequestOptions] options
791
+ # Request-specific options
792
+ #
793
+ # @yield [result, err] Result & error if block supplied
794
+ # @yieldparam result [Google::Apis::TagmanagerV1::Folder] parsed result object
795
+ # @yieldparam err [StandardError] error object if request failed
796
+ #
797
+ # @return [Google::Apis::TagmanagerV1::Folder]
798
+ #
799
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
800
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
801
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
802
+ 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)
803
+ command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/folders/{folderId}', options)
804
+ command.request_representation = Google::Apis::TagmanagerV1::Folder::Representation
805
+ command.request_object = folder_object
806
+ command.response_representation = Google::Apis::TagmanagerV1::Folder::Representation
807
+ command.response_class = Google::Apis::TagmanagerV1::Folder
808
+ command.params['accountId'] = account_id unless account_id.nil?
809
+ command.params['containerId'] = container_id unless container_id.nil?
810
+ command.params['folderId'] = folder_id unless folder_id.nil?
811
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
812
+ command.query['fields'] = fields unless fields.nil?
813
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
814
+ command.query['userIp'] = user_ip unless user_ip.nil?
815
+ execute_or_queue_command(command, &block)
816
+ end
817
+
818
+ # List all entities in a GTM Folder.
819
+ # @param [String] account_id
820
+ # The GTM Account ID.
821
+ # @param [String] container_id
822
+ # The GTM Container ID.
823
+ # @param [String] folder_id
824
+ # The GTM Folder ID.
825
+ # @param [String] fields
826
+ # Selector specifying which fields to include in a partial response.
827
+ # @param [String] quota_user
828
+ # Available to use for quota purposes for server-side applications. Can be any
829
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
830
+ # Overrides userIp if both are provided.
831
+ # @param [String] user_ip
832
+ # IP address of the site where the request originates. Use this if you want to
833
+ # enforce per-user limits.
834
+ # @param [Google::Apis::RequestOptions] options
835
+ # Request-specific options
836
+ #
837
+ # @yield [result, err] Result & error if block supplied
838
+ # @yieldparam result [Google::Apis::TagmanagerV1::FolderEntities] parsed result object
839
+ # @yieldparam err [StandardError] error object if request failed
840
+ #
841
+ # @return [Google::Apis::TagmanagerV1::FolderEntities]
842
+ #
843
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
844
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
845
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
846
+ def list_account_container_folder_entities(account_id, container_id, folder_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
847
+ command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/folders/{folderId}/entities', options)
848
+ command.response_representation = Google::Apis::TagmanagerV1::FolderEntities::Representation
849
+ command.response_class = Google::Apis::TagmanagerV1::FolderEntities
850
+ command.params['accountId'] = account_id unless account_id.nil?
851
+ command.params['containerId'] = container_id unless container_id.nil?
852
+ command.params['folderId'] = folder_id unless folder_id.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
+ # Moves entities to a GTM Folder.
860
+ # @param [String] account_id
861
+ # The GTM Account ID.
862
+ # @param [String] container_id
863
+ # The GTM Container ID.
864
+ # @param [String] folder_id
865
+ # The GTM Folder ID.
866
+ # @param [Google::Apis::TagmanagerV1::Folder] folder_object
867
+ # @param [Array<String>, String] tag_id
868
+ # The tags to be moved to the folder.
869
+ # @param [Array<String>, String] trigger_id
870
+ # The triggers to be moved to the folder.
871
+ # @param [Array<String>, String] variable_id
872
+ # The variables to be moved to the folder.
873
+ # @param [String] fields
874
+ # Selector specifying which fields to include in a partial response.
875
+ # @param [String] quota_user
876
+ # Available to use for quota purposes for server-side applications. Can be any
877
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
878
+ # Overrides userIp if both are provided.
879
+ # @param [String] user_ip
880
+ # IP address of the site where the request originates. Use this if you want to
881
+ # enforce per-user limits.
882
+ # @param [Google::Apis::RequestOptions] options
883
+ # Request-specific options
884
+ #
885
+ # @yield [result, err] Result & error if block supplied
886
+ # @yieldparam result [NilClass] No result returned for this method
887
+ # @yieldparam err [StandardError] error object if request failed
888
+ #
889
+ # @return [void]
890
+ #
891
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
892
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
893
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
894
+ def update_account_container_move_folder(account_id, container_id, folder_id, folder_object = nil, tag_id: nil, trigger_id: nil, variable_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
895
+ command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/move_folders/{folderId}', options)
896
+ command.request_representation = Google::Apis::TagmanagerV1::Folder::Representation
897
+ command.request_object = folder_object
898
+ command.params['accountId'] = account_id unless account_id.nil?
899
+ command.params['containerId'] = container_id unless container_id.nil?
900
+ command.params['folderId'] = folder_id unless folder_id.nil?
901
+ command.query['tagId'] = tag_id unless tag_id.nil?
902
+ command.query['triggerId'] = trigger_id unless trigger_id.nil?
903
+ command.query['variableId'] = variable_id unless variable_id.nil?
904
+ command.query['fields'] = fields unless fields.nil?
905
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
906
+ command.query['userIp'] = user_ip unless user_ip.nil?
907
+ execute_or_queue_command(command, &block)
908
+ end
909
+
910
+ # Re-generates the authorization code for a GTM Environment.
911
+ # @param [String] account_id
912
+ # The GTM Account ID.
913
+ # @param [String] container_id
914
+ # The GTM Container ID.
915
+ # @param [String] environment_id
916
+ # The GTM Environment ID.
917
+ # @param [Google::Apis::TagmanagerV1::Environment] environment_object
918
+ # @param [String] fields
919
+ # Selector specifying which fields to include in a partial response.
920
+ # @param [String] quota_user
921
+ # Available to use for quota purposes for server-side applications. Can be any
922
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
923
+ # Overrides userIp if both are provided.
924
+ # @param [String] user_ip
925
+ # IP address of the site where the request originates. Use this if you want to
926
+ # enforce per-user limits.
927
+ # @param [Google::Apis::RequestOptions] options
928
+ # Request-specific options
929
+ #
930
+ # @yield [result, err] Result & error if block supplied
931
+ # @yieldparam result [Google::Apis::TagmanagerV1::Environment] parsed result object
932
+ # @yieldparam err [StandardError] error object if request failed
933
+ #
934
+ # @return [Google::Apis::TagmanagerV1::Environment]
935
+ #
936
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
937
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
938
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
939
+ def update_account_container_reauthorize_environment(account_id, container_id, environment_id, environment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
940
+ command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/reauthorize_environments/{environmentId}', options)
941
+ command.request_representation = Google::Apis::TagmanagerV1::Environment::Representation
942
+ command.request_object = environment_object
943
+ command.response_representation = Google::Apis::TagmanagerV1::Environment::Representation
944
+ command.response_class = Google::Apis::TagmanagerV1::Environment
945
+ command.params['accountId'] = account_id unless account_id.nil?
946
+ command.params['containerId'] = container_id unless container_id.nil?
947
+ command.params['environmentId'] = environment_id unless environment_id.nil?
948
+ command.query['fields'] = fields unless fields.nil?
949
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
950
+ command.query['userIp'] = user_ip unless user_ip.nil?
951
+ execute_or_queue_command(command, &block)
952
+ end
953
+
954
+ # Creates a GTM Tag.
955
+ # @param [String] account_id
956
+ # The GTM Account ID.
957
+ # @param [String] container_id
958
+ # The GTM Container ID.
959
+ # @param [Google::Apis::TagmanagerV1::Tag] tag_object
960
+ # @param [String] fields
961
+ # Selector specifying which fields to include in a partial response.
962
+ # @param [String] quota_user
963
+ # Available to use for quota purposes for server-side applications. Can be any
964
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
965
+ # Overrides userIp if both are provided.
966
+ # @param [String] user_ip
967
+ # IP address of the site where the request originates. Use this if you want to
968
+ # enforce per-user limits.
969
+ # @param [Google::Apis::RequestOptions] options
970
+ # Request-specific options
971
+ #
972
+ # @yield [result, err] Result & error if block supplied
973
+ # @yieldparam result [Google::Apis::TagmanagerV1::Tag] parsed result object
974
+ # @yieldparam err [StandardError] error object if request failed
975
+ #
976
+ # @return [Google::Apis::TagmanagerV1::Tag]
977
+ #
978
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
979
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
980
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
981
+ def create_tag(account_id, container_id, tag_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
982
+ command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/tags', options)
983
+ command.request_representation = Google::Apis::TagmanagerV1::Tag::Representation
984
+ command.request_object = tag_object
985
+ command.response_representation = Google::Apis::TagmanagerV1::Tag::Representation
986
+ command.response_class = Google::Apis::TagmanagerV1::Tag
987
+ command.params['accountId'] = account_id unless account_id.nil?
988
+ command.params['containerId'] = container_id unless container_id.nil?
989
+ command.query['fields'] = fields unless fields.nil?
990
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
991
+ command.query['userIp'] = user_ip unless user_ip.nil?
992
+ execute_or_queue_command(command, &block)
993
+ end
994
+
995
+ # Deletes a GTM Tag.
996
+ # @param [String] account_id
997
+ # The GTM Account ID.
998
+ # @param [String] container_id
999
+ # The GTM Container ID.
1000
+ # @param [String] tag_id
1001
+ # The GTM Tag ID.
1002
+ # @param [String] fields
1003
+ # Selector specifying which fields to include in a partial response.
1004
+ # @param [String] quota_user
1005
+ # Available to use for quota purposes for server-side applications. Can be any
1006
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1007
+ # Overrides userIp if both are provided.
1008
+ # @param [String] user_ip
1009
+ # IP address of the site where the request originates. Use this if you want to
1010
+ # enforce per-user limits.
1011
+ # @param [Google::Apis::RequestOptions] options
1012
+ # Request-specific options
1013
+ #
1014
+ # @yield [result, err] Result & error if block supplied
1015
+ # @yieldparam result [NilClass] No result returned for this method
1016
+ # @yieldparam err [StandardError] error object if request failed
1017
+ #
1018
+ # @return [void]
1019
+ #
1020
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1021
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1022
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1023
+ def delete_tag(account_id, container_id, tag_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1024
+ command = make_simple_command(:delete, 'accounts/{accountId}/containers/{containerId}/tags/{tagId}', options)
1025
+ command.params['accountId'] = account_id unless account_id.nil?
1026
+ command.params['containerId'] = container_id unless container_id.nil?
1027
+ command.params['tagId'] = tag_id unless tag_id.nil?
1028
+ command.query['fields'] = fields unless fields.nil?
1029
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1030
+ command.query['userIp'] = user_ip unless user_ip.nil?
1031
+ execute_or_queue_command(command, &block)
1032
+ end
1033
+
1034
+ # Gets a GTM Tag.
1035
+ # @param [String] account_id
1036
+ # The GTM Account ID.
1037
+ # @param [String] container_id
1038
+ # The GTM Container ID.
1039
+ # @param [String] tag_id
1040
+ # The GTM Tag ID.
1041
+ # @param [String] fields
1042
+ # Selector specifying which fields to include in a partial response.
1043
+ # @param [String] quota_user
1044
+ # Available to use for quota purposes for server-side applications. Can be any
1045
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1046
+ # Overrides userIp if both are provided.
1047
+ # @param [String] user_ip
1048
+ # IP address of the site where the request originates. Use this if you want to
1049
+ # enforce per-user limits.
1050
+ # @param [Google::Apis::RequestOptions] options
1051
+ # Request-specific options
1052
+ #
1053
+ # @yield [result, err] Result & error if block supplied
1054
+ # @yieldparam result [Google::Apis::TagmanagerV1::Tag] parsed result object
1055
+ # @yieldparam err [StandardError] error object if request failed
1056
+ #
1057
+ # @return [Google::Apis::TagmanagerV1::Tag]
1058
+ #
1059
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1060
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1061
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1062
+ def get_tag(account_id, container_id, tag_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1063
+ command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/tags/{tagId}', options)
1064
+ command.response_representation = Google::Apis::TagmanagerV1::Tag::Representation
1065
+ command.response_class = Google::Apis::TagmanagerV1::Tag
1066
+ command.params['accountId'] = account_id unless account_id.nil?
1067
+ command.params['containerId'] = container_id unless container_id.nil?
1068
+ command.params['tagId'] = tag_id unless tag_id.nil?
1069
+ command.query['fields'] = fields unless fields.nil?
1070
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1071
+ command.query['userIp'] = user_ip unless user_ip.nil?
1072
+ execute_or_queue_command(command, &block)
1073
+ end
1074
+
1075
+ # Lists all GTM Tags of a Container.
1076
+ # @param [String] account_id
1077
+ # The GTM Account ID.
1078
+ # @param [String] container_id
1079
+ # The GTM Container ID.
1080
+ # @param [String] fields
1081
+ # Selector specifying which fields to include in a partial response.
1082
+ # @param [String] quota_user
1083
+ # Available to use for quota purposes for server-side applications. Can be any
1084
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1085
+ # Overrides userIp if both are provided.
1086
+ # @param [String] user_ip
1087
+ # IP address of the site where the request originates. Use this if you want to
1088
+ # enforce per-user limits.
1089
+ # @param [Google::Apis::RequestOptions] options
1090
+ # Request-specific options
1091
+ #
1092
+ # @yield [result, err] Result & error if block supplied
1093
+ # @yieldparam result [Google::Apis::TagmanagerV1::ListTagsResponse] parsed result object
1094
+ # @yieldparam err [StandardError] error object if request failed
1095
+ #
1096
+ # @return [Google::Apis::TagmanagerV1::ListTagsResponse]
1097
+ #
1098
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1099
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1100
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1101
+ def list_tags(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1102
+ command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/tags', options)
1103
+ command.response_representation = Google::Apis::TagmanagerV1::ListTagsResponse::Representation
1104
+ command.response_class = Google::Apis::TagmanagerV1::ListTagsResponse
1105
+ command.params['accountId'] = account_id unless account_id.nil?
1106
+ command.params['containerId'] = container_id unless container_id.nil?
1107
+ command.query['fields'] = fields unless fields.nil?
1108
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1109
+ command.query['userIp'] = user_ip unless user_ip.nil?
1110
+ execute_or_queue_command(command, &block)
1111
+ end
1112
+
1113
+ # Updates a GTM Tag.
1114
+ # @param [String] account_id
1115
+ # The GTM Account ID.
1116
+ # @param [String] container_id
1117
+ # The GTM Container ID.
1118
+ # @param [String] tag_id
1119
+ # The GTM Tag ID.
1120
+ # @param [Google::Apis::TagmanagerV1::Tag] tag_object
1121
+ # @param [String] fingerprint
1122
+ # When provided, this fingerprint must match the fingerprint of the tag in
1123
+ # storage.
1124
+ # @param [String] fields
1125
+ # Selector specifying which fields to include in a partial response.
1126
+ # @param [String] quota_user
1127
+ # Available to use for quota purposes for server-side applications. Can be any
1128
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1129
+ # Overrides userIp if both are provided.
1130
+ # @param [String] user_ip
1131
+ # IP address of the site where the request originates. Use this if you want to
1132
+ # enforce per-user limits.
1133
+ # @param [Google::Apis::RequestOptions] options
1134
+ # Request-specific options
1135
+ #
1136
+ # @yield [result, err] Result & error if block supplied
1137
+ # @yieldparam result [Google::Apis::TagmanagerV1::Tag] parsed result object
1138
+ # @yieldparam err [StandardError] error object if request failed
1139
+ #
1140
+ # @return [Google::Apis::TagmanagerV1::Tag]
1141
+ #
1142
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1143
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1144
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1145
+ 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)
1146
+ command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/tags/{tagId}', options)
1147
+ command.request_representation = Google::Apis::TagmanagerV1::Tag::Representation
1148
+ command.request_object = tag_object
1149
+ command.response_representation = Google::Apis::TagmanagerV1::Tag::Representation
1150
+ command.response_class = Google::Apis::TagmanagerV1::Tag
1151
+ command.params['accountId'] = account_id unless account_id.nil?
1152
+ command.params['containerId'] = container_id unless container_id.nil?
1153
+ command.params['tagId'] = tag_id unless tag_id.nil?
1154
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
1155
+ command.query['fields'] = fields unless fields.nil?
1156
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1157
+ command.query['userIp'] = user_ip unless user_ip.nil?
1158
+ execute_or_queue_command(command, &block)
1159
+ end
1160
+
1161
+ # Creates a GTM Trigger.
1162
+ # @param [String] account_id
1163
+ # The GTM Account ID.
1164
+ # @param [String] container_id
1165
+ # The GTM Container ID.
1166
+ # @param [Google::Apis::TagmanagerV1::Trigger] trigger_object
1167
+ # @param [String] fields
1168
+ # Selector specifying which fields to include in a partial response.
1169
+ # @param [String] quota_user
1170
+ # Available to use for quota purposes for server-side applications. Can be any
1171
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1172
+ # Overrides userIp if both are provided.
1173
+ # @param [String] user_ip
1174
+ # IP address of the site where the request originates. Use this if you want to
1175
+ # enforce per-user limits.
1176
+ # @param [Google::Apis::RequestOptions] options
1177
+ # Request-specific options
1178
+ #
1179
+ # @yield [result, err] Result & error if block supplied
1180
+ # @yieldparam result [Google::Apis::TagmanagerV1::Trigger] parsed result object
1181
+ # @yieldparam err [StandardError] error object if request failed
1182
+ #
1183
+ # @return [Google::Apis::TagmanagerV1::Trigger]
1184
+ #
1185
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1186
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1187
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1188
+ def create_trigger(account_id, container_id, trigger_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1189
+ command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/triggers', options)
1190
+ command.request_representation = Google::Apis::TagmanagerV1::Trigger::Representation
1191
+ command.request_object = trigger_object
1192
+ command.response_representation = Google::Apis::TagmanagerV1::Trigger::Representation
1193
+ command.response_class = Google::Apis::TagmanagerV1::Trigger
1194
+ command.params['accountId'] = account_id unless account_id.nil?
1195
+ command.params['containerId'] = container_id unless container_id.nil?
1196
+ command.query['fields'] = fields unless fields.nil?
1197
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1198
+ command.query['userIp'] = user_ip unless user_ip.nil?
1199
+ execute_or_queue_command(command, &block)
1200
+ end
1201
+
1202
+ # Deletes a GTM Trigger.
1203
+ # @param [String] account_id
1204
+ # The GTM Account ID.
1205
+ # @param [String] container_id
1206
+ # The GTM Container ID.
1207
+ # @param [String] trigger_id
1208
+ # The GTM Trigger ID.
1209
+ # @param [String] fields
1210
+ # Selector specifying which fields to include in a partial response.
1211
+ # @param [String] quota_user
1212
+ # Available to use for quota purposes for server-side applications. Can be any
1213
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1214
+ # Overrides userIp if both are provided.
1215
+ # @param [String] user_ip
1216
+ # IP address of the site where the request originates. Use this if you want to
1217
+ # enforce per-user limits.
1218
+ # @param [Google::Apis::RequestOptions] options
1219
+ # Request-specific options
1220
+ #
1221
+ # @yield [result, err] Result & error if block supplied
1222
+ # @yieldparam result [NilClass] No result returned for this method
1223
+ # @yieldparam err [StandardError] error object if request failed
1224
+ #
1225
+ # @return [void]
1226
+ #
1227
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1228
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1229
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1230
+ def delete_trigger(account_id, container_id, trigger_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1231
+ command = make_simple_command(:delete, 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', options)
1232
+ command.params['accountId'] = account_id unless account_id.nil?
1233
+ command.params['containerId'] = container_id unless container_id.nil?
1234
+ command.params['triggerId'] = trigger_id unless trigger_id.nil?
1235
+ command.query['fields'] = fields unless fields.nil?
1236
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1237
+ command.query['userIp'] = user_ip unless user_ip.nil?
1238
+ execute_or_queue_command(command, &block)
1239
+ end
1240
+
1241
+ # Gets a GTM Trigger.
1242
+ # @param [String] account_id
1243
+ # The GTM Account ID.
1244
+ # @param [String] container_id
1245
+ # The GTM Container ID.
1246
+ # @param [String] trigger_id
1247
+ # The GTM Trigger ID.
1248
+ # @param [String] fields
1249
+ # Selector specifying which fields to include in a partial response.
1250
+ # @param [String] quota_user
1251
+ # Available to use for quota purposes for server-side applications. Can be any
1252
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1253
+ # Overrides userIp if both are provided.
1254
+ # @param [String] user_ip
1255
+ # IP address of the site where the request originates. Use this if you want to
1256
+ # enforce per-user limits.
1257
+ # @param [Google::Apis::RequestOptions] options
1258
+ # Request-specific options
1259
+ #
1260
+ # @yield [result, err] Result & error if block supplied
1261
+ # @yieldparam result [Google::Apis::TagmanagerV1::Trigger] parsed result object
1262
+ # @yieldparam err [StandardError] error object if request failed
1263
+ #
1264
+ # @return [Google::Apis::TagmanagerV1::Trigger]
1265
+ #
1266
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1267
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1268
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1269
+ def get_trigger(account_id, container_id, trigger_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1270
+ command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', options)
1271
+ command.response_representation = Google::Apis::TagmanagerV1::Trigger::Representation
1272
+ command.response_class = Google::Apis::TagmanagerV1::Trigger
1273
+ command.params['accountId'] = account_id unless account_id.nil?
1274
+ command.params['containerId'] = container_id unless container_id.nil?
1275
+ command.params['triggerId'] = trigger_id unless trigger_id.nil?
1276
+ command.query['fields'] = fields unless fields.nil?
1277
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1278
+ command.query['userIp'] = user_ip unless user_ip.nil?
1279
+ execute_or_queue_command(command, &block)
1280
+ end
1281
+
1282
+ # Lists all GTM Triggers of a Container.
1283
+ # @param [String] account_id
1284
+ # The GTM Account ID.
1285
+ # @param [String] container_id
1286
+ # The GTM Container ID.
1287
+ # @param [String] fields
1288
+ # Selector specifying which fields to include in a partial response.
1289
+ # @param [String] quota_user
1290
+ # Available to use for quota purposes for server-side applications. Can be any
1291
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1292
+ # Overrides userIp if both are provided.
1293
+ # @param [String] user_ip
1294
+ # IP address of the site where the request originates. Use this if you want to
1295
+ # enforce per-user limits.
1296
+ # @param [Google::Apis::RequestOptions] options
1297
+ # Request-specific options
1298
+ #
1299
+ # @yield [result, err] Result & error if block supplied
1300
+ # @yieldparam result [Google::Apis::TagmanagerV1::ListTriggersResponse] parsed result object
1301
+ # @yieldparam err [StandardError] error object if request failed
1302
+ #
1303
+ # @return [Google::Apis::TagmanagerV1::ListTriggersResponse]
1304
+ #
1305
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1306
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1307
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1308
+ def list_triggers(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1309
+ command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/triggers', options)
1310
+ command.response_representation = Google::Apis::TagmanagerV1::ListTriggersResponse::Representation
1311
+ command.response_class = Google::Apis::TagmanagerV1::ListTriggersResponse
1312
+ command.params['accountId'] = account_id unless account_id.nil?
1313
+ command.params['containerId'] = container_id unless container_id.nil?
1314
+ command.query['fields'] = fields unless fields.nil?
1315
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1316
+ command.query['userIp'] = user_ip unless user_ip.nil?
1317
+ execute_or_queue_command(command, &block)
1318
+ end
1319
+
1320
+ # Updates a GTM Trigger.
1321
+ # @param [String] account_id
1322
+ # The GTM Account ID.
1323
+ # @param [String] container_id
1324
+ # The GTM Container ID.
1325
+ # @param [String] trigger_id
1326
+ # The GTM Trigger ID.
1327
+ # @param [Google::Apis::TagmanagerV1::Trigger] trigger_object
1328
+ # @param [String] fingerprint
1329
+ # When provided, this fingerprint must match the fingerprint of the trigger in
1330
+ # storage.
1331
+ # @param [String] fields
1332
+ # Selector specifying which fields to include in a partial response.
1333
+ # @param [String] quota_user
1334
+ # Available to use for quota purposes for server-side applications. Can be any
1335
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1336
+ # Overrides userIp if both are provided.
1337
+ # @param [String] user_ip
1338
+ # IP address of the site where the request originates. Use this if you want to
1339
+ # enforce per-user limits.
1340
+ # @param [Google::Apis::RequestOptions] options
1341
+ # Request-specific options
1342
+ #
1343
+ # @yield [result, err] Result & error if block supplied
1344
+ # @yieldparam result [Google::Apis::TagmanagerV1::Trigger] parsed result object
1345
+ # @yieldparam err [StandardError] error object if request failed
1346
+ #
1347
+ # @return [Google::Apis::TagmanagerV1::Trigger]
1348
+ #
1349
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1350
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1351
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1352
+ 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)
1353
+ command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', options)
1354
+ command.request_representation = Google::Apis::TagmanagerV1::Trigger::Representation
1355
+ command.request_object = trigger_object
1356
+ command.response_representation = Google::Apis::TagmanagerV1::Trigger::Representation
1357
+ command.response_class = Google::Apis::TagmanagerV1::Trigger
1358
+ command.params['accountId'] = account_id unless account_id.nil?
1359
+ command.params['containerId'] = container_id unless container_id.nil?
1360
+ command.params['triggerId'] = trigger_id unless trigger_id.nil?
1361
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
1362
+ command.query['fields'] = fields unless fields.nil?
1363
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1364
+ command.query['userIp'] = user_ip unless user_ip.nil?
1365
+ execute_or_queue_command(command, &block)
1366
+ end
1367
+
1368
+ # Creates a GTM Variable.
1369
+ # @param [String] account_id
1370
+ # The GTM Account ID.
1371
+ # @param [String] container_id
1372
+ # The GTM Container ID.
1373
+ # @param [Google::Apis::TagmanagerV1::Variable] variable_object
1374
+ # @param [String] fields
1375
+ # Selector specifying which fields to include in a partial response.
1376
+ # @param [String] quota_user
1377
+ # Available to use for quota purposes for server-side applications. Can be any
1378
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1379
+ # Overrides userIp if both are provided.
1380
+ # @param [String] user_ip
1381
+ # IP address of the site where the request originates. Use this if you want to
1382
+ # enforce per-user limits.
1383
+ # @param [Google::Apis::RequestOptions] options
1384
+ # Request-specific options
1385
+ #
1386
+ # @yield [result, err] Result & error if block supplied
1387
+ # @yieldparam result [Google::Apis::TagmanagerV1::Variable] parsed result object
1388
+ # @yieldparam err [StandardError] error object if request failed
1389
+ #
1390
+ # @return [Google::Apis::TagmanagerV1::Variable]
1391
+ #
1392
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1393
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1394
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1395
+ def create_variable(account_id, container_id, variable_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1396
+ command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/variables', options)
1397
+ command.request_representation = Google::Apis::TagmanagerV1::Variable::Representation
1398
+ command.request_object = variable_object
1399
+ command.response_representation = Google::Apis::TagmanagerV1::Variable::Representation
1400
+ command.response_class = Google::Apis::TagmanagerV1::Variable
1401
+ command.params['accountId'] = account_id unless account_id.nil?
1402
+ command.params['containerId'] = container_id unless container_id.nil?
1403
+ command.query['fields'] = fields unless fields.nil?
1404
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1405
+ command.query['userIp'] = user_ip unless user_ip.nil?
1406
+ execute_or_queue_command(command, &block)
1407
+ end
1408
+
1409
+ # Deletes a GTM Variable.
1410
+ # @param [String] account_id
1411
+ # The GTM Account ID.
1412
+ # @param [String] container_id
1413
+ # The GTM Container ID.
1414
+ # @param [String] variable_id
1415
+ # The GTM Variable ID.
1416
+ # @param [String] fields
1417
+ # Selector specifying which fields to include in a partial response.
1418
+ # @param [String] quota_user
1419
+ # Available to use for quota purposes for server-side applications. Can be any
1420
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1421
+ # Overrides userIp if both are provided.
1422
+ # @param [String] user_ip
1423
+ # IP address of the site where the request originates. Use this if you want to
1424
+ # enforce per-user limits.
1425
+ # @param [Google::Apis::RequestOptions] options
1426
+ # Request-specific options
1427
+ #
1428
+ # @yield [result, err] Result & error if block supplied
1429
+ # @yieldparam result [NilClass] No result returned for this method
1430
+ # @yieldparam err [StandardError] error object if request failed
1431
+ #
1432
+ # @return [void]
1433
+ #
1434
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1435
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1436
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1437
+ def delete_variable(account_id, container_id, variable_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1438
+ command = make_simple_command(:delete, 'accounts/{accountId}/containers/{containerId}/variables/{variableId}', options)
1439
+ command.params['accountId'] = account_id unless account_id.nil?
1440
+ command.params['containerId'] = container_id unless container_id.nil?
1441
+ command.params['variableId'] = variable_id unless variable_id.nil?
1442
+ command.query['fields'] = fields unless fields.nil?
1443
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1444
+ command.query['userIp'] = user_ip unless user_ip.nil?
1445
+ execute_or_queue_command(command, &block)
1446
+ end
1447
+
1448
+ # Gets a GTM Variable.
1449
+ # @param [String] account_id
1450
+ # The GTM Account ID.
1451
+ # @param [String] container_id
1452
+ # The GTM Container ID.
1453
+ # @param [String] variable_id
1454
+ # The GTM Variable ID.
1455
+ # @param [String] fields
1456
+ # Selector specifying which fields to include in a partial response.
1457
+ # @param [String] quota_user
1458
+ # Available to use for quota purposes for server-side applications. Can be any
1459
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1460
+ # Overrides userIp if both are provided.
1461
+ # @param [String] user_ip
1462
+ # IP address of the site where the request originates. Use this if you want to
1463
+ # enforce per-user limits.
1464
+ # @param [Google::Apis::RequestOptions] options
1465
+ # Request-specific options
1466
+ #
1467
+ # @yield [result, err] Result & error if block supplied
1468
+ # @yieldparam result [Google::Apis::TagmanagerV1::Variable] parsed result object
1469
+ # @yieldparam err [StandardError] error object if request failed
1470
+ #
1471
+ # @return [Google::Apis::TagmanagerV1::Variable]
1472
+ #
1473
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1474
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1475
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1476
+ def get_variable(account_id, container_id, variable_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1477
+ command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/variables/{variableId}', options)
1478
+ command.response_representation = Google::Apis::TagmanagerV1::Variable::Representation
1479
+ command.response_class = Google::Apis::TagmanagerV1::Variable
1480
+ command.params['accountId'] = account_id unless account_id.nil?
1481
+ command.params['containerId'] = container_id unless container_id.nil?
1482
+ command.params['variableId'] = variable_id unless variable_id.nil?
1483
+ command.query['fields'] = fields unless fields.nil?
1484
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1485
+ command.query['userIp'] = user_ip unless user_ip.nil?
1486
+ execute_or_queue_command(command, &block)
1487
+ end
1488
+
1489
+ # Lists all GTM Variables of a Container.
1490
+ # @param [String] account_id
1491
+ # The GTM Account ID.
1492
+ # @param [String] container_id
1493
+ # The GTM Container 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::ListVariablesResponse] parsed result object
1508
+ # @yieldparam err [StandardError] error object if request failed
1509
+ #
1510
+ # @return [Google::Apis::TagmanagerV1::ListVariablesResponse]
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 list_variables(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1516
+ command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/variables', options)
1517
+ command.response_representation = Google::Apis::TagmanagerV1::ListVariablesResponse::Representation
1518
+ command.response_class = Google::Apis::TagmanagerV1::ListVariablesResponse
1519
+ command.params['accountId'] = account_id unless account_id.nil?
1520
+ command.params['containerId'] = container_id unless container_id.nil?
1521
+ command.query['fields'] = fields unless fields.nil?
1522
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1523
+ command.query['userIp'] = user_ip unless user_ip.nil?
1524
+ execute_or_queue_command(command, &block)
1525
+ end
1526
+
1527
+ # Updates a GTM Variable.
1528
+ # @param [String] account_id
1529
+ # The GTM Account ID.
1530
+ # @param [String] container_id
1531
+ # The GTM Container ID.
1532
+ # @param [String] variable_id
1533
+ # The GTM Variable ID.
1534
+ # @param [Google::Apis::TagmanagerV1::Variable] variable_object
1535
+ # @param [String] fingerprint
1536
+ # When provided, this fingerprint must match the fingerprint of the variable in
1537
+ # storage.
1538
+ # @param [String] fields
1539
+ # Selector specifying which fields to include in a partial response.
1540
+ # @param [String] quota_user
1541
+ # Available to use for quota purposes for server-side applications. Can be any
1542
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1543
+ # Overrides userIp if both are provided.
1544
+ # @param [String] user_ip
1545
+ # IP address of the site where the request originates. Use this if you want to
1546
+ # enforce per-user limits.
1547
+ # @param [Google::Apis::RequestOptions] options
1548
+ # Request-specific options
1549
+ #
1550
+ # @yield [result, err] Result & error if block supplied
1551
+ # @yieldparam result [Google::Apis::TagmanagerV1::Variable] parsed result object
1552
+ # @yieldparam err [StandardError] error object if request failed
1553
+ #
1554
+ # @return [Google::Apis::TagmanagerV1::Variable]
1555
+ #
1556
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1557
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1558
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1559
+ 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)
1560
+ command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/variables/{variableId}', options)
1561
+ command.request_representation = Google::Apis::TagmanagerV1::Variable::Representation
1562
+ command.request_object = variable_object
1563
+ command.response_representation = Google::Apis::TagmanagerV1::Variable::Representation
1564
+ command.response_class = Google::Apis::TagmanagerV1::Variable
1565
+ command.params['accountId'] = account_id unless account_id.nil?
1566
+ command.params['containerId'] = container_id unless container_id.nil?
1567
+ command.params['variableId'] = variable_id unless variable_id.nil?
1568
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
1569
+ command.query['fields'] = fields unless fields.nil?
1570
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1571
+ command.query['userIp'] = user_ip unless user_ip.nil?
1572
+ execute_or_queue_command(command, &block)
1573
+ end
1574
+
1575
+ # Creates a Container Version.
1576
+ # @param [String] account_id
1577
+ # The GTM Account ID.
1578
+ # @param [String] container_id
1579
+ # The GTM Container ID.
1580
+ # @param [Google::Apis::TagmanagerV1::CreateContainerVersionRequestVersionOptions] create_container_version_request_version_options_object
1581
+ # @param [String] fields
1582
+ # Selector specifying which fields to include in a partial response.
1583
+ # @param [String] quota_user
1584
+ # Available to use for quota purposes for server-side applications. Can be any
1585
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1586
+ # Overrides userIp if both are provided.
1587
+ # @param [String] user_ip
1588
+ # IP address of the site where the request originates. Use this if you want to
1589
+ # enforce per-user limits.
1590
+ # @param [Google::Apis::RequestOptions] options
1591
+ # Request-specific options
1592
+ #
1593
+ # @yield [result, err] Result & error if block supplied
1594
+ # @yieldparam result [Google::Apis::TagmanagerV1::CreateContainerVersionResponse] parsed result object
1595
+ # @yieldparam err [StandardError] error object if request failed
1596
+ #
1597
+ # @return [Google::Apis::TagmanagerV1::CreateContainerVersionResponse]
1598
+ #
1599
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1600
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1601
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1602
+ 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)
1603
+ command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/versions', options)
1604
+ command.request_representation = Google::Apis::TagmanagerV1::CreateContainerVersionRequestVersionOptions::Representation
1605
+ command.request_object = create_container_version_request_version_options_object
1606
+ command.response_representation = Google::Apis::TagmanagerV1::CreateContainerVersionResponse::Representation
1607
+ command.response_class = Google::Apis::TagmanagerV1::CreateContainerVersionResponse
1608
+ command.params['accountId'] = account_id unless account_id.nil?
1609
+ command.params['containerId'] = container_id unless container_id.nil?
1610
+ command.query['fields'] = fields unless fields.nil?
1611
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1612
+ command.query['userIp'] = user_ip unless user_ip.nil?
1613
+ execute_or_queue_command(command, &block)
1614
+ end
1615
+
1616
+ # Deletes a Container Version.
1617
+ # @param [String] account_id
1618
+ # The GTM Account ID.
1619
+ # @param [String] container_id
1620
+ # The GTM Container ID.
1621
+ # @param [String] container_version_id
1622
+ # The GTM Container Version ID.
1623
+ # @param [String] fields
1624
+ # Selector specifying which fields to include in a partial response.
1625
+ # @param [String] quota_user
1626
+ # Available to use for quota purposes for server-side applications. Can be any
1627
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1628
+ # Overrides userIp if both are provided.
1629
+ # @param [String] user_ip
1630
+ # IP address of the site where the request originates. Use this if you want to
1631
+ # enforce per-user limits.
1632
+ # @param [Google::Apis::RequestOptions] options
1633
+ # Request-specific options
1634
+ #
1635
+ # @yield [result, err] Result & error if block supplied
1636
+ # @yieldparam result [NilClass] No result returned for this method
1637
+ # @yieldparam err [StandardError] error object if request failed
1638
+ #
1639
+ # @return [void]
1640
+ #
1641
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1642
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1643
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1644
+ def delete_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1645
+ command = make_simple_command(:delete, 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', options)
1646
+ command.params['accountId'] = account_id unless account_id.nil?
1647
+ command.params['containerId'] = container_id unless container_id.nil?
1648
+ command.params['containerVersionId'] = container_version_id unless container_version_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
+ # Gets a Container Version.
1656
+ # @param [String] account_id
1657
+ # The GTM Account ID.
1658
+ # @param [String] container_id
1659
+ # The GTM Container ID.
1660
+ # @param [String] container_version_id
1661
+ # The GTM Container Version ID. Specify published to retrieve the currently
1662
+ # published version.
1663
+ # @param [String] fields
1664
+ # Selector specifying which fields to include in a partial response.
1665
+ # @param [String] quota_user
1666
+ # Available to use for quota purposes for server-side applications. Can be any
1667
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1668
+ # Overrides userIp if both are provided.
1669
+ # @param [String] user_ip
1670
+ # IP address of the site where the request originates. Use this if you want to
1671
+ # enforce per-user limits.
1672
+ # @param [Google::Apis::RequestOptions] options
1673
+ # Request-specific options
1674
+ #
1675
+ # @yield [result, err] Result & error if block supplied
1676
+ # @yieldparam result [Google::Apis::TagmanagerV1::ContainerVersion] parsed result object
1677
+ # @yieldparam err [StandardError] error object if request failed
1678
+ #
1679
+ # @return [Google::Apis::TagmanagerV1::ContainerVersion]
1680
+ #
1681
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1682
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1683
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1684
+ def get_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1685
+ command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', options)
1686
+ command.response_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation
1687
+ command.response_class = Google::Apis::TagmanagerV1::ContainerVersion
1688
+ command.params['accountId'] = account_id unless account_id.nil?
1689
+ command.params['containerId'] = container_id unless container_id.nil?
1690
+ command.params['containerVersionId'] = container_version_id unless container_version_id.nil?
1691
+ command.query['fields'] = fields unless fields.nil?
1692
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1693
+ command.query['userIp'] = user_ip unless user_ip.nil?
1694
+ execute_or_queue_command(command, &block)
1695
+ end
1696
+
1697
+ # Lists all Container Versions of a GTM Container.
1698
+ # @param [String] account_id
1699
+ # The GTM Account ID.
1700
+ # @param [String] container_id
1701
+ # The GTM Container ID.
1702
+ # @param [Boolean] headers
1703
+ # Retrieve headers only when true.
1704
+ # @param [Boolean] include_deleted
1705
+ # Also retrieve deleted (archived) versions when true.
1706
+ # @param [String] fields
1707
+ # Selector specifying which fields to include in a partial response.
1708
+ # @param [String] quota_user
1709
+ # Available to use for quota purposes for server-side applications. Can be any
1710
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1711
+ # Overrides userIp if both are provided.
1712
+ # @param [String] user_ip
1713
+ # IP address of the site where the request originates. Use this if you want to
1714
+ # enforce per-user limits.
1715
+ # @param [Google::Apis::RequestOptions] options
1716
+ # Request-specific options
1717
+ #
1718
+ # @yield [result, err] Result & error if block supplied
1719
+ # @yieldparam result [Google::Apis::TagmanagerV1::ListContainerVersionsResponse] parsed result object
1720
+ # @yieldparam err [StandardError] error object if request failed
1721
+ #
1722
+ # @return [Google::Apis::TagmanagerV1::ListContainerVersionsResponse]
1723
+ #
1724
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1725
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1726
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1727
+ def list_versions(account_id, container_id, headers: nil, include_deleted: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1728
+ command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/versions', options)
1729
+ command.response_representation = Google::Apis::TagmanagerV1::ListContainerVersionsResponse::Representation
1730
+ command.response_class = Google::Apis::TagmanagerV1::ListContainerVersionsResponse
1731
+ command.params['accountId'] = account_id unless account_id.nil?
1732
+ command.params['containerId'] = container_id unless container_id.nil?
1733
+ command.query['headers'] = headers unless headers.nil?
1734
+ command.query['includeDeleted'] = include_deleted unless include_deleted.nil?
1735
+ command.query['fields'] = fields unless fields.nil?
1736
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1737
+ command.query['userIp'] = user_ip unless user_ip.nil?
1738
+ execute_or_queue_command(command, &block)
1739
+ end
1740
+
1741
+ # Publishes a Container Version.
1742
+ # @param [String] account_id
1743
+ # The GTM Account ID.
1744
+ # @param [String] container_id
1745
+ # The GTM Container ID.
1746
+ # @param [String] container_version_id
1747
+ # The GTM Container Version ID.
1748
+ # @param [String] fingerprint
1749
+ # When provided, this fingerprint must match the fingerprint of the container
1750
+ # version in storage.
1751
+ # @param [String] fields
1752
+ # Selector specifying which fields to include in a partial response.
1753
+ # @param [String] quota_user
1754
+ # Available to use for quota purposes for server-side applications. Can be any
1755
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1756
+ # Overrides userIp if both are provided.
1757
+ # @param [String] user_ip
1758
+ # IP address of the site where the request originates. Use this if you want to
1759
+ # enforce per-user limits.
1760
+ # @param [Google::Apis::RequestOptions] options
1761
+ # Request-specific options
1762
+ #
1763
+ # @yield [result, err] Result & error if block supplied
1764
+ # @yieldparam result [Google::Apis::TagmanagerV1::PublishContainerVersionResponse] parsed result object
1765
+ # @yieldparam err [StandardError] error object if request failed
1766
+ #
1767
+ # @return [Google::Apis::TagmanagerV1::PublishContainerVersionResponse]
1768
+ #
1769
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1770
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1771
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1772
+ def publish_version(account_id, container_id, container_version_id, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1773
+ command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/publish', options)
1774
+ command.response_representation = Google::Apis::TagmanagerV1::PublishContainerVersionResponse::Representation
1775
+ command.response_class = Google::Apis::TagmanagerV1::PublishContainerVersionResponse
1776
+ command.params['accountId'] = account_id unless account_id.nil?
1777
+ command.params['containerId'] = container_id unless container_id.nil?
1778
+ command.params['containerVersionId'] = container_version_id unless container_version_id.nil?
1779
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
1780
+ command.query['fields'] = fields unless fields.nil?
1781
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1782
+ command.query['userIp'] = user_ip unless user_ip.nil?
1783
+ execute_or_queue_command(command, &block)
1784
+ end
1785
+
1786
+ # Restores a Container Version. This will overwrite the container's current
1787
+ # configuration (including its variables, triggers and tags). The operation will
1788
+ # not have any effect on the version that is being served (i.e. the published
1789
+ # version).
1790
+ # @param [String] account_id
1791
+ # The GTM Account ID.
1792
+ # @param [String] container_id
1793
+ # The GTM Container ID.
1794
+ # @param [String] container_version_id
1795
+ # The GTM Container Version ID.
1796
+ # @param [String] fields
1797
+ # Selector specifying which fields to include in a partial response.
1798
+ # @param [String] quota_user
1799
+ # Available to use for quota purposes for server-side applications. Can be any
1800
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1801
+ # Overrides userIp if both are provided.
1802
+ # @param [String] user_ip
1803
+ # IP address of the site where the request originates. Use this if you want to
1804
+ # enforce per-user limits.
1805
+ # @param [Google::Apis::RequestOptions] options
1806
+ # Request-specific options
1807
+ #
1808
+ # @yield [result, err] Result & error if block supplied
1809
+ # @yieldparam result [Google::Apis::TagmanagerV1::ContainerVersion] parsed result object
1810
+ # @yieldparam err [StandardError] error object if request failed
1811
+ #
1812
+ # @return [Google::Apis::TagmanagerV1::ContainerVersion]
1813
+ #
1814
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1815
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1816
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1817
+ def restore_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1818
+ command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/restore', options)
1819
+ command.response_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation
1820
+ command.response_class = Google::Apis::TagmanagerV1::ContainerVersion
1821
+ command.params['accountId'] = account_id unless account_id.nil?
1822
+ command.params['containerId'] = container_id unless container_id.nil?
1823
+ command.params['containerVersionId'] = container_version_id unless container_version_id.nil?
1824
+ command.query['fields'] = fields unless fields.nil?
1825
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1826
+ command.query['userIp'] = user_ip unless user_ip.nil?
1827
+ execute_or_queue_command(command, &block)
1828
+ end
1829
+
1830
+ # Undeletes a Container Version.
1831
+ # @param [String] account_id
1832
+ # The GTM Account ID.
1833
+ # @param [String] container_id
1834
+ # The GTM Container ID.
1835
+ # @param [String] container_version_id
1836
+ # The GTM Container Version ID.
1837
+ # @param [String] fields
1838
+ # Selector specifying which fields to include in a partial response.
1839
+ # @param [String] quota_user
1840
+ # Available to use for quota purposes for server-side applications. Can be any
1841
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1842
+ # Overrides userIp if both are provided.
1843
+ # @param [String] user_ip
1844
+ # IP address of the site where the request originates. Use this if you want to
1845
+ # enforce per-user limits.
1846
+ # @param [Google::Apis::RequestOptions] options
1847
+ # Request-specific options
1848
+ #
1849
+ # @yield [result, err] Result & error if block supplied
1850
+ # @yieldparam result [Google::Apis::TagmanagerV1::ContainerVersion] parsed result object
1851
+ # @yieldparam err [StandardError] error object if request failed
1852
+ #
1853
+ # @return [Google::Apis::TagmanagerV1::ContainerVersion]
1854
+ #
1855
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1856
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1857
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1858
+ def undelete_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1859
+ command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/undelete', options)
1860
+ command.response_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation
1861
+ command.response_class = Google::Apis::TagmanagerV1::ContainerVersion
1862
+ command.params['accountId'] = account_id unless account_id.nil?
1863
+ command.params['containerId'] = container_id unless container_id.nil?
1864
+ command.params['containerVersionId'] = container_version_id unless container_version_id.nil?
1865
+ command.query['fields'] = fields unless fields.nil?
1866
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1867
+ command.query['userIp'] = user_ip unless user_ip.nil?
1868
+ execute_or_queue_command(command, &block)
1869
+ end
1870
+
1871
+ # Updates a Container Version.
1872
+ # @param [String] account_id
1873
+ # The GTM Account ID.
1874
+ # @param [String] container_id
1875
+ # The GTM Container ID.
1876
+ # @param [String] container_version_id
1877
+ # The GTM Container Version ID.
1878
+ # @param [Google::Apis::TagmanagerV1::ContainerVersion] container_version_object
1879
+ # @param [String] fingerprint
1880
+ # When provided, this fingerprint must match the fingerprint of the container
1881
+ # version in storage.
1882
+ # @param [String] fields
1883
+ # Selector specifying which fields to include in a partial response.
1884
+ # @param [String] quota_user
1885
+ # Available to use for quota purposes for server-side applications. Can be any
1886
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1887
+ # Overrides userIp if both are provided.
1888
+ # @param [String] user_ip
1889
+ # IP address of the site where the request originates. Use this if you want to
1890
+ # enforce per-user limits.
1891
+ # @param [Google::Apis::RequestOptions] options
1892
+ # Request-specific options
1893
+ #
1894
+ # @yield [result, err] Result & error if block supplied
1895
+ # @yieldparam result [Google::Apis::TagmanagerV1::ContainerVersion] parsed result object
1896
+ # @yieldparam err [StandardError] error object if request failed
1897
+ #
1898
+ # @return [Google::Apis::TagmanagerV1::ContainerVersion]
1899
+ #
1900
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1901
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1902
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1903
+ 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)
1904
+ command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', options)
1905
+ command.request_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation
1906
+ command.request_object = container_version_object
1907
+ command.response_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation
1908
+ command.response_class = Google::Apis::TagmanagerV1::ContainerVersion
1909
+ command.params['accountId'] = account_id unless account_id.nil?
1910
+ command.params['containerId'] = container_id unless container_id.nil?
1911
+ command.params['containerVersionId'] = container_version_id unless container_version_id.nil?
1912
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
1913
+ command.query['fields'] = fields unless fields.nil?
1914
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1915
+ command.query['userIp'] = user_ip unless user_ip.nil?
1916
+ execute_or_queue_command(command, &block)
1917
+ end
1918
+
1919
+ # Creates a user's Account & Container Permissions.
1920
+ # @param [String] account_id
1921
+ # The GTM Account ID.
1922
+ # @param [Google::Apis::TagmanagerV1::UserAccess] user_access_object
1923
+ # @param [String] fields
1924
+ # Selector specifying which fields to include in a partial response.
1925
+ # @param [String] quota_user
1926
+ # Available to use for quota purposes for server-side applications. Can be any
1927
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1928
+ # Overrides userIp if both are provided.
1929
+ # @param [String] user_ip
1930
+ # IP address of the site where the request originates. Use this if you want to
1931
+ # enforce per-user limits.
1932
+ # @param [Google::Apis::RequestOptions] options
1933
+ # Request-specific options
1934
+ #
1935
+ # @yield [result, err] Result & error if block supplied
1936
+ # @yieldparam result [Google::Apis::TagmanagerV1::UserAccess] parsed result object
1937
+ # @yieldparam err [StandardError] error object if request failed
1938
+ #
1939
+ # @return [Google::Apis::TagmanagerV1::UserAccess]
1940
+ #
1941
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1942
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1943
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1944
+ def create_permission(account_id, user_access_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1945
+ command = make_simple_command(:post, 'accounts/{accountId}/permissions', options)
1946
+ command.request_representation = Google::Apis::TagmanagerV1::UserAccess::Representation
1947
+ command.request_object = user_access_object
1948
+ command.response_representation = Google::Apis::TagmanagerV1::UserAccess::Representation
1949
+ command.response_class = Google::Apis::TagmanagerV1::UserAccess
1950
+ command.params['accountId'] = account_id unless account_id.nil?
1951
+ command.query['fields'] = fields unless fields.nil?
1952
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1953
+ command.query['userIp'] = user_ip unless user_ip.nil?
1954
+ execute_or_queue_command(command, &block)
1955
+ end
1956
+
1957
+ # Removes a user from the account, revoking access to it and all of its
1958
+ # containers.
1959
+ # @param [String] account_id
1960
+ # The GTM Account ID.
1961
+ # @param [String] permission_id
1962
+ # The GTM User ID.
1963
+ # @param [String] fields
1964
+ # Selector specifying which fields to include in a partial response.
1965
+ # @param [String] quota_user
1966
+ # Available to use for quota purposes for server-side applications. Can be any
1967
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1968
+ # Overrides userIp if both are provided.
1969
+ # @param [String] user_ip
1970
+ # IP address of the site where the request originates. Use this if you want to
1971
+ # enforce per-user limits.
1972
+ # @param [Google::Apis::RequestOptions] options
1973
+ # Request-specific options
1974
+ #
1975
+ # @yield [result, err] Result & error if block supplied
1976
+ # @yieldparam result [NilClass] No result returned for this method
1977
+ # @yieldparam err [StandardError] error object if request failed
1978
+ #
1979
+ # @return [void]
1980
+ #
1981
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1982
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1983
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1984
+ def delete_permission(account_id, permission_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1985
+ command = make_simple_command(:delete, 'accounts/{accountId}/permissions/{permissionId}', options)
1986
+ command.params['accountId'] = account_id unless account_id.nil?
1987
+ command.params['permissionId'] = permission_id unless permission_id.nil?
1988
+ command.query['fields'] = fields unless fields.nil?
1989
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1990
+ command.query['userIp'] = user_ip unless user_ip.nil?
1991
+ execute_or_queue_command(command, &block)
1992
+ end
1993
+
1994
+ # Gets a user's Account & Container Permissions.
1995
+ # @param [String] account_id
1996
+ # The GTM Account ID.
1997
+ # @param [String] permission_id
1998
+ # The GTM User ID.
1999
+ # @param [String] fields
2000
+ # Selector specifying which fields to include in a partial response.
2001
+ # @param [String] quota_user
2002
+ # Available to use for quota purposes for server-side applications. Can be any
2003
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2004
+ # Overrides userIp if both are provided.
2005
+ # @param [String] user_ip
2006
+ # IP address of the site where the request originates. Use this if you want to
2007
+ # enforce per-user limits.
2008
+ # @param [Google::Apis::RequestOptions] options
2009
+ # Request-specific options
2010
+ #
2011
+ # @yield [result, err] Result & error if block supplied
2012
+ # @yieldparam result [Google::Apis::TagmanagerV1::UserAccess] parsed result object
2013
+ # @yieldparam err [StandardError] error object if request failed
2014
+ #
2015
+ # @return [Google::Apis::TagmanagerV1::UserAccess]
2016
+ #
2017
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2018
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2019
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2020
+ def get_permission(account_id, permission_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2021
+ command = make_simple_command(:get, 'accounts/{accountId}/permissions/{permissionId}', options)
2022
+ command.response_representation = Google::Apis::TagmanagerV1::UserAccess::Representation
2023
+ command.response_class = Google::Apis::TagmanagerV1::UserAccess
2024
+ command.params['accountId'] = account_id unless account_id.nil?
2025
+ command.params['permissionId'] = permission_id unless permission_id.nil?
2026
+ command.query['fields'] = fields unless fields.nil?
2027
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2028
+ command.query['userIp'] = user_ip unless user_ip.nil?
2029
+ execute_or_queue_command(command, &block)
2030
+ end
2031
+
2032
+ # List all users that have access to the account along with Account and
2033
+ # Container Permissions granted to each of them.
2034
+ # @param [String] account_id
2035
+ # The GTM Account ID. @required tagmanager.accounts.permissions.list
2036
+ # @param [String] fields
2037
+ # Selector specifying which fields to include in a partial response.
2038
+ # @param [String] quota_user
2039
+ # Available to use for quota purposes for server-side applications. Can be any
2040
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2041
+ # Overrides userIp if both are provided.
2042
+ # @param [String] user_ip
2043
+ # IP address of the site where the request originates. Use this if you want to
2044
+ # enforce per-user limits.
2045
+ # @param [Google::Apis::RequestOptions] options
2046
+ # Request-specific options
2047
+ #
2048
+ # @yield [result, err] Result & error if block supplied
2049
+ # @yieldparam result [Google::Apis::TagmanagerV1::ListAccountUsersResponse] parsed result object
2050
+ # @yieldparam err [StandardError] error object if request failed
2051
+ #
2052
+ # @return [Google::Apis::TagmanagerV1::ListAccountUsersResponse]
2053
+ #
2054
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2055
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2056
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2057
+ def list_permissions(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2058
+ command = make_simple_command(:get, 'accounts/{accountId}/permissions', options)
2059
+ command.response_representation = Google::Apis::TagmanagerV1::ListAccountUsersResponse::Representation
2060
+ command.response_class = Google::Apis::TagmanagerV1::ListAccountUsersResponse
2061
+ command.params['accountId'] = account_id unless account_id.nil?
2062
+ command.query['fields'] = fields unless fields.nil?
2063
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2064
+ command.query['userIp'] = user_ip unless user_ip.nil?
2065
+ execute_or_queue_command(command, &block)
2066
+ end
2067
+
2068
+ # Updates a user's Account & Container Permissions.
2069
+ # @param [String] account_id
2070
+ # The GTM Account ID.
2071
+ # @param [String] permission_id
2072
+ # The GTM User ID.
2073
+ # @param [Google::Apis::TagmanagerV1::UserAccess] user_access_object
2074
+ # @param [String] fields
2075
+ # Selector specifying which fields to include in a partial response.
2076
+ # @param [String] quota_user
2077
+ # Available to use for quota purposes for server-side applications. Can be any
2078
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2079
+ # Overrides userIp if both are provided.
2080
+ # @param [String] user_ip
2081
+ # IP address of the site where the request originates. Use this if you want to
2082
+ # enforce per-user limits.
2083
+ # @param [Google::Apis::RequestOptions] options
2084
+ # Request-specific options
2085
+ #
2086
+ # @yield [result, err] Result & error if block supplied
2087
+ # @yieldparam result [Google::Apis::TagmanagerV1::UserAccess] parsed result object
2088
+ # @yieldparam err [StandardError] error object if request failed
2089
+ #
2090
+ # @return [Google::Apis::TagmanagerV1::UserAccess]
2091
+ #
2092
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2093
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2094
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2095
+ def update_permission(account_id, permission_id, user_access_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2096
+ command = make_simple_command(:put, 'accounts/{accountId}/permissions/{permissionId}', options)
2097
+ command.request_representation = Google::Apis::TagmanagerV1::UserAccess::Representation
2098
+ command.request_object = user_access_object
2099
+ command.response_representation = Google::Apis::TagmanagerV1::UserAccess::Representation
2100
+ command.response_class = Google::Apis::TagmanagerV1::UserAccess
2101
+ command.params['accountId'] = account_id unless account_id.nil?
2102
+ command.params['permissionId'] = permission_id unless permission_id.nil?
2103
+ command.query['fields'] = fields unless fields.nil?
2104
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2105
+ command.query['userIp'] = user_ip unless user_ip.nil?
2106
+ execute_or_queue_command(command, &block)
2107
+ end
2108
+
2109
+ protected
2110
+
2111
+ def apply_command_defaults(command)
2112
+ command.query['key'] = key unless key.nil?
2113
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2114
+ command.query['userIp'] = user_ip unless user_ip.nil?
2115
+ end
2116
+ end
2117
+ end
2118
+ end
2119
+ end