google-api-client 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (248) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/MIGRATING.md +22 -7
  4. data/README.md +4 -8
  5. data/api_names.yaml +1210 -37815
  6. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +32 -0
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +144 -0
  8. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +86 -0
  9. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +90 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +764 -764
  12. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +180 -180
  13. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +421 -421
  14. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -0
  15. data/generated/google/apis/admin_directory_v1/classes.rb +1 -0
  16. data/generated/google/apis/admin_reports_v1.rb +1 -1
  17. data/generated/google/apis/adsense_v1_4.rb +1 -1
  18. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +187 -187
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +42 -42
  21. data/generated/google/apis/appengine_v1.rb +40 -0
  22. data/generated/google/apis/appengine_v1/classes.rb +2251 -0
  23. data/generated/google/apis/appengine_v1/representations.rb +858 -0
  24. data/generated/google/apis/appengine_v1/service.rb +894 -0
  25. data/generated/google/apis/bigquery_v2.rb +1 -1
  26. data/generated/google/apis/bigquery_v2/classes.rb +11 -6
  27. data/generated/google/apis/books_v1.rb +1 -1
  28. data/generated/google/apis/books_v1/classes.rb +26 -0
  29. data/generated/google/apis/books_v1/representations.rb +15 -0
  30. data/generated/google/apis/books_v1/service.rb +4 -1
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/classroom_v1.rb +1 -1
  33. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1/classes.rb +638 -637
  35. data/generated/google/apis/cloudbuild_v1/representations.rb +110 -110
  36. data/generated/google/apis/cloudbuild_v1/service.rb +139 -139
  37. data/generated/google/apis/clouddebugger_v2.rb +3 -3
  38. data/generated/google/apis/clouddebugger_v2/classes.rb +131 -131
  39. data/generated/google/apis/clouddebugger_v2/representations.rb +25 -25
  40. data/generated/google/apis/clouderrorreporting_v1beta1.rb +36 -0
  41. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +590 -0
  42. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +252 -0
  43. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +350 -0
  44. data/generated/google/apis/cloudfunctions_v1.rb +35 -0
  45. data/generated/google/apis/cloudfunctions_v1/classes.rb +98 -0
  46. data/generated/google/apis/cloudfunctions_v1/representations.rb +57 -0
  47. data/generated/google/apis/cloudfunctions_v1/service.rb +89 -0
  48. data/generated/google/apis/cloudkms_v1/classes.rb +277 -270
  49. data/generated/google/apis/cloudkms_v1/representations.rb +73 -73
  50. data/generated/google/apis/cloudkms_v1/service.rb +194 -194
  51. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1147 -1144
  53. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  54. data/generated/google/apis/cloudresourcemanager_v1/service.rb +513 -936
  55. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +307 -916
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +63 -285
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +333 -681
  59. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  60. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  61. data/generated/google/apis/cloudtrace_v1/service.rb +16 -16
  62. data/generated/google/apis/compute_beta.rb +1 -1
  63. data/generated/google/apis/compute_beta/classes.rb +32 -7
  64. data/generated/google/apis/compute_beta/representations.rb +2 -0
  65. data/generated/google/apis/compute_beta/service.rb +11 -11
  66. data/generated/google/apis/compute_v1.rb +1 -1
  67. data/generated/google/apis/compute_v1/classes.rb +95 -2
  68. data/generated/google/apis/compute_v1/representations.rb +33 -0
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +3333 -3333
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +759 -759
  71. data/generated/google/apis/dataflow_v1b3/service.rb +154 -154
  72. data/generated/google/apis/dataproc_v1.rb +1 -1
  73. data/generated/google/apis/dataproc_v1/classes.rb +1097 -1097
  74. data/generated/google/apis/dataproc_v1/representations.rb +200 -200
  75. data/generated/google/apis/dataproc_v1/service.rb +356 -356
  76. data/generated/google/apis/datastore_v1.rb +4 -4
  77. data/generated/google/apis/datastore_v1/classes.rb +701 -690
  78. data/generated/google/apis/datastore_v1/representations.rb +160 -160
  79. data/generated/google/apis/datastore_v1/service.rb +52 -52
  80. data/generated/google/apis/deploymentmanager_v2/classes.rb +4 -0
  81. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  82. data/generated/google/apis/drive_v2.rb +1 -1
  83. data/generated/google/apis/drive_v2/classes.rb +158 -35
  84. data/generated/google/apis/drive_v2/representations.rb +39 -0
  85. data/generated/google/apis/drive_v2/service.rb +4 -4
  86. data/generated/google/apis/drive_v3.rb +1 -1
  87. data/generated/google/apis/drive_v3/classes.rb +162 -33
  88. data/generated/google/apis/drive_v3/representations.rb +39 -0
  89. data/generated/google/apis/drive_v3/service.rb +4 -4
  90. data/generated/google/apis/firebasedynamiclinks_v1.rb +35 -0
  91. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +466 -0
  92. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +222 -0
  93. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +95 -0
  94. data/generated/google/apis/firebaserules_v1.rb +41 -0
  95. data/generated/google/apis/firebaserules_v1/classes.rb +425 -0
  96. data/generated/google/apis/firebaserules_v1/representations.rb +222 -0
  97. data/generated/google/apis/firebaserules_v1/service.rb +495 -0
  98. data/generated/google/apis/games_v1/classes.rb +4 -0
  99. data/generated/google/apis/genomics_v1.rb +7 -7
  100. data/generated/google/apis/genomics_v1/classes.rb +2336 -2335
  101. data/generated/google/apis/genomics_v1/representations.rb +387 -387
  102. data/generated/google/apis/genomics_v1/service.rb +1187 -1187
  103. data/generated/google/apis/gmail_v1/classes.rb +3 -0
  104. data/generated/google/apis/iam_v1.rb +1 -1
  105. data/generated/google/apis/iam_v1/classes.rb +123 -117
  106. data/generated/google/apis/iam_v1/representations.rb +33 -33
  107. data/generated/google/apis/iam_v1/service.rb +109 -109
  108. data/generated/google/apis/identitytoolkit_v3/classes.rb +5 -0
  109. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  110. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  111. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  112. data/generated/google/apis/language_v1.rb +36 -0
  113. data/generated/google/apis/language_v1/classes.rb +757 -0
  114. data/generated/google/apis/language_v1/representations.rb +338 -0
  115. data/generated/google/apis/language_v1/service.rb +185 -0
  116. data/generated/google/apis/language_v1beta1/classes.rb +407 -407
  117. data/generated/google/apis/language_v1beta1/representations.rb +103 -103
  118. data/generated/google/apis/language_v1beta1/service.rb +45 -45
  119. data/generated/google/apis/logging_v2.rb +46 -0
  120. data/generated/google/apis/logging_v2/classes.rb +1271 -0
  121. data/generated/google/apis/logging_v2/representations.rb +421 -0
  122. data/generated/google/apis/logging_v2/service.rb +1569 -0
  123. data/generated/google/apis/logging_v2beta1.rb +1 -1
  124. data/generated/google/apis/logging_v2beta1/classes.rb +886 -886
  125. data/generated/google/apis/logging_v2beta1/representations.rb +132 -132
  126. data/generated/google/apis/logging_v2beta1/service.rb +235 -235
  127. data/generated/google/apis/manufacturers_v1/classes.rb +147 -147
  128. data/generated/google/apis/manufacturers_v1/representations.rb +29 -29
  129. data/generated/google/apis/ml_v1.rb +34 -0
  130. data/generated/google/apis/ml_v1/classes.rb +1617 -0
  131. data/generated/google/apis/ml_v1/representations.rb +498 -0
  132. data/generated/google/apis/ml_v1/service.rb +769 -0
  133. data/generated/google/apis/monitoring_v3.rb +4 -4
  134. data/generated/google/apis/monitoring_v3/classes.rb +630 -630
  135. data/generated/google/apis/monitoring_v3/representations.rb +134 -134
  136. data/generated/google/apis/monitoring_v3/service.rb +240 -240
  137. data/generated/google/apis/pagespeedonline_v2/classes.rb +1 -0
  138. data/generated/google/apis/partners_v2.rb +1 -1
  139. data/generated/google/apis/partners_v2/classes.rb +639 -639
  140. data/generated/google/apis/partners_v2/representations.rb +168 -168
  141. data/generated/google/apis/partners_v2/service.rb +381 -381
  142. data/generated/google/apis/people_v1.rb +10 -10
  143. data/generated/google/apis/people_v1/classes.rb +524 -524
  144. data/generated/google/apis/people_v1/representations.rb +143 -143
  145. data/generated/google/apis/people_v1/service.rb +30 -30
  146. data/generated/google/apis/plus_domains_v1.rb +1 -1
  147. data/generated/google/apis/plus_v1.rb +1 -1
  148. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +454 -444
  149. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +90 -90
  150. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +110 -110
  151. data/generated/google/apis/pubsub_v1/classes.rb +175 -173
  152. data/generated/google/apis/pubsub_v1/representations.rb +53 -53
  153. data/generated/google/apis/pubsub_v1/service.rb +210 -210
  154. data/generated/google/apis/replicapool_v1beta2/classes.rb +2 -0
  155. data/generated/google/apis/runtimeconfig_v1.rb +38 -0
  156. data/generated/google/apis/runtimeconfig_v1/classes.rb +252 -0
  157. data/generated/google/apis/runtimeconfig_v1/representations.rb +98 -0
  158. data/generated/google/apis/runtimeconfig_v1/service.rb +176 -0
  159. data/generated/google/apis/script_v1.rb +1 -1
  160. data/generated/google/apis/script_v1/classes.rb +6 -6
  161. data/generated/google/apis/script_v1/representations.rb +1 -1
  162. data/generated/google/apis/searchconsole_v1.rb +31 -0
  163. data/generated/google/apis/searchconsole_v1/classes.rb +205 -0
  164. data/generated/google/apis/searchconsole_v1/representations.rb +129 -0
  165. data/generated/google/apis/searchconsole_v1/service.rb +88 -0
  166. data/generated/google/apis/servicecontrol_v1.rb +38 -0
  167. data/generated/google/apis/servicecontrol_v1/classes.rb +1675 -0
  168. data/generated/google/apis/servicecontrol_v1/representations.rb +601 -0
  169. data/generated/google/apis/servicecontrol_v1/service.rb +337 -0
  170. data/generated/google/apis/servicemanagement_v1.rb +45 -0
  171. data/generated/google/apis/servicemanagement_v1/classes.rb +4934 -0
  172. data/generated/google/apis/servicemanagement_v1/representations.rb +1526 -0
  173. data/generated/google/apis/servicemanagement_v1/service.rb +860 -0
  174. data/generated/google/apis/serviceuser_v1.rb +42 -0
  175. data/generated/google/apis/serviceuser_v1/classes.rb +3746 -0
  176. data/generated/google/apis/serviceuser_v1/representations.rb +1041 -0
  177. data/generated/google/apis/serviceuser_v1/service.rb +214 -0
  178. data/generated/google/apis/sheets_v4.rb +3 -3
  179. data/generated/google/apis/sheets_v4/classes.rb +4390 -4390
  180. data/generated/google/apis/sheets_v4/representations.rb +381 -381
  181. data/generated/google/apis/sheets_v4/service.rb +48 -48
  182. data/generated/google/apis/slides_v1.rb +3 -3
  183. data/generated/google/apis/slides_v1/classes.rb +2860 -2860
  184. data/generated/google/apis/slides_v1/representations.rb +693 -693
  185. data/generated/google/apis/slides_v1/service.rb +30 -30
  186. data/generated/google/apis/sourcerepo_v1.rb +34 -0
  187. data/generated/google/apis/sourcerepo_v1/classes.rb +687 -0
  188. data/generated/google/apis/sourcerepo_v1/representations.rb +285 -0
  189. data/generated/google/apis/sourcerepo_v1/service.rb +291 -0
  190. data/generated/google/apis/spanner_v1.rb +35 -0
  191. data/generated/google/apis/spanner_v1/classes.rb +3294 -0
  192. data/generated/google/apis/spanner_v1/representations.rb +984 -0
  193. data/generated/google/apis/spanner_v1/service.rb +1504 -0
  194. data/generated/google/apis/speech_v1beta1.rb +1 -1
  195. data/generated/google/apis/speech_v1beta1/classes.rb +197 -196
  196. data/generated/google/apis/speech_v1beta1/representations.rb +53 -53
  197. data/generated/google/apis/speech_v1beta1/service.rb +27 -27
  198. data/generated/google/apis/storage_v1.rb +1 -1
  199. data/generated/google/apis/storage_v1/classes.rb +131 -0
  200. data/generated/google/apis/storage_v1/representations.rb +51 -0
  201. data/generated/google/apis/storage_v1/service.rb +182 -0
  202. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  203. data/generated/google/apis/storagetransfer_v1/classes.rb +732 -661
  204. data/generated/google/apis/storagetransfer_v1/representations.rb +132 -132
  205. data/generated/google/apis/storagetransfer_v1/service.rb +174 -197
  206. data/generated/google/apis/surveys_v2.rb +40 -0
  207. data/generated/google/apis/surveys_v2/classes.rb +806 -0
  208. data/generated/google/apis/surveys_v2/representations.rb +347 -0
  209. data/generated/google/apis/surveys_v2/service.rb +477 -0
  210. data/generated/google/apis/tagmanager_v2.rb +52 -0
  211. data/generated/google/apis/tagmanager_v2/classes.rb +2435 -0
  212. data/generated/google/apis/tagmanager_v2/representations.rb +993 -0
  213. data/generated/google/apis/tagmanager_v2/service.rb +2865 -0
  214. data/generated/google/apis/toolresults_v1beta3.rb +34 -0
  215. data/generated/google/apis/toolresults_v1beta3/classes.rb +2160 -0
  216. data/generated/google/apis/toolresults_v1beta3/representations.rb +729 -0
  217. data/generated/google/apis/toolresults_v1beta3/service.rb +1236 -0
  218. data/generated/google/apis/tracing_v1.rb +40 -0
  219. data/generated/google/apis/tracing_v1/classes.rb +664 -0
  220. data/generated/google/apis/tracing_v1/representations.rb +279 -0
  221. data/generated/google/apis/tracing_v1/service.rb +225 -0
  222. data/generated/google/apis/vision_v1.rb +1 -1
  223. data/generated/google/apis/vision_v1/classes.rb +1223 -1222
  224. data/generated/google/apis/vision_v1/representations.rb +234 -234
  225. data/generated/google/apis/vision_v1/service.rb +10 -10
  226. data/generated/google/apis/webfonts_v1.rb +33 -0
  227. data/generated/google/apis/webfonts_v1/classes.rb +113 -0
  228. data/generated/google/apis/webfonts_v1/representations.rb +62 -0
  229. data/generated/google/apis/webfonts_v1/service.rb +102 -0
  230. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  231. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  232. data/generated/google/apis/youtube_partner_v1/classes.rb +31 -0
  233. data/generated/google/apis/youtube_partner_v1/representations.rb +6 -0
  234. data/generated/google/apis/youtube_partner_v1/service.rb +41 -0
  235. data/generated/google/apis/youtube_v3/classes.rb +1 -0
  236. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  237. data/generated/google/apis/youtubereporting_v1/classes.rb +76 -76
  238. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  239. data/generated/google/apis/youtubereporting_v1/service.rb +95 -95
  240. data/lib/google/apis/generator/annotator.rb +5 -4
  241. data/lib/google/apis/generator/templates/_class.tmpl +3 -0
  242. data/lib/google/apis/version.rb +1 -1
  243. data/samples/cli/lib/samples/adsense.rb +99 -0
  244. data/samples/cli/lib/samples/analytics.rb +18 -0
  245. data/samples/cli/lib/samples/gmail.rb +33 -0
  246. data/samples/cli/lib/samples/vision.rb +69 -0
  247. metadata +89 -4
  248. data/sync.rb +0 -71
@@ -0,0 +1,2865 @@
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 TagmanagerV2
23
+ # Tag Manager API
24
+ #
25
+ # Accesses Tag Manager accounts and containers.
26
+ #
27
+ # @example
28
+ # require 'google/apis/tagmanager_v2'
29
+ #
30
+ # Tagmanager = Google::Apis::TagmanagerV2 # Alias the module
31
+ # service = Tagmanager::TagManagerService.new
32
+ #
33
+ # @see https://developers.google.com/tag-manager/api/v2/
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/v2/')
53
+ end
54
+
55
+ # Gets a GTM Account.
56
+ # @param [String] path
57
+ # GTM Accounts's API relative path. Example: accounts/`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::TagmanagerV2::Account] parsed result object
72
+ # @yieldparam err [StandardError] error object if request failed
73
+ #
74
+ # @return [Google::Apis::TagmanagerV2::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(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
80
+ command = make_simple_command(:get, '{+path}', options)
81
+ command.response_representation = Google::Apis::TagmanagerV2::Account::Representation
82
+ command.response_class = Google::Apis::TagmanagerV2::Account
83
+ command.params['path'] = path unless path.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] page_token
92
+ # Continuation token for fetching the next page of results.
93
+ # @param [String] fields
94
+ # Selector specifying which fields to include in a partial response.
95
+ # @param [String] quota_user
96
+ # Available to use for quota purposes for server-side applications. Can be any
97
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
98
+ # Overrides userIp if both are provided.
99
+ # @param [String] user_ip
100
+ # IP address of the site where the request originates. Use this if you want to
101
+ # enforce per-user limits.
102
+ # @param [Google::Apis::RequestOptions] options
103
+ # Request-specific options
104
+ #
105
+ # @yield [result, err] Result & error if block supplied
106
+ # @yieldparam result [Google::Apis::TagmanagerV2::ListAccountsResponse] parsed result object
107
+ # @yieldparam err [StandardError] error object if request failed
108
+ #
109
+ # @return [Google::Apis::TagmanagerV2::ListAccountsResponse]
110
+ #
111
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
112
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
113
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
114
+ def list_accounts(page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
115
+ command = make_simple_command(:get, 'accounts', options)
116
+ command.response_representation = Google::Apis::TagmanagerV2::ListAccountsResponse::Representation
117
+ command.response_class = Google::Apis::TagmanagerV2::ListAccountsResponse
118
+ command.query['pageToken'] = page_token unless page_token.nil?
119
+ command.query['fields'] = fields unless fields.nil?
120
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
121
+ command.query['userIp'] = user_ip unless user_ip.nil?
122
+ execute_or_queue_command(command, &block)
123
+ end
124
+
125
+ # Updates a GTM Account.
126
+ # @param [String] path
127
+ # GTM Accounts's API relative path. Example: accounts/`account_id`
128
+ # @param [Google::Apis::TagmanagerV2::Account] account_object
129
+ # @param [String] fingerprint
130
+ # When provided, this fingerprint must match the fingerprint of the account in
131
+ # storage.
132
+ # @param [String] fields
133
+ # Selector specifying which fields to include in a partial response.
134
+ # @param [String] quota_user
135
+ # Available to use for quota purposes for server-side applications. Can be any
136
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
137
+ # Overrides userIp if both are provided.
138
+ # @param [String] user_ip
139
+ # IP address of the site where the request originates. Use this if you want to
140
+ # enforce per-user limits.
141
+ # @param [Google::Apis::RequestOptions] options
142
+ # Request-specific options
143
+ #
144
+ # @yield [result, err] Result & error if block supplied
145
+ # @yieldparam result [Google::Apis::TagmanagerV2::Account] parsed result object
146
+ # @yieldparam err [StandardError] error object if request failed
147
+ #
148
+ # @return [Google::Apis::TagmanagerV2::Account]
149
+ #
150
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
151
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
152
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
153
+ def update_account(path, account_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
154
+ command = make_simple_command(:put, '{+path}', options)
155
+ command.request_representation = Google::Apis::TagmanagerV2::Account::Representation
156
+ command.request_object = account_object
157
+ command.response_representation = Google::Apis::TagmanagerV2::Account::Representation
158
+ command.response_class = Google::Apis::TagmanagerV2::Account
159
+ command.params['path'] = path unless path.nil?
160
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
161
+ command.query['fields'] = fields unless fields.nil?
162
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
163
+ command.query['userIp'] = user_ip unless user_ip.nil?
164
+ execute_or_queue_command(command, &block)
165
+ end
166
+
167
+ # Creates a Container.
168
+ # @param [String] parent
169
+ # GTM Account's API relative path. Example: accounts/`account_id`.
170
+ # @param [Google::Apis::TagmanagerV2::Container] container_object
171
+ # @param [String] fields
172
+ # Selector specifying which fields to include in a partial response.
173
+ # @param [String] quota_user
174
+ # Available to use for quota purposes for server-side applications. Can be any
175
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
176
+ # Overrides userIp if both are provided.
177
+ # @param [String] user_ip
178
+ # IP address of the site where the request originates. Use this if you want to
179
+ # enforce per-user limits.
180
+ # @param [Google::Apis::RequestOptions] options
181
+ # Request-specific options
182
+ #
183
+ # @yield [result, err] Result & error if block supplied
184
+ # @yieldparam result [Google::Apis::TagmanagerV2::Container] parsed result object
185
+ # @yieldparam err [StandardError] error object if request failed
186
+ #
187
+ # @return [Google::Apis::TagmanagerV2::Container]
188
+ #
189
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
190
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
191
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
192
+ def create_account_container(parent, container_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
193
+ command = make_simple_command(:post, '{+parent}/containers', options)
194
+ command.request_representation = Google::Apis::TagmanagerV2::Container::Representation
195
+ command.request_object = container_object
196
+ command.response_representation = Google::Apis::TagmanagerV2::Container::Representation
197
+ command.response_class = Google::Apis::TagmanagerV2::Container
198
+ command.params['parent'] = parent unless parent.nil?
199
+ command.query['fields'] = fields unless fields.nil?
200
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
201
+ command.query['userIp'] = user_ip unless user_ip.nil?
202
+ execute_or_queue_command(command, &block)
203
+ end
204
+
205
+ # Deletes a Container.
206
+ # @param [String] path
207
+ # GTM Container's API relative path. Example: accounts/`account_id`/containers/`
208
+ # container_id`
209
+ # @param [String] fields
210
+ # Selector specifying which fields to include in a partial response.
211
+ # @param [String] quota_user
212
+ # Available to use for quota purposes for server-side applications. Can be any
213
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
214
+ # Overrides userIp if both are provided.
215
+ # @param [String] user_ip
216
+ # IP address of the site where the request originates. Use this if you want to
217
+ # enforce per-user limits.
218
+ # @param [Google::Apis::RequestOptions] options
219
+ # Request-specific options
220
+ #
221
+ # @yield [result, err] Result & error if block supplied
222
+ # @yieldparam result [NilClass] No result returned for this method
223
+ # @yieldparam err [StandardError] error object if request failed
224
+ #
225
+ # @return [void]
226
+ #
227
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
228
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
229
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
230
+ def delete_account_container(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
231
+ command = make_simple_command(:delete, '{+path}', options)
232
+ command.params['path'] = path unless path.nil?
233
+ command.query['fields'] = fields unless fields.nil?
234
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
235
+ command.query['userIp'] = user_ip unless user_ip.nil?
236
+ execute_or_queue_command(command, &block)
237
+ end
238
+
239
+ # Gets a Container.
240
+ # @param [String] path
241
+ # GTM Container's API relative path. Example: accounts/`account_id`/containers/`
242
+ # 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::TagmanagerV2::Container] parsed result object
257
+ # @yieldparam err [StandardError] error object if request failed
258
+ #
259
+ # @return [Google::Apis::TagmanagerV2::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_account_container(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
265
+ command = make_simple_command(:get, '{+path}', options)
266
+ command.response_representation = Google::Apis::TagmanagerV2::Container::Representation
267
+ command.response_class = Google::Apis::TagmanagerV2::Container
268
+ command.params['path'] = path unless path.nil?
269
+ command.query['fields'] = fields unless fields.nil?
270
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
271
+ command.query['userIp'] = user_ip unless user_ip.nil?
272
+ execute_or_queue_command(command, &block)
273
+ end
274
+
275
+ # Lists all Containers that belongs to a GTM Account.
276
+ # @param [String] parent
277
+ # GTM Accounts's API relative path. Example: accounts/`account_id`.
278
+ # @param [String] page_token
279
+ # Continuation token for fetching the next page of results.
280
+ # @param [String] fields
281
+ # Selector specifying which fields to include in a partial response.
282
+ # @param [String] quota_user
283
+ # Available to use for quota purposes for server-side applications. Can be any
284
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
285
+ # Overrides userIp if both are provided.
286
+ # @param [String] user_ip
287
+ # IP address of the site where the request originates. Use this if you want to
288
+ # enforce per-user limits.
289
+ # @param [Google::Apis::RequestOptions] options
290
+ # Request-specific options
291
+ #
292
+ # @yield [result, err] Result & error if block supplied
293
+ # @yieldparam result [Google::Apis::TagmanagerV2::ListContainersResponse] parsed result object
294
+ # @yieldparam err [StandardError] error object if request failed
295
+ #
296
+ # @return [Google::Apis::TagmanagerV2::ListContainersResponse]
297
+ #
298
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
299
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
300
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
301
+ def list_account_containers(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
302
+ command = make_simple_command(:get, '{+parent}/containers', options)
303
+ command.response_representation = Google::Apis::TagmanagerV2::ListContainersResponse::Representation
304
+ command.response_class = Google::Apis::TagmanagerV2::ListContainersResponse
305
+ command.params['parent'] = parent unless parent.nil?
306
+ command.query['pageToken'] = page_token unless page_token.nil?
307
+ command.query['fields'] = fields unless fields.nil?
308
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
309
+ command.query['userIp'] = user_ip unless user_ip.nil?
310
+ execute_or_queue_command(command, &block)
311
+ end
312
+
313
+ # Updates a Container.
314
+ # @param [String] path
315
+ # GTM Container's API relative path. Example: accounts/`account_id`/containers/`
316
+ # container_id`
317
+ # @param [Google::Apis::TagmanagerV2::Container] container_object
318
+ # @param [String] fingerprint
319
+ # When provided, this fingerprint must match the fingerprint of the container in
320
+ # storage.
321
+ # @param [String] fields
322
+ # Selector specifying which fields to include in a partial response.
323
+ # @param [String] quota_user
324
+ # Available to use for quota purposes for server-side applications. Can be any
325
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
326
+ # Overrides userIp if both are provided.
327
+ # @param [String] user_ip
328
+ # IP address of the site where the request originates. Use this if you want to
329
+ # enforce per-user limits.
330
+ # @param [Google::Apis::RequestOptions] options
331
+ # Request-specific options
332
+ #
333
+ # @yield [result, err] Result & error if block supplied
334
+ # @yieldparam result [Google::Apis::TagmanagerV2::Container] parsed result object
335
+ # @yieldparam err [StandardError] error object if request failed
336
+ #
337
+ # @return [Google::Apis::TagmanagerV2::Container]
338
+ #
339
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
340
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
341
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
342
+ def update_account_container(path, container_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
343
+ command = make_simple_command(:put, '{+path}', options)
344
+ command.request_representation = Google::Apis::TagmanagerV2::Container::Representation
345
+ command.request_object = container_object
346
+ command.response_representation = Google::Apis::TagmanagerV2::Container::Representation
347
+ command.response_class = Google::Apis::TagmanagerV2::Container
348
+ command.params['path'] = path unless path.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] parent
358
+ # GTM Container's API relative path. Example: accounts/`account_id`/containers/`
359
+ # container_id`
360
+ # @param [Google::Apis::TagmanagerV2::Environment] environment_object
361
+ # @param [String] fields
362
+ # Selector specifying which fields to include in a partial response.
363
+ # @param [String] quota_user
364
+ # Available to use for quota purposes for server-side applications. Can be any
365
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
366
+ # Overrides userIp if both are provided.
367
+ # @param [String] user_ip
368
+ # IP address of the site where the request originates. Use this if you want to
369
+ # enforce per-user limits.
370
+ # @param [Google::Apis::RequestOptions] options
371
+ # Request-specific options
372
+ #
373
+ # @yield [result, err] Result & error if block supplied
374
+ # @yieldparam result [Google::Apis::TagmanagerV2::Environment] parsed result object
375
+ # @yieldparam err [StandardError] error object if request failed
376
+ #
377
+ # @return [Google::Apis::TagmanagerV2::Environment]
378
+ #
379
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
380
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
381
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
382
+ def create_account_container_environment(parent, environment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
383
+ command = make_simple_command(:post, '{+parent}/environments', options)
384
+ command.request_representation = Google::Apis::TagmanagerV2::Environment::Representation
385
+ command.request_object = environment_object
386
+ command.response_representation = Google::Apis::TagmanagerV2::Environment::Representation
387
+ command.response_class = Google::Apis::TagmanagerV2::Environment
388
+ command.params['parent'] = parent unless parent.nil?
389
+ command.query['fields'] = fields unless fields.nil?
390
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
391
+ command.query['userIp'] = user_ip unless user_ip.nil?
392
+ execute_or_queue_command(command, &block)
393
+ end
394
+
395
+ # Deletes a GTM Environment.
396
+ # @param [String] path
397
+ # GTM Environment's API relative path. Example: accounts/`account_id`/containers/
398
+ # `container_id`/environments/`environment_id`
399
+ # @param [String] fields
400
+ # Selector specifying which fields to include in a partial response.
401
+ # @param [String] quota_user
402
+ # Available to use for quota purposes for server-side applications. Can be any
403
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
404
+ # Overrides userIp if both are provided.
405
+ # @param [String] user_ip
406
+ # IP address of the site where the request originates. Use this if you want to
407
+ # enforce per-user limits.
408
+ # @param [Google::Apis::RequestOptions] options
409
+ # Request-specific options
410
+ #
411
+ # @yield [result, err] Result & error if block supplied
412
+ # @yieldparam result [NilClass] No result returned for this method
413
+ # @yieldparam err [StandardError] error object if request failed
414
+ #
415
+ # @return [void]
416
+ #
417
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
418
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
419
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
420
+ def delete_account_container_environment(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
421
+ command = make_simple_command(:delete, '{+path}', options)
422
+ command.params['path'] = path unless path.nil?
423
+ command.query['fields'] = fields unless fields.nil?
424
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
425
+ command.query['userIp'] = user_ip unless user_ip.nil?
426
+ execute_or_queue_command(command, &block)
427
+ end
428
+
429
+ # Gets a GTM Environment.
430
+ # @param [String] path
431
+ # GTM Environment's API relative path. Example: accounts/`account_id`/containers/
432
+ # `container_id`/environments/`environment_id`
433
+ # @param [String] fields
434
+ # Selector specifying which fields to include in a partial response.
435
+ # @param [String] quota_user
436
+ # Available to use for quota purposes for server-side applications. Can be any
437
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
438
+ # Overrides userIp if both are provided.
439
+ # @param [String] user_ip
440
+ # IP address of the site where the request originates. Use this if you want to
441
+ # enforce per-user limits.
442
+ # @param [Google::Apis::RequestOptions] options
443
+ # Request-specific options
444
+ #
445
+ # @yield [result, err] Result & error if block supplied
446
+ # @yieldparam result [Google::Apis::TagmanagerV2::Environment] parsed result object
447
+ # @yieldparam err [StandardError] error object if request failed
448
+ #
449
+ # @return [Google::Apis::TagmanagerV2::Environment]
450
+ #
451
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
452
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
453
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
454
+ def get_account_container_environment(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
455
+ command = make_simple_command(:get, '{+path}', options)
456
+ command.response_representation = Google::Apis::TagmanagerV2::Environment::Representation
457
+ command.response_class = Google::Apis::TagmanagerV2::Environment
458
+ command.params['path'] = path unless path.nil?
459
+ command.query['fields'] = fields unless fields.nil?
460
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
461
+ command.query['userIp'] = user_ip unless user_ip.nil?
462
+ execute_or_queue_command(command, &block)
463
+ end
464
+
465
+ # Lists all GTM Environments of a GTM Container.
466
+ # @param [String] parent
467
+ # GTM Container's API relative path. Example: accounts/`account_id`/containers/`
468
+ # container_id`
469
+ # @param [String] page_token
470
+ # Continuation token for fetching the next page of results.
471
+ # @param [String] fields
472
+ # Selector specifying which fields to include in a partial response.
473
+ # @param [String] quota_user
474
+ # Available to use for quota purposes for server-side applications. Can be any
475
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
476
+ # Overrides userIp if both are provided.
477
+ # @param [String] user_ip
478
+ # IP address of the site where the request originates. Use this if you want to
479
+ # enforce per-user limits.
480
+ # @param [Google::Apis::RequestOptions] options
481
+ # Request-specific options
482
+ #
483
+ # @yield [result, err] Result & error if block supplied
484
+ # @yieldparam result [Google::Apis::TagmanagerV2::ListEnvironmentsResponse] parsed result object
485
+ # @yieldparam err [StandardError] error object if request failed
486
+ #
487
+ # @return [Google::Apis::TagmanagerV2::ListEnvironmentsResponse]
488
+ #
489
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
490
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
491
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
492
+ def list_account_container_environments(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
493
+ command = make_simple_command(:get, '{+parent}/environments', options)
494
+ command.response_representation = Google::Apis::TagmanagerV2::ListEnvironmentsResponse::Representation
495
+ command.response_class = Google::Apis::TagmanagerV2::ListEnvironmentsResponse
496
+ command.params['parent'] = parent unless parent.nil?
497
+ command.query['pageToken'] = page_token unless page_token.nil?
498
+ command.query['fields'] = fields unless fields.nil?
499
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
500
+ command.query['userIp'] = user_ip unless user_ip.nil?
501
+ execute_or_queue_command(command, &block)
502
+ end
503
+
504
+ # Updates a GTM Environment. This method supports patch semantics.
505
+ # @param [String] path
506
+ # GTM Environment's API relative path. Example: accounts/`account_id`/containers/
507
+ # `container_id`/environments/`environment_id`
508
+ # @param [Google::Apis::TagmanagerV2::Environment] environment_object
509
+ # @param [String] fingerprint
510
+ # When provided, this fingerprint must match the fingerprint of the environment
511
+ # in storage.
512
+ # @param [String] fields
513
+ # Selector specifying which fields to include in a partial response.
514
+ # @param [String] quota_user
515
+ # Available to use for quota purposes for server-side applications. Can be any
516
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
517
+ # Overrides userIp if both are provided.
518
+ # @param [String] user_ip
519
+ # IP address of the site where the request originates. Use this if you want to
520
+ # enforce per-user limits.
521
+ # @param [Google::Apis::RequestOptions] options
522
+ # Request-specific options
523
+ #
524
+ # @yield [result, err] Result & error if block supplied
525
+ # @yieldparam result [Google::Apis::TagmanagerV2::Environment] parsed result object
526
+ # @yieldparam err [StandardError] error object if request failed
527
+ #
528
+ # @return [Google::Apis::TagmanagerV2::Environment]
529
+ #
530
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
531
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
532
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
533
+ def patch_account_container_environment(path, environment_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
534
+ command = make_simple_command(:patch, '{+path}', options)
535
+ command.request_representation = Google::Apis::TagmanagerV2::Environment::Representation
536
+ command.request_object = environment_object
537
+ command.response_representation = Google::Apis::TagmanagerV2::Environment::Representation
538
+ command.response_class = Google::Apis::TagmanagerV2::Environment
539
+ command.params['path'] = path unless path.nil?
540
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
541
+ command.query['fields'] = fields unless fields.nil?
542
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
543
+ command.query['userIp'] = user_ip unless user_ip.nil?
544
+ execute_or_queue_command(command, &block)
545
+ end
546
+
547
+ # Re-generates the authorization code for a GTM Environment.
548
+ # @param [String] path
549
+ # GTM Environment's API relative path. Example: accounts/`account_id`/containers/
550
+ # `container_id`/environments/`environment_id`
551
+ # @param [Google::Apis::TagmanagerV2::Environment] environment_object
552
+ # @param [String] fields
553
+ # Selector specifying which fields to include in a partial response.
554
+ # @param [String] quota_user
555
+ # Available to use for quota purposes for server-side applications. Can be any
556
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
557
+ # Overrides userIp if both are provided.
558
+ # @param [String] user_ip
559
+ # IP address of the site where the request originates. Use this if you want to
560
+ # enforce per-user limits.
561
+ # @param [Google::Apis::RequestOptions] options
562
+ # Request-specific options
563
+ #
564
+ # @yield [result, err] Result & error if block supplied
565
+ # @yieldparam result [Google::Apis::TagmanagerV2::Environment] parsed result object
566
+ # @yieldparam err [StandardError] error object if request failed
567
+ #
568
+ # @return [Google::Apis::TagmanagerV2::Environment]
569
+ #
570
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
571
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
572
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
573
+ def reauthorize_account_container_environment(path, environment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
574
+ command = make_simple_command(:post, '{+path}:reauthorize', options)
575
+ command.request_representation = Google::Apis::TagmanagerV2::Environment::Representation
576
+ command.request_object = environment_object
577
+ command.response_representation = Google::Apis::TagmanagerV2::Environment::Representation
578
+ command.response_class = Google::Apis::TagmanagerV2::Environment
579
+ command.params['path'] = path unless path.nil?
580
+ command.query['fields'] = fields unless fields.nil?
581
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
582
+ command.query['userIp'] = user_ip unless user_ip.nil?
583
+ execute_or_queue_command(command, &block)
584
+ end
585
+
586
+ # Updates a GTM Environment.
587
+ # @param [String] path
588
+ # GTM Environment's API relative path. Example: accounts/`account_id`/containers/
589
+ # `container_id`/environments/`environment_id`
590
+ # @param [Google::Apis::TagmanagerV2::Environment] environment_object
591
+ # @param [String] fingerprint
592
+ # When provided, this fingerprint must match the fingerprint of the environment
593
+ # in storage.
594
+ # @param [String] fields
595
+ # Selector specifying which fields to include in a partial response.
596
+ # @param [String] quota_user
597
+ # Available to use for quota purposes for server-side applications. Can be any
598
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
599
+ # Overrides userIp if both are provided.
600
+ # @param [String] user_ip
601
+ # IP address of the site where the request originates. Use this if you want to
602
+ # enforce per-user limits.
603
+ # @param [Google::Apis::RequestOptions] options
604
+ # Request-specific options
605
+ #
606
+ # @yield [result, err] Result & error if block supplied
607
+ # @yieldparam result [Google::Apis::TagmanagerV2::Environment] parsed result object
608
+ # @yieldparam err [StandardError] error object if request failed
609
+ #
610
+ # @return [Google::Apis::TagmanagerV2::Environment]
611
+ #
612
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
613
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
614
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
615
+ def update_account_container_environment(path, environment_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
616
+ command = make_simple_command(:put, '{+path}', options)
617
+ command.request_representation = Google::Apis::TagmanagerV2::Environment::Representation
618
+ command.request_object = environment_object
619
+ command.response_representation = Google::Apis::TagmanagerV2::Environment::Representation
620
+ command.response_class = Google::Apis::TagmanagerV2::Environment
621
+ command.params['path'] = path unless path.nil?
622
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
623
+ command.query['fields'] = fields unless fields.nil?
624
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
625
+ command.query['userIp'] = user_ip unless user_ip.nil?
626
+ execute_or_queue_command(command, &block)
627
+ end
628
+
629
+ # Gets the latest container version header
630
+ # @param [String] parent
631
+ # GTM Container's API relative path. Example: accounts/`account_id`/containers/`
632
+ # container_id`
633
+ # @param [String] fields
634
+ # Selector specifying which fields to include in a partial response.
635
+ # @param [String] quota_user
636
+ # Available to use for quota purposes for server-side applications. Can be any
637
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
638
+ # Overrides userIp if both are provided.
639
+ # @param [String] user_ip
640
+ # IP address of the site where the request originates. Use this if you want to
641
+ # enforce per-user limits.
642
+ # @param [Google::Apis::RequestOptions] options
643
+ # Request-specific options
644
+ #
645
+ # @yield [result, err] Result & error if block supplied
646
+ # @yieldparam result [Google::Apis::TagmanagerV2::ContainerVersionHeader] parsed result object
647
+ # @yieldparam err [StandardError] error object if request failed
648
+ #
649
+ # @return [Google::Apis::TagmanagerV2::ContainerVersionHeader]
650
+ #
651
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
652
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
653
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
654
+ def latest_account_container_version_header(parent, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
655
+ command = make_simple_command(:get, '{+parent}/version_headers:latest', options)
656
+ command.response_representation = Google::Apis::TagmanagerV2::ContainerVersionHeader::Representation
657
+ command.response_class = Google::Apis::TagmanagerV2::ContainerVersionHeader
658
+ command.params['parent'] = parent unless parent.nil?
659
+ command.query['fields'] = fields unless fields.nil?
660
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
661
+ command.query['userIp'] = user_ip unless user_ip.nil?
662
+ execute_or_queue_command(command, &block)
663
+ end
664
+
665
+ # Lists all Container Versions of a GTM Container.
666
+ # @param [String] parent
667
+ # GTM Container's API relative path. Example: accounts/`account_id`/containers/`
668
+ # container_id`
669
+ # @param [Boolean] include_deleted
670
+ # Also retrieve deleted (archived) versions when true.
671
+ # @param [String] page_token
672
+ # Continuation token for fetching the next page of results.
673
+ # @param [String] fields
674
+ # Selector specifying which fields to include in a partial response.
675
+ # @param [String] quota_user
676
+ # Available to use for quota purposes for server-side applications. Can be any
677
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
678
+ # Overrides userIp if both are provided.
679
+ # @param [String] user_ip
680
+ # IP address of the site where the request originates. Use this if you want to
681
+ # enforce per-user limits.
682
+ # @param [Google::Apis::RequestOptions] options
683
+ # Request-specific options
684
+ #
685
+ # @yield [result, err] Result & error if block supplied
686
+ # @yieldparam result [Google::Apis::TagmanagerV2::ListContainerVersionsResponse] parsed result object
687
+ # @yieldparam err [StandardError] error object if request failed
688
+ #
689
+ # @return [Google::Apis::TagmanagerV2::ListContainerVersionsResponse]
690
+ #
691
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
692
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
693
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
694
+ def list_account_container_version_headers(parent, include_deleted: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
695
+ command = make_simple_command(:get, '{+parent}/version_headers', options)
696
+ command.response_representation = Google::Apis::TagmanagerV2::ListContainerVersionsResponse::Representation
697
+ command.response_class = Google::Apis::TagmanagerV2::ListContainerVersionsResponse
698
+ command.params['parent'] = parent unless parent.nil?
699
+ command.query['includeDeleted'] = include_deleted unless include_deleted.nil?
700
+ command.query['pageToken'] = page_token unless page_token.nil?
701
+ command.query['fields'] = fields unless fields.nil?
702
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
703
+ command.query['userIp'] = user_ip unless user_ip.nil?
704
+ execute_or_queue_command(command, &block)
705
+ end
706
+
707
+ # Deletes a Container Version.
708
+ # @param [String] path
709
+ # GTM ContainerVersion's API relative path. Example: accounts/`account_id`/
710
+ # containers/`container_id`/versions/`version_id`
711
+ # @param [String] fields
712
+ # Selector specifying which fields to include in a partial response.
713
+ # @param [String] quota_user
714
+ # Available to use for quota purposes for server-side applications. Can be any
715
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
716
+ # Overrides userIp if both are provided.
717
+ # @param [String] user_ip
718
+ # IP address of the site where the request originates. Use this if you want to
719
+ # enforce per-user limits.
720
+ # @param [Google::Apis::RequestOptions] options
721
+ # Request-specific options
722
+ #
723
+ # @yield [result, err] Result & error if block supplied
724
+ # @yieldparam result [NilClass] No result returned for this method
725
+ # @yieldparam err [StandardError] error object if request failed
726
+ #
727
+ # @return [void]
728
+ #
729
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
730
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
731
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
732
+ def delete_account_container_version(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
733
+ command = make_simple_command(:delete, '{+path}', options)
734
+ command.params['path'] = path unless path.nil?
735
+ command.query['fields'] = fields unless fields.nil?
736
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
737
+ command.query['userIp'] = user_ip unless user_ip.nil?
738
+ execute_or_queue_command(command, &block)
739
+ end
740
+
741
+ # Gets a Container Version.
742
+ # @param [String] path
743
+ # GTM ContainerVersion's API relative path. Example: accounts/`account_id`/
744
+ # containers/`container_id`/versions/`version_id`
745
+ # @param [String] container_version_id
746
+ # The GTM ContainerVersion ID. Specify published to retrieve the currently
747
+ # published version.
748
+ # @param [String] fields
749
+ # Selector specifying which fields to include in a partial response.
750
+ # @param [String] quota_user
751
+ # Available to use for quota purposes for server-side applications. Can be any
752
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
753
+ # Overrides userIp if both are provided.
754
+ # @param [String] user_ip
755
+ # IP address of the site where the request originates. Use this if you want to
756
+ # enforce per-user limits.
757
+ # @param [Google::Apis::RequestOptions] options
758
+ # Request-specific options
759
+ #
760
+ # @yield [result, err] Result & error if block supplied
761
+ # @yieldparam result [Google::Apis::TagmanagerV2::ContainerVersion] parsed result object
762
+ # @yieldparam err [StandardError] error object if request failed
763
+ #
764
+ # @return [Google::Apis::TagmanagerV2::ContainerVersion]
765
+ #
766
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
767
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
768
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
769
+ def get_account_container_version(path, container_version_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
770
+ command = make_simple_command(:get, '{+path}', options)
771
+ command.response_representation = Google::Apis::TagmanagerV2::ContainerVersion::Representation
772
+ command.response_class = Google::Apis::TagmanagerV2::ContainerVersion
773
+ command.params['path'] = path unless path.nil?
774
+ command.query['containerVersionId'] = container_version_id unless container_version_id.nil?
775
+ command.query['fields'] = fields unless fields.nil?
776
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
777
+ command.query['userIp'] = user_ip unless user_ip.nil?
778
+ execute_or_queue_command(command, &block)
779
+ end
780
+
781
+ # Gets the live (i.e. published) container version
782
+ # @param [String] parent
783
+ # GTM Container's API relative path. Example: accounts/`account_id`/containers/`
784
+ # container_id`
785
+ # @param [String] fields
786
+ # Selector specifying which fields to include in a partial response.
787
+ # @param [String] quota_user
788
+ # Available to use for quota purposes for server-side applications. Can be any
789
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
790
+ # Overrides userIp if both are provided.
791
+ # @param [String] user_ip
792
+ # IP address of the site where the request originates. Use this if you want to
793
+ # enforce per-user limits.
794
+ # @param [Google::Apis::RequestOptions] options
795
+ # Request-specific options
796
+ #
797
+ # @yield [result, err] Result & error if block supplied
798
+ # @yieldparam result [Google::Apis::TagmanagerV2::ContainerVersion] parsed result object
799
+ # @yieldparam err [StandardError] error object if request failed
800
+ #
801
+ # @return [Google::Apis::TagmanagerV2::ContainerVersion]
802
+ #
803
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
804
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
805
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
806
+ def live_account_container_version(parent, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
807
+ command = make_simple_command(:get, '{+parent}/versions:live', options)
808
+ command.response_representation = Google::Apis::TagmanagerV2::ContainerVersion::Representation
809
+ command.response_class = Google::Apis::TagmanagerV2::ContainerVersion
810
+ command.params['parent'] = parent unless parent.nil?
811
+ command.query['fields'] = fields unless fields.nil?
812
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
813
+ command.query['userIp'] = user_ip unless user_ip.nil?
814
+ execute_or_queue_command(command, &block)
815
+ end
816
+
817
+ # Publishes a Container Version.
818
+ # @param [String] path
819
+ # GTM ContainerVersion's API relative path. Example: accounts/`account_id`/
820
+ # containers/`container_id`/versions/`version_id`
821
+ # @param [String] fingerprint
822
+ # When provided, this fingerprint must match the fingerprint of the container
823
+ # version in storage.
824
+ # @param [String] fields
825
+ # Selector specifying which fields to include in a partial response.
826
+ # @param [String] quota_user
827
+ # Available to use for quota purposes for server-side applications. Can be any
828
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
829
+ # Overrides userIp if both are provided.
830
+ # @param [String] user_ip
831
+ # IP address of the site where the request originates. Use this if you want to
832
+ # enforce per-user limits.
833
+ # @param [Google::Apis::RequestOptions] options
834
+ # Request-specific options
835
+ #
836
+ # @yield [result, err] Result & error if block supplied
837
+ # @yieldparam result [Google::Apis::TagmanagerV2::PublishContainerVersionResponse] parsed result object
838
+ # @yieldparam err [StandardError] error object if request failed
839
+ #
840
+ # @return [Google::Apis::TagmanagerV2::PublishContainerVersionResponse]
841
+ #
842
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
843
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
844
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
845
+ def publish_account_container_version(path, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
846
+ command = make_simple_command(:post, '{+path}:publish', options)
847
+ command.response_representation = Google::Apis::TagmanagerV2::PublishContainerVersionResponse::Representation
848
+ command.response_class = Google::Apis::TagmanagerV2::PublishContainerVersionResponse
849
+ command.params['path'] = path unless path.nil?
850
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
851
+ command.query['fields'] = fields unless fields.nil?
852
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
853
+ command.query['userIp'] = user_ip unless user_ip.nil?
854
+ execute_or_queue_command(command, &block)
855
+ end
856
+
857
+ # Sets the latest version used for synchronization of workspaces when detecting
858
+ # conflicts and errors.
859
+ # @param [String] path
860
+ # GTM ContainerVersion's API relative path. Example: accounts/`account_id`/
861
+ # containers/`container_id`/versions/`version_id`
862
+ # @param [String] fields
863
+ # Selector specifying which fields to include in a partial response.
864
+ # @param [String] quota_user
865
+ # Available to use for quota purposes for server-side applications. Can be any
866
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
867
+ # Overrides userIp if both are provided.
868
+ # @param [String] user_ip
869
+ # IP address of the site where the request originates. Use this if you want to
870
+ # enforce per-user limits.
871
+ # @param [Google::Apis::RequestOptions] options
872
+ # Request-specific options
873
+ #
874
+ # @yield [result, err] Result & error if block supplied
875
+ # @yieldparam result [Google::Apis::TagmanagerV2::ContainerVersion] parsed result object
876
+ # @yieldparam err [StandardError] error object if request failed
877
+ #
878
+ # @return [Google::Apis::TagmanagerV2::ContainerVersion]
879
+ #
880
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
881
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
882
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
883
+ def set_account_container_version_latest(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
884
+ command = make_simple_command(:post, '{+path}:set_latest', options)
885
+ command.response_representation = Google::Apis::TagmanagerV2::ContainerVersion::Representation
886
+ command.response_class = Google::Apis::TagmanagerV2::ContainerVersion
887
+ command.params['path'] = path unless path.nil?
888
+ command.query['fields'] = fields unless fields.nil?
889
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
890
+ command.query['userIp'] = user_ip unless user_ip.nil?
891
+ execute_or_queue_command(command, &block)
892
+ end
893
+
894
+ # Undeletes a Container Version.
895
+ # @param [String] path
896
+ # GTM ContainerVersion's API relative path. Example: accounts/`account_id`/
897
+ # containers/`container_id`/versions/`version_id`
898
+ # @param [String] fields
899
+ # Selector specifying which fields to include in a partial response.
900
+ # @param [String] quota_user
901
+ # Available to use for quota purposes for server-side applications. Can be any
902
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
903
+ # Overrides userIp if both are provided.
904
+ # @param [String] user_ip
905
+ # IP address of the site where the request originates. Use this if you want to
906
+ # enforce per-user limits.
907
+ # @param [Google::Apis::RequestOptions] options
908
+ # Request-specific options
909
+ #
910
+ # @yield [result, err] Result & error if block supplied
911
+ # @yieldparam result [Google::Apis::TagmanagerV2::ContainerVersion] parsed result object
912
+ # @yieldparam err [StandardError] error object if request failed
913
+ #
914
+ # @return [Google::Apis::TagmanagerV2::ContainerVersion]
915
+ #
916
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
917
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
918
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
919
+ def undelete_account_container_version(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
920
+ command = make_simple_command(:post, '{+path}:undelete', options)
921
+ command.response_representation = Google::Apis::TagmanagerV2::ContainerVersion::Representation
922
+ command.response_class = Google::Apis::TagmanagerV2::ContainerVersion
923
+ command.params['path'] = path unless path.nil?
924
+ command.query['fields'] = fields unless fields.nil?
925
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
926
+ command.query['userIp'] = user_ip unless user_ip.nil?
927
+ execute_or_queue_command(command, &block)
928
+ end
929
+
930
+ # Updates a Container Version.
931
+ # @param [String] path
932
+ # GTM ContainerVersion's API relative path. Example: accounts/`account_id`/
933
+ # containers/`container_id`/versions/`version_id`
934
+ # @param [Google::Apis::TagmanagerV2::ContainerVersion] container_version_object
935
+ # @param [String] fingerprint
936
+ # When provided, this fingerprint must match the fingerprint of the container
937
+ # version in storage.
938
+ # @param [String] fields
939
+ # Selector specifying which fields to include in a partial response.
940
+ # @param [String] quota_user
941
+ # Available to use for quota purposes for server-side applications. Can be any
942
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
943
+ # Overrides userIp if both are provided.
944
+ # @param [String] user_ip
945
+ # IP address of the site where the request originates. Use this if you want to
946
+ # enforce per-user limits.
947
+ # @param [Google::Apis::RequestOptions] options
948
+ # Request-specific options
949
+ #
950
+ # @yield [result, err] Result & error if block supplied
951
+ # @yieldparam result [Google::Apis::TagmanagerV2::ContainerVersion] parsed result object
952
+ # @yieldparam err [StandardError] error object if request failed
953
+ #
954
+ # @return [Google::Apis::TagmanagerV2::ContainerVersion]
955
+ #
956
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
957
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
958
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
959
+ def update_account_container_version(path, container_version_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
960
+ command = make_simple_command(:put, '{+path}', options)
961
+ command.request_representation = Google::Apis::TagmanagerV2::ContainerVersion::Representation
962
+ command.request_object = container_version_object
963
+ command.response_representation = Google::Apis::TagmanagerV2::ContainerVersion::Representation
964
+ command.response_class = Google::Apis::TagmanagerV2::ContainerVersion
965
+ command.params['path'] = path unless path.nil?
966
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
967
+ command.query['fields'] = fields unless fields.nil?
968
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
969
+ command.query['userIp'] = user_ip unless user_ip.nil?
970
+ execute_or_queue_command(command, &block)
971
+ end
972
+
973
+ # Creates a Workspace.
974
+ # @param [String] parent
975
+ # GTM parent Container's API relative path. Example: accounts/`account_id`/
976
+ # containers/`container_id`
977
+ # @param [Google::Apis::TagmanagerV2::Workspace] workspace_object
978
+ # @param [String] fields
979
+ # Selector specifying which fields to include in a partial response.
980
+ # @param [String] quota_user
981
+ # Available to use for quota purposes for server-side applications. Can be any
982
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
983
+ # Overrides userIp if both are provided.
984
+ # @param [String] user_ip
985
+ # IP address of the site where the request originates. Use this if you want to
986
+ # enforce per-user limits.
987
+ # @param [Google::Apis::RequestOptions] options
988
+ # Request-specific options
989
+ #
990
+ # @yield [result, err] Result & error if block supplied
991
+ # @yieldparam result [Google::Apis::TagmanagerV2::Workspace] parsed result object
992
+ # @yieldparam err [StandardError] error object if request failed
993
+ #
994
+ # @return [Google::Apis::TagmanagerV2::Workspace]
995
+ #
996
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
997
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
998
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
999
+ def create_account_container_workspace(parent, workspace_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1000
+ command = make_simple_command(:post, '{+parent}/workspaces', options)
1001
+ command.request_representation = Google::Apis::TagmanagerV2::Workspace::Representation
1002
+ command.request_object = workspace_object
1003
+ command.response_representation = Google::Apis::TagmanagerV2::Workspace::Representation
1004
+ command.response_class = Google::Apis::TagmanagerV2::Workspace
1005
+ command.params['parent'] = parent unless parent.nil?
1006
+ command.query['fields'] = fields unless fields.nil?
1007
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1008
+ command.query['userIp'] = user_ip unless user_ip.nil?
1009
+ execute_or_queue_command(command, &block)
1010
+ end
1011
+
1012
+ # Creates a Container Version from the entities present in the workspace,
1013
+ # deletes the workspace, and sets the base container version to the newly
1014
+ # created version.
1015
+ # @param [String] path
1016
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
1017
+ # container_id`/workspaces/`workspace_id`
1018
+ # @param [Google::Apis::TagmanagerV2::CreateContainerVersionRequestVersionOptions] create_container_version_request_version_options_object
1019
+ # @param [String] fields
1020
+ # Selector specifying which fields to include in a partial response.
1021
+ # @param [String] quota_user
1022
+ # Available to use for quota purposes for server-side applications. Can be any
1023
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1024
+ # Overrides userIp if both are provided.
1025
+ # @param [String] user_ip
1026
+ # IP address of the site where the request originates. Use this if you want to
1027
+ # enforce per-user limits.
1028
+ # @param [Google::Apis::RequestOptions] options
1029
+ # Request-specific options
1030
+ #
1031
+ # @yield [result, err] Result & error if block supplied
1032
+ # @yieldparam result [Google::Apis::TagmanagerV2::CreateContainerVersionResponse] parsed result object
1033
+ # @yieldparam err [StandardError] error object if request failed
1034
+ #
1035
+ # @return [Google::Apis::TagmanagerV2::CreateContainerVersionResponse]
1036
+ #
1037
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1038
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1039
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1040
+ def create_account_container_workspace_version(path, create_container_version_request_version_options_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1041
+ command = make_simple_command(:post, '{+path}:create_version', options)
1042
+ command.request_representation = Google::Apis::TagmanagerV2::CreateContainerVersionRequestVersionOptions::Representation
1043
+ command.request_object = create_container_version_request_version_options_object
1044
+ command.response_representation = Google::Apis::TagmanagerV2::CreateContainerVersionResponse::Representation
1045
+ command.response_class = Google::Apis::TagmanagerV2::CreateContainerVersionResponse
1046
+ command.params['path'] = path unless path.nil?
1047
+ command.query['fields'] = fields unless fields.nil?
1048
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1049
+ command.query['userIp'] = user_ip unless user_ip.nil?
1050
+ execute_or_queue_command(command, &block)
1051
+ end
1052
+
1053
+ # Deletes a Workspace.
1054
+ # @param [String] path
1055
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
1056
+ # container_id`/workspaces/`workspace_id`
1057
+ # @param [String] fields
1058
+ # Selector specifying which fields to include in a partial response.
1059
+ # @param [String] quota_user
1060
+ # Available to use for quota purposes for server-side applications. Can be any
1061
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1062
+ # Overrides userIp if both are provided.
1063
+ # @param [String] user_ip
1064
+ # IP address of the site where the request originates. Use this if you want to
1065
+ # enforce per-user limits.
1066
+ # @param [Google::Apis::RequestOptions] options
1067
+ # Request-specific options
1068
+ #
1069
+ # @yield [result, err] Result & error if block supplied
1070
+ # @yieldparam result [NilClass] No result returned for this method
1071
+ # @yieldparam err [StandardError] error object if request failed
1072
+ #
1073
+ # @return [void]
1074
+ #
1075
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1076
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1077
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1078
+ def delete_account_container_workspace(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1079
+ command = make_simple_command(:delete, '{+path}', options)
1080
+ command.params['path'] = path unless path.nil?
1081
+ command.query['fields'] = fields unless fields.nil?
1082
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1083
+ command.query['userIp'] = user_ip unless user_ip.nil?
1084
+ execute_or_queue_command(command, &block)
1085
+ end
1086
+
1087
+ # Gets a Workspace.
1088
+ # @param [String] path
1089
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
1090
+ # container_id`/workspaces/`workspace_id`
1091
+ # @param [String] fields
1092
+ # Selector specifying which fields to include in a partial response.
1093
+ # @param [String] quota_user
1094
+ # Available to use for quota purposes for server-side applications. Can be any
1095
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1096
+ # Overrides userIp if both are provided.
1097
+ # @param [String] user_ip
1098
+ # IP address of the site where the request originates. Use this if you want to
1099
+ # enforce per-user limits.
1100
+ # @param [Google::Apis::RequestOptions] options
1101
+ # Request-specific options
1102
+ #
1103
+ # @yield [result, err] Result & error if block supplied
1104
+ # @yieldparam result [Google::Apis::TagmanagerV2::Workspace] parsed result object
1105
+ # @yieldparam err [StandardError] error object if request failed
1106
+ #
1107
+ # @return [Google::Apis::TagmanagerV2::Workspace]
1108
+ #
1109
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1110
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1111
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1112
+ def get_account_container_workspace(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1113
+ command = make_simple_command(:get, '{+path}', options)
1114
+ command.response_representation = Google::Apis::TagmanagerV2::Workspace::Representation
1115
+ command.response_class = Google::Apis::TagmanagerV2::Workspace
1116
+ command.params['path'] = path unless path.nil?
1117
+ command.query['fields'] = fields unless fields.nil?
1118
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1119
+ command.query['userIp'] = user_ip unless user_ip.nil?
1120
+ execute_or_queue_command(command, &block)
1121
+ end
1122
+
1123
+ # Gets a GTM Workspace Proposal.
1124
+ # @param [String] path
1125
+ # GTM workspace proposal's relative path: Example: accounts/`aid`/containers/`
1126
+ # cid`/workspace/`wid`/workspace_proposal
1127
+ # @param [String] fields
1128
+ # Selector specifying which fields to include in a partial response.
1129
+ # @param [String] quota_user
1130
+ # Available to use for quota purposes for server-side applications. Can be any
1131
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1132
+ # Overrides userIp if both are provided.
1133
+ # @param [String] user_ip
1134
+ # IP address of the site where the request originates. Use this if you want to
1135
+ # enforce per-user limits.
1136
+ # @param [Google::Apis::RequestOptions] options
1137
+ # Request-specific options
1138
+ #
1139
+ # @yield [result, err] Result & error if block supplied
1140
+ # @yieldparam result [Google::Apis::TagmanagerV2::WorkspaceProposal] parsed result object
1141
+ # @yieldparam err [StandardError] error object if request failed
1142
+ #
1143
+ # @return [Google::Apis::TagmanagerV2::WorkspaceProposal]
1144
+ #
1145
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1146
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1147
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1148
+ def get_account_container_workspace_proposal(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1149
+ command = make_simple_command(:get, '{+path}', options)
1150
+ command.response_representation = Google::Apis::TagmanagerV2::WorkspaceProposal::Representation
1151
+ command.response_class = Google::Apis::TagmanagerV2::WorkspaceProposal
1152
+ command.params['path'] = path unless path.nil?
1153
+ command.query['fields'] = fields unless fields.nil?
1154
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1155
+ command.query['userIp'] = user_ip unless user_ip.nil?
1156
+ execute_or_queue_command(command, &block)
1157
+ end
1158
+
1159
+ # Finds conflicting and modified entities in the workspace.
1160
+ # @param [String] path
1161
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
1162
+ # container_id`/workspaces/`workspace_id`
1163
+ # @param [String] fields
1164
+ # Selector specifying which fields to include in a partial response.
1165
+ # @param [String] quota_user
1166
+ # Available to use for quota purposes for server-side applications. Can be any
1167
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1168
+ # Overrides userIp if both are provided.
1169
+ # @param [String] user_ip
1170
+ # IP address of the site where the request originates. Use this if you want to
1171
+ # enforce per-user limits.
1172
+ # @param [Google::Apis::RequestOptions] options
1173
+ # Request-specific options
1174
+ #
1175
+ # @yield [result, err] Result & error if block supplied
1176
+ # @yieldparam result [Google::Apis::TagmanagerV2::GetWorkspaceStatusResponse] parsed result object
1177
+ # @yieldparam err [StandardError] error object if request failed
1178
+ #
1179
+ # @return [Google::Apis::TagmanagerV2::GetWorkspaceStatusResponse]
1180
+ #
1181
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1182
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1183
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1184
+ def get_account_container_workspace_status(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1185
+ command = make_simple_command(:get, '{+path}/status', options)
1186
+ command.response_representation = Google::Apis::TagmanagerV2::GetWorkspaceStatusResponse::Representation
1187
+ command.response_class = Google::Apis::TagmanagerV2::GetWorkspaceStatusResponse
1188
+ command.params['path'] = path unless path.nil?
1189
+ command.query['fields'] = fields unless fields.nil?
1190
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1191
+ command.query['userIp'] = user_ip unless user_ip.nil?
1192
+ execute_or_queue_command(command, &block)
1193
+ end
1194
+
1195
+ # Lists all Workspaces that belong to a GTM Container.
1196
+ # @param [String] parent
1197
+ # GTM parent Container's API relative path. Example: accounts/`account_id`/
1198
+ # containers/`container_id`
1199
+ # @param [String] page_token
1200
+ # Continuation token for fetching the next page of results.
1201
+ # @param [String] fields
1202
+ # Selector specifying which fields to include in a partial response.
1203
+ # @param [String] quota_user
1204
+ # Available to use for quota purposes for server-side applications. Can be any
1205
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1206
+ # Overrides userIp if both are provided.
1207
+ # @param [String] user_ip
1208
+ # IP address of the site where the request originates. Use this if you want to
1209
+ # enforce per-user limits.
1210
+ # @param [Google::Apis::RequestOptions] options
1211
+ # Request-specific options
1212
+ #
1213
+ # @yield [result, err] Result & error if block supplied
1214
+ # @yieldparam result [Google::Apis::TagmanagerV2::ListWorkspacesResponse] parsed result object
1215
+ # @yieldparam err [StandardError] error object if request failed
1216
+ #
1217
+ # @return [Google::Apis::TagmanagerV2::ListWorkspacesResponse]
1218
+ #
1219
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1220
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1221
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1222
+ def list_account_container_workspaces(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1223
+ command = make_simple_command(:get, '{+parent}/workspaces', options)
1224
+ command.response_representation = Google::Apis::TagmanagerV2::ListWorkspacesResponse::Representation
1225
+ command.response_class = Google::Apis::TagmanagerV2::ListWorkspacesResponse
1226
+ command.params['parent'] = parent unless parent.nil?
1227
+ command.query['pageToken'] = page_token unless page_token.nil?
1228
+ command.query['fields'] = fields unless fields.nil?
1229
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1230
+ command.query['userIp'] = user_ip unless user_ip.nil?
1231
+ execute_or_queue_command(command, &block)
1232
+ end
1233
+
1234
+ # Quick previews a workspace by creating a fake container version from all
1235
+ # entities in the provided workspace.
1236
+ # @param [String] path
1237
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
1238
+ # container_id`/workspaces/`workspace_id`
1239
+ # @param [String] fields
1240
+ # Selector specifying which fields to include in a partial response.
1241
+ # @param [String] quota_user
1242
+ # Available to use for quota purposes for server-side applications. Can be any
1243
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1244
+ # Overrides userIp if both are provided.
1245
+ # @param [String] user_ip
1246
+ # IP address of the site where the request originates. Use this if you want to
1247
+ # enforce per-user limits.
1248
+ # @param [Google::Apis::RequestOptions] options
1249
+ # Request-specific options
1250
+ #
1251
+ # @yield [result, err] Result & error if block supplied
1252
+ # @yieldparam result [Google::Apis::TagmanagerV2::QuickPreviewResponse] parsed result object
1253
+ # @yieldparam err [StandardError] error object if request failed
1254
+ #
1255
+ # @return [Google::Apis::TagmanagerV2::QuickPreviewResponse]
1256
+ #
1257
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1258
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1259
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1260
+ def quick_account_container_workspace_preview(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1261
+ command = make_simple_command(:post, '{+path}:quick_preview', options)
1262
+ command.response_representation = Google::Apis::TagmanagerV2::QuickPreviewResponse::Representation
1263
+ command.response_class = Google::Apis::TagmanagerV2::QuickPreviewResponse
1264
+ command.params['path'] = path unless path.nil?
1265
+ command.query['fields'] = fields unless fields.nil?
1266
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1267
+ command.query['userIp'] = user_ip unless user_ip.nil?
1268
+ execute_or_queue_command(command, &block)
1269
+ end
1270
+
1271
+ # Resolves a merge conflict for a workspace entity by updating it to the
1272
+ # resolved entity passed in the request.
1273
+ # @param [String] path
1274
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
1275
+ # container_id`/workspaces/`workspace_id`
1276
+ # @param [Google::Apis::TagmanagerV2::Entity] entity_object
1277
+ # @param [String] fingerprint
1278
+ # When provided, this fingerprint must match the fingerprint of the
1279
+ # entity_in_workspace in the merge conflict.
1280
+ # @param [String] fields
1281
+ # Selector specifying which fields to include in a partial response.
1282
+ # @param [String] quota_user
1283
+ # Available to use for quota purposes for server-side applications. Can be any
1284
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1285
+ # Overrides userIp if both are provided.
1286
+ # @param [String] user_ip
1287
+ # IP address of the site where the request originates. Use this if you want to
1288
+ # enforce per-user limits.
1289
+ # @param [Google::Apis::RequestOptions] options
1290
+ # Request-specific options
1291
+ #
1292
+ # @yield [result, err] Result & error if block supplied
1293
+ # @yieldparam result [NilClass] No result returned for this method
1294
+ # @yieldparam err [StandardError] error object if request failed
1295
+ #
1296
+ # @return [void]
1297
+ #
1298
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1299
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1300
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1301
+ def resolve_account_container_workspace_conflict(path, entity_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1302
+ command = make_simple_command(:post, '{+path}:resolve_conflict', options)
1303
+ command.request_representation = Google::Apis::TagmanagerV2::Entity::Representation
1304
+ command.request_object = entity_object
1305
+ command.params['path'] = path unless path.nil?
1306
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
1307
+ command.query['fields'] = fields unless fields.nil?
1308
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1309
+ command.query['userIp'] = user_ip unless user_ip.nil?
1310
+ execute_or_queue_command(command, &block)
1311
+ end
1312
+
1313
+ # Syncs a workspace to the latest container version by updating all unmodified
1314
+ # workspace entities and displaying conflicts for modified entities.
1315
+ # @param [String] path
1316
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
1317
+ # container_id`/workspaces/`workspace_id`
1318
+ # @param [String] fields
1319
+ # Selector specifying which fields to include in a partial response.
1320
+ # @param [String] quota_user
1321
+ # Available to use for quota purposes for server-side applications. Can be any
1322
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1323
+ # Overrides userIp if both are provided.
1324
+ # @param [String] user_ip
1325
+ # IP address of the site where the request originates. Use this if you want to
1326
+ # enforce per-user limits.
1327
+ # @param [Google::Apis::RequestOptions] options
1328
+ # Request-specific options
1329
+ #
1330
+ # @yield [result, err] Result & error if block supplied
1331
+ # @yieldparam result [Google::Apis::TagmanagerV2::SyncWorkspaceResponse] parsed result object
1332
+ # @yieldparam err [StandardError] error object if request failed
1333
+ #
1334
+ # @return [Google::Apis::TagmanagerV2::SyncWorkspaceResponse]
1335
+ #
1336
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1337
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1338
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1339
+ def sync_account_container_workspace(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1340
+ command = make_simple_command(:post, '{+path}:sync', options)
1341
+ command.response_representation = Google::Apis::TagmanagerV2::SyncWorkspaceResponse::Representation
1342
+ command.response_class = Google::Apis::TagmanagerV2::SyncWorkspaceResponse
1343
+ command.params['path'] = path unless path.nil?
1344
+ command.query['fields'] = fields unless fields.nil?
1345
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1346
+ command.query['userIp'] = user_ip unless user_ip.nil?
1347
+ execute_or_queue_command(command, &block)
1348
+ end
1349
+
1350
+ # Updates a Workspace.
1351
+ # @param [String] path
1352
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
1353
+ # container_id`/workspaces/`workspace_id`
1354
+ # @param [Google::Apis::TagmanagerV2::Workspace] workspace_object
1355
+ # @param [String] fingerprint
1356
+ # When provided, this fingerprint must match the fingerprint of the workspace in
1357
+ # storage.
1358
+ # @param [String] fields
1359
+ # Selector specifying which fields to include in a partial response.
1360
+ # @param [String] quota_user
1361
+ # Available to use for quota purposes for server-side applications. Can be any
1362
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1363
+ # Overrides userIp if both are provided.
1364
+ # @param [String] user_ip
1365
+ # IP address of the site where the request originates. Use this if you want to
1366
+ # enforce per-user limits.
1367
+ # @param [Google::Apis::RequestOptions] options
1368
+ # Request-specific options
1369
+ #
1370
+ # @yield [result, err] Result & error if block supplied
1371
+ # @yieldparam result [Google::Apis::TagmanagerV2::Workspace] parsed result object
1372
+ # @yieldparam err [StandardError] error object if request failed
1373
+ #
1374
+ # @return [Google::Apis::TagmanagerV2::Workspace]
1375
+ #
1376
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1377
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1378
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1379
+ def update_account_container_workspace(path, workspace_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1380
+ command = make_simple_command(:put, '{+path}', options)
1381
+ command.request_representation = Google::Apis::TagmanagerV2::Workspace::Representation
1382
+ command.request_object = workspace_object
1383
+ command.response_representation = Google::Apis::TagmanagerV2::Workspace::Representation
1384
+ command.response_class = Google::Apis::TagmanagerV2::Workspace
1385
+ command.params['path'] = path unless path.nil?
1386
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
1387
+ command.query['fields'] = fields unless fields.nil?
1388
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1389
+ command.query['userIp'] = user_ip unless user_ip.nil?
1390
+ execute_or_queue_command(command, &block)
1391
+ end
1392
+
1393
+ # Updates a GTM Workspace Proposal.
1394
+ # @param [String] path
1395
+ # GTM workspace proposal's relative path: Example: accounts/`aid`/containers/`
1396
+ # cid`/workspace/`wid`/workspace_proposal
1397
+ # @param [Google::Apis::TagmanagerV2::UpdateWorkspaceProposalRequest] update_workspace_proposal_request_object
1398
+ # @param [String] fields
1399
+ # Selector specifying which fields to include in a partial response.
1400
+ # @param [String] quota_user
1401
+ # Available to use for quota purposes for server-side applications. Can be any
1402
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1403
+ # Overrides userIp if both are provided.
1404
+ # @param [String] user_ip
1405
+ # IP address of the site where the request originates. Use this if you want to
1406
+ # enforce per-user limits.
1407
+ # @param [Google::Apis::RequestOptions] options
1408
+ # Request-specific options
1409
+ #
1410
+ # @yield [result, err] Result & error if block supplied
1411
+ # @yieldparam result [Google::Apis::TagmanagerV2::WorkspaceProposal] parsed result object
1412
+ # @yieldparam err [StandardError] error object if request failed
1413
+ #
1414
+ # @return [Google::Apis::TagmanagerV2::WorkspaceProposal]
1415
+ #
1416
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1417
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1418
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1419
+ def update_account_container_workspace_proposal(path, update_workspace_proposal_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1420
+ command = make_simple_command(:put, '{+path}', options)
1421
+ command.request_representation = Google::Apis::TagmanagerV2::UpdateWorkspaceProposalRequest::Representation
1422
+ command.request_object = update_workspace_proposal_request_object
1423
+ command.response_representation = Google::Apis::TagmanagerV2::WorkspaceProposal::Representation
1424
+ command.response_class = Google::Apis::TagmanagerV2::WorkspaceProposal
1425
+ command.params['path'] = path unless path.nil?
1426
+ command.query['fields'] = fields unless fields.nil?
1427
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1428
+ command.query['userIp'] = user_ip unless user_ip.nil?
1429
+ execute_or_queue_command(command, &block)
1430
+ end
1431
+
1432
+ # Creates one or more GTM Built-In Variables.
1433
+ # @param [String] parent
1434
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
1435
+ # container_id`/workspaces/`workspace_id`
1436
+ # @param [Array<String>, String] type
1437
+ # The types of built-in variables to enable.
1438
+ # @param [String] fields
1439
+ # Selector specifying which fields to include in a partial response.
1440
+ # @param [String] quota_user
1441
+ # Available to use for quota purposes for server-side applications. Can be any
1442
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1443
+ # Overrides userIp if both are provided.
1444
+ # @param [String] user_ip
1445
+ # IP address of the site where the request originates. Use this if you want to
1446
+ # enforce per-user limits.
1447
+ # @param [Google::Apis::RequestOptions] options
1448
+ # Request-specific options
1449
+ #
1450
+ # @yield [result, err] Result & error if block supplied
1451
+ # @yieldparam result [Google::Apis::TagmanagerV2::CreateBuiltInVariableResponse] parsed result object
1452
+ # @yieldparam err [StandardError] error object if request failed
1453
+ #
1454
+ # @return [Google::Apis::TagmanagerV2::CreateBuiltInVariableResponse]
1455
+ #
1456
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1457
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1458
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1459
+ def create_account_container_workspace_built_in_variable(parent, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1460
+ command = make_simple_command(:post, '{+parent}/built_in_variables', options)
1461
+ command.response_representation = Google::Apis::TagmanagerV2::CreateBuiltInVariableResponse::Representation
1462
+ command.response_class = Google::Apis::TagmanagerV2::CreateBuiltInVariableResponse
1463
+ command.params['parent'] = parent unless parent.nil?
1464
+ command.query['type'] = type unless type.nil?
1465
+ command.query['fields'] = fields unless fields.nil?
1466
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1467
+ command.query['userIp'] = user_ip unless user_ip.nil?
1468
+ execute_or_queue_command(command, &block)
1469
+ end
1470
+
1471
+ # Deletes one or more GTM Built-In Variables.
1472
+ # @param [String] path
1473
+ # GTM BuiltInVariable's API relative path. Example: accounts/`account_id`/
1474
+ # containers/`container_id`/workspaces/`workspace_id`/built_in_variables
1475
+ # @param [Array<String>, String] type
1476
+ # The types of built-in variables to delete.
1477
+ # @param [String] fields
1478
+ # Selector specifying which fields to include in a partial response.
1479
+ # @param [String] quota_user
1480
+ # Available to use for quota purposes for server-side applications. Can be any
1481
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1482
+ # Overrides userIp if both are provided.
1483
+ # @param [String] user_ip
1484
+ # IP address of the site where the request originates. Use this if you want to
1485
+ # enforce per-user limits.
1486
+ # @param [Google::Apis::RequestOptions] options
1487
+ # Request-specific options
1488
+ #
1489
+ # @yield [result, err] Result & error if block supplied
1490
+ # @yieldparam result [NilClass] No result returned for this method
1491
+ # @yieldparam err [StandardError] error object if request failed
1492
+ #
1493
+ # @return [void]
1494
+ #
1495
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1496
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1497
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1498
+ def delete_account_container_workspace_built_in_variable(path, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1499
+ command = make_simple_command(:delete, '{+path}', options)
1500
+ command.params['path'] = path unless path.nil?
1501
+ command.query['type'] = type unless type.nil?
1502
+ command.query['fields'] = fields unless fields.nil?
1503
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1504
+ command.query['userIp'] = user_ip unless user_ip.nil?
1505
+ execute_or_queue_command(command, &block)
1506
+ end
1507
+
1508
+ # Lists all the enabled Built-In Variables of a GTM Container.
1509
+ # @param [String] parent
1510
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
1511
+ # container_id`/workspaces/`workspace_id`
1512
+ # @param [String] page_token
1513
+ # Continuation token for fetching the next page of results.
1514
+ # @param [String] fields
1515
+ # Selector specifying which fields to include in a partial response.
1516
+ # @param [String] quota_user
1517
+ # Available to use for quota purposes for server-side applications. Can be any
1518
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1519
+ # Overrides userIp if both are provided.
1520
+ # @param [String] user_ip
1521
+ # IP address of the site where the request originates. Use this if you want to
1522
+ # enforce per-user limits.
1523
+ # @param [Google::Apis::RequestOptions] options
1524
+ # Request-specific options
1525
+ #
1526
+ # @yield [result, err] Result & error if block supplied
1527
+ # @yieldparam result [Google::Apis::TagmanagerV2::ListEnabledBuiltInVariablesResponse] parsed result object
1528
+ # @yieldparam err [StandardError] error object if request failed
1529
+ #
1530
+ # @return [Google::Apis::TagmanagerV2::ListEnabledBuiltInVariablesResponse]
1531
+ #
1532
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1533
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1534
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1535
+ def list_account_container_workspace_built_in_variables(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1536
+ command = make_simple_command(:get, '{+parent}/built_in_variables', options)
1537
+ command.response_representation = Google::Apis::TagmanagerV2::ListEnabledBuiltInVariablesResponse::Representation
1538
+ command.response_class = Google::Apis::TagmanagerV2::ListEnabledBuiltInVariablesResponse
1539
+ command.params['parent'] = parent unless parent.nil?
1540
+ command.query['pageToken'] = page_token unless page_token.nil?
1541
+ command.query['fields'] = fields unless fields.nil?
1542
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1543
+ command.query['userIp'] = user_ip unless user_ip.nil?
1544
+ execute_or_queue_command(command, &block)
1545
+ end
1546
+
1547
+ # Reverts changes to a GTM Built-In Variables in a GTM Workspace.
1548
+ # @param [String] path
1549
+ # GTM BuiltInVariable's API relative path. Example: accounts/`account_id`/
1550
+ # containers/`container_id`/workspaces/`workspace_id`/built_in_variables
1551
+ # @param [String] type
1552
+ # The type of built-in variable to revert.
1553
+ # @param [String] fields
1554
+ # Selector specifying which fields to include in a partial response.
1555
+ # @param [String] quota_user
1556
+ # Available to use for quota purposes for server-side applications. Can be any
1557
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1558
+ # Overrides userIp if both are provided.
1559
+ # @param [String] user_ip
1560
+ # IP address of the site where the request originates. Use this if you want to
1561
+ # enforce per-user limits.
1562
+ # @param [Google::Apis::RequestOptions] options
1563
+ # Request-specific options
1564
+ #
1565
+ # @yield [result, err] Result & error if block supplied
1566
+ # @yieldparam result [Google::Apis::TagmanagerV2::RevertBuiltInVariableResponse] parsed result object
1567
+ # @yieldparam err [StandardError] error object if request failed
1568
+ #
1569
+ # @return [Google::Apis::TagmanagerV2::RevertBuiltInVariableResponse]
1570
+ #
1571
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1572
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1573
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1574
+ def revert_account_container_workspace_built_in_variable(path, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1575
+ command = make_simple_command(:post, '{+path}/built_in_variables:revert', options)
1576
+ command.response_representation = Google::Apis::TagmanagerV2::RevertBuiltInVariableResponse::Representation
1577
+ command.response_class = Google::Apis::TagmanagerV2::RevertBuiltInVariableResponse
1578
+ command.params['path'] = path unless path.nil?
1579
+ command.query['type'] = type unless type.nil?
1580
+ command.query['fields'] = fields unless fields.nil?
1581
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1582
+ command.query['userIp'] = user_ip unless user_ip.nil?
1583
+ execute_or_queue_command(command, &block)
1584
+ end
1585
+
1586
+ # Creates a GTM Folder.
1587
+ # @param [String] parent
1588
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
1589
+ # container_id`/workspaces/`workspace_id`
1590
+ # @param [Google::Apis::TagmanagerV2::Folder] folder_object
1591
+ # @param [String] fields
1592
+ # Selector specifying which fields to include in a partial response.
1593
+ # @param [String] quota_user
1594
+ # Available to use for quota purposes for server-side applications. Can be any
1595
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1596
+ # Overrides userIp if both are provided.
1597
+ # @param [String] user_ip
1598
+ # IP address of the site where the request originates. Use this if you want to
1599
+ # enforce per-user limits.
1600
+ # @param [Google::Apis::RequestOptions] options
1601
+ # Request-specific options
1602
+ #
1603
+ # @yield [result, err] Result & error if block supplied
1604
+ # @yieldparam result [Google::Apis::TagmanagerV2::Folder] parsed result object
1605
+ # @yieldparam err [StandardError] error object if request failed
1606
+ #
1607
+ # @return [Google::Apis::TagmanagerV2::Folder]
1608
+ #
1609
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1610
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1611
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1612
+ def create_account_container_workspace_folder(parent, folder_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1613
+ command = make_simple_command(:post, '{+parent}/folders', options)
1614
+ command.request_representation = Google::Apis::TagmanagerV2::Folder::Representation
1615
+ command.request_object = folder_object
1616
+ command.response_representation = Google::Apis::TagmanagerV2::Folder::Representation
1617
+ command.response_class = Google::Apis::TagmanagerV2::Folder
1618
+ command.params['parent'] = parent unless parent.nil?
1619
+ command.query['fields'] = fields unless fields.nil?
1620
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1621
+ command.query['userIp'] = user_ip unless user_ip.nil?
1622
+ execute_or_queue_command(command, &block)
1623
+ end
1624
+
1625
+ # Deletes a GTM Folder.
1626
+ # @param [String] path
1627
+ # GTM Folder's API relative path. Example: accounts/`account_id`/containers/`
1628
+ # container_id`/workspaces/`workspace_id`/folders/`folder_id`
1629
+ # @param [String] fields
1630
+ # Selector specifying which fields to include in a partial response.
1631
+ # @param [String] quota_user
1632
+ # Available to use for quota purposes for server-side applications. Can be any
1633
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1634
+ # Overrides userIp if both are provided.
1635
+ # @param [String] user_ip
1636
+ # IP address of the site where the request originates. Use this if you want to
1637
+ # enforce per-user limits.
1638
+ # @param [Google::Apis::RequestOptions] options
1639
+ # Request-specific options
1640
+ #
1641
+ # @yield [result, err] Result & error if block supplied
1642
+ # @yieldparam result [NilClass] No result returned for this method
1643
+ # @yieldparam err [StandardError] error object if request failed
1644
+ #
1645
+ # @return [void]
1646
+ #
1647
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1648
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1649
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1650
+ def delete_account_container_workspace_folder(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1651
+ command = make_simple_command(:delete, '{+path}', options)
1652
+ command.params['path'] = path unless path.nil?
1653
+ command.query['fields'] = fields unless fields.nil?
1654
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1655
+ command.query['userIp'] = user_ip unless user_ip.nil?
1656
+ execute_or_queue_command(command, &block)
1657
+ end
1658
+
1659
+ # List all entities in a GTM Folder.
1660
+ # @param [String] path
1661
+ # GTM Folder's API relative path. Example: accounts/`account_id`/containers/`
1662
+ # container_id`/workspaces/`workspace_id`/folders/`folder_id`
1663
+ # @param [String] page_token
1664
+ # Continuation token for fetching the next page of results.
1665
+ # @param [String] fields
1666
+ # Selector specifying which fields to include in a partial response.
1667
+ # @param [String] quota_user
1668
+ # Available to use for quota purposes for server-side applications. Can be any
1669
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1670
+ # Overrides userIp if both are provided.
1671
+ # @param [String] user_ip
1672
+ # IP address of the site where the request originates. Use this if you want to
1673
+ # enforce per-user limits.
1674
+ # @param [Google::Apis::RequestOptions] options
1675
+ # Request-specific options
1676
+ #
1677
+ # @yield [result, err] Result & error if block supplied
1678
+ # @yieldparam result [Google::Apis::TagmanagerV2::FolderEntities] parsed result object
1679
+ # @yieldparam err [StandardError] error object if request failed
1680
+ #
1681
+ # @return [Google::Apis::TagmanagerV2::FolderEntities]
1682
+ #
1683
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1684
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1685
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1686
+ def entities_account_container_workspace_folder(path, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1687
+ command = make_simple_command(:post, '{+path}:entities', options)
1688
+ command.response_representation = Google::Apis::TagmanagerV2::FolderEntities::Representation
1689
+ command.response_class = Google::Apis::TagmanagerV2::FolderEntities
1690
+ command.params['path'] = path unless path.nil?
1691
+ command.query['pageToken'] = page_token unless page_token.nil?
1692
+ command.query['fields'] = fields unless fields.nil?
1693
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1694
+ command.query['userIp'] = user_ip unless user_ip.nil?
1695
+ execute_or_queue_command(command, &block)
1696
+ end
1697
+
1698
+ # Gets a GTM Folder.
1699
+ # @param [String] path
1700
+ # GTM Folder's API relative path. Example: accounts/`account_id`/containers/`
1701
+ # container_id`/workspaces/`workspace_id`/folders/`folder_id`
1702
+ # @param [String] fields
1703
+ # Selector specifying which fields to include in a partial response.
1704
+ # @param [String] quota_user
1705
+ # Available to use for quota purposes for server-side applications. Can be any
1706
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1707
+ # Overrides userIp if both are provided.
1708
+ # @param [String] user_ip
1709
+ # IP address of the site where the request originates. Use this if you want to
1710
+ # enforce per-user limits.
1711
+ # @param [Google::Apis::RequestOptions] options
1712
+ # Request-specific options
1713
+ #
1714
+ # @yield [result, err] Result & error if block supplied
1715
+ # @yieldparam result [Google::Apis::TagmanagerV2::Folder] parsed result object
1716
+ # @yieldparam err [StandardError] error object if request failed
1717
+ #
1718
+ # @return [Google::Apis::TagmanagerV2::Folder]
1719
+ #
1720
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1721
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1722
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1723
+ def get_account_container_workspace_folder(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1724
+ command = make_simple_command(:get, '{+path}', options)
1725
+ command.response_representation = Google::Apis::TagmanagerV2::Folder::Representation
1726
+ command.response_class = Google::Apis::TagmanagerV2::Folder
1727
+ command.params['path'] = path unless path.nil?
1728
+ command.query['fields'] = fields unless fields.nil?
1729
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1730
+ command.query['userIp'] = user_ip unless user_ip.nil?
1731
+ execute_or_queue_command(command, &block)
1732
+ end
1733
+
1734
+ # Lists all GTM Folders of a Container.
1735
+ # @param [String] parent
1736
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
1737
+ # container_id`/workspaces/`workspace_id`
1738
+ # @param [String] page_token
1739
+ # Continuation token for fetching the next page of results.
1740
+ # @param [String] fields
1741
+ # Selector specifying which fields to include in a partial response.
1742
+ # @param [String] quota_user
1743
+ # Available to use for quota purposes for server-side applications. Can be any
1744
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1745
+ # Overrides userIp if both are provided.
1746
+ # @param [String] user_ip
1747
+ # IP address of the site where the request originates. Use this if you want to
1748
+ # enforce per-user limits.
1749
+ # @param [Google::Apis::RequestOptions] options
1750
+ # Request-specific options
1751
+ #
1752
+ # @yield [result, err] Result & error if block supplied
1753
+ # @yieldparam result [Google::Apis::TagmanagerV2::ListFoldersResponse] parsed result object
1754
+ # @yieldparam err [StandardError] error object if request failed
1755
+ #
1756
+ # @return [Google::Apis::TagmanagerV2::ListFoldersResponse]
1757
+ #
1758
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1759
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1760
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1761
+ def list_account_container_workspace_folders(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1762
+ command = make_simple_command(:get, '{+parent}/folders', options)
1763
+ command.response_representation = Google::Apis::TagmanagerV2::ListFoldersResponse::Representation
1764
+ command.response_class = Google::Apis::TagmanagerV2::ListFoldersResponse
1765
+ command.params['parent'] = parent unless parent.nil?
1766
+ command.query['pageToken'] = page_token unless page_token.nil?
1767
+ command.query['fields'] = fields unless fields.nil?
1768
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1769
+ command.query['userIp'] = user_ip unless user_ip.nil?
1770
+ execute_or_queue_command(command, &block)
1771
+ end
1772
+
1773
+ # Moves entities to a GTM Folder.
1774
+ # @param [String] path
1775
+ # GTM Folder's API relative path. Example: accounts/`account_id`/containers/`
1776
+ # container_id`/workspaces/`workspace_id`/folders/`folder_id`
1777
+ # @param [Google::Apis::TagmanagerV2::Folder] folder_object
1778
+ # @param [Array<String>, String] tag_id
1779
+ # The tags to be moved to the folder.
1780
+ # @param [Array<String>, String] trigger_id
1781
+ # The triggers to be moved to the folder.
1782
+ # @param [Array<String>, String] variable_id
1783
+ # The variables to be moved to the folder.
1784
+ # @param [String] fields
1785
+ # Selector specifying which fields to include in a partial response.
1786
+ # @param [String] quota_user
1787
+ # Available to use for quota purposes for server-side applications. Can be any
1788
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1789
+ # Overrides userIp if both are provided.
1790
+ # @param [String] user_ip
1791
+ # IP address of the site where the request originates. Use this if you want to
1792
+ # enforce per-user limits.
1793
+ # @param [Google::Apis::RequestOptions] options
1794
+ # Request-specific options
1795
+ #
1796
+ # @yield [result, err] Result & error if block supplied
1797
+ # @yieldparam result [NilClass] No result returned for this method
1798
+ # @yieldparam err [StandardError] error object if request failed
1799
+ #
1800
+ # @return [void]
1801
+ #
1802
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1803
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1804
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1805
+ def move_account_container_workspace_folder_entities_to_folder(path, folder_object = nil, tag_id: nil, trigger_id: nil, variable_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1806
+ command = make_simple_command(:post, '{+path}:move_entities_to_folder', options)
1807
+ command.request_representation = Google::Apis::TagmanagerV2::Folder::Representation
1808
+ command.request_object = folder_object
1809
+ command.params['path'] = path unless path.nil?
1810
+ command.query['tagId'] = tag_id unless tag_id.nil?
1811
+ command.query['triggerId'] = trigger_id unless trigger_id.nil?
1812
+ command.query['variableId'] = variable_id unless variable_id.nil?
1813
+ command.query['fields'] = fields unless fields.nil?
1814
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1815
+ command.query['userIp'] = user_ip unless user_ip.nil?
1816
+ execute_or_queue_command(command, &block)
1817
+ end
1818
+
1819
+ # Reverts changes to a GTM Folder in a GTM Workspace.
1820
+ # @param [String] path
1821
+ # GTM Folder's API relative path. Example: accounts/`account_id`/containers/`
1822
+ # container_id`/workspaces/`workspace_id`/folders/`folder_id`
1823
+ # @param [String] fingerprint
1824
+ # When provided, this fingerprint must match the fingerprint of the tag in
1825
+ # storage.
1826
+ # @param [String] fields
1827
+ # Selector specifying which fields to include in a partial response.
1828
+ # @param [String] quota_user
1829
+ # Available to use for quota purposes for server-side applications. Can be any
1830
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1831
+ # Overrides userIp if both are provided.
1832
+ # @param [String] user_ip
1833
+ # IP address of the site where the request originates. Use this if you want to
1834
+ # enforce per-user limits.
1835
+ # @param [Google::Apis::RequestOptions] options
1836
+ # Request-specific options
1837
+ #
1838
+ # @yield [result, err] Result & error if block supplied
1839
+ # @yieldparam result [Google::Apis::TagmanagerV2::RevertFolderResponse] parsed result object
1840
+ # @yieldparam err [StandardError] error object if request failed
1841
+ #
1842
+ # @return [Google::Apis::TagmanagerV2::RevertFolderResponse]
1843
+ #
1844
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1845
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1846
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1847
+ def revert_account_container_workspace_folder(path, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1848
+ command = make_simple_command(:post, '{+path}:revert', options)
1849
+ command.response_representation = Google::Apis::TagmanagerV2::RevertFolderResponse::Representation
1850
+ command.response_class = Google::Apis::TagmanagerV2::RevertFolderResponse
1851
+ command.params['path'] = path unless path.nil?
1852
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
1853
+ command.query['fields'] = fields unless fields.nil?
1854
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1855
+ command.query['userIp'] = user_ip unless user_ip.nil?
1856
+ execute_or_queue_command(command, &block)
1857
+ end
1858
+
1859
+ # Updates a GTM Folder.
1860
+ # @param [String] path
1861
+ # GTM Folder's API relative path. Example: accounts/`account_id`/containers/`
1862
+ # container_id`/workspaces/`workspace_id`/folders/`folder_id`
1863
+ # @param [Google::Apis::TagmanagerV2::Folder] folder_object
1864
+ # @param [String] fingerprint
1865
+ # When provided, this fingerprint must match the fingerprint of the folder in
1866
+ # storage.
1867
+ # @param [String] fields
1868
+ # Selector specifying which fields to include in a partial response.
1869
+ # @param [String] quota_user
1870
+ # Available to use for quota purposes for server-side applications. Can be any
1871
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1872
+ # Overrides userIp if both are provided.
1873
+ # @param [String] user_ip
1874
+ # IP address of the site where the request originates. Use this if you want to
1875
+ # enforce per-user limits.
1876
+ # @param [Google::Apis::RequestOptions] options
1877
+ # Request-specific options
1878
+ #
1879
+ # @yield [result, err] Result & error if block supplied
1880
+ # @yieldparam result [Google::Apis::TagmanagerV2::Folder] parsed result object
1881
+ # @yieldparam err [StandardError] error object if request failed
1882
+ #
1883
+ # @return [Google::Apis::TagmanagerV2::Folder]
1884
+ #
1885
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1886
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1887
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1888
+ def update_account_container_workspace_folder(path, folder_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1889
+ command = make_simple_command(:put, '{+path}', options)
1890
+ command.request_representation = Google::Apis::TagmanagerV2::Folder::Representation
1891
+ command.request_object = folder_object
1892
+ command.response_representation = Google::Apis::TagmanagerV2::Folder::Representation
1893
+ command.response_class = Google::Apis::TagmanagerV2::Folder
1894
+ command.params['path'] = path unless path.nil?
1895
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
1896
+ command.query['fields'] = fields unless fields.nil?
1897
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1898
+ command.query['userIp'] = user_ip unless user_ip.nil?
1899
+ execute_or_queue_command(command, &block)
1900
+ end
1901
+
1902
+ # Creates a GTM Workspace Proposal.
1903
+ # @param [String] parent
1904
+ # GTM Workspace's API relative path. Example: accounts/`aid`/containers/`cid`/
1905
+ # workspace/`wid`
1906
+ # @param [Google::Apis::TagmanagerV2::CreateWorkspaceProposalRequest] create_workspace_proposal_request_object
1907
+ # @param [String] fields
1908
+ # Selector specifying which fields to include in a partial response.
1909
+ # @param [String] quota_user
1910
+ # Available to use for quota purposes for server-side applications. Can be any
1911
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1912
+ # Overrides userIp if both are provided.
1913
+ # @param [String] user_ip
1914
+ # IP address of the site where the request originates. Use this if you want to
1915
+ # enforce per-user limits.
1916
+ # @param [Google::Apis::RequestOptions] options
1917
+ # Request-specific options
1918
+ #
1919
+ # @yield [result, err] Result & error if block supplied
1920
+ # @yieldparam result [Google::Apis::TagmanagerV2::WorkspaceProposal] parsed result object
1921
+ # @yieldparam err [StandardError] error object if request failed
1922
+ #
1923
+ # @return [Google::Apis::TagmanagerV2::WorkspaceProposal]
1924
+ #
1925
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1926
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1927
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1928
+ def create_workspace_proposal(parent, create_workspace_proposal_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1929
+ command = make_simple_command(:post, '{+parent}/proposal', options)
1930
+ command.request_representation = Google::Apis::TagmanagerV2::CreateWorkspaceProposalRequest::Representation
1931
+ command.request_object = create_workspace_proposal_request_object
1932
+ command.response_representation = Google::Apis::TagmanagerV2::WorkspaceProposal::Representation
1933
+ command.response_class = Google::Apis::TagmanagerV2::WorkspaceProposal
1934
+ command.params['parent'] = parent unless parent.nil?
1935
+ command.query['fields'] = fields unless fields.nil?
1936
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1937
+ command.query['userIp'] = user_ip unless user_ip.nil?
1938
+ execute_or_queue_command(command, &block)
1939
+ end
1940
+
1941
+ # Deletes a GTM Workspace Proposal.
1942
+ # @param [String] path
1943
+ # GTM workspace proposal's relative path: Example: accounts/`aid`/containers/`
1944
+ # cid`/workspace/`wid`/workspace_proposal
1945
+ # @param [String] fields
1946
+ # Selector specifying which fields to include in a partial response.
1947
+ # @param [String] quota_user
1948
+ # Available to use for quota purposes for server-side applications. Can be any
1949
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1950
+ # Overrides userIp if both are provided.
1951
+ # @param [String] user_ip
1952
+ # IP address of the site where the request originates. Use this if you want to
1953
+ # enforce per-user limits.
1954
+ # @param [Google::Apis::RequestOptions] options
1955
+ # Request-specific options
1956
+ #
1957
+ # @yield [result, err] Result & error if block supplied
1958
+ # @yieldparam result [NilClass] No result returned for this method
1959
+ # @yieldparam err [StandardError] error object if request failed
1960
+ #
1961
+ # @return [void]
1962
+ #
1963
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1964
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1965
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1966
+ def delete_account_container_workspace_proposal(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1967
+ command = make_simple_command(:delete, '{+path}', options)
1968
+ command.params['path'] = path unless path.nil?
1969
+ command.query['fields'] = fields unless fields.nil?
1970
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1971
+ command.query['userIp'] = user_ip unless user_ip.nil?
1972
+ execute_or_queue_command(command, &block)
1973
+ end
1974
+
1975
+ # Creates a GTM Tag.
1976
+ # @param [String] parent
1977
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
1978
+ # container_id`/workspaces/`workspace_id`
1979
+ # @param [Google::Apis::TagmanagerV2::Tag] tag_object
1980
+ # @param [String] fields
1981
+ # Selector specifying which fields to include in a partial response.
1982
+ # @param [String] quota_user
1983
+ # Available to use for quota purposes for server-side applications. Can be any
1984
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1985
+ # Overrides userIp if both are provided.
1986
+ # @param [String] user_ip
1987
+ # IP address of the site where the request originates. Use this if you want to
1988
+ # enforce per-user limits.
1989
+ # @param [Google::Apis::RequestOptions] options
1990
+ # Request-specific options
1991
+ #
1992
+ # @yield [result, err] Result & error if block supplied
1993
+ # @yieldparam result [Google::Apis::TagmanagerV2::Tag] parsed result object
1994
+ # @yieldparam err [StandardError] error object if request failed
1995
+ #
1996
+ # @return [Google::Apis::TagmanagerV2::Tag]
1997
+ #
1998
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1999
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2000
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2001
+ def create_account_container_workspace_tag(parent, tag_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2002
+ command = make_simple_command(:post, '{+parent}/tags', options)
2003
+ command.request_representation = Google::Apis::TagmanagerV2::Tag::Representation
2004
+ command.request_object = tag_object
2005
+ command.response_representation = Google::Apis::TagmanagerV2::Tag::Representation
2006
+ command.response_class = Google::Apis::TagmanagerV2::Tag
2007
+ command.params['parent'] = parent unless parent.nil?
2008
+ command.query['fields'] = fields unless fields.nil?
2009
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2010
+ command.query['userIp'] = user_ip unless user_ip.nil?
2011
+ execute_or_queue_command(command, &block)
2012
+ end
2013
+
2014
+ # Deletes a GTM Tag.
2015
+ # @param [String] path
2016
+ # GTM Tag's API relative path. Example: accounts/`account_id`/containers/`
2017
+ # container_id`/workspaces/`workspace_id`/tags/`tag_id`
2018
+ # @param [String] fields
2019
+ # Selector specifying which fields to include in a partial response.
2020
+ # @param [String] quota_user
2021
+ # Available to use for quota purposes for server-side applications. Can be any
2022
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2023
+ # Overrides userIp if both are provided.
2024
+ # @param [String] user_ip
2025
+ # IP address of the site where the request originates. Use this if you want to
2026
+ # enforce per-user limits.
2027
+ # @param [Google::Apis::RequestOptions] options
2028
+ # Request-specific options
2029
+ #
2030
+ # @yield [result, err] Result & error if block supplied
2031
+ # @yieldparam result [NilClass] No result returned for this method
2032
+ # @yieldparam err [StandardError] error object if request failed
2033
+ #
2034
+ # @return [void]
2035
+ #
2036
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2037
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2038
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2039
+ def delete_account_container_workspace_tag(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2040
+ command = make_simple_command(:delete, '{+path}', options)
2041
+ command.params['path'] = path unless path.nil?
2042
+ command.query['fields'] = fields unless fields.nil?
2043
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2044
+ command.query['userIp'] = user_ip unless user_ip.nil?
2045
+ execute_or_queue_command(command, &block)
2046
+ end
2047
+
2048
+ # Gets a GTM Tag.
2049
+ # @param [String] path
2050
+ # GTM Tag's API relative path. Example: accounts/`account_id`/containers/`
2051
+ # container_id`/workspaces/`workspace_id`/tags/`tag_id`
2052
+ # @param [String] fields
2053
+ # Selector specifying which fields to include in a partial response.
2054
+ # @param [String] quota_user
2055
+ # Available to use for quota purposes for server-side applications. Can be any
2056
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2057
+ # Overrides userIp if both are provided.
2058
+ # @param [String] user_ip
2059
+ # IP address of the site where the request originates. Use this if you want to
2060
+ # enforce per-user limits.
2061
+ # @param [Google::Apis::RequestOptions] options
2062
+ # Request-specific options
2063
+ #
2064
+ # @yield [result, err] Result & error if block supplied
2065
+ # @yieldparam result [Google::Apis::TagmanagerV2::Tag] parsed result object
2066
+ # @yieldparam err [StandardError] error object if request failed
2067
+ #
2068
+ # @return [Google::Apis::TagmanagerV2::Tag]
2069
+ #
2070
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2071
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2072
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2073
+ def get_account_container_workspace_tag(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2074
+ command = make_simple_command(:get, '{+path}', options)
2075
+ command.response_representation = Google::Apis::TagmanagerV2::Tag::Representation
2076
+ command.response_class = Google::Apis::TagmanagerV2::Tag
2077
+ command.params['path'] = path unless path.nil?
2078
+ command.query['fields'] = fields unless fields.nil?
2079
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2080
+ command.query['userIp'] = user_ip unless user_ip.nil?
2081
+ execute_or_queue_command(command, &block)
2082
+ end
2083
+
2084
+ # Lists all GTM Tags of a Container.
2085
+ # @param [String] parent
2086
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
2087
+ # container_id`/workspaces/`workspace_id`
2088
+ # @param [String] page_token
2089
+ # Continuation token for fetching the next page of results.
2090
+ # @param [String] fields
2091
+ # Selector specifying which fields to include in a partial response.
2092
+ # @param [String] quota_user
2093
+ # Available to use for quota purposes for server-side applications. Can be any
2094
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2095
+ # Overrides userIp if both are provided.
2096
+ # @param [String] user_ip
2097
+ # IP address of the site where the request originates. Use this if you want to
2098
+ # enforce per-user limits.
2099
+ # @param [Google::Apis::RequestOptions] options
2100
+ # Request-specific options
2101
+ #
2102
+ # @yield [result, err] Result & error if block supplied
2103
+ # @yieldparam result [Google::Apis::TagmanagerV2::ListTagsResponse] parsed result object
2104
+ # @yieldparam err [StandardError] error object if request failed
2105
+ #
2106
+ # @return [Google::Apis::TagmanagerV2::ListTagsResponse]
2107
+ #
2108
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2109
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2110
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2111
+ def list_account_container_workspace_tags(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2112
+ command = make_simple_command(:get, '{+parent}/tags', options)
2113
+ command.response_representation = Google::Apis::TagmanagerV2::ListTagsResponse::Representation
2114
+ command.response_class = Google::Apis::TagmanagerV2::ListTagsResponse
2115
+ command.params['parent'] = parent unless parent.nil?
2116
+ command.query['pageToken'] = page_token unless page_token.nil?
2117
+ command.query['fields'] = fields unless fields.nil?
2118
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2119
+ command.query['userIp'] = user_ip unless user_ip.nil?
2120
+ execute_or_queue_command(command, &block)
2121
+ end
2122
+
2123
+ # Reverts changes to a GTM Tag in a GTM Workspace.
2124
+ # @param [String] path
2125
+ # GTM Tag's API relative path. Example: accounts/`account_id`/containers/`
2126
+ # container_id`/workspaces/`workspace_id`/tags/`tag_id`
2127
+ # @param [String] fingerprint
2128
+ # When provided, this fingerprint must match the fingerprint of thetag in
2129
+ # storage.
2130
+ # @param [String] fields
2131
+ # Selector specifying which fields to include in a partial response.
2132
+ # @param [String] quota_user
2133
+ # Available to use for quota purposes for server-side applications. Can be any
2134
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2135
+ # Overrides userIp if both are provided.
2136
+ # @param [String] user_ip
2137
+ # IP address of the site where the request originates. Use this if you want to
2138
+ # enforce per-user limits.
2139
+ # @param [Google::Apis::RequestOptions] options
2140
+ # Request-specific options
2141
+ #
2142
+ # @yield [result, err] Result & error if block supplied
2143
+ # @yieldparam result [Google::Apis::TagmanagerV2::RevertTagResponse] parsed result object
2144
+ # @yieldparam err [StandardError] error object if request failed
2145
+ #
2146
+ # @return [Google::Apis::TagmanagerV2::RevertTagResponse]
2147
+ #
2148
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2149
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2150
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2151
+ def revert_account_container_workspace_tag(path, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2152
+ command = make_simple_command(:post, '{+path}:revert', options)
2153
+ command.response_representation = Google::Apis::TagmanagerV2::RevertTagResponse::Representation
2154
+ command.response_class = Google::Apis::TagmanagerV2::RevertTagResponse
2155
+ command.params['path'] = path unless path.nil?
2156
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
2157
+ command.query['fields'] = fields unless fields.nil?
2158
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2159
+ command.query['userIp'] = user_ip unless user_ip.nil?
2160
+ execute_or_queue_command(command, &block)
2161
+ end
2162
+
2163
+ # Updates a GTM Tag.
2164
+ # @param [String] path
2165
+ # GTM Tag's API relative path. Example: accounts/`account_id`/containers/`
2166
+ # container_id`/workspaces/`workspace_id`/tags/`tag_id`
2167
+ # @param [Google::Apis::TagmanagerV2::Tag] tag_object
2168
+ # @param [String] fingerprint
2169
+ # When provided, this fingerprint must match the fingerprint of the tag in
2170
+ # storage.
2171
+ # @param [String] fields
2172
+ # Selector specifying which fields to include in a partial response.
2173
+ # @param [String] quota_user
2174
+ # Available to use for quota purposes for server-side applications. Can be any
2175
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2176
+ # Overrides userIp if both are provided.
2177
+ # @param [String] user_ip
2178
+ # IP address of the site where the request originates. Use this if you want to
2179
+ # enforce per-user limits.
2180
+ # @param [Google::Apis::RequestOptions] options
2181
+ # Request-specific options
2182
+ #
2183
+ # @yield [result, err] Result & error if block supplied
2184
+ # @yieldparam result [Google::Apis::TagmanagerV2::Tag] parsed result object
2185
+ # @yieldparam err [StandardError] error object if request failed
2186
+ #
2187
+ # @return [Google::Apis::TagmanagerV2::Tag]
2188
+ #
2189
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2190
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2191
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2192
+ def update_account_container_workspace_tag(path, tag_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2193
+ command = make_simple_command(:put, '{+path}', options)
2194
+ command.request_representation = Google::Apis::TagmanagerV2::Tag::Representation
2195
+ command.request_object = tag_object
2196
+ command.response_representation = Google::Apis::TagmanagerV2::Tag::Representation
2197
+ command.response_class = Google::Apis::TagmanagerV2::Tag
2198
+ command.params['path'] = path unless path.nil?
2199
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
2200
+ command.query['fields'] = fields unless fields.nil?
2201
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2202
+ command.query['userIp'] = user_ip unless user_ip.nil?
2203
+ execute_or_queue_command(command, &block)
2204
+ end
2205
+
2206
+ # Creates a GTM Trigger.
2207
+ # @param [String] parent
2208
+ # GTM Workspaces's API relative path. Example: accounts/`account_id`/containers/`
2209
+ # container_id`/workspaces/`workspace_id`
2210
+ # @param [Google::Apis::TagmanagerV2::Trigger] trigger_object
2211
+ # @param [String] fields
2212
+ # Selector specifying which fields to include in a partial response.
2213
+ # @param [String] quota_user
2214
+ # Available to use for quota purposes for server-side applications. Can be any
2215
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2216
+ # Overrides userIp if both are provided.
2217
+ # @param [String] user_ip
2218
+ # IP address of the site where the request originates. Use this if you want to
2219
+ # enforce per-user limits.
2220
+ # @param [Google::Apis::RequestOptions] options
2221
+ # Request-specific options
2222
+ #
2223
+ # @yield [result, err] Result & error if block supplied
2224
+ # @yieldparam result [Google::Apis::TagmanagerV2::Trigger] parsed result object
2225
+ # @yieldparam err [StandardError] error object if request failed
2226
+ #
2227
+ # @return [Google::Apis::TagmanagerV2::Trigger]
2228
+ #
2229
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2230
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2231
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2232
+ def create_account_container_workspace_trigger(parent, trigger_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2233
+ command = make_simple_command(:post, '{+parent}/triggers', options)
2234
+ command.request_representation = Google::Apis::TagmanagerV2::Trigger::Representation
2235
+ command.request_object = trigger_object
2236
+ command.response_representation = Google::Apis::TagmanagerV2::Trigger::Representation
2237
+ command.response_class = Google::Apis::TagmanagerV2::Trigger
2238
+ command.params['parent'] = parent unless parent.nil?
2239
+ command.query['fields'] = fields unless fields.nil?
2240
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2241
+ command.query['userIp'] = user_ip unless user_ip.nil?
2242
+ execute_or_queue_command(command, &block)
2243
+ end
2244
+
2245
+ # Deletes a GTM Trigger.
2246
+ # @param [String] path
2247
+ # GTM Trigger's API relative path. Example: accounts/`account_id`/containers/`
2248
+ # container_id`/workspaces/`workspace_id`/triggers/`trigger_id`
2249
+ # @param [String] fields
2250
+ # Selector specifying which fields to include in a partial response.
2251
+ # @param [String] quota_user
2252
+ # Available to use for quota purposes for server-side applications. Can be any
2253
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2254
+ # Overrides userIp if both are provided.
2255
+ # @param [String] user_ip
2256
+ # IP address of the site where the request originates. Use this if you want to
2257
+ # enforce per-user limits.
2258
+ # @param [Google::Apis::RequestOptions] options
2259
+ # Request-specific options
2260
+ #
2261
+ # @yield [result, err] Result & error if block supplied
2262
+ # @yieldparam result [NilClass] No result returned for this method
2263
+ # @yieldparam err [StandardError] error object if request failed
2264
+ #
2265
+ # @return [void]
2266
+ #
2267
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2268
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2269
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2270
+ def delete_account_container_workspace_trigger(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2271
+ command = make_simple_command(:delete, '{+path}', options)
2272
+ command.params['path'] = path unless path.nil?
2273
+ command.query['fields'] = fields unless fields.nil?
2274
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2275
+ command.query['userIp'] = user_ip unless user_ip.nil?
2276
+ execute_or_queue_command(command, &block)
2277
+ end
2278
+
2279
+ # Gets a GTM Trigger.
2280
+ # @param [String] path
2281
+ # GTM Trigger's API relative path. Example: accounts/`account_id`/containers/`
2282
+ # container_id`/workspaces/`workspace_id`/triggers/`trigger_id`
2283
+ # @param [String] fields
2284
+ # Selector specifying which fields to include in a partial response.
2285
+ # @param [String] quota_user
2286
+ # Available to use for quota purposes for server-side applications. Can be any
2287
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2288
+ # Overrides userIp if both are provided.
2289
+ # @param [String] user_ip
2290
+ # IP address of the site where the request originates. Use this if you want to
2291
+ # enforce per-user limits.
2292
+ # @param [Google::Apis::RequestOptions] options
2293
+ # Request-specific options
2294
+ #
2295
+ # @yield [result, err] Result & error if block supplied
2296
+ # @yieldparam result [Google::Apis::TagmanagerV2::Trigger] parsed result object
2297
+ # @yieldparam err [StandardError] error object if request failed
2298
+ #
2299
+ # @return [Google::Apis::TagmanagerV2::Trigger]
2300
+ #
2301
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2302
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2303
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2304
+ def get_account_container_workspace_trigger(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2305
+ command = make_simple_command(:get, '{+path}', options)
2306
+ command.response_representation = Google::Apis::TagmanagerV2::Trigger::Representation
2307
+ command.response_class = Google::Apis::TagmanagerV2::Trigger
2308
+ command.params['path'] = path unless path.nil?
2309
+ command.query['fields'] = fields unless fields.nil?
2310
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2311
+ command.query['userIp'] = user_ip unless user_ip.nil?
2312
+ execute_or_queue_command(command, &block)
2313
+ end
2314
+
2315
+ # Lists all GTM Triggers of a Container.
2316
+ # @param [String] parent
2317
+ # GTM Workspaces's API relative path. Example: accounts/`account_id`/containers/`
2318
+ # container_id`/workspaces/`workspace_id`
2319
+ # @param [String] page_token
2320
+ # Continuation token for fetching the next page of results.
2321
+ # @param [String] fields
2322
+ # Selector specifying which fields to include in a partial response.
2323
+ # @param [String] quota_user
2324
+ # Available to use for quota purposes for server-side applications. Can be any
2325
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2326
+ # Overrides userIp if both are provided.
2327
+ # @param [String] user_ip
2328
+ # IP address of the site where the request originates. Use this if you want to
2329
+ # enforce per-user limits.
2330
+ # @param [Google::Apis::RequestOptions] options
2331
+ # Request-specific options
2332
+ #
2333
+ # @yield [result, err] Result & error if block supplied
2334
+ # @yieldparam result [Google::Apis::TagmanagerV2::ListTriggersResponse] parsed result object
2335
+ # @yieldparam err [StandardError] error object if request failed
2336
+ #
2337
+ # @return [Google::Apis::TagmanagerV2::ListTriggersResponse]
2338
+ #
2339
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2340
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2341
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2342
+ def list_account_container_workspace_triggers(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2343
+ command = make_simple_command(:get, '{+parent}/triggers', options)
2344
+ command.response_representation = Google::Apis::TagmanagerV2::ListTriggersResponse::Representation
2345
+ command.response_class = Google::Apis::TagmanagerV2::ListTriggersResponse
2346
+ command.params['parent'] = parent unless parent.nil?
2347
+ command.query['pageToken'] = page_token unless page_token.nil?
2348
+ command.query['fields'] = fields unless fields.nil?
2349
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2350
+ command.query['userIp'] = user_ip unless user_ip.nil?
2351
+ execute_or_queue_command(command, &block)
2352
+ end
2353
+
2354
+ # Reverts changes to a GTM Trigger in a GTM Workspace.
2355
+ # @param [String] path
2356
+ # GTM Trigger's API relative path. Example: accounts/`account_id`/containers/`
2357
+ # container_id`/workspaces/`workspace_id`/triggers/`trigger_id`
2358
+ # @param [String] fingerprint
2359
+ # When provided, this fingerprint must match the fingerprint of the trigger in
2360
+ # storage.
2361
+ # @param [String] fields
2362
+ # Selector specifying which fields to include in a partial response.
2363
+ # @param [String] quota_user
2364
+ # Available to use for quota purposes for server-side applications. Can be any
2365
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2366
+ # Overrides userIp if both are provided.
2367
+ # @param [String] user_ip
2368
+ # IP address of the site where the request originates. Use this if you want to
2369
+ # enforce per-user limits.
2370
+ # @param [Google::Apis::RequestOptions] options
2371
+ # Request-specific options
2372
+ #
2373
+ # @yield [result, err] Result & error if block supplied
2374
+ # @yieldparam result [Google::Apis::TagmanagerV2::RevertTriggerResponse] parsed result object
2375
+ # @yieldparam err [StandardError] error object if request failed
2376
+ #
2377
+ # @return [Google::Apis::TagmanagerV2::RevertTriggerResponse]
2378
+ #
2379
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2380
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2381
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2382
+ def revert_account_container_workspace_trigger(path, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2383
+ command = make_simple_command(:post, '{+path}:revert', options)
2384
+ command.response_representation = Google::Apis::TagmanagerV2::RevertTriggerResponse::Representation
2385
+ command.response_class = Google::Apis::TagmanagerV2::RevertTriggerResponse
2386
+ command.params['path'] = path unless path.nil?
2387
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
2388
+ command.query['fields'] = fields unless fields.nil?
2389
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2390
+ command.query['userIp'] = user_ip unless user_ip.nil?
2391
+ execute_or_queue_command(command, &block)
2392
+ end
2393
+
2394
+ # Updates a GTM Trigger.
2395
+ # @param [String] path
2396
+ # GTM Trigger's API relative path. Example: accounts/`account_id`/containers/`
2397
+ # container_id`/workspaces/`workspace_id`/triggers/`trigger_id`
2398
+ # @param [Google::Apis::TagmanagerV2::Trigger] trigger_object
2399
+ # @param [String] fingerprint
2400
+ # When provided, this fingerprint must match the fingerprint of the trigger in
2401
+ # storage.
2402
+ # @param [String] fields
2403
+ # Selector specifying which fields to include in a partial response.
2404
+ # @param [String] quota_user
2405
+ # Available to use for quota purposes for server-side applications. Can be any
2406
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2407
+ # Overrides userIp if both are provided.
2408
+ # @param [String] user_ip
2409
+ # IP address of the site where the request originates. Use this if you want to
2410
+ # enforce per-user limits.
2411
+ # @param [Google::Apis::RequestOptions] options
2412
+ # Request-specific options
2413
+ #
2414
+ # @yield [result, err] Result & error if block supplied
2415
+ # @yieldparam result [Google::Apis::TagmanagerV2::Trigger] parsed result object
2416
+ # @yieldparam err [StandardError] error object if request failed
2417
+ #
2418
+ # @return [Google::Apis::TagmanagerV2::Trigger]
2419
+ #
2420
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2421
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2422
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2423
+ def update_account_container_workspace_trigger(path, trigger_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2424
+ command = make_simple_command(:put, '{+path}', options)
2425
+ command.request_representation = Google::Apis::TagmanagerV2::Trigger::Representation
2426
+ command.request_object = trigger_object
2427
+ command.response_representation = Google::Apis::TagmanagerV2::Trigger::Representation
2428
+ command.response_class = Google::Apis::TagmanagerV2::Trigger
2429
+ command.params['path'] = path unless path.nil?
2430
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
2431
+ command.query['fields'] = fields unless fields.nil?
2432
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2433
+ command.query['userIp'] = user_ip unless user_ip.nil?
2434
+ execute_or_queue_command(command, &block)
2435
+ end
2436
+
2437
+ # Creates a GTM Variable.
2438
+ # @param [String] parent
2439
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
2440
+ # container_id`/workspaces/`workspace_id`
2441
+ # @param [Google::Apis::TagmanagerV2::Variable] variable_object
2442
+ # @param [String] fields
2443
+ # Selector specifying which fields to include in a partial response.
2444
+ # @param [String] quota_user
2445
+ # Available to use for quota purposes for server-side applications. Can be any
2446
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2447
+ # Overrides userIp if both are provided.
2448
+ # @param [String] user_ip
2449
+ # IP address of the site where the request originates. Use this if you want to
2450
+ # enforce per-user limits.
2451
+ # @param [Google::Apis::RequestOptions] options
2452
+ # Request-specific options
2453
+ #
2454
+ # @yield [result, err] Result & error if block supplied
2455
+ # @yieldparam result [Google::Apis::TagmanagerV2::Variable] parsed result object
2456
+ # @yieldparam err [StandardError] error object if request failed
2457
+ #
2458
+ # @return [Google::Apis::TagmanagerV2::Variable]
2459
+ #
2460
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2461
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2462
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2463
+ def create_account_container_workspace_variable(parent, variable_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2464
+ command = make_simple_command(:post, '{+parent}/variables', options)
2465
+ command.request_representation = Google::Apis::TagmanagerV2::Variable::Representation
2466
+ command.request_object = variable_object
2467
+ command.response_representation = Google::Apis::TagmanagerV2::Variable::Representation
2468
+ command.response_class = Google::Apis::TagmanagerV2::Variable
2469
+ command.params['parent'] = parent unless parent.nil?
2470
+ command.query['fields'] = fields unless fields.nil?
2471
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2472
+ command.query['userIp'] = user_ip unless user_ip.nil?
2473
+ execute_or_queue_command(command, &block)
2474
+ end
2475
+
2476
+ # Deletes a GTM Variable.
2477
+ # @param [String] path
2478
+ # GTM Variable's API relative path. Example: accounts/`account_id`/containers/`
2479
+ # container_id`/workspaces/`workspace_id`/variables/`variable_id`
2480
+ # @param [String] fields
2481
+ # Selector specifying which fields to include in a partial response.
2482
+ # @param [String] quota_user
2483
+ # Available to use for quota purposes for server-side applications. Can be any
2484
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2485
+ # Overrides userIp if both are provided.
2486
+ # @param [String] user_ip
2487
+ # IP address of the site where the request originates. Use this if you want to
2488
+ # enforce per-user limits.
2489
+ # @param [Google::Apis::RequestOptions] options
2490
+ # Request-specific options
2491
+ #
2492
+ # @yield [result, err] Result & error if block supplied
2493
+ # @yieldparam result [NilClass] No result returned for this method
2494
+ # @yieldparam err [StandardError] error object if request failed
2495
+ #
2496
+ # @return [void]
2497
+ #
2498
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2499
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2500
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2501
+ def delete_account_container_workspace_variable(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2502
+ command = make_simple_command(:delete, '{+path}', options)
2503
+ command.params['path'] = path unless path.nil?
2504
+ command.query['fields'] = fields unless fields.nil?
2505
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2506
+ command.query['userIp'] = user_ip unless user_ip.nil?
2507
+ execute_or_queue_command(command, &block)
2508
+ end
2509
+
2510
+ # Gets a GTM Variable.
2511
+ # @param [String] path
2512
+ # GTM Variable's API relative path. Example: accounts/`account_id`/containers/`
2513
+ # container_id`/workspaces/`workspace_id`/variables/`variable_id`
2514
+ # @param [String] fields
2515
+ # Selector specifying which fields to include in a partial response.
2516
+ # @param [String] quota_user
2517
+ # Available to use for quota purposes for server-side applications. Can be any
2518
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2519
+ # Overrides userIp if both are provided.
2520
+ # @param [String] user_ip
2521
+ # IP address of the site where the request originates. Use this if you want to
2522
+ # enforce per-user limits.
2523
+ # @param [Google::Apis::RequestOptions] options
2524
+ # Request-specific options
2525
+ #
2526
+ # @yield [result, err] Result & error if block supplied
2527
+ # @yieldparam result [Google::Apis::TagmanagerV2::Variable] parsed result object
2528
+ # @yieldparam err [StandardError] error object if request failed
2529
+ #
2530
+ # @return [Google::Apis::TagmanagerV2::Variable]
2531
+ #
2532
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2533
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2534
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2535
+ def get_account_container_workspace_variable(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2536
+ command = make_simple_command(:get, '{+path}', options)
2537
+ command.response_representation = Google::Apis::TagmanagerV2::Variable::Representation
2538
+ command.response_class = Google::Apis::TagmanagerV2::Variable
2539
+ command.params['path'] = path unless path.nil?
2540
+ command.query['fields'] = fields unless fields.nil?
2541
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2542
+ command.query['userIp'] = user_ip unless user_ip.nil?
2543
+ execute_or_queue_command(command, &block)
2544
+ end
2545
+
2546
+ # Lists all GTM Variables of a Container.
2547
+ # @param [String] parent
2548
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
2549
+ # container_id`/workspaces/`workspace_id`
2550
+ # @param [String] page_token
2551
+ # Continuation token for fetching the next page of results.
2552
+ # @param [String] fields
2553
+ # Selector specifying which fields to include in a partial response.
2554
+ # @param [String] quota_user
2555
+ # Available to use for quota purposes for server-side applications. Can be any
2556
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2557
+ # Overrides userIp if both are provided.
2558
+ # @param [String] user_ip
2559
+ # IP address of the site where the request originates. Use this if you want to
2560
+ # enforce per-user limits.
2561
+ # @param [Google::Apis::RequestOptions] options
2562
+ # Request-specific options
2563
+ #
2564
+ # @yield [result, err] Result & error if block supplied
2565
+ # @yieldparam result [Google::Apis::TagmanagerV2::ListVariablesResponse] parsed result object
2566
+ # @yieldparam err [StandardError] error object if request failed
2567
+ #
2568
+ # @return [Google::Apis::TagmanagerV2::ListVariablesResponse]
2569
+ #
2570
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2571
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2572
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2573
+ def list_account_container_workspace_variables(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2574
+ command = make_simple_command(:get, '{+parent}/variables', options)
2575
+ command.response_representation = Google::Apis::TagmanagerV2::ListVariablesResponse::Representation
2576
+ command.response_class = Google::Apis::TagmanagerV2::ListVariablesResponse
2577
+ command.params['parent'] = parent unless parent.nil?
2578
+ command.query['pageToken'] = page_token unless page_token.nil?
2579
+ command.query['fields'] = fields unless fields.nil?
2580
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2581
+ command.query['userIp'] = user_ip unless user_ip.nil?
2582
+ execute_or_queue_command(command, &block)
2583
+ end
2584
+
2585
+ # Reverts changes to a GTM Variable in a GTM Workspace.
2586
+ # @param [String] path
2587
+ # GTM Variable's API relative path. Example: accounts/`account_id`/containers/`
2588
+ # container_id`/workspaces/`workspace_id`/variables/`variable_id`
2589
+ # @param [String] fingerprint
2590
+ # When provided, this fingerprint must match the fingerprint of the variable in
2591
+ # storage.
2592
+ # @param [String] fields
2593
+ # Selector specifying which fields to include in a partial response.
2594
+ # @param [String] quota_user
2595
+ # Available to use for quota purposes for server-side applications. Can be any
2596
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2597
+ # Overrides userIp if both are provided.
2598
+ # @param [String] user_ip
2599
+ # IP address of the site where the request originates. Use this if you want to
2600
+ # enforce per-user limits.
2601
+ # @param [Google::Apis::RequestOptions] options
2602
+ # Request-specific options
2603
+ #
2604
+ # @yield [result, err] Result & error if block supplied
2605
+ # @yieldparam result [Google::Apis::TagmanagerV2::RevertVariableResponse] parsed result object
2606
+ # @yieldparam err [StandardError] error object if request failed
2607
+ #
2608
+ # @return [Google::Apis::TagmanagerV2::RevertVariableResponse]
2609
+ #
2610
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2611
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2612
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2613
+ def revert_account_container_workspace_variable(path, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2614
+ command = make_simple_command(:post, '{+path}:revert', options)
2615
+ command.response_representation = Google::Apis::TagmanagerV2::RevertVariableResponse::Representation
2616
+ command.response_class = Google::Apis::TagmanagerV2::RevertVariableResponse
2617
+ command.params['path'] = path unless path.nil?
2618
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
2619
+ command.query['fields'] = fields unless fields.nil?
2620
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2621
+ command.query['userIp'] = user_ip unless user_ip.nil?
2622
+ execute_or_queue_command(command, &block)
2623
+ end
2624
+
2625
+ # Updates a GTM Variable.
2626
+ # @param [String] path
2627
+ # GTM Variable's API relative path. Example: accounts/`account_id`/containers/`
2628
+ # container_id`/workspaces/`workspace_id`/variables/`variable_id`
2629
+ # @param [Google::Apis::TagmanagerV2::Variable] variable_object
2630
+ # @param [String] fingerprint
2631
+ # When provided, this fingerprint must match the fingerprint of the variable in
2632
+ # storage.
2633
+ # @param [String] fields
2634
+ # Selector specifying which fields to include in a partial response.
2635
+ # @param [String] quota_user
2636
+ # Available to use for quota purposes for server-side applications. Can be any
2637
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2638
+ # Overrides userIp if both are provided.
2639
+ # @param [String] user_ip
2640
+ # IP address of the site where the request originates. Use this if you want to
2641
+ # enforce per-user limits.
2642
+ # @param [Google::Apis::RequestOptions] options
2643
+ # Request-specific options
2644
+ #
2645
+ # @yield [result, err] Result & error if block supplied
2646
+ # @yieldparam result [Google::Apis::TagmanagerV2::Variable] parsed result object
2647
+ # @yieldparam err [StandardError] error object if request failed
2648
+ #
2649
+ # @return [Google::Apis::TagmanagerV2::Variable]
2650
+ #
2651
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2652
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2653
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2654
+ def update_account_container_workspace_variable(path, variable_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2655
+ command = make_simple_command(:put, '{+path}', options)
2656
+ command.request_representation = Google::Apis::TagmanagerV2::Variable::Representation
2657
+ command.request_object = variable_object
2658
+ command.response_representation = Google::Apis::TagmanagerV2::Variable::Representation
2659
+ command.response_class = Google::Apis::TagmanagerV2::Variable
2660
+ command.params['path'] = path unless path.nil?
2661
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
2662
+ command.query['fields'] = fields unless fields.nil?
2663
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2664
+ command.query['userIp'] = user_ip unless user_ip.nil?
2665
+ execute_or_queue_command(command, &block)
2666
+ end
2667
+
2668
+ # Creates a user's Account & Container access.
2669
+ # @param [String] parent
2670
+ # GTM Account's API relative path. Example: accounts/`account_id`
2671
+ # @param [Google::Apis::TagmanagerV2::UserPermission] user_permission_object
2672
+ # @param [String] fields
2673
+ # Selector specifying which fields to include in a partial response.
2674
+ # @param [String] quota_user
2675
+ # Available to use for quota purposes for server-side applications. Can be any
2676
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2677
+ # Overrides userIp if both are provided.
2678
+ # @param [String] user_ip
2679
+ # IP address of the site where the request originates. Use this if you want to
2680
+ # enforce per-user limits.
2681
+ # @param [Google::Apis::RequestOptions] options
2682
+ # Request-specific options
2683
+ #
2684
+ # @yield [result, err] Result & error if block supplied
2685
+ # @yieldparam result [Google::Apis::TagmanagerV2::UserPermission] parsed result object
2686
+ # @yieldparam err [StandardError] error object if request failed
2687
+ #
2688
+ # @return [Google::Apis::TagmanagerV2::UserPermission]
2689
+ #
2690
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2691
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2692
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2693
+ def create_account_user_permission(parent, user_permission_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2694
+ command = make_simple_command(:post, '{+parent}/user_permissions', options)
2695
+ command.request_representation = Google::Apis::TagmanagerV2::UserPermission::Representation
2696
+ command.request_object = user_permission_object
2697
+ command.response_representation = Google::Apis::TagmanagerV2::UserPermission::Representation
2698
+ command.response_class = Google::Apis::TagmanagerV2::UserPermission
2699
+ command.params['parent'] = parent unless parent.nil?
2700
+ command.query['fields'] = fields unless fields.nil?
2701
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2702
+ command.query['userIp'] = user_ip unless user_ip.nil?
2703
+ execute_or_queue_command(command, &block)
2704
+ end
2705
+
2706
+ # Removes a user from the account, revoking access to it and all of its
2707
+ # containers.
2708
+ # @param [String] path
2709
+ # GTM UserPermission's API relative path. Example: accounts/`account_id`/
2710
+ # user_permissions/`user_permission_id`
2711
+ # @param [String] fields
2712
+ # Selector specifying which fields to include in a partial response.
2713
+ # @param [String] quota_user
2714
+ # Available to use for quota purposes for server-side applications. Can be any
2715
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2716
+ # Overrides userIp if both are provided.
2717
+ # @param [String] user_ip
2718
+ # IP address of the site where the request originates. Use this if you want to
2719
+ # enforce per-user limits.
2720
+ # @param [Google::Apis::RequestOptions] options
2721
+ # Request-specific options
2722
+ #
2723
+ # @yield [result, err] Result & error if block supplied
2724
+ # @yieldparam result [NilClass] No result returned for this method
2725
+ # @yieldparam err [StandardError] error object if request failed
2726
+ #
2727
+ # @return [void]
2728
+ #
2729
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2730
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2731
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2732
+ def delete_account_user_permission(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2733
+ command = make_simple_command(:delete, '{+path}', options)
2734
+ command.params['path'] = path unless path.nil?
2735
+ command.query['fields'] = fields unless fields.nil?
2736
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2737
+ command.query['userIp'] = user_ip unless user_ip.nil?
2738
+ execute_or_queue_command(command, &block)
2739
+ end
2740
+
2741
+ # Gets a user's Account & Container access.
2742
+ # @param [String] path
2743
+ # GTM UserPermission's API relative path. Example: accounts/`account_id`/
2744
+ # user_permissions/`user_permission_id`
2745
+ # @param [String] fields
2746
+ # Selector specifying which fields to include in a partial response.
2747
+ # @param [String] quota_user
2748
+ # Available to use for quota purposes for server-side applications. Can be any
2749
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2750
+ # Overrides userIp if both are provided.
2751
+ # @param [String] user_ip
2752
+ # IP address of the site where the request originates. Use this if you want to
2753
+ # enforce per-user limits.
2754
+ # @param [Google::Apis::RequestOptions] options
2755
+ # Request-specific options
2756
+ #
2757
+ # @yield [result, err] Result & error if block supplied
2758
+ # @yieldparam result [Google::Apis::TagmanagerV2::UserPermission] parsed result object
2759
+ # @yieldparam err [StandardError] error object if request failed
2760
+ #
2761
+ # @return [Google::Apis::TagmanagerV2::UserPermission]
2762
+ #
2763
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2764
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2765
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2766
+ def get_account_user_permission(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2767
+ command = make_simple_command(:get, '{+path}', options)
2768
+ command.response_representation = Google::Apis::TagmanagerV2::UserPermission::Representation
2769
+ command.response_class = Google::Apis::TagmanagerV2::UserPermission
2770
+ command.params['path'] = path unless path.nil?
2771
+ command.query['fields'] = fields unless fields.nil?
2772
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2773
+ command.query['userIp'] = user_ip unless user_ip.nil?
2774
+ execute_or_queue_command(command, &block)
2775
+ end
2776
+
2777
+ # List all users that have access to the account along with Account and
2778
+ # Container user access granted to each of them.
2779
+ # @param [String] parent
2780
+ # GTM Accounts's API relative path. Example: accounts/`account_id`
2781
+ # @param [String] page_token
2782
+ # Continuation token for fetching the next page of results.
2783
+ # @param [String] fields
2784
+ # Selector specifying which fields to include in a partial response.
2785
+ # @param [String] quota_user
2786
+ # Available to use for quota purposes for server-side applications. Can be any
2787
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2788
+ # Overrides userIp if both are provided.
2789
+ # @param [String] user_ip
2790
+ # IP address of the site where the request originates. Use this if you want to
2791
+ # enforce per-user limits.
2792
+ # @param [Google::Apis::RequestOptions] options
2793
+ # Request-specific options
2794
+ #
2795
+ # @yield [result, err] Result & error if block supplied
2796
+ # @yieldparam result [Google::Apis::TagmanagerV2::ListUserPermissionsResponse] parsed result object
2797
+ # @yieldparam err [StandardError] error object if request failed
2798
+ #
2799
+ # @return [Google::Apis::TagmanagerV2::ListUserPermissionsResponse]
2800
+ #
2801
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2802
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2803
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2804
+ def list_account_user_permissions(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2805
+ command = make_simple_command(:get, '{+parent}/user_permissions', options)
2806
+ command.response_representation = Google::Apis::TagmanagerV2::ListUserPermissionsResponse::Representation
2807
+ command.response_class = Google::Apis::TagmanagerV2::ListUserPermissionsResponse
2808
+ command.params['parent'] = parent unless parent.nil?
2809
+ command.query['pageToken'] = page_token unless page_token.nil?
2810
+ command.query['fields'] = fields unless fields.nil?
2811
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2812
+ command.query['userIp'] = user_ip unless user_ip.nil?
2813
+ execute_or_queue_command(command, &block)
2814
+ end
2815
+
2816
+ # Updates a user's Account & Container access.
2817
+ # @param [String] path
2818
+ # GTM UserPermission's API relative path. Example: accounts/`account_id`/
2819
+ # user_permissions/`user_permission_id`
2820
+ # @param [Google::Apis::TagmanagerV2::UserPermission] user_permission_object
2821
+ # @param [String] fields
2822
+ # Selector specifying which fields to include in a partial response.
2823
+ # @param [String] quota_user
2824
+ # Available to use for quota purposes for server-side applications. Can be any
2825
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2826
+ # Overrides userIp if both are provided.
2827
+ # @param [String] user_ip
2828
+ # IP address of the site where the request originates. Use this if you want to
2829
+ # enforce per-user limits.
2830
+ # @param [Google::Apis::RequestOptions] options
2831
+ # Request-specific options
2832
+ #
2833
+ # @yield [result, err] Result & error if block supplied
2834
+ # @yieldparam result [Google::Apis::TagmanagerV2::UserPermission] parsed result object
2835
+ # @yieldparam err [StandardError] error object if request failed
2836
+ #
2837
+ # @return [Google::Apis::TagmanagerV2::UserPermission]
2838
+ #
2839
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2840
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2841
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2842
+ def update_account_user_permission(path, user_permission_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2843
+ command = make_simple_command(:put, '{+path}', options)
2844
+ command.request_representation = Google::Apis::TagmanagerV2::UserPermission::Representation
2845
+ command.request_object = user_permission_object
2846
+ command.response_representation = Google::Apis::TagmanagerV2::UserPermission::Representation
2847
+ command.response_class = Google::Apis::TagmanagerV2::UserPermission
2848
+ command.params['path'] = path unless path.nil?
2849
+ command.query['fields'] = fields unless fields.nil?
2850
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2851
+ command.query['userIp'] = user_ip unless user_ip.nil?
2852
+ execute_or_queue_command(command, &block)
2853
+ end
2854
+
2855
+ protected
2856
+
2857
+ def apply_command_defaults(command)
2858
+ command.query['key'] = key unless key.nil?
2859
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2860
+ command.query['userIp'] = user_ip unless user_ip.nil?
2861
+ end
2862
+ end
2863
+ end
2864
+ end
2865
+ end