Skip to content

Commit 421e01e

Browse files
1 parent 7c3040a commit 421e01e

16 files changed

+898
-12
lines changed

clients/google-api-services-drivelabels/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-drivelabels</artifactId>
25-
<version>v2-rev20250331-2.0.0</version>
25+
<version>v2-rev20250602-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-drivelabels:v2-rev20250331-2.0.0'
38+
implementation 'com.google.apis:google-api-services-drivelabels:v2-rev20250602-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-drivelabels/v2/2.0.0/com/google/api/services/drivelabels/v2/DriveLabels.java

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,6 +1666,148 @@ public UpdateLabelCopyMode set(String parameterName, Object value) {
16661666
return (UpdateLabelCopyMode) super.set(parameterName, value);
16671667
}
16681668
}
1669+
/**
1670+
* Updates a Label's EabledAppSettings. Enabling a Label in a Workspace Application allows it to be
1671+
* used in that application. This change is not revisioned, does not require publishing, and takes
1672+
* effect immediately.
1673+
*
1674+
* Create a request for the method "labels.updateLabelEnabledAppSettings".
1675+
*
1676+
* This request holds the parameters needed by the drivelabels server. After setting any optional
1677+
* parameters, call the {@link UpdateLabelEnabledAppSettings#execute()} method to invoke the remote
1678+
* operation.
1679+
*
1680+
* @param name Required. The resource name of the Label to update. The resource name of the Label to update.
1681+
* @param content the {@link com.google.api.services.drivelabels.v2.model.GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest}
1682+
* @return the request
1683+
*/
1684+
public UpdateLabelEnabledAppSettings updateLabelEnabledAppSettings(java.lang.String name, com.google.api.services.drivelabels.v2.model.GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest content) throws java.io.IOException {
1685+
UpdateLabelEnabledAppSettings result = new UpdateLabelEnabledAppSettings(name, content);
1686+
initialize(result);
1687+
return result;
1688+
}
1689+
1690+
public class UpdateLabelEnabledAppSettings extends DriveLabelsRequest<com.google.api.services.drivelabels.v2.model.GoogleAppsDriveLabelsV2Label> {
1691+
1692+
private static final String REST_PATH = "v2/{+name}:updateLabelEnabledAppSettings";
1693+
1694+
private final java.util.regex.Pattern NAME_PATTERN =
1695+
java.util.regex.Pattern.compile("^labels/[^/]+$");
1696+
1697+
/**
1698+
* Updates a Label's EabledAppSettings. Enabling a Label in a Workspace Application allows it to
1699+
* be used in that application. This change is not revisioned, does not require publishing, and
1700+
* takes effect immediately.
1701+
*
1702+
* Create a request for the method "labels.updateLabelEnabledAppSettings".
1703+
*
1704+
* This request holds the parameters needed by the the drivelabels server. After setting any
1705+
* optional parameters, call the {@link UpdateLabelEnabledAppSettings#execute()} method to invoke
1706+
* the remote operation. <p> {@link UpdateLabelEnabledAppSettings#initialize(com.google.api.client
1707+
* .googleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance
1708+
* immediately after invoking the constructor. </p>
1709+
*
1710+
* @param name Required. The resource name of the Label to update. The resource name of the Label to update.
1711+
* @param content the {@link com.google.api.services.drivelabels.v2.model.GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest}
1712+
* @since 1.13
1713+
*/
1714+
protected UpdateLabelEnabledAppSettings(java.lang.String name, com.google.api.services.drivelabels.v2.model.GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest content) {
1715+
super(DriveLabels.this, "POST", REST_PATH, content, com.google.api.services.drivelabels.v2.model.GoogleAppsDriveLabelsV2Label.class);
1716+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
1717+
if (!getSuppressPatternChecks()) {
1718+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
1719+
"Parameter name must conform to the pattern " +
1720+
"^labels/[^/]+$");
1721+
}
1722+
}
1723+
1724+
@Override
1725+
public UpdateLabelEnabledAppSettings set$Xgafv(java.lang.String $Xgafv) {
1726+
return (UpdateLabelEnabledAppSettings) super.set$Xgafv($Xgafv);
1727+
}
1728+
1729+
@Override
1730+
public UpdateLabelEnabledAppSettings setAccessToken(java.lang.String accessToken) {
1731+
return (UpdateLabelEnabledAppSettings) super.setAccessToken(accessToken);
1732+
}
1733+
1734+
@Override
1735+
public UpdateLabelEnabledAppSettings setAlt(java.lang.String alt) {
1736+
return (UpdateLabelEnabledAppSettings) super.setAlt(alt);
1737+
}
1738+
1739+
@Override
1740+
public UpdateLabelEnabledAppSettings setCallback(java.lang.String callback) {
1741+
return (UpdateLabelEnabledAppSettings) super.setCallback(callback);
1742+
}
1743+
1744+
@Override
1745+
public UpdateLabelEnabledAppSettings setFields(java.lang.String fields) {
1746+
return (UpdateLabelEnabledAppSettings) super.setFields(fields);
1747+
}
1748+
1749+
@Override
1750+
public UpdateLabelEnabledAppSettings setKey(java.lang.String key) {
1751+
return (UpdateLabelEnabledAppSettings) super.setKey(key);
1752+
}
1753+
1754+
@Override
1755+
public UpdateLabelEnabledAppSettings setOauthToken(java.lang.String oauthToken) {
1756+
return (UpdateLabelEnabledAppSettings) super.setOauthToken(oauthToken);
1757+
}
1758+
1759+
@Override
1760+
public UpdateLabelEnabledAppSettings setPrettyPrint(java.lang.Boolean prettyPrint) {
1761+
return (UpdateLabelEnabledAppSettings) super.setPrettyPrint(prettyPrint);
1762+
}
1763+
1764+
@Override
1765+
public UpdateLabelEnabledAppSettings setQuotaUser(java.lang.String quotaUser) {
1766+
return (UpdateLabelEnabledAppSettings) super.setQuotaUser(quotaUser);
1767+
}
1768+
1769+
@Override
1770+
public UpdateLabelEnabledAppSettings setUploadType(java.lang.String uploadType) {
1771+
return (UpdateLabelEnabledAppSettings) super.setUploadType(uploadType);
1772+
}
1773+
1774+
@Override
1775+
public UpdateLabelEnabledAppSettings setUploadProtocol(java.lang.String uploadProtocol) {
1776+
return (UpdateLabelEnabledAppSettings) super.setUploadProtocol(uploadProtocol);
1777+
}
1778+
1779+
/**
1780+
* Required. The resource name of the Label to update. The resource name of the Label to
1781+
* update.
1782+
*/
1783+
@com.google.api.client.util.Key
1784+
private java.lang.String name;
1785+
1786+
/** Required. The resource name of the Label to update. The resource name of the Label to update.
1787+
*/
1788+
public java.lang.String getName() {
1789+
return name;
1790+
}
1791+
1792+
/**
1793+
* Required. The resource name of the Label to update. The resource name of the Label to
1794+
* update.
1795+
*/
1796+
public UpdateLabelEnabledAppSettings setName(java.lang.String name) {
1797+
if (!getSuppressPatternChecks()) {
1798+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
1799+
"Parameter name must conform to the pattern " +
1800+
"^labels/[^/]+$");
1801+
}
1802+
this.name = name;
1803+
return this;
1804+
}
1805+
1806+
@Override
1807+
public UpdateLabelEnabledAppSettings set(String parameterName, Object value) {
1808+
return (UpdateLabelEnabledAppSettings) super.set(parameterName, value);
1809+
}
1810+
}
16691811
/**
16701812
* Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new
16711813
* Label Permission is created, otherwise the existing permission is updated. Permissions affect the

clients/google-api-services-drivelabels/v2/2.0.0/com/google/api/services/drivelabels/v2/model/GoogleAppsDriveLabelsV2Label.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@ public final class GoogleAppsDriveLabelsV2Label extends com.google.api.client.js
8989
@com.google.api.client.util.Key
9090
private GoogleAppsDriveLabelsV2LabelDisplayHints displayHints;
9191

92+
/**
93+
* Optional. The EnabledAppSettings for this Label.
94+
* The value may be {@code null}.
95+
*/
96+
@com.google.api.client.util.Key
97+
private GoogleAppsDriveLabelsV2LabelEnabledAppSettings enabledAppSettings;
98+
9299
/**
93100
* List of fields in descending priority order.
94101
* The value may be {@code null}.
@@ -341,6 +348,23 @@ public GoogleAppsDriveLabelsV2Label setDisplayHints(GoogleAppsDriveLabelsV2Label
341348
return this;
342349
}
343350

351+
/**
352+
* Optional. The EnabledAppSettings for this Label.
353+
* @return value or {@code null} for none
354+
*/
355+
public GoogleAppsDriveLabelsV2LabelEnabledAppSettings getEnabledAppSettings() {
356+
return enabledAppSettings;
357+
}
358+
359+
/**
360+
* Optional. The EnabledAppSettings for this Label.
361+
* @param enabledAppSettings enabledAppSettings or {@code null} for none
362+
*/
363+
public GoogleAppsDriveLabelsV2Label setEnabledAppSettings(GoogleAppsDriveLabelsV2LabelEnabledAppSettings enabledAppSettings) {
364+
this.enabledAppSettings = enabledAppSettings;
365+
return this;
366+
}
367+
344368
/**
345369
* List of fields in descending priority order.
346370
* @return value or {@code null} for none
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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.drivelabels.v2.model;
18+
19+
/**
20+
* Describes the Workspace apps in which the Label can be used.
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 Drive Labels 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 GoogleAppsDriveLabelsV2LabelEnabledAppSettings extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. The list of Apps where the Label can be used.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.util.List<GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp> enabledApps;
38+
39+
/**
40+
* Optional. The list of Apps where the Label can be used.
41+
* @return value or {@code null} for none
42+
*/
43+
public java.util.List<GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp> getEnabledApps() {
44+
return enabledApps;
45+
}
46+
47+
/**
48+
* Optional. The list of Apps where the Label can be used.
49+
* @param enabledApps enabledApps or {@code null} for none
50+
*/
51+
public GoogleAppsDriveLabelsV2LabelEnabledAppSettings setEnabledApps(java.util.List<GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp> enabledApps) {
52+
this.enabledApps = enabledApps;
53+
return this;
54+
}
55+
56+
@Override
57+
public GoogleAppsDriveLabelsV2LabelEnabledAppSettings set(String fieldName, Object value) {
58+
return (GoogleAppsDriveLabelsV2LabelEnabledAppSettings) super.set(fieldName, value);
59+
}
60+
61+
@Override
62+
public GoogleAppsDriveLabelsV2LabelEnabledAppSettings clone() {
63+
return (GoogleAppsDriveLabelsV2LabelEnabledAppSettings) super.clone();
64+
}
65+
66+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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.drivelabels.v2.model;
18+
19+
/**
20+
* An App where the Label can be used.
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 Drive Labels 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 GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. The name of the App.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.String app;
38+
39+
/**
40+
* Optional. The name of the App.
41+
* @return value or {@code null} for none
42+
*/
43+
public java.lang.String getApp() {
44+
return app;
45+
}
46+
47+
/**
48+
* Optional. The name of the App.
49+
* @param app app or {@code null} for none
50+
*/
51+
public GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp setApp(java.lang.String app) {
52+
this.app = app;
53+
return this;
54+
}
55+
56+
@Override
57+
public GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp set(String fieldName, Object value) {
58+
return (GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp) super.set(fieldName, value);
59+
}
60+
61+
@Override
62+
public GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp clone() {
63+
return (GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp) super.clone();
64+
}
65+
66+
}

0 commit comments

Comments
 (0)