Skip to content

Commit 9d311f5

Browse files
1 parent fd8b6eb commit 9d311f5

File tree

12 files changed

+536
-14
lines changed

12 files changed

+536
-14
lines changed

clients/google-api-services-dataportability/v1/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-dataportability</artifactId>
25-
<version>v1-rev20250212-2.0.0</version>
25+
<version>v1-rev20250305-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-dataportability:v1-rev20250212-2.0.0'
38+
implementation 'com.google.apis:google-api-services-dataportability:v1-rev20250305-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-dataportability/v1/2.0.0/com/google/api/services/dataportability/v1/DataPortability.java

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,128 @@ protected void initialize(com.google.api.client.googleapis.services.AbstractGoog
133133
super.initialize(httpClientRequest);
134134
}
135135

136+
/**
137+
* An accessor for creating requests from the AccessType collection.
138+
*
139+
* <p>The typical use is:</p>
140+
* <pre>
141+
* {@code DataPortability dataportability = new DataPortability(...);}
142+
* {@code DataPortability.AccessType.List request = dataportability.accessType().list(parameters ...)}
143+
* </pre>
144+
*
145+
* @return the resource collection
146+
*/
147+
public AccessType accessType() {
148+
return new AccessType();
149+
}
150+
151+
/**
152+
* The "accessType" collection of methods.
153+
*/
154+
public class AccessType {
155+
156+
/**
157+
* Gets the access type of the token.
158+
*
159+
* Create a request for the method "accessType.check".
160+
*
161+
* This request holds the parameters needed by the dataportability server. After setting any
162+
* optional parameters, call the {@link Check#execute()} method to invoke the remote operation.
163+
*
164+
* @param content the {@link com.google.api.services.dataportability.v1.model.CheckAccessTypeRequest}
165+
* @return the request
166+
*/
167+
public Check check(com.google.api.services.dataportability.v1.model.CheckAccessTypeRequest content) throws java.io.IOException {
168+
Check result = new Check(content);
169+
initialize(result);
170+
return result;
171+
}
172+
173+
public class Check extends DataPortabilityRequest<com.google.api.services.dataportability.v1.model.CheckAccessTypeResponse> {
174+
175+
private static final String REST_PATH = "v1/accessType:check";
176+
177+
/**
178+
* Gets the access type of the token.
179+
*
180+
* Create a request for the method "accessType.check".
181+
*
182+
* This request holds the parameters needed by the the dataportability server. After setting any
183+
* optional parameters, call the {@link Check#execute()} method to invoke the remote operation.
184+
* <p> {@link
185+
* Check#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
186+
* be called to initialize this instance immediately after invoking the constructor. </p>
187+
*
188+
* @param content the {@link com.google.api.services.dataportability.v1.model.CheckAccessTypeRequest}
189+
* @since 1.13
190+
*/
191+
protected Check(com.google.api.services.dataportability.v1.model.CheckAccessTypeRequest content) {
192+
super(DataPortability.this, "POST", REST_PATH, content, com.google.api.services.dataportability.v1.model.CheckAccessTypeResponse.class);
193+
}
194+
195+
@Override
196+
public Check set$Xgafv(java.lang.String $Xgafv) {
197+
return (Check) super.set$Xgafv($Xgafv);
198+
}
199+
200+
@Override
201+
public Check setAccessToken(java.lang.String accessToken) {
202+
return (Check) super.setAccessToken(accessToken);
203+
}
204+
205+
@Override
206+
public Check setAlt(java.lang.String alt) {
207+
return (Check) super.setAlt(alt);
208+
}
209+
210+
@Override
211+
public Check setCallback(java.lang.String callback) {
212+
return (Check) super.setCallback(callback);
213+
}
214+
215+
@Override
216+
public Check setFields(java.lang.String fields) {
217+
return (Check) super.setFields(fields);
218+
}
219+
220+
@Override
221+
public Check setKey(java.lang.String key) {
222+
return (Check) super.setKey(key);
223+
}
224+
225+
@Override
226+
public Check setOauthToken(java.lang.String oauthToken) {
227+
return (Check) super.setOauthToken(oauthToken);
228+
}
229+
230+
@Override
231+
public Check setPrettyPrint(java.lang.Boolean prettyPrint) {
232+
return (Check) super.setPrettyPrint(prettyPrint);
233+
}
234+
235+
@Override
236+
public Check setQuotaUser(java.lang.String quotaUser) {
237+
return (Check) super.setQuotaUser(quotaUser);
238+
}
239+
240+
@Override
241+
public Check setUploadType(java.lang.String uploadType) {
242+
return (Check) super.setUploadType(uploadType);
243+
}
244+
245+
@Override
246+
public Check setUploadProtocol(java.lang.String uploadProtocol) {
247+
return (Check) super.setUploadProtocol(uploadProtocol);
248+
}
249+
250+
@Override
251+
public Check set(String parameterName, Object value) {
252+
return (Check) super.set(parameterName, value);
253+
}
254+
}
255+
256+
}
257+
136258
/**
137259
* An accessor for creating requests from the ArchiveJobs collection.
138260
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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.dataportability.v1.model;
18+
19+
/**
20+
* Request to check the token's access type. All required information is derived from the attached
21+
* OAuth token.
22+
*
23+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
24+
* transmitted over HTTP when working with the Data Portability API. For a detailed explanation see:
25+
* <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>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class CheckAccessTypeRequest extends com.google.api.client.json.GenericJson {
32+
33+
@Override
34+
public CheckAccessTypeRequest set(String fieldName, Object value) {
35+
return (CheckAccessTypeRequest) super.set(fieldName, value);
36+
}
37+
38+
@Override
39+
public CheckAccessTypeRequest clone() {
40+
return (CheckAccessTypeRequest) super.clone();
41+
}
42+
43+
}
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.dataportability.v1.model;
18+
19+
/**
20+
* Response to checking the token's access type.
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 Data Portability 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 CheckAccessTypeResponse extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Jobs initiated with this token will be one-time if any requested resources have one-time
34+
* access.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.util.List<java.lang.String> oneTimeResources;
39+
40+
/**
41+
* Jobs initiated with this token will be time-based if all requested resources have time-based
42+
* access.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.util.List<java.lang.String> timeBasedResources;
47+
48+
/**
49+
* Jobs initiated with this token will be one-time if any requested resources have one-time
50+
* access.
51+
* @return value or {@code null} for none
52+
*/
53+
public java.util.List<java.lang.String> getOneTimeResources() {
54+
return oneTimeResources;
55+
}
56+
57+
/**
58+
* Jobs initiated with this token will be one-time if any requested resources have one-time
59+
* access.
60+
* @param oneTimeResources oneTimeResources or {@code null} for none
61+
*/
62+
public CheckAccessTypeResponse setOneTimeResources(java.util.List<java.lang.String> oneTimeResources) {
63+
this.oneTimeResources = oneTimeResources;
64+
return this;
65+
}
66+
67+
/**
68+
* Jobs initiated with this token will be time-based if all requested resources have time-based
69+
* access.
70+
* @return value or {@code null} for none
71+
*/
72+
public java.util.List<java.lang.String> getTimeBasedResources() {
73+
return timeBasedResources;
74+
}
75+
76+
/**
77+
* Jobs initiated with this token will be time-based if all requested resources have time-based
78+
* access.
79+
* @param timeBasedResources timeBasedResources or {@code null} for none
80+
*/
81+
public CheckAccessTypeResponse setTimeBasedResources(java.util.List<java.lang.String> timeBasedResources) {
82+
this.timeBasedResources = timeBasedResources;
83+
return this;
84+
}
85+
86+
@Override
87+
public CheckAccessTypeResponse set(String fieldName, Object value) {
88+
return (CheckAccessTypeResponse) super.set(fieldName, value);
89+
}
90+
91+
@Override
92+
public CheckAccessTypeResponse clone() {
93+
return (CheckAccessTypeResponse) super.clone();
94+
}
95+
96+
}

clients/google-api-services-dataportability/v1/2.0.0/pom.xml

Lines changed: 3 additions & 3 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-dataportability</artifactId>
11-
<version>v1-rev20250212-2.0.0</version>
12-
<name>Data Portability API v1-rev20250212-2.0.0</name>
11+
<version>v1-rev20250305-2.0.0</version>
12+
<name>Data Portability API v1-rev20250305-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>
@@ -90,7 +90,7 @@
9090
<windowtitle>Data Portability API ${project.version}</windowtitle>
9191
<links>
9292
<link>http://docs.oracle.com/javase/7/docs/api</link>
93-
<link>https://googleapis.dev/java/google-http-client/1.46.1/</link>
93+
<link>https://googleapis.dev/java/google-http-client/1.46.3/</link>
9494
<link>https://googleapis.dev/java/google-oauth-client/1.38.0/</link>
9595
<link>https://googleapis.dev/java/google-api-client/2.7.2/</link>
9696
</links>

clients/google-api-services-dataportability/v1/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-dataportability</artifactId>
25-
<version>v1-rev20250212-2.0.0</version>
25+
<version>v1-rev20250305-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-dataportability:v1-rev20250212-2.0.0'
38+
implementation 'com.google.apis:google-api-services-dataportability:v1-rev20250305-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-dataportability/v1beta/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-dataportability</artifactId>
25-
<version>v1beta-rev20250212-2.0.0</version>
25+
<version>v1beta-rev20250305-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-dataportability:v1beta-rev20250212-2.0.0'
38+
implementation 'com.google.apis:google-api-services-dataportability:v1beta-rev20250305-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)