google-api-client 0.9.2 → 0.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGELOG.md +9 -0
  4. data/Gemfile +1 -0
  5. data/README.md +2 -2
  6. data/api_names.yaml +19 -0
  7. data/api_names_out.yaml +843 -269
  8. data/bin/generate-api +18 -4
  9. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  10. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +249 -9
  11. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +208 -1
  12. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +68 -0
  13. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +38 -0
  14. data/generated/google/apis/admin_datatransfer_v1.rb +2 -2
  15. data/generated/google/apis/admin_datatransfer_v1/representations.rb +12 -0
  16. data/generated/google/apis/admin_datatransfer_v1/service.rb +1 -1
  17. data/generated/google/apis/admin_directory_v1/representations.rb +118 -0
  18. data/generated/google/apis/admin_reports_v1/representations.rb +26 -0
  19. data/generated/google/apis/adsense_v1_4.rb +1 -1
  20. data/generated/google/apis/adsense_v1_4/classes.rb +0 -7
  21. data/generated/google/apis/adsense_v1_4/representations.rb +62 -1
  22. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  23. data/generated/google/apis/adsensehost_v4_1/representations.rb +40 -0
  24. data/generated/google/apis/analytics_v3.rb +1 -1
  25. data/generated/google/apis/analytics_v3/representations.rb +188 -0
  26. data/generated/google/apis/analytics_v3/service.rb +3 -3
  27. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  28. data/generated/google/apis/androidenterprise_v1/representations.rb +76 -0
  29. data/generated/google/apis/androidenterprise_v1/service.rb +6 -2
  30. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  31. data/generated/google/apis/androidpublisher_v2/representations.rb +92 -0
  32. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  33. data/generated/google/apis/appengine_v1beta5/classes.rb +22 -1
  34. data/generated/google/apis/appengine_v1beta5/representations.rb +69 -0
  35. data/generated/google/apis/appengine_v1beta5/service.rb +43 -0
  36. data/generated/google/apis/appsactivity_v1/representations.rb +22 -0
  37. data/generated/google/apis/appstate_v1.rb +1 -1
  38. data/generated/google/apis/appstate_v1/representations.rb +8 -0
  39. data/generated/google/apis/autoscaler_v1beta2/representations.rb +32 -0
  40. data/generated/google/apis/bigquery_v2.rb +1 -1
  41. data/generated/google/apis/bigquery_v2/classes.rb +31 -0
  42. data/generated/google/apis/bigquery_v2/representations.rb +98 -0
  43. data/generated/google/apis/blogger_v3/representations.rb +70 -0
  44. data/generated/google/apis/books_v1/representations.rb +196 -0
  45. data/generated/google/apis/calendar_v3.rb +1 -1
  46. data/generated/google/apis/calendar_v3/representations.rb +64 -0
  47. data/generated/google/apis/civicinfo_v2/representations.rb +40 -0
  48. data/generated/google/apis/classroom_v1/representations.rb +28 -0
  49. data/generated/google/apis/cloudbilling_v1/representations.rb +8 -0
  50. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  51. data/generated/google/apis/cloudbuild_v1/classes.rb +1 -1
  52. data/generated/google/apis/cloudbuild_v1/representations.rb +24 -0
  53. data/generated/google/apis/cloudbuild_v1/service.rb +2 -2
  54. data/generated/google/apis/clouddebugger_v2/representations.rb +54 -0
  55. data/generated/google/apis/cloudlatencytest_v2/representations.rb +14 -0
  56. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  57. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +42 -0
  58. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  59. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +15 -2
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +38 -0
  61. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +4 -1
  62. data/generated/google/apis/cloudtrace_v1/representations.rb +10 -0
  63. data/generated/google/apis/clouduseraccounts_beta/representations.rb +38 -0
  64. data/generated/google/apis/compute_beta.rb +1 -1
  65. data/generated/google/apis/compute_beta/classes.rb +512 -0
  66. data/generated/google/apis/compute_beta/representations.rb +599 -0
  67. data/generated/google/apis/compute_beta/service.rb +415 -0
  68. data/generated/google/apis/compute_v1.rb +1 -1
  69. data/generated/google/apis/compute_v1/representations.rb +386 -0
  70. data/generated/google/apis/container_v1/representations.rb +20 -0
  71. data/generated/google/apis/content_v2/representations.rb +296 -0
  72. data/generated/google/apis/coordinate_v1/representations.rb +36 -0
  73. data/generated/google/apis/customsearch_v1/representations.rb +26 -0
  74. data/generated/google/apis/dataproc_v1.rb +1 -1
  75. data/generated/google/apis/dataproc_v1/classes.rb +1415 -0
  76. data/generated/google/apis/dataproc_v1/representations.rb +569 -0
  77. data/generated/google/apis/dataproc_v1/service.rb +581 -4
  78. data/generated/google/apis/datastore_v1beta2/representations.rb +68 -0
  79. data/generated/google/apis/deploymentmanager_v2/representations.rb +58 -0
  80. data/generated/google/apis/dfareporting_v2_3/representations.rb +386 -0
  81. data/generated/google/apis/discovery_v1/representations.rb +40 -0
  82. data/generated/google/apis/dns_v1.rb +1 -1
  83. data/generated/google/apis/dns_v1/classes.rb +2 -2
  84. data/generated/google/apis/dns_v1/representations.rb +16 -0
  85. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +42 -0
  86. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  87. data/generated/google/apis/doubleclicksearch_v2/representations.rb +34 -0
  88. data/generated/google/apis/drive_v2.rb +1 -1
  89. data/generated/google/apis/drive_v2/classes.rb +7 -0
  90. data/generated/google/apis/drive_v2/representations.rb +83 -0
  91. data/generated/google/apis/drive_v3.rb +1 -1
  92. data/generated/google/apis/drive_v3/classes.rb +7 -0
  93. data/generated/google/apis/drive_v3/representations.rb +51 -0
  94. data/generated/google/apis/fitness_v1/representations.rb +40 -0
  95. data/generated/google/apis/fusiontables_v2.rb +1 -1
  96. data/generated/google/apis/fusiontables_v2/representations.rb +48 -0
  97. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  98. data/generated/google/apis/games_configuration_v1configuration/representations.rb +22 -0
  99. data/generated/google/apis/games_management_v1management.rb +1 -1
  100. data/generated/google/apis/games_management_v1management/representations.rb +30 -0
  101. data/generated/google/apis/games_v1.rb +1 -1
  102. data/generated/google/apis/games_v1/representations.rb +198 -0
  103. data/generated/google/apis/gan_v1beta1/representations.rb +34 -0
  104. data/generated/google/apis/genomics_v1.rb +1 -1
  105. data/generated/google/apis/genomics_v1/classes.rb +2 -211
  106. data/generated/google/apis/genomics_v1/representations.rb +119 -84
  107. data/generated/google/apis/gmail_v1/representations.rb +44 -0
  108. data/generated/google/apis/groupsmigration_v1/representations.rb +2 -0
  109. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  110. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  111. data/generated/google/apis/identitytoolkit_v3/classes.rb +105 -0
  112. data/generated/google/apis/identitytoolkit_v3/representations.rb +99 -0
  113. data/generated/google/apis/identitytoolkit_v3/service.rb +36 -1
  114. data/generated/google/apis/kgsearch_v1/representations.rb +2 -0
  115. data/generated/google/apis/licensing_v1/representations.rb +6 -0
  116. data/generated/google/apis/logging_v2beta1/representations.rb +40 -0
  117. data/generated/google/apis/manager_v1beta2/representations.rb +70 -0
  118. data/generated/google/apis/mirror_v1/representations.rb +40 -0
  119. data/generated/google/apis/oauth2_v2.rb +1 -1
  120. data/generated/google/apis/oauth2_v2/representations.rb +8 -0
  121. data/generated/google/apis/pagespeedonline_v2/representations.rb +28 -0
  122. data/generated/google/apis/partners_v2/representations.rb +52 -0
  123. data/generated/google/apis/people_v1.rb +11 -11
  124. data/generated/google/apis/people_v1/classes.rb +888 -961
  125. data/generated/google/apis/people_v1/representations.rb +295 -225
  126. data/generated/google/apis/people_v1/service.rb +61 -65
  127. data/generated/google/apis/plus_domains_v1.rb +1 -1
  128. data/generated/google/apis/plus_domains_v1/representations.rb +124 -0
  129. data/generated/google/apis/plus_v1.rb +1 -1
  130. data/generated/google/apis/plus_v1/representations.rb +102 -0
  131. data/generated/google/apis/prediction_v1_6/classes.rb +1 -1
  132. data/generated/google/apis/prediction_v1_6/representations.rb +42 -0
  133. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +38 -0
  134. data/generated/google/apis/pubsub_v1/representations.rb +42 -0
  135. data/generated/google/apis/qpx_express_v1/representations.rb +48 -0
  136. data/generated/google/apis/replicapool_v1beta2/representations.rb +28 -0
  137. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +30 -0
  138. data/generated/google/apis/reseller_v1.rb +1 -1
  139. data/generated/google/apis/reseller_v1/classes.rb +6 -0
  140. data/generated/google/apis/reseller_v1/representations.rb +23 -0
  141. data/generated/google/apis/resourceviews_v1beta2/representations.rb +32 -0
  142. data/generated/google/apis/script_v1/representations.rb +12 -0
  143. data/generated/google/apis/site_verification_v1/representations.rb +12 -0
  144. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  145. data/generated/google/apis/sqladmin_v1beta4/classes.rb +50 -21
  146. data/generated/google/apis/sqladmin_v1beta4/representations.rb +98 -0
  147. data/generated/google/apis/sqladmin_v1beta4/service.rb +3 -3
  148. data/generated/google/apis/storage_v1.rb +1 -1
  149. data/generated/google/apis/storage_v1/representations.rb +52 -0
  150. data/generated/google/apis/storagetransfer_v1/representations.rb +48 -0
  151. data/generated/google/apis/tagmanager_v1.rb +1 -1
  152. data/generated/google/apis/tagmanager_v1/classes.rb +110 -0
  153. data/generated/google/apis/tagmanager_v1/representations.rb +96 -0
  154. data/generated/google/apis/tagmanager_v1/service.rb +303 -1
  155. data/generated/google/apis/taskqueue_v1beta2/representations.rb +12 -0
  156. data/generated/google/apis/tasks_v1/representations.rb +10 -0
  157. data/generated/google/apis/translate_v2.rb +1 -1
  158. data/generated/google/apis/translate_v2/representations.rb +12 -0
  159. data/generated/google/apis/urlshortener_v1/representations.rb +10 -0
  160. data/generated/google/apis/vision_v1.rb +37 -0
  161. data/generated/google/apis/vision_v1/classes.rb +1259 -0
  162. data/generated/google/apis/vision_v1/representations.rb +418 -0
  163. data/generated/google/apis/vision_v1/service.rb +91 -0
  164. data/generated/google/apis/webmasters_v3/representations.rb +32 -0
  165. data/generated/google/apis/youtube_analytics_v1/representations.rb +30 -0
  166. data/generated/google/apis/youtube_v3/representations.rb +332 -0
  167. data/generated/google/apis/youtubereporting_v1/representations.rb +16 -0
  168. data/google-api-client.gemspec +0 -2
  169. data/lib/google/api_client/client_secrets.rb +3 -4
  170. data/lib/google/apis/core/api_command.rb +5 -4
  171. data/lib/google/apis/core/http_command.rb +20 -4
  172. data/lib/google/apis/core/json_representation.rb +20 -2
  173. data/lib/google/apis/generator/annotator.rb +1 -1
  174. data/lib/google/apis/generator/templates/_representation_stub.tmpl +2 -0
  175. data/lib/google/apis/version.rb +1 -1
  176. data/script/generate +2 -1
  177. data/spec/google/api_client/client_secrets_spec.rb +2 -2
  178. data/spec/google/apis/core/api_command_spec.rb +2 -2
  179. data/spec/google/apis/core/http_command_spec.rb +19 -0
  180. data/spec/google/apis/core/json_representation_spec.rb +14 -7
  181. data/spec/google/apis/generator/generator_spec.rb +52 -0
  182. metadata +6 -30
@@ -24,118 +24,188 @@ module Google
24
24
 
25
25
  class Account
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
27
29
  end
28
30
 
29
31
  class AccountAccess
30
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
31
35
  end
32
36
 
33
37
  class Condition
34
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
35
41
  end
36
42
 
37
43
  class Container
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
39
47
  end
40
48
 
41
49
  class ContainerAccess
42
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
43
53
  end
44
54
 
45
55
  class ContainerVersion
46
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
47
59
  end
48
60
 
49
61
  class ContainerVersionHeader
50
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
51
65
  end
52
66
 
53
67
  class CreateContainerVersionRequestVersionOptions
54
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
55
71
  end
56
72
 
57
73
  class CreateContainerVersionResponse
58
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class Environment
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
59
83
  end
60
84
 
61
85
  class Folder
62
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
63
89
  end
64
90
 
65
91
  class FolderEntities
66
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
67
95
  end
68
96
 
69
97
  class ListAccountUsersResponse
70
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
71
101
  end
72
102
 
73
103
  class ListAccountsResponse
74
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
75
107
  end
76
108
 
77
109
  class ListContainerVersionsResponse
78
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
79
113
  end
80
114
 
81
115
  class ListContainersResponse
82
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class ListEnvironmentsResponse
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
83
125
  end
84
126
 
85
127
  class ListFoldersResponse
86
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
87
131
  end
88
132
 
89
133
  class ListTagsResponse
90
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
91
137
  end
92
138
 
93
139
  class ListTriggersResponse
94
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
95
143
  end
96
144
 
97
145
  class ListVariablesResponse
98
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
99
149
  end
100
150
 
101
151
  class Macro
102
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
103
155
  end
104
156
 
105
157
  class Parameter
106
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
107
161
  end
108
162
 
109
163
  class PublishContainerVersionResponse
110
164
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
111
167
  end
112
168
 
113
169
  class Rule
114
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
115
173
  end
116
174
 
117
175
  class SetupTag
118
176
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
119
179
  end
120
180
 
121
181
  class Tag
122
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
123
185
  end
124
186
 
125
187
  class TeardownTag
126
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
127
191
  end
128
192
 
129
193
  class Trigger
130
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
131
197
  end
132
198
 
133
199
  class UserAccess
134
200
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
135
203
  end
136
204
 
137
205
  class Variable
138
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
139
209
  end
140
210
 
141
211
  class Account
@@ -250,6 +320,24 @@ module Google
250
320
  end
251
321
  end
252
322
 
323
+ class Environment
324
+ # @private
325
+ class Representation < Google::Apis::Core::JsonRepresentation
326
+ property :account_id, as: 'accountId'
327
+ property :authorization_code, as: 'authorizationCode'
328
+ property :authorization_timestamp_ms, as: 'authorizationTimestampMs'
329
+ property :container_id, as: 'containerId'
330
+ property :container_version_id, as: 'containerVersionId'
331
+ property :description, as: 'description'
332
+ property :enable_debug, as: 'enableDebug'
333
+ property :environment_id, as: 'environmentId'
334
+ property :fingerprint, as: 'fingerprint'
335
+ property :name, as: 'name'
336
+ property :type, as: 'type'
337
+ property :url, as: 'url'
338
+ end
339
+ end
340
+
253
341
  class Folder
254
342
  # @private
255
343
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -307,6 +395,14 @@ module Google
307
395
  end
308
396
  end
309
397
 
398
+ class ListEnvironmentsResponse
399
+ # @private
400
+ class Representation < Google::Apis::Core::JsonRepresentation
401
+ collection :environments, as: 'environments', class: Google::Apis::TagmanagerV1::Environment, decorator: Google::Apis::TagmanagerV1::Environment::Representation
402
+
403
+ end
404
+ end
405
+
310
406
  class ListFoldersResponse
311
407
  # @private
312
408
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -353,6 +353,261 @@ module Google
353
353
  execute_or_queue_command(command, &block)
354
354
  end
355
355
 
356
+ # Creates a GTM Environment.
357
+ # @param [String] account_id
358
+ # The GTM Account ID.
359
+ # @param [String] container_id
360
+ # The GTM Container ID.
361
+ # @param [Google::Apis::TagmanagerV1::Environment] environment_object
362
+ # @param [String] fields
363
+ # Selector specifying which fields to include in a partial response.
364
+ # @param [String] quota_user
365
+ # Available to use for quota purposes for server-side applications. Can be any
366
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
367
+ # Overrides userIp if both are provided.
368
+ # @param [String] user_ip
369
+ # IP address of the site where the request originates. Use this if you want to
370
+ # enforce per-user limits.
371
+ # @param [Google::Apis::RequestOptions] options
372
+ # Request-specific options
373
+ #
374
+ # @yield [result, err] Result & error if block supplied
375
+ # @yieldparam result [Google::Apis::TagmanagerV1::Environment] parsed result object
376
+ # @yieldparam err [StandardError] error object if request failed
377
+ #
378
+ # @return [Google::Apis::TagmanagerV1::Environment]
379
+ #
380
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
381
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
382
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
383
+ def create_account_container_environment(account_id, container_id, environment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
384
+ command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/environments', options)
385
+ command.request_representation = Google::Apis::TagmanagerV1::Environment::Representation
386
+ command.request_object = environment_object
387
+ command.response_representation = Google::Apis::TagmanagerV1::Environment::Representation
388
+ command.response_class = Google::Apis::TagmanagerV1::Environment
389
+ command.params['accountId'] = account_id unless account_id.nil?
390
+ command.params['containerId'] = container_id unless container_id.nil?
391
+ command.query['fields'] = fields unless fields.nil?
392
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
393
+ command.query['userIp'] = user_ip unless user_ip.nil?
394
+ execute_or_queue_command(command, &block)
395
+ end
396
+
397
+ # Deletes a GTM Environment.
398
+ # @param [String] account_id
399
+ # The GTM Account ID.
400
+ # @param [String] container_id
401
+ # The GTM Container ID.
402
+ # @param [String] environment_id
403
+ # The GTM Environment ID.
404
+ # @param [String] fields
405
+ # Selector specifying which fields to include in a partial response.
406
+ # @param [String] quota_user
407
+ # Available to use for quota purposes for server-side applications. Can be any
408
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
409
+ # Overrides userIp if both are provided.
410
+ # @param [String] user_ip
411
+ # IP address of the site where the request originates. Use this if you want to
412
+ # enforce per-user limits.
413
+ # @param [Google::Apis::RequestOptions] options
414
+ # Request-specific options
415
+ #
416
+ # @yield [result, err] Result & error if block supplied
417
+ # @yieldparam result [NilClass] No result returned for this method
418
+ # @yieldparam err [StandardError] error object if request failed
419
+ #
420
+ # @return [void]
421
+ #
422
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
423
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
424
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
425
+ def delete_account_container_environment(account_id, container_id, environment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
426
+ command = make_simple_command(:delete, 'accounts/{accountId}/containers/{containerId}/environments/{environmentId}', options)
427
+ command.params['accountId'] = account_id unless account_id.nil?
428
+ command.params['containerId'] = container_id unless container_id.nil?
429
+ command.params['environmentId'] = environment_id unless environment_id.nil?
430
+ command.query['fields'] = fields unless fields.nil?
431
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
432
+ command.query['userIp'] = user_ip unless user_ip.nil?
433
+ execute_or_queue_command(command, &block)
434
+ end
435
+
436
+ # Gets a GTM Environment.
437
+ # @param [String] account_id
438
+ # The GTM Account ID.
439
+ # @param [String] container_id
440
+ # The GTM Container ID.
441
+ # @param [String] environment_id
442
+ # The GTM Environment ID.
443
+ # @param [String] fields
444
+ # Selector specifying which fields to include in a partial response.
445
+ # @param [String] quota_user
446
+ # Available to use for quota purposes for server-side applications. Can be any
447
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
448
+ # Overrides userIp if both are provided.
449
+ # @param [String] user_ip
450
+ # IP address of the site where the request originates. Use this if you want to
451
+ # enforce per-user limits.
452
+ # @param [Google::Apis::RequestOptions] options
453
+ # Request-specific options
454
+ #
455
+ # @yield [result, err] Result & error if block supplied
456
+ # @yieldparam result [Google::Apis::TagmanagerV1::Environment] parsed result object
457
+ # @yieldparam err [StandardError] error object if request failed
458
+ #
459
+ # @return [Google::Apis::TagmanagerV1::Environment]
460
+ #
461
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
462
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
463
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
464
+ def get_account_container_environment(account_id, container_id, environment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
465
+ command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/environments/{environmentId}', options)
466
+ command.response_representation = Google::Apis::TagmanagerV1::Environment::Representation
467
+ command.response_class = Google::Apis::TagmanagerV1::Environment
468
+ command.params['accountId'] = account_id unless account_id.nil?
469
+ command.params['containerId'] = container_id unless container_id.nil?
470
+ command.params['environmentId'] = environment_id unless environment_id.nil?
471
+ command.query['fields'] = fields unless fields.nil?
472
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
473
+ command.query['userIp'] = user_ip unless user_ip.nil?
474
+ execute_or_queue_command(command, &block)
475
+ end
476
+
477
+ # Lists all GTM Environments of a GTM Container.
478
+ # @param [String] account_id
479
+ # The GTM Account ID.
480
+ # @param [String] container_id
481
+ # The GTM Container ID.
482
+ # @param [String] fields
483
+ # Selector specifying which fields to include in a partial response.
484
+ # @param [String] quota_user
485
+ # Available to use for quota purposes for server-side applications. Can be any
486
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
487
+ # Overrides userIp if both are provided.
488
+ # @param [String] user_ip
489
+ # IP address of the site where the request originates. Use this if you want to
490
+ # enforce per-user limits.
491
+ # @param [Google::Apis::RequestOptions] options
492
+ # Request-specific options
493
+ #
494
+ # @yield [result, err] Result & error if block supplied
495
+ # @yieldparam result [Google::Apis::TagmanagerV1::ListEnvironmentsResponse] parsed result object
496
+ # @yieldparam err [StandardError] error object if request failed
497
+ #
498
+ # @return [Google::Apis::TagmanagerV1::ListEnvironmentsResponse]
499
+ #
500
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
501
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
502
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
503
+ def list_account_container_environments(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
504
+ command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/environments', options)
505
+ command.response_representation = Google::Apis::TagmanagerV1::ListEnvironmentsResponse::Representation
506
+ command.response_class = Google::Apis::TagmanagerV1::ListEnvironmentsResponse
507
+ command.params['accountId'] = account_id unless account_id.nil?
508
+ command.params['containerId'] = container_id unless container_id.nil?
509
+ command.query['fields'] = fields unless fields.nil?
510
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
511
+ command.query['userIp'] = user_ip unless user_ip.nil?
512
+ execute_or_queue_command(command, &block)
513
+ end
514
+
515
+ # Updates a GTM Environment. This method supports patch semantics.
516
+ # @param [String] account_id
517
+ # The GTM Account ID.
518
+ # @param [String] container_id
519
+ # The GTM Container ID.
520
+ # @param [String] environment_id
521
+ # The GTM Environment ID.
522
+ # @param [Google::Apis::TagmanagerV1::Environment] environment_object
523
+ # @param [String] fingerprint
524
+ # When provided, this fingerprint must match the fingerprint of the environment
525
+ # in storage.
526
+ # @param [String] fields
527
+ # Selector specifying which fields to include in a partial response.
528
+ # @param [String] quota_user
529
+ # Available to use for quota purposes for server-side applications. Can be any
530
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
531
+ # Overrides userIp if both are provided.
532
+ # @param [String] user_ip
533
+ # IP address of the site where the request originates. Use this if you want to
534
+ # enforce per-user limits.
535
+ # @param [Google::Apis::RequestOptions] options
536
+ # Request-specific options
537
+ #
538
+ # @yield [result, err] Result & error if block supplied
539
+ # @yieldparam result [Google::Apis::TagmanagerV1::Environment] parsed result object
540
+ # @yieldparam err [StandardError] error object if request failed
541
+ #
542
+ # @return [Google::Apis::TagmanagerV1::Environment]
543
+ #
544
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
545
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
546
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
547
+ def patch_account_container_environment(account_id, container_id, environment_id, environment_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
548
+ command = make_simple_command(:patch, 'accounts/{accountId}/containers/{containerId}/environments/{environmentId}', options)
549
+ command.request_representation = Google::Apis::TagmanagerV1::Environment::Representation
550
+ command.request_object = environment_object
551
+ command.response_representation = Google::Apis::TagmanagerV1::Environment::Representation
552
+ command.response_class = Google::Apis::TagmanagerV1::Environment
553
+ command.params['accountId'] = account_id unless account_id.nil?
554
+ command.params['containerId'] = container_id unless container_id.nil?
555
+ command.params['environmentId'] = environment_id unless environment_id.nil?
556
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
557
+ command.query['fields'] = fields unless fields.nil?
558
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
559
+ command.query['userIp'] = user_ip unless user_ip.nil?
560
+ execute_or_queue_command(command, &block)
561
+ end
562
+
563
+ # Updates a GTM Environment.
564
+ # @param [String] account_id
565
+ # The GTM Account ID.
566
+ # @param [String] container_id
567
+ # The GTM Container ID.
568
+ # @param [String] environment_id
569
+ # The GTM Environment ID.
570
+ # @param [Google::Apis::TagmanagerV1::Environment] environment_object
571
+ # @param [String] fingerprint
572
+ # When provided, this fingerprint must match the fingerprint of the environment
573
+ # in storage.
574
+ # @param [String] fields
575
+ # Selector specifying which fields to include in a partial response.
576
+ # @param [String] quota_user
577
+ # Available to use for quota purposes for server-side applications. Can be any
578
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
579
+ # Overrides userIp if both are provided.
580
+ # @param [String] user_ip
581
+ # IP address of the site where the request originates. Use this if you want to
582
+ # enforce per-user limits.
583
+ # @param [Google::Apis::RequestOptions] options
584
+ # Request-specific options
585
+ #
586
+ # @yield [result, err] Result & error if block supplied
587
+ # @yieldparam result [Google::Apis::TagmanagerV1::Environment] parsed result object
588
+ # @yieldparam err [StandardError] error object if request failed
589
+ #
590
+ # @return [Google::Apis::TagmanagerV1::Environment]
591
+ #
592
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
593
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
594
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
595
+ def update_account_container_environment(account_id, container_id, environment_id, environment_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
596
+ command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/environments/{environmentId}', options)
597
+ command.request_representation = Google::Apis::TagmanagerV1::Environment::Representation
598
+ command.request_object = environment_object
599
+ command.response_representation = Google::Apis::TagmanagerV1::Environment::Representation
600
+ command.response_class = Google::Apis::TagmanagerV1::Environment
601
+ command.params['accountId'] = account_id unless account_id.nil?
602
+ command.params['containerId'] = container_id unless container_id.nil?
603
+ command.params['environmentId'] = environment_id unless environment_id.nil?
604
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
605
+ command.query['fields'] = fields unless fields.nil?
606
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
607
+ command.query['userIp'] = user_ip unless user_ip.nil?
608
+ execute_or_queue_command(command, &block)
609
+ end
610
+
356
611
  # Creates a GTM Folder.
357
612
  # @param [String] account_id
358
613
  # The GTM Account ID.
@@ -608,6 +863,7 @@ module Google
608
863
  # The GTM Container ID.
609
864
  # @param [String] folder_id
610
865
  # The GTM Folder ID.
866
+ # @param [Google::Apis::TagmanagerV1::Folder] folder_object
611
867
  # @param [Array<String>, String] tag_id
612
868
  # The tags to be moved to the folder.
613
869
  # @param [Array<String>, String] trigger_id
@@ -635,8 +891,10 @@ module Google
635
891
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
636
892
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
637
893
  # @raise [Google::Apis::AuthorizationError] Authorization is required
638
- def update_account_container_move_folder(account_id, container_id, folder_id, tag_id: nil, trigger_id: nil, variable_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
894
+ def update_account_container_move_folder(account_id, container_id, folder_id, folder_object = nil, tag_id: nil, trigger_id: nil, variable_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
639
895
  command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/move_folders/{folderId}', options)
896
+ command.request_representation = Google::Apis::TagmanagerV1::Folder::Representation
897
+ command.request_object = folder_object
640
898
  command.params['accountId'] = account_id unless account_id.nil?
641
899
  command.params['containerId'] = container_id unless container_id.nil?
642
900
  command.params['folderId'] = folder_id unless folder_id.nil?
@@ -649,6 +907,50 @@ module Google
649
907
  execute_or_queue_command(command, &block)
650
908
  end
651
909
 
910
+ # Re-generates the authorization code for a GTM Environment.
911
+ # @param [String] account_id
912
+ # The GTM Account ID.
913
+ # @param [String] container_id
914
+ # The GTM Container ID.
915
+ # @param [String] environment_id
916
+ # The GTM Environment ID.
917
+ # @param [Google::Apis::TagmanagerV1::Environment] environment_object
918
+ # @param [String] fields
919
+ # Selector specifying which fields to include in a partial response.
920
+ # @param [String] quota_user
921
+ # Available to use for quota purposes for server-side applications. Can be any
922
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
923
+ # Overrides userIp if both are provided.
924
+ # @param [String] user_ip
925
+ # IP address of the site where the request originates. Use this if you want to
926
+ # enforce per-user limits.
927
+ # @param [Google::Apis::RequestOptions] options
928
+ # Request-specific options
929
+ #
930
+ # @yield [result, err] Result & error if block supplied
931
+ # @yieldparam result [Google::Apis::TagmanagerV1::Environment] parsed result object
932
+ # @yieldparam err [StandardError] error object if request failed
933
+ #
934
+ # @return [Google::Apis::TagmanagerV1::Environment]
935
+ #
936
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
937
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
938
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
939
+ def update_account_container_reauthorize_environment(account_id, container_id, environment_id, environment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
940
+ command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/reauthorize_environments/{environmentId}', options)
941
+ command.request_representation = Google::Apis::TagmanagerV1::Environment::Representation
942
+ command.request_object = environment_object
943
+ command.response_representation = Google::Apis::TagmanagerV1::Environment::Representation
944
+ command.response_class = Google::Apis::TagmanagerV1::Environment
945
+ command.params['accountId'] = account_id unless account_id.nil?
946
+ command.params['containerId'] = container_id unless container_id.nil?
947
+ command.params['environmentId'] = environment_id unless environment_id.nil?
948
+ command.query['fields'] = fields unless fields.nil?
949
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
950
+ command.query['userIp'] = user_ip unless user_ip.nil?
951
+ execute_or_queue_command(command, &block)
952
+ end
953
+
652
954
  # Creates a GTM Tag.
653
955
  # @param [String] account_id
654
956
  # The GTM Account ID.