Skip to content

Commit ede30f4

Browse files
1 parent 05785d2 commit ede30f4

14 files changed

Lines changed: 918 additions & 12 deletions

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

clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/Firebaseappcheck.java

Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2535,6 +2535,165 @@ public GeneratePlayIntegrityChallenge set(String parameterName, Object value) {
25352535
return (GeneratePlayIntegrityChallenge) super.set(parameterName, value);
25362536
}
25372537
}
2538+
/**
2539+
* Mints a new App Check token for the specified Firebase App. This method is intended to be called
2540+
* from a privileged environment where the caller can be authorized via Cloud IAM; for example,
2541+
* using a service account. To call this method, the caller must have the [`firebaseappcheck.googlea
2542+
* pis.com/tokens.mint`](https://firebase.google.com/docs/projects/iam/permissions#app-check)
2543+
* permission. Returns a MintAppCheckTokenResponse.
2544+
*
2545+
* Create a request for the method "apps.mintAppCheckToken".
2546+
*
2547+
* This request holds the parameters needed by the firebaseappcheck server. After setting any
2548+
* optional parameters, call the {@link MintAppCheckToken#execute()} method to invoke the remote
2549+
* operation.
2550+
*
2551+
* @param app Required. The relative resource name of the app, in the format: ```
2552+
* projects/{project_number}/apps/{app_id} ``` If necessary, the `project_number` element can
2553+
* be replaced with the project ID of the Firebase project. Learn more about using project
2554+
* identifiers in Google's [AIP 2510](https://google.aip.dev/cloud/2510) standard.
2555+
* @param content the {@link com.google.api.services.firebaseappcheck.v1.model.GoogleFirebaseAppcheckV1MintAppCheckTokenRequest}
2556+
* @return the request
2557+
*/
2558+
public MintAppCheckToken mintAppCheckToken(java.lang.String app, com.google.api.services.firebaseappcheck.v1.model.GoogleFirebaseAppcheckV1MintAppCheckTokenRequest content) throws java.io.IOException {
2559+
MintAppCheckToken result = new MintAppCheckToken(app, content);
2560+
initialize(result);
2561+
return result;
2562+
}
2563+
2564+
public class MintAppCheckToken extends FirebaseappcheckRequest<com.google.api.services.firebaseappcheck.v1.model.GoogleFirebaseAppcheckV1MintAppCheckTokenResponse> {
2565+
2566+
private static final String REST_PATH = "v1/{+app}:mintAppCheckToken";
2567+
2568+
private final java.util.regex.Pattern APP_PATTERN =
2569+
java.util.regex.Pattern.compile("^projects/[^/]+/apps/[^/]+$");
2570+
2571+
/**
2572+
* Mints a new App Check token for the specified Firebase App. This method is intended to be
2573+
* called from a privileged environment where the caller can be authorized via Cloud IAM; for
2574+
* example, using a service account. To call this method, the caller must have the [`firebaseappch
2575+
* eck.googleapis.com/tokens.mint`](https://firebase.google.com/docs/projects/iam/permissions#app-
2576+
* check) permission. Returns a MintAppCheckTokenResponse.
2577+
*
2578+
* Create a request for the method "apps.mintAppCheckToken".
2579+
*
2580+
* This request holds the parameters needed by the the firebaseappcheck server. After setting any
2581+
* optional parameters, call the {@link MintAppCheckToken#execute()} method to invoke the remote
2582+
* operation. <p> {@link MintAppCheckToken#initialize(com.google.api.client.googleapis.services.Ab
2583+
* stractGoogleClientRequest)} must be called to initialize this instance immediately after
2584+
* invoking the constructor. </p>
2585+
*
2586+
* @param app Required. The relative resource name of the app, in the format: ```
2587+
* projects/{project_number}/apps/{app_id} ``` If necessary, the `project_number` element can
2588+
* be replaced with the project ID of the Firebase project. Learn more about using project
2589+
* identifiers in Google's [AIP 2510](https://google.aip.dev/cloud/2510) standard.
2590+
* @param content the {@link com.google.api.services.firebaseappcheck.v1.model.GoogleFirebaseAppcheckV1MintAppCheckTokenRequest}
2591+
* @since 1.13
2592+
*/
2593+
protected MintAppCheckToken(java.lang.String app, com.google.api.services.firebaseappcheck.v1.model.GoogleFirebaseAppcheckV1MintAppCheckTokenRequest content) {
2594+
super(Firebaseappcheck.this, "POST", REST_PATH, content, com.google.api.services.firebaseappcheck.v1.model.GoogleFirebaseAppcheckV1MintAppCheckTokenResponse.class);
2595+
this.app = com.google.api.client.util.Preconditions.checkNotNull(app, "Required parameter app must be specified.");
2596+
if (!getSuppressPatternChecks()) {
2597+
com.google.api.client.util.Preconditions.checkArgument(APP_PATTERN.matcher(app).matches(),
2598+
"Parameter app must conform to the pattern " +
2599+
"^projects/[^/]+/apps/[^/]+$");
2600+
}
2601+
}
2602+
2603+
@Override
2604+
public MintAppCheckToken set$Xgafv(java.lang.String $Xgafv) {
2605+
return (MintAppCheckToken) super.set$Xgafv($Xgafv);
2606+
}
2607+
2608+
@Override
2609+
public MintAppCheckToken setAccessToken(java.lang.String accessToken) {
2610+
return (MintAppCheckToken) super.setAccessToken(accessToken);
2611+
}
2612+
2613+
@Override
2614+
public MintAppCheckToken setAlt(java.lang.String alt) {
2615+
return (MintAppCheckToken) super.setAlt(alt);
2616+
}
2617+
2618+
@Override
2619+
public MintAppCheckToken setCallback(java.lang.String callback) {
2620+
return (MintAppCheckToken) super.setCallback(callback);
2621+
}
2622+
2623+
@Override
2624+
public MintAppCheckToken setFields(java.lang.String fields) {
2625+
return (MintAppCheckToken) super.setFields(fields);
2626+
}
2627+
2628+
@Override
2629+
public MintAppCheckToken setKey(java.lang.String key) {
2630+
return (MintAppCheckToken) super.setKey(key);
2631+
}
2632+
2633+
@Override
2634+
public MintAppCheckToken setOauthToken(java.lang.String oauthToken) {
2635+
return (MintAppCheckToken) super.setOauthToken(oauthToken);
2636+
}
2637+
2638+
@Override
2639+
public MintAppCheckToken setPrettyPrint(java.lang.Boolean prettyPrint) {
2640+
return (MintAppCheckToken) super.setPrettyPrint(prettyPrint);
2641+
}
2642+
2643+
@Override
2644+
public MintAppCheckToken setQuotaUser(java.lang.String quotaUser) {
2645+
return (MintAppCheckToken) super.setQuotaUser(quotaUser);
2646+
}
2647+
2648+
@Override
2649+
public MintAppCheckToken setUploadType(java.lang.String uploadType) {
2650+
return (MintAppCheckToken) super.setUploadType(uploadType);
2651+
}
2652+
2653+
@Override
2654+
public MintAppCheckToken setUploadProtocol(java.lang.String uploadProtocol) {
2655+
return (MintAppCheckToken) super.setUploadProtocol(uploadProtocol);
2656+
}
2657+
2658+
/**
2659+
* Required. The relative resource name of the app, in the format: ```
2660+
* projects/{project_number}/apps/{app_id} ``` If necessary, the `project_number` element
2661+
* can be replaced with the project ID of the Firebase project. Learn more about using
2662+
* project identifiers in Google's [AIP 2510](https://google.aip.dev/cloud/2510) standard.
2663+
*/
2664+
@com.google.api.client.util.Key
2665+
private java.lang.String app;
2666+
2667+
/** Required. The relative resource name of the app, in the format: ```
2668+
projects/{project_number}/apps/{app_id} ``` If necessary, the `project_number` element can be
2669+
replaced with the project ID of the Firebase project. Learn more about using project identifiers in
2670+
Google's [AIP 2510](https://google.aip.dev/cloud/2510) standard.
2671+
*/
2672+
public java.lang.String getApp() {
2673+
return app;
2674+
}
2675+
2676+
/**
2677+
* Required. The relative resource name of the app, in the format: ```
2678+
* projects/{project_number}/apps/{app_id} ``` If necessary, the `project_number` element
2679+
* can be replaced with the project ID of the Firebase project. Learn more about using
2680+
* project identifiers in Google's [AIP 2510](https://google.aip.dev/cloud/2510) standard.
2681+
*/
2682+
public MintAppCheckToken setApp(java.lang.String app) {
2683+
if (!getSuppressPatternChecks()) {
2684+
com.google.api.client.util.Preconditions.checkArgument(APP_PATTERN.matcher(app).matches(),
2685+
"Parameter app must conform to the pattern " +
2686+
"^projects/[^/]+/apps/[^/]+$");
2687+
}
2688+
this.app = app;
2689+
return this;
2690+
}
2691+
2692+
@Override
2693+
public MintAppCheckToken set(String parameterName, Object value) {
2694+
return (MintAppCheckToken) super.set(parameterName, value);
2695+
}
2696+
}
25382697

25392698
/**
25402699
* An accessor for creating requests from the AppAttestConfig collection.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
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.firebaseappcheck.v1.model;
18+
19+
/**
20+
* Configuration for a limited-use App Check token.
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 Firebase App Check API. For a detailed explanation
24+
* 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 GoogleFirebaseAppcheckV1LimitedUseConfig extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Optional. Specifies the desired `jti` claim (Section 4.1.7 of RFC 7519) in the returned App
35+
* Check token. Limited-use App Check tokens with the same `jti` will be counted as the same token
36+
* for the purposes of replay protection. The size of this field is limited to 500 bytes. If
37+
* specified, its length must be at least 16 bytes. If this field is omitted or is empty, a
38+
* randomly generated `jti` claim with length between 16 and 500 bytes (inclusive) will be used in
39+
* the returned App Check token. Leaving this field empty is only recommended if your custom
40+
* attestation provider itself is not vulnerable to replay attacks.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private java.lang.String jti;
45+
46+
/**
47+
* Optional. Specifies the desired `jti` claim (Section 4.1.7 of RFC 7519) in the returned App
48+
* Check token. Limited-use App Check tokens with the same `jti` will be counted as the same token
49+
* for the purposes of replay protection. The size of this field is limited to 500 bytes. If
50+
* specified, its length must be at least 16 bytes. If this field is omitted or is empty, a
51+
* randomly generated `jti` claim with length between 16 and 500 bytes (inclusive) will be used in
52+
* the returned App Check token. Leaving this field empty is only recommended if your custom
53+
* attestation provider itself is not vulnerable to replay attacks.
54+
* @return value or {@code null} for none
55+
*/
56+
public java.lang.String getJti() {
57+
return jti;
58+
}
59+
60+
/**
61+
* Optional. Specifies the desired `jti` claim (Section 4.1.7 of RFC 7519) in the returned App
62+
* Check token. Limited-use App Check tokens with the same `jti` will be counted as the same token
63+
* for the purposes of replay protection. The size of this field is limited to 500 bytes. If
64+
* specified, its length must be at least 16 bytes. If this field is omitted or is empty, a
65+
* randomly generated `jti` claim with length between 16 and 500 bytes (inclusive) will be used in
66+
* the returned App Check token. Leaving this field empty is only recommended if your custom
67+
* attestation provider itself is not vulnerable to replay attacks.
68+
* @param jti jti or {@code null} for none
69+
*/
70+
public GoogleFirebaseAppcheckV1LimitedUseConfig setJti(java.lang.String jti) {
71+
this.jti = jti;
72+
return this;
73+
}
74+
75+
@Override
76+
public GoogleFirebaseAppcheckV1LimitedUseConfig set(String fieldName, Object value) {
77+
return (GoogleFirebaseAppcheckV1LimitedUseConfig) super.set(fieldName, value);
78+
}
79+
80+
@Override
81+
public GoogleFirebaseAppcheckV1LimitedUseConfig clone() {
82+
return (GoogleFirebaseAppcheckV1LimitedUseConfig) super.clone();
83+
}
84+
85+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
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.firebaseappcheck.v1.model;
18+
19+
/**
20+
* Request message for the MintAppCheckToken method.
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 Firebase App Check API. For a detailed explanation
24+
* 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 GoogleFirebaseAppcheckV1MintAppCheckTokenRequest extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Optional. If specified, the returned App Check token will be a limited-use token minted
35+
* according to the specified configuration options.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private GoogleFirebaseAppcheckV1LimitedUseConfig limitedUseConfig;
40+
41+
/**
42+
* Optional. If specified, the returned App Check token will be a session token, valid for the
43+
* specified duration. Must be between 30 minutes and 7 days, inclusive.
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private String tokenTtl;
48+
49+
/**
50+
* Optional. If specified, the returned App Check token will be a limited-use token minted
51+
* according to the specified configuration options.
52+
* @return value or {@code null} for none
53+
*/
54+
public GoogleFirebaseAppcheckV1LimitedUseConfig getLimitedUseConfig() {
55+
return limitedUseConfig;
56+
}
57+
58+
/**
59+
* Optional. If specified, the returned App Check token will be a limited-use token minted
60+
* according to the specified configuration options.
61+
* @param limitedUseConfig limitedUseConfig or {@code null} for none
62+
*/
63+
public GoogleFirebaseAppcheckV1MintAppCheckTokenRequest setLimitedUseConfig(GoogleFirebaseAppcheckV1LimitedUseConfig limitedUseConfig) {
64+
this.limitedUseConfig = limitedUseConfig;
65+
return this;
66+
}
67+
68+
/**
69+
* Optional. If specified, the returned App Check token will be a session token, valid for the
70+
* specified duration. Must be between 30 minutes and 7 days, inclusive.
71+
* @return value or {@code null} for none
72+
*/
73+
public String getTokenTtl() {
74+
return tokenTtl;
75+
}
76+
77+
/**
78+
* Optional. If specified, the returned App Check token will be a session token, valid for the
79+
* specified duration. Must be between 30 minutes and 7 days, inclusive.
80+
* @param tokenTtl tokenTtl or {@code null} for none
81+
*/
82+
public GoogleFirebaseAppcheckV1MintAppCheckTokenRequest setTokenTtl(String tokenTtl) {
83+
this.tokenTtl = tokenTtl;
84+
return this;
85+
}
86+
87+
@Override
88+
public GoogleFirebaseAppcheckV1MintAppCheckTokenRequest set(String fieldName, Object value) {
89+
return (GoogleFirebaseAppcheckV1MintAppCheckTokenRequest) super.set(fieldName, value);
90+
}
91+
92+
@Override
93+
public GoogleFirebaseAppcheckV1MintAppCheckTokenRequest clone() {
94+
return (GoogleFirebaseAppcheckV1MintAppCheckTokenRequest) super.clone();
95+
}
96+
97+
}

0 commit comments

Comments
 (0)