Skip to content

Commit

Permalink
feat(tagmanager): update the API
Browse files Browse the repository at this point in the history
#### tagmanager:v2

The following keys were added:
- schemas.Tag.properties.consentSettings.$ref
- schemas.Tag.properties.consentSettings.description
- schemas.TagConsentSetting.id
- schemas.TagConsentSetting.properties.consentStatus.description
- schemas.TagConsentSetting.properties.consentStatus.enum
- schemas.TagConsentSetting.properties.consentStatus.enumDescriptions
- schemas.TagConsentSetting.properties.consentStatus.type
- schemas.TagConsentSetting.properties.consentType.$ref
- schemas.TagConsentSetting.properties.consentType.description
- schemas.TagConsentSetting.type
  • Loading branch information
yoshi-automation authored and bcoe committed Aug 6, 2021
1 parent 4b2e88a commit 20a1dce
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 1 deletion.
30 changes: 29 additions & 1 deletion discovery/tagmanager-v2.json
Expand Up @@ -3143,7 +3143,7 @@
}
}
},
"revision": "20210721",
"revision": "20210804",
"rootUrl": "https://tagmanager.googleapis.com/",
"schemas": {
"Account": {
Expand Down Expand Up @@ -4715,6 +4715,10 @@
},
"type": "array"
},
"consentSettings": {
"$ref": "TagConsentSetting",
"description": "Consent settings of a tag. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update"
},
"containerId": {
"description": "GTM Container ID.",
"type": "string"
Expand Down Expand Up @@ -4851,6 +4855,30 @@
},
"type": "object"
},
"TagConsentSetting": {
"id": "TagConsentSetting",
"properties": {
"consentStatus": {
"description": "The tag's consent status. If set to NEEDED, the runtime will check that the consent types specified by the consent_type field have been granted.",
"enum": [
"notSet",
"notNeeded",
"needed"
],
"enumDescriptions": [
"Default value where user has not specified any setting on it.",
"Tag doesn't require any additional consent settings.",
"Tag requires additional consent settings."
],
"type": "string"
},
"consentType": {
"$ref": "Parameter",
"description": "The type of consents to check for during tag firing if in the consent NEEDED state. This parameter must be of type LIST where each list item is of type STRING."
}
},
"type": "object"
},
"TeardownTag": {
"description": "Represents a tag that fires after another tag in order to tear down dependencies.",
"id": "TeardownTag",
Expand Down
19 changes: 19 additions & 0 deletions src/apis/tagmanager/v2.ts
Expand Up @@ -1087,6 +1087,10 @@ export namespace tagmanager_v2 {
* Blocking trigger IDs. If any of the listed triggers evaluate to true, the tag will not fire. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update
*/
blockingTriggerId?: string[] | null;
/**
* Consent settings of a tag. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update
*/
consentSettings?: Schema$TagConsentSetting;
/**
* GTM Container ID.
*/
Expand Down Expand Up @@ -1180,6 +1184,16 @@ export namespace tagmanager_v2 {
*/
workspaceId?: string | null;
}
export interface Schema$TagConsentSetting {
/**
* The tag's consent status. If set to NEEDED, the runtime will check that the consent types specified by the consent_type field have been granted.
*/
consentStatus?: string | null;
/**
* The type of consents to check for during tag firing if in the consent NEEDED state. This parameter must be of type LIST where each list item is of type STRING.
*/
consentType?: Schema$Parameter;
}
/**
* Represents a tag that fires after another tag in order to tear down dependencies.
*/
Expand Down Expand Up @@ -8691,6 +8705,7 @@ export namespace tagmanager_v2 {
* // "accountId": "my_accountId",
* // "blockingRuleId": [],
* // "blockingTriggerId": [],
* // "consentSettings": {},
* // "containerId": "my_containerId",
* // "fingerprint": "my_fingerprint",
* // "firingRuleId": [],
Expand Down Expand Up @@ -8724,6 +8739,7 @@ export namespace tagmanager_v2 {
* // "accountId": "my_accountId",
* // "blockingRuleId": [],
* // "blockingTriggerId": [],
* // "consentSettings": {},
* // "containerId": "my_containerId",
* // "fingerprint": "my_fingerprint",
* // "firingRuleId": [],
Expand Down Expand Up @@ -9005,6 +9021,7 @@ export namespace tagmanager_v2 {
* // "accountId": "my_accountId",
* // "blockingRuleId": [],
* // "blockingTriggerId": [],
* // "consentSettings": {},
* // "containerId": "my_containerId",
* // "fingerprint": "my_fingerprint",
* // "firingRuleId": [],
Expand Down Expand Up @@ -9432,6 +9449,7 @@ export namespace tagmanager_v2 {
* // "accountId": "my_accountId",
* // "blockingRuleId": [],
* // "blockingTriggerId": [],
* // "consentSettings": {},
* // "containerId": "my_containerId",
* // "fingerprint": "my_fingerprint",
* // "firingRuleId": [],
Expand Down Expand Up @@ -9465,6 +9483,7 @@ export namespace tagmanager_v2 {
* // "accountId": "my_accountId",
* // "blockingRuleId": [],
* // "blockingTriggerId": [],
* // "consentSettings": {},
* // "containerId": "my_containerId",
* // "fingerprint": "my_fingerprint",
* // "firingRuleId": [],
Expand Down

0 comments on commit 20a1dce

Please sign in to comment.