Skip to content

Commit 528bc22

Browse files
1 parent be43898 commit 528bc22

File tree

6 files changed

+288
-6
lines changed

6 files changed

+288
-6
lines changed

clients/google-api-services-tagmanager/v2/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-tagmanager</artifactId>
25-
<version>v2-rev20250820-2.0.0</version>
25+
<version>v2-rev20251203-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-tagmanager:v2-rev20250820-2.0.0'
38+
implementation 'com.google.apis:google-api-services-tagmanager:v2-rev20251203-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-tagmanager/v2/2.0.0/com/google/api/services/tagmanager/TagManager.java

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4704,6 +4704,147 @@ public Workspaces workspaces() {
47044704
*/
47054705
public class Workspaces {
47064706

4707+
/**
4708+
* Applies multiple entity changes to a workspace in one call. When creating new entities, their
4709+
* entity IDs must be unique and in correct format. That is, they must start with "new_" and
4710+
* followed by number, e.g. "new_1", "new_2". Example body snippet to create myNewTag under
4711+
* myNewFolder is: ``` "changes": [ { "folder": { "folderId": "new_1", "name": "myNewFolder", ... },
4712+
* "changeStatus": "added" }, { "tag": { "tagId": "new_2", "name": "myNewTag", "parentFolderId":
4713+
* "new_1", ... }, "changeStatus": "added" } ] ```
4714+
*
4715+
* Create a request for the method "workspaces.bulk_update".
4716+
*
4717+
* This request holds the parameters needed by the tagmanager server. After setting any optional
4718+
* parameters, call the {@link BulkUpdate#execute()} method to invoke the remote operation.
4719+
*
4720+
* @param path GTM Workspace's API relative path.
4721+
* @param content the {@link com.google.api.services.tagmanager.model.ProposedChange}
4722+
* @return the request
4723+
*/
4724+
public BulkUpdate bulkUpdate(java.lang.String path, com.google.api.services.tagmanager.model.ProposedChange content) throws java.io.IOException {
4725+
BulkUpdate result = new BulkUpdate(path, content);
4726+
initialize(result);
4727+
return result;
4728+
}
4729+
4730+
public class BulkUpdate extends TagManagerRequest<com.google.api.services.tagmanager.model.BulkUpdateWorkspaceResponse> {
4731+
4732+
private static final String REST_PATH = "tagmanager/v2/{+path}/bulk_update";
4733+
4734+
private final java.util.regex.Pattern PATH_PATTERN =
4735+
java.util.regex.Pattern.compile("^accounts/[^/]+/containers/[^/]+/workspaces/[^/]+$");
4736+
4737+
/**
4738+
* Applies multiple entity changes to a workspace in one call. When creating new entities, their
4739+
* entity IDs must be unique and in correct format. That is, they must start with "new_" and
4740+
* followed by number, e.g. "new_1", "new_2". Example body snippet to create myNewTag under
4741+
* myNewFolder is: ``` "changes": [ { "folder": { "folderId": "new_1", "name": "myNewFolder", ...
4742+
* }, "changeStatus": "added" }, { "tag": { "tagId": "new_2", "name": "myNewTag",
4743+
* "parentFolderId": "new_1", ... }, "changeStatus": "added" } ] ```
4744+
*
4745+
* Create a request for the method "workspaces.bulk_update".
4746+
*
4747+
* This request holds the parameters needed by the the tagmanager server. After setting any
4748+
* optional parameters, call the {@link BulkUpdate#execute()} method to invoke the remote
4749+
* operation. <p> {@link
4750+
* BulkUpdate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
4751+
* must be called to initialize this instance immediately after invoking the constructor. </p>
4752+
*
4753+
* @param path GTM Workspace's API relative path.
4754+
* @param content the {@link com.google.api.services.tagmanager.model.ProposedChange}
4755+
* @since 1.13
4756+
*/
4757+
protected BulkUpdate(java.lang.String path, com.google.api.services.tagmanager.model.ProposedChange content) {
4758+
super(TagManager.this, "POST", REST_PATH, content, com.google.api.services.tagmanager.model.BulkUpdateWorkspaceResponse.class);
4759+
this.path = com.google.api.client.util.Preconditions.checkNotNull(path, "Required parameter path must be specified.");
4760+
if (!getSuppressPatternChecks()) {
4761+
com.google.api.client.util.Preconditions.checkArgument(PATH_PATTERN.matcher(path).matches(),
4762+
"Parameter path must conform to the pattern " +
4763+
"^accounts/[^/]+/containers/[^/]+/workspaces/[^/]+$");
4764+
}
4765+
}
4766+
4767+
@Override
4768+
public BulkUpdate set$Xgafv(java.lang.String $Xgafv) {
4769+
return (BulkUpdate) super.set$Xgafv($Xgafv);
4770+
}
4771+
4772+
@Override
4773+
public BulkUpdate setAccessToken(java.lang.String accessToken) {
4774+
return (BulkUpdate) super.setAccessToken(accessToken);
4775+
}
4776+
4777+
@Override
4778+
public BulkUpdate setAlt(java.lang.String alt) {
4779+
return (BulkUpdate) super.setAlt(alt);
4780+
}
4781+
4782+
@Override
4783+
public BulkUpdate setCallback(java.lang.String callback) {
4784+
return (BulkUpdate) super.setCallback(callback);
4785+
}
4786+
4787+
@Override
4788+
public BulkUpdate setFields(java.lang.String fields) {
4789+
return (BulkUpdate) super.setFields(fields);
4790+
}
4791+
4792+
@Override
4793+
public BulkUpdate setKey(java.lang.String key) {
4794+
return (BulkUpdate) super.setKey(key);
4795+
}
4796+
4797+
@Override
4798+
public BulkUpdate setOauthToken(java.lang.String oauthToken) {
4799+
return (BulkUpdate) super.setOauthToken(oauthToken);
4800+
}
4801+
4802+
@Override
4803+
public BulkUpdate setPrettyPrint(java.lang.Boolean prettyPrint) {
4804+
return (BulkUpdate) super.setPrettyPrint(prettyPrint);
4805+
}
4806+
4807+
@Override
4808+
public BulkUpdate setQuotaUser(java.lang.String quotaUser) {
4809+
return (BulkUpdate) super.setQuotaUser(quotaUser);
4810+
}
4811+
4812+
@Override
4813+
public BulkUpdate setUploadType(java.lang.String uploadType) {
4814+
return (BulkUpdate) super.setUploadType(uploadType);
4815+
}
4816+
4817+
@Override
4818+
public BulkUpdate setUploadProtocol(java.lang.String uploadProtocol) {
4819+
return (BulkUpdate) super.setUploadProtocol(uploadProtocol);
4820+
}
4821+
4822+
/** GTM Workspace's API relative path. */
4823+
@com.google.api.client.util.Key
4824+
private java.lang.String path;
4825+
4826+
/** GTM Workspace's API relative path.
4827+
*/
4828+
public java.lang.String getPath() {
4829+
return path;
4830+
}
4831+
4832+
/** GTM Workspace's API relative path. */
4833+
public BulkUpdate setPath(java.lang.String path) {
4834+
if (!getSuppressPatternChecks()) {
4835+
com.google.api.client.util.Preconditions.checkArgument(PATH_PATTERN.matcher(path).matches(),
4836+
"Parameter path must conform to the pattern " +
4837+
"^accounts/[^/]+/containers/[^/]+/workspaces/[^/]+$");
4838+
}
4839+
this.path = path;
4840+
return this;
4841+
}
4842+
4843+
@Override
4844+
public BulkUpdate set(String parameterName, Object value) {
4845+
return (BulkUpdate) super.set(parameterName, value);
4846+
}
4847+
}
47074848
/**
47084849
* Creates a Workspace.
47094850
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.tagmanager.model;
18+
19+
/**
20+
* Model definition for BulkUpdateWorkspaceResponse.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Tag Manager API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class BulkUpdateWorkspaceResponse extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* The entities that were added or updated during the bulk-update. Does not include entities that
34+
* were deleted or updated by the system.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.util.List<Entity> changes;
39+
40+
/**
41+
* The entities that were added or updated during the bulk-update. Does not include entities that
42+
* were deleted or updated by the system.
43+
* @return value or {@code null} for none
44+
*/
45+
public java.util.List<Entity> getChanges() {
46+
return changes;
47+
}
48+
49+
/**
50+
* The entities that were added or updated during the bulk-update. Does not include entities that
51+
* were deleted or updated by the system.
52+
* @param changes changes or {@code null} for none
53+
*/
54+
public BulkUpdateWorkspaceResponse setChanges(java.util.List<Entity> changes) {
55+
this.changes = changes;
56+
return this;
57+
}
58+
59+
@Override
60+
public BulkUpdateWorkspaceResponse set(String fieldName, Object value) {
61+
return (BulkUpdateWorkspaceResponse) super.set(fieldName, value);
62+
}
63+
64+
@Override
65+
public BulkUpdateWorkspaceResponse clone() {
66+
return (BulkUpdateWorkspaceResponse) super.clone();
67+
}
68+
69+
}
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.tagmanager.model;
18+
19+
/**
20+
* Model definition for ProposedChange.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Tag Manager API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class ProposedChange extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* The list of workspace changes to be applied.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.util.List<Entity> changes;
38+
39+
static {
40+
// hack to force ProGuard to consider Entity used, since otherwise it would be stripped out
41+
// see https://github.com/google/google-api-java-client/issues/543
42+
com.google.api.client.util.Data.nullOf(Entity.class);
43+
}
44+
45+
/**
46+
* The list of workspace changes to be applied.
47+
* @return value or {@code null} for none
48+
*/
49+
public java.util.List<Entity> getChanges() {
50+
return changes;
51+
}
52+
53+
/**
54+
* The list of workspace changes to be applied.
55+
* @param changes changes or {@code null} for none
56+
*/
57+
public ProposedChange setChanges(java.util.List<Entity> changes) {
58+
this.changes = changes;
59+
return this;
60+
}
61+
62+
@Override
63+
public ProposedChange set(String fieldName, Object value) {
64+
return (ProposedChange) super.set(fieldName, value);
65+
}
66+
67+
@Override
68+
public ProposedChange clone() {
69+
return (ProposedChange) super.clone();
70+
}
71+
72+
}

clients/google-api-services-tagmanager/v2/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-tagmanager</artifactId>
11-
<version>v2-rev20250820-2.0.0</version>
12-
<name>Tag Manager API v2-rev20250820-2.0.0</name>
11+
<version>v2-rev20251203-2.0.0</version>
12+
<name>Tag Manager API v2-rev20251203-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-tagmanager/v2/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-tagmanager</artifactId>
25-
<version>v2-rev20250820-2.0.0</version>
25+
<version>v2-rev20251203-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-tagmanager:v2-rev20250820-2.0.0'
38+
implementation 'com.google.apis:google-api-services-tagmanager:v2-rev20251203-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)