Skip to content

Commit 0a23fff

Browse files
1 parent f7001fa commit 0a23fff

File tree

7 files changed

+207
-6
lines changed

7 files changed

+207
-6
lines changed

clients/google-api-services-drive/v3/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-drive</artifactId>
25-
<version>v3-rev20250511-2.0.0</version>
25+
<version>v3-rev20250701-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-drive:v3-rev20250511-2.0.0'
38+
implementation 'com.google.apis:google-api-services-drive:v3-rev20250701-2.0.0'
3939
}
4040
```
4141

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
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.drive.model;
18+
19+
/**
20+
* Download restrictions applied to the file.
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 Google Drive 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 DownloadRestrictionsMetadata extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* The effective download restriction applied to this file. This considers all restriction
34+
* settings and DLP rules.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private DownloadRestriction effectiveDownloadRestrictionWithContext;
39+
40+
/**
41+
* The download restriction of the file applied directly by the owner or organizer. This does not
42+
* take into account shared drive settings or DLP rules.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private DownloadRestriction itemDownloadRestriction;
47+
48+
/**
49+
* The effective download restriction applied to this file. This considers all restriction
50+
* settings and DLP rules.
51+
* @return value or {@code null} for none
52+
*/
53+
public DownloadRestriction getEffectiveDownloadRestrictionWithContext() {
54+
return effectiveDownloadRestrictionWithContext;
55+
}
56+
57+
/**
58+
* The effective download restriction applied to this file. This considers all restriction
59+
* settings and DLP rules.
60+
* @param effectiveDownloadRestrictionWithContext effectiveDownloadRestrictionWithContext or {@code null} for none
61+
*/
62+
public DownloadRestrictionsMetadata setEffectiveDownloadRestrictionWithContext(DownloadRestriction effectiveDownloadRestrictionWithContext) {
63+
this.effectiveDownloadRestrictionWithContext = effectiveDownloadRestrictionWithContext;
64+
return this;
65+
}
66+
67+
/**
68+
* The download restriction of the file applied directly by the owner or organizer. This does not
69+
* take into account shared drive settings or DLP rules.
70+
* @return value or {@code null} for none
71+
*/
72+
public DownloadRestriction getItemDownloadRestriction() {
73+
return itemDownloadRestriction;
74+
}
75+
76+
/**
77+
* The download restriction of the file applied directly by the owner or organizer. This does not
78+
* take into account shared drive settings or DLP rules.
79+
* @param itemDownloadRestriction itemDownloadRestriction or {@code null} for none
80+
*/
81+
public DownloadRestrictionsMetadata setItemDownloadRestriction(DownloadRestriction itemDownloadRestriction) {
82+
this.itemDownloadRestriction = itemDownloadRestriction;
83+
return this;
84+
}
85+
86+
@Override
87+
public DownloadRestrictionsMetadata set(String fieldName, Object value) {
88+
return (DownloadRestrictionsMetadata) super.set(fieldName, value);
89+
}
90+
91+
@Override
92+
public DownloadRestrictionsMetadata clone() {
93+
return (DownloadRestrictionsMetadata) super.clone();
94+
}
95+
96+
}

clients/google-api-services-drive/v3/2.0.0/com/google/api/services/drive/model/Drive.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,14 @@ public static final class Capabilities extends com.google.api.client.json.Generi
531531
@com.google.api.client.util.Key
532532
private java.lang.Boolean canChangeDomainUsersOnlyRestriction;
533533

534+
/**
535+
* Output only. Whether the current user can change organizer-applied download restrictions of
536+
* this shared drive.
537+
* The value may be {@code null}.
538+
*/
539+
@com.google.api.client.util.Key
540+
private java.lang.Boolean canChangeDownloadRestriction;
541+
534542
/**
535543
* Output only. Whether the current user can change the background of this shared drive.
536544
* The value may be {@code null}.
@@ -710,6 +718,25 @@ public Capabilities setCanChangeDomainUsersOnlyRestriction(java.lang.Boolean can
710718
return this;
711719
}
712720

721+
/**
722+
* Output only. Whether the current user can change organizer-applied download restrictions of
723+
* this shared drive.
724+
* @return value or {@code null} for none
725+
*/
726+
public java.lang.Boolean getCanChangeDownloadRestriction() {
727+
return canChangeDownloadRestriction;
728+
}
729+
730+
/**
731+
* Output only. Whether the current user can change organizer-applied download restrictions of
732+
* this shared drive.
733+
* @param canChangeDownloadRestriction canChangeDownloadRestriction or {@code null} for none
734+
*/
735+
public Capabilities setCanChangeDownloadRestriction(java.lang.Boolean canChangeDownloadRestriction) {
736+
this.canChangeDownloadRestriction = canChangeDownloadRestriction;
737+
return this;
738+
}
739+
713740
/**
714741
* Output only. Whether the current user can change the background of this shared drive.
715742
* @return value or {@code null} for none

clients/google-api-services-drive/v3/2.0.0/com/google/api/services/drive/model/File.java

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ public final class File extends com.google.api.client.json.GenericJson {
9292
@com.google.api.client.util.Key
9393
private java.lang.String description;
9494

95+
/**
96+
* Download restrictions applied on the file.
97+
* The value may be {@code null}.
98+
*/
99+
@com.google.api.client.util.Key
100+
private DownloadRestrictionsMetadata downloadRestrictions;
101+
95102
/**
96103
* Output only. ID of the shared drive the file resides in. Only populated for items in shared
97104
* drives.
@@ -666,6 +673,23 @@ public File setDescription(java.lang.String description) {
666673
return this;
667674
}
668675

676+
/**
677+
* Download restrictions applied on the file.
678+
* @return value or {@code null} for none
679+
*/
680+
public DownloadRestrictionsMetadata getDownloadRestrictions() {
681+
return downloadRestrictions;
682+
}
683+
684+
/**
685+
* Download restrictions applied on the file.
686+
* @param downloadRestrictions downloadRestrictions or {@code null} for none
687+
*/
688+
public File setDownloadRestrictions(DownloadRestrictionsMetadata downloadRestrictions) {
689+
this.downloadRestrictions = downloadRestrictions;
690+
return this;
691+
}
692+
669693
/**
670694
* Output only. ID of the shared drive the file resides in. Only populated for items in shared
671695
* drives.
@@ -1773,6 +1797,14 @@ public static final class Capabilities extends com.google.api.client.json.Generi
17731797
@com.google.api.client.util.Key
17741798
private java.lang.Boolean canChangeCopyRequiresWriterPermission;
17751799

1800+
/**
1801+
* Output only. Whether the current user can change the owner-applied download restrictions of the
1802+
* file.
1803+
* The value may be {@code null}.
1804+
*/
1805+
@com.google.api.client.util.Key
1806+
private java.lang.Boolean canChangeItemDownloadRestriction;
1807+
17761808
/**
17771809
* Output only. Whether the current user can change the securityUpdateEnabled field on link share
17781810
* metadata.
@@ -2161,6 +2193,25 @@ public Capabilities setCanChangeCopyRequiresWriterPermission(java.lang.Boolean c
21612193
return this;
21622194
}
21632195

2196+
/**
2197+
* Output only. Whether the current user can change the owner-applied download restrictions of the
2198+
* file.
2199+
* @return value or {@code null} for none
2200+
*/
2201+
public java.lang.Boolean getCanChangeItemDownloadRestriction() {
2202+
return canChangeItemDownloadRestriction;
2203+
}
2204+
2205+
/**
2206+
* Output only. Whether the current user can change the owner-applied download restrictions of the
2207+
* file.
2208+
* @param canChangeItemDownloadRestriction canChangeItemDownloadRestriction or {@code null} for none
2209+
*/
2210+
public Capabilities setCanChangeItemDownloadRestriction(java.lang.Boolean canChangeItemDownloadRestriction) {
2211+
this.canChangeItemDownloadRestriction = canChangeItemDownloadRestriction;
2212+
return this;
2213+
}
2214+
21642215
/**
21652216
* Output only. Whether the current user can change the securityUpdateEnabled field on link share
21662217
* metadata.

clients/google-api-services-drive/v3/2.0.0/com/google/api/services/drive/model/TeamDrive.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,14 @@ public static final class Capabilities extends com.google.api.client.json.Generi
496496
@com.google.api.client.util.Key
497497
private java.lang.Boolean canChangeDomainUsersOnlyRestriction;
498498

499+
/**
500+
* Whether the current user can change organizer-applied download restrictions of this shared
501+
* drive.
502+
* The value may be {@code null}.
503+
*/
504+
@com.google.api.client.util.Key
505+
private java.lang.Boolean canChangeDownloadRestriction;
506+
499507
/**
500508
* Whether the current user can change the `sharingFoldersRequiresOrganizerPermission` restriction
501509
* of this Team Drive.
@@ -678,6 +686,25 @@ public Capabilities setCanChangeDomainUsersOnlyRestriction(java.lang.Boolean can
678686
return this;
679687
}
680688

689+
/**
690+
* Whether the current user can change organizer-applied download restrictions of this shared
691+
* drive.
692+
* @return value or {@code null} for none
693+
*/
694+
public java.lang.Boolean getCanChangeDownloadRestriction() {
695+
return canChangeDownloadRestriction;
696+
}
697+
698+
/**
699+
* Whether the current user can change organizer-applied download restrictions of this shared
700+
* drive.
701+
* @param canChangeDownloadRestriction canChangeDownloadRestriction or {@code null} for none
702+
*/
703+
public Capabilities setCanChangeDownloadRestriction(java.lang.Boolean canChangeDownloadRestriction) {
704+
this.canChangeDownloadRestriction = canChangeDownloadRestriction;
705+
return this;
706+
}
707+
681708
/**
682709
* Whether the current user can change the `sharingFoldersRequiresOrganizerPermission` restriction
683710
* of this Team Drive.

clients/google-api-services-drive/v3/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-drive</artifactId>
11-
<version>v3-rev20250511-2.0.0</version>
12-
<name>Google Drive API v3-rev20250511-2.0.0</name>
11+
<version>v3-rev20250701-2.0.0</version>
12+
<name>Google Drive API v3-rev20250701-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-drive/v3/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-drive</artifactId>
25-
<version>v3-rev20250511-2.0.0</version>
25+
<version>v3-rev20250701-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-drive:v3-rev20250511-2.0.0'
38+
implementation 'com.google.apis:google-api-services-drive:v3-rev20250701-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)