@@ -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.
0 commit comments