google-apis-tagmanager_v2 0.6.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/OVERVIEW.md +3 -3
- data/lib/google/apis/tagmanager_v2/classes.rb +85 -0
- data/lib/google/apis/tagmanager_v2/gem_version.rb +2 -2
- data/lib/google/apis/tagmanager_v2/representations.rb +48 -0
- data/lib/google/apis/tagmanager_v2/service.rb +201 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 978db8471a6b4be664bd532ce00e6068d832e3075a2dc4a15986022d2d8a810b
|
4
|
+
data.tar.gz: 288d48dd573289073380f5f17fd88d84e2f3f913769aef2cd8b847f7913b2f0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a3c94e04a4d0692916e74f308a0304234dcaff23ae8b8e5c5b966c293d1aa9eaed61754433ab908115fdae972c6b5ffe2b4939a205d4841c5c54b60ed7c2a47
|
7
|
+
data.tar.gz: c08e9889afb942e3f773338d9030c35981b6e75b19428f15f753ad4ac79df082077b075ddef1139c0fd0ad0c44fb3ebeb31f2f7908940b4e6f43a7ac326af3bf
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-tagmanager_v2
|
2
2
|
|
3
|
+
### v0.10.0 (2021-12-14)
|
4
|
+
|
5
|
+
* Unspecified changes
|
6
|
+
|
7
|
+
### v0.9.0 (2021-10-29)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20211027
|
10
|
+
|
11
|
+
### v0.8.0 (2021-10-20)
|
12
|
+
|
13
|
+
* Unspecified changes
|
14
|
+
|
15
|
+
### v0.7.0 (2021-09-01)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210814
|
18
|
+
|
3
19
|
### v0.6.0 (2021-06-29)
|
4
20
|
|
5
21
|
* Regenerated using generator version 0.4.0
|
data/OVERVIEW.md
CHANGED
@@ -51,7 +51,7 @@ require "google/apis/tagmanager_v2"
|
|
51
51
|
client = Google::Apis::TagmanagerV2::TagManagerService.new
|
52
52
|
|
53
53
|
# Authenticate calls
|
54
|
-
client.
|
54
|
+
client.authorization = # ... use the googleauth gem to create credentials
|
55
55
|
```
|
56
56
|
|
57
57
|
See the class reference docs for information on the methods you can call from a client.
|
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Tagmanager service in particular.)
|
67
67
|
|
@@ -1157,6 +1157,31 @@ module Google
|
|
1157
1157
|
end
|
1158
1158
|
end
|
1159
1159
|
|
1160
|
+
#
|
1161
|
+
class ListClientsResponse
|
1162
|
+
include Google::Apis::Core::Hashable
|
1163
|
+
|
1164
|
+
# All GTM Clients of a GTM Container.
|
1165
|
+
# Corresponds to the JSON property `client`
|
1166
|
+
# @return [Array<Google::Apis::TagmanagerV2::Client>]
|
1167
|
+
attr_accessor :client
|
1168
|
+
|
1169
|
+
# Continuation token for fetching the next page of results.
|
1170
|
+
# Corresponds to the JSON property `nextPageToken`
|
1171
|
+
# @return [String]
|
1172
|
+
attr_accessor :next_page_token
|
1173
|
+
|
1174
|
+
def initialize(**args)
|
1175
|
+
update!(**args)
|
1176
|
+
end
|
1177
|
+
|
1178
|
+
# Update properties of this object
|
1179
|
+
def update!(**args)
|
1180
|
+
@client = args[:client] if args.key?(:client)
|
1181
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1182
|
+
end
|
1183
|
+
end
|
1184
|
+
|
1160
1185
|
# List container versions response.
|
1161
1186
|
class ListContainerVersionsResponse
|
1162
1187
|
include Google::Apis::Core::Hashable
|
@@ -1640,6 +1665,27 @@ module Google
|
|
1640
1665
|
end
|
1641
1666
|
end
|
1642
1667
|
|
1668
|
+
# The result of reverting a client in a workspace.
|
1669
|
+
class RevertClientResponse
|
1670
|
+
include Google::Apis::Core::Hashable
|
1671
|
+
|
1672
|
+
# Client as it appears in the latest container version since the last workspace
|
1673
|
+
# synchronization operation. If no client is present, that means the client was
|
1674
|
+
# deleted in the latest container version.
|
1675
|
+
# Corresponds to the JSON property `client`
|
1676
|
+
# @return [Google::Apis::TagmanagerV2::Client]
|
1677
|
+
attr_accessor :client
|
1678
|
+
|
1679
|
+
def initialize(**args)
|
1680
|
+
update!(**args)
|
1681
|
+
end
|
1682
|
+
|
1683
|
+
# Update properties of this object
|
1684
|
+
def update!(**args)
|
1685
|
+
@client = args[:client] if args.key?(:client)
|
1686
|
+
end
|
1687
|
+
end
|
1688
|
+
|
1643
1689
|
# The result of reverting folder changes in a workspace.
|
1644
1690
|
class RevertFolderResponse
|
1645
1691
|
include Google::Apis::Core::Hashable
|
@@ -1859,6 +1905,12 @@ module Google
|
|
1859
1905
|
# @return [Array<String>]
|
1860
1906
|
attr_accessor :blocking_trigger_id
|
1861
1907
|
|
1908
|
+
# Consent settings of a tag. @mutable tagmanager.accounts.containers.workspaces.
|
1909
|
+
# tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update
|
1910
|
+
# Corresponds to the JSON property `consentSettings`
|
1911
|
+
# @return [Google::Apis::TagmanagerV2::TagConsentSetting]
|
1912
|
+
attr_accessor :consent_settings
|
1913
|
+
|
1862
1914
|
# GTM Container ID.
|
1863
1915
|
# Corresponds to the JSON property `containerId`
|
1864
1916
|
# @return [String]
|
@@ -2008,6 +2060,7 @@ module Google
|
|
2008
2060
|
@account_id = args[:account_id] if args.key?(:account_id)
|
2009
2061
|
@blocking_rule_id = args[:blocking_rule_id] if args.key?(:blocking_rule_id)
|
2010
2062
|
@blocking_trigger_id = args[:blocking_trigger_id] if args.key?(:blocking_trigger_id)
|
2063
|
+
@consent_settings = args[:consent_settings] if args.key?(:consent_settings)
|
2011
2064
|
@container_id = args[:container_id] if args.key?(:container_id)
|
2012
2065
|
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
|
2013
2066
|
@firing_rule_id = args[:firing_rule_id] if args.key?(:firing_rule_id)
|
@@ -2034,6 +2087,32 @@ module Google
|
|
2034
2087
|
end
|
2035
2088
|
end
|
2036
2089
|
|
2090
|
+
#
|
2091
|
+
class TagConsentSetting
|
2092
|
+
include Google::Apis::Core::Hashable
|
2093
|
+
|
2094
|
+
# The tag's consent status. If set to NEEDED, the runtime will check that the
|
2095
|
+
# consent types specified by the consent_type field have been granted.
|
2096
|
+
# Corresponds to the JSON property `consentStatus`
|
2097
|
+
# @return [String]
|
2098
|
+
attr_accessor :consent_status
|
2099
|
+
|
2100
|
+
# Represents a Google Tag Manager Parameter.
|
2101
|
+
# Corresponds to the JSON property `consentType`
|
2102
|
+
# @return [Google::Apis::TagmanagerV2::Parameter]
|
2103
|
+
attr_accessor :consent_type
|
2104
|
+
|
2105
|
+
def initialize(**args)
|
2106
|
+
update!(**args)
|
2107
|
+
end
|
2108
|
+
|
2109
|
+
# Update properties of this object
|
2110
|
+
def update!(**args)
|
2111
|
+
@consent_status = args[:consent_status] if args.key?(:consent_status)
|
2112
|
+
@consent_type = args[:consent_type] if args.key?(:consent_type)
|
2113
|
+
end
|
2114
|
+
end
|
2115
|
+
|
2037
2116
|
# Represents a tag that fires after another tag in order to tear down
|
2038
2117
|
# dependencies.
|
2039
2118
|
class TeardownTag
|
@@ -2610,6 +2689,11 @@ module Google
|
|
2610
2689
|
# @return [String]
|
2611
2690
|
attr_accessor :notes
|
2612
2691
|
|
2692
|
+
# Additional parameters.
|
2693
|
+
# Corresponds to the JSON property `parameter`
|
2694
|
+
# @return [Array<Google::Apis::TagmanagerV2::Parameter>]
|
2695
|
+
attr_accessor :parameter
|
2696
|
+
|
2613
2697
|
# GTM Zone's API relative path.
|
2614
2698
|
# Corresponds to the JSON property `path`
|
2615
2699
|
# @return [String]
|
@@ -2648,6 +2732,7 @@ module Google
|
|
2648
2732
|
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
|
2649
2733
|
@name = args[:name] if args.key?(:name)
|
2650
2734
|
@notes = args[:notes] if args.key?(:notes)
|
2735
|
+
@parameter = args[:parameter] if args.key?(:parameter)
|
2651
2736
|
@path = args[:path] if args.key?(:path)
|
2652
2737
|
@tag_manager_url = args[:tag_manager_url] if args.key?(:tag_manager_url)
|
2653
2738
|
@type_restriction = args[:type_restriction] if args.key?(:type_restriction)
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module TagmanagerV2
|
18
18
|
# Version of the google-apis-tagmanager_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.10.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20211027"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -142,6 +142,12 @@ module Google
|
|
142
142
|
include Google::Apis::Core::JsonObjectSupport
|
143
143
|
end
|
144
144
|
|
145
|
+
class ListClientsResponse
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
145
151
|
class ListContainerVersionsResponse
|
146
152
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
153
|
|
@@ -244,6 +250,12 @@ module Google
|
|
244
250
|
include Google::Apis::Core::JsonObjectSupport
|
245
251
|
end
|
246
252
|
|
253
|
+
class RevertClientResponse
|
254
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
255
|
+
|
256
|
+
include Google::Apis::Core::JsonObjectSupport
|
257
|
+
end
|
258
|
+
|
247
259
|
class RevertFolderResponse
|
248
260
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
261
|
|
@@ -304,6 +316,12 @@ module Google
|
|
304
316
|
include Google::Apis::Core::JsonObjectSupport
|
305
317
|
end
|
306
318
|
|
319
|
+
class TagConsentSetting
|
320
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
321
|
+
|
322
|
+
include Google::Apis::Core::JsonObjectSupport
|
323
|
+
end
|
324
|
+
|
307
325
|
class TeardownTag
|
308
326
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
309
327
|
|
@@ -643,6 +661,15 @@ module Google
|
|
643
661
|
end
|
644
662
|
end
|
645
663
|
|
664
|
+
class ListClientsResponse
|
665
|
+
# @private
|
666
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
667
|
+
collection :client, as: 'client', class: Google::Apis::TagmanagerV2::Client, decorator: Google::Apis::TagmanagerV2::Client::Representation
|
668
|
+
|
669
|
+
property :next_page_token, as: 'nextPageToken'
|
670
|
+
end
|
671
|
+
end
|
672
|
+
|
646
673
|
class ListContainerVersionsResponse
|
647
674
|
# @private
|
648
675
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -801,6 +828,14 @@ module Google
|
|
801
828
|
end
|
802
829
|
end
|
803
830
|
|
831
|
+
class RevertClientResponse
|
832
|
+
# @private
|
833
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
834
|
+
property :client, as: 'client', class: Google::Apis::TagmanagerV2::Client, decorator: Google::Apis::TagmanagerV2::Client::Representation
|
835
|
+
|
836
|
+
end
|
837
|
+
end
|
838
|
+
|
804
839
|
class RevertFolderResponse
|
805
840
|
# @private
|
806
841
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -881,6 +916,8 @@ module Google
|
|
881
916
|
property :account_id, as: 'accountId'
|
882
917
|
collection :blocking_rule_id, as: 'blockingRuleId'
|
883
918
|
collection :blocking_trigger_id, as: 'blockingTriggerId'
|
919
|
+
property :consent_settings, as: 'consentSettings', class: Google::Apis::TagmanagerV2::TagConsentSetting, decorator: Google::Apis::TagmanagerV2::TagConsentSetting::Representation
|
920
|
+
|
884
921
|
property :container_id, as: 'containerId'
|
885
922
|
property :fingerprint, as: 'fingerprint'
|
886
923
|
collection :firing_rule_id, as: 'firingRuleId'
|
@@ -912,6 +949,15 @@ module Google
|
|
912
949
|
end
|
913
950
|
end
|
914
951
|
|
952
|
+
class TagConsentSetting
|
953
|
+
# @private
|
954
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
955
|
+
property :consent_status, as: 'consentStatus'
|
956
|
+
property :consent_type, as: 'consentType', class: Google::Apis::TagmanagerV2::Parameter, decorator: Google::Apis::TagmanagerV2::Parameter::Representation
|
957
|
+
|
958
|
+
end
|
959
|
+
end
|
960
|
+
|
915
961
|
class TeardownTag
|
916
962
|
# @private
|
917
963
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1058,6 +1104,8 @@ module Google
|
|
1058
1104
|
property :fingerprint, as: 'fingerprint'
|
1059
1105
|
property :name, as: 'name'
|
1060
1106
|
property :notes, as: 'notes'
|
1107
|
+
collection :parameter, as: 'parameter', class: Google::Apis::TagmanagerV2::Parameter, decorator: Google::Apis::TagmanagerV2::Parameter::Representation
|
1108
|
+
|
1061
1109
|
property :path, as: 'path'
|
1062
1110
|
property :tag_manager_url, as: 'tagManagerUrl'
|
1063
1111
|
property :type_restriction, as: 'typeRestriction', class: Google::Apis::TagmanagerV2::ZoneTypeRestriction, decorator: Google::Apis::TagmanagerV2::ZoneTypeRestriction::Representation
|
@@ -1277,6 +1277,207 @@ module Google
|
|
1277
1277
|
execute_or_queue_command(command, &block)
|
1278
1278
|
end
|
1279
1279
|
|
1280
|
+
# Creates a GTM Client.
|
1281
|
+
# @param [String] parent
|
1282
|
+
# GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
|
1283
|
+
# container_id`/workspaces/`workspace_id`
|
1284
|
+
# @param [Google::Apis::TagmanagerV2::Client] client_object
|
1285
|
+
# @param [String] fields
|
1286
|
+
# Selector specifying which fields to include in a partial response.
|
1287
|
+
# @param [String] quota_user
|
1288
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1289
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1290
|
+
# @param [Google::Apis::RequestOptions] options
|
1291
|
+
# Request-specific options
|
1292
|
+
#
|
1293
|
+
# @yield [result, err] Result & error if block supplied
|
1294
|
+
# @yieldparam result [Google::Apis::TagmanagerV2::Client] parsed result object
|
1295
|
+
# @yieldparam err [StandardError] error object if request failed
|
1296
|
+
#
|
1297
|
+
# @return [Google::Apis::TagmanagerV2::Client]
|
1298
|
+
#
|
1299
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1300
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1301
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1302
|
+
def create_account_container_workspace_client(parent, client_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1303
|
+
command = make_simple_command(:post, 'tagmanager/v2/{+parent}/clients', options)
|
1304
|
+
command.request_representation = Google::Apis::TagmanagerV2::Client::Representation
|
1305
|
+
command.request_object = client_object
|
1306
|
+
command.response_representation = Google::Apis::TagmanagerV2::Client::Representation
|
1307
|
+
command.response_class = Google::Apis::TagmanagerV2::Client
|
1308
|
+
command.params['parent'] = parent unless parent.nil?
|
1309
|
+
command.query['fields'] = fields unless fields.nil?
|
1310
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1311
|
+
execute_or_queue_command(command, &block)
|
1312
|
+
end
|
1313
|
+
|
1314
|
+
# Deletes a GTM Client.
|
1315
|
+
# @param [String] path
|
1316
|
+
# GTM Client's API relative path. Example: accounts/`account_id`/containers/`
|
1317
|
+
# container_id`/workspaces/`workspace_id`/clients/`client_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
|
+
# @param [Google::Apis::RequestOptions] options
|
1324
|
+
# Request-specific options
|
1325
|
+
#
|
1326
|
+
# @yield [result, err] Result & error if block supplied
|
1327
|
+
# @yieldparam result [NilClass] No result returned for this method
|
1328
|
+
# @yieldparam err [StandardError] error object if request failed
|
1329
|
+
#
|
1330
|
+
# @return [void]
|
1331
|
+
#
|
1332
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1333
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1334
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1335
|
+
def delete_account_container_workspace_client(path, fields: nil, quota_user: nil, options: nil, &block)
|
1336
|
+
command = make_simple_command(:delete, 'tagmanager/v2/{+path}', options)
|
1337
|
+
command.params['path'] = path unless path.nil?
|
1338
|
+
command.query['fields'] = fields unless fields.nil?
|
1339
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1340
|
+
execute_or_queue_command(command, &block)
|
1341
|
+
end
|
1342
|
+
|
1343
|
+
# Gets a GTM Client.
|
1344
|
+
# @param [String] path
|
1345
|
+
# GTM Client's API relative path. Example: accounts/`account_id`/containers/`
|
1346
|
+
# container_id`/workspaces/`workspace_id`/clients/`client_id`
|
1347
|
+
# @param [String] fields
|
1348
|
+
# Selector specifying which fields to include in a partial response.
|
1349
|
+
# @param [String] quota_user
|
1350
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1351
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1352
|
+
# @param [Google::Apis::RequestOptions] options
|
1353
|
+
# Request-specific options
|
1354
|
+
#
|
1355
|
+
# @yield [result, err] Result & error if block supplied
|
1356
|
+
# @yieldparam result [Google::Apis::TagmanagerV2::Client] parsed result object
|
1357
|
+
# @yieldparam err [StandardError] error object if request failed
|
1358
|
+
#
|
1359
|
+
# @return [Google::Apis::TagmanagerV2::Client]
|
1360
|
+
#
|
1361
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1362
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1363
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1364
|
+
def get_account_container_workspace_client(path, fields: nil, quota_user: nil, options: nil, &block)
|
1365
|
+
command = make_simple_command(:get, 'tagmanager/v2/{+path}', options)
|
1366
|
+
command.response_representation = Google::Apis::TagmanagerV2::Client::Representation
|
1367
|
+
command.response_class = Google::Apis::TagmanagerV2::Client
|
1368
|
+
command.params['path'] = path unless path.nil?
|
1369
|
+
command.query['fields'] = fields unless fields.nil?
|
1370
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1371
|
+
execute_or_queue_command(command, &block)
|
1372
|
+
end
|
1373
|
+
|
1374
|
+
# Lists all GTM Clients of a GTM container workspace.
|
1375
|
+
# @param [String] parent
|
1376
|
+
# GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
|
1377
|
+
# container_id`/workspaces/`workspace_id`
|
1378
|
+
# @param [String] page_token
|
1379
|
+
# Continuation token for fetching the next page of results.
|
1380
|
+
# @param [String] fields
|
1381
|
+
# Selector specifying which fields to include in a partial response.
|
1382
|
+
# @param [String] quota_user
|
1383
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1384
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1385
|
+
# @param [Google::Apis::RequestOptions] options
|
1386
|
+
# Request-specific options
|
1387
|
+
#
|
1388
|
+
# @yield [result, err] Result & error if block supplied
|
1389
|
+
# @yieldparam result [Google::Apis::TagmanagerV2::ListClientsResponse] parsed result object
|
1390
|
+
# @yieldparam err [StandardError] error object if request failed
|
1391
|
+
#
|
1392
|
+
# @return [Google::Apis::TagmanagerV2::ListClientsResponse]
|
1393
|
+
#
|
1394
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1395
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1396
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1397
|
+
def list_account_container_workspace_clients(parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1398
|
+
command = make_simple_command(:get, 'tagmanager/v2/{+parent}/clients', options)
|
1399
|
+
command.response_representation = Google::Apis::TagmanagerV2::ListClientsResponse::Representation
|
1400
|
+
command.response_class = Google::Apis::TagmanagerV2::ListClientsResponse
|
1401
|
+
command.params['parent'] = parent unless parent.nil?
|
1402
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1403
|
+
command.query['fields'] = fields unless fields.nil?
|
1404
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1405
|
+
execute_or_queue_command(command, &block)
|
1406
|
+
end
|
1407
|
+
|
1408
|
+
# Reverts changes to a GTM Client in a GTM Workspace.
|
1409
|
+
# @param [String] path
|
1410
|
+
# GTM Client's API relative path. Example: accounts/`account_id`/containers/`
|
1411
|
+
# container_id`/workspaces/`workspace_id`/clients/`client_id`
|
1412
|
+
# @param [String] fingerprint
|
1413
|
+
# When provided, this fingerprint must match the fingerprint of the client in
|
1414
|
+
# storage.
|
1415
|
+
# @param [String] fields
|
1416
|
+
# Selector specifying which fields to include in a partial response.
|
1417
|
+
# @param [String] quota_user
|
1418
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1419
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1420
|
+
# @param [Google::Apis::RequestOptions] options
|
1421
|
+
# Request-specific options
|
1422
|
+
#
|
1423
|
+
# @yield [result, err] Result & error if block supplied
|
1424
|
+
# @yieldparam result [Google::Apis::TagmanagerV2::RevertClientResponse] parsed result object
|
1425
|
+
# @yieldparam err [StandardError] error object if request failed
|
1426
|
+
#
|
1427
|
+
# @return [Google::Apis::TagmanagerV2::RevertClientResponse]
|
1428
|
+
#
|
1429
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1430
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1431
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1432
|
+
def revert_account_container_workspace_client(path, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1433
|
+
command = make_simple_command(:post, 'tagmanager/v2/{+path}:revert', options)
|
1434
|
+
command.response_representation = Google::Apis::TagmanagerV2::RevertClientResponse::Representation
|
1435
|
+
command.response_class = Google::Apis::TagmanagerV2::RevertClientResponse
|
1436
|
+
command.params['path'] = path unless path.nil?
|
1437
|
+
command.query['fingerprint'] = fingerprint unless fingerprint.nil?
|
1438
|
+
command.query['fields'] = fields unless fields.nil?
|
1439
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1440
|
+
execute_or_queue_command(command, &block)
|
1441
|
+
end
|
1442
|
+
|
1443
|
+
# Updates a GTM Client.
|
1444
|
+
# @param [String] path
|
1445
|
+
# GTM Client's API relative path. Example: accounts/`account_id`/containers/`
|
1446
|
+
# container_id`/workspaces/`workspace_id`/clients/`client_id`
|
1447
|
+
# @param [Google::Apis::TagmanagerV2::Client] client_object
|
1448
|
+
# @param [String] fingerprint
|
1449
|
+
# When provided, this fingerprint must match the fingerprint of the client in
|
1450
|
+
# storage.
|
1451
|
+
# @param [String] fields
|
1452
|
+
# Selector specifying which fields to include in a partial response.
|
1453
|
+
# @param [String] quota_user
|
1454
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1455
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1456
|
+
# @param [Google::Apis::RequestOptions] options
|
1457
|
+
# Request-specific options
|
1458
|
+
#
|
1459
|
+
# @yield [result, err] Result & error if block supplied
|
1460
|
+
# @yieldparam result [Google::Apis::TagmanagerV2::Client] parsed result object
|
1461
|
+
# @yieldparam err [StandardError] error object if request failed
|
1462
|
+
#
|
1463
|
+
# @return [Google::Apis::TagmanagerV2::Client]
|
1464
|
+
#
|
1465
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1466
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1467
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1468
|
+
def update_account_container_workspace_client(path, client_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1469
|
+
command = make_simple_command(:put, 'tagmanager/v2/{+path}', options)
|
1470
|
+
command.request_representation = Google::Apis::TagmanagerV2::Client::Representation
|
1471
|
+
command.request_object = client_object
|
1472
|
+
command.response_representation = Google::Apis::TagmanagerV2::Client::Representation
|
1473
|
+
command.response_class = Google::Apis::TagmanagerV2::Client
|
1474
|
+
command.params['path'] = path unless path.nil?
|
1475
|
+
command.query['fingerprint'] = fingerprint unless fingerprint.nil?
|
1476
|
+
command.query['fields'] = fields unless fields.nil?
|
1477
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1478
|
+
execute_or_queue_command(command, &block)
|
1479
|
+
end
|
1480
|
+
|
1280
1481
|
# Creates a GTM Folder.
|
1281
1482
|
# @param [String] parent
|
1282
1483
|
# GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-tagmanager_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-tagmanager_v2/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
60
|
+
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-tagmanager_v2/CHANGELOG.md
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-tagmanager_v2/v0.10.0
|
62
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-tagmanager_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
65
65
|
require_paths:
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.3.4
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Tag Manager API V2
|