* $firebaseappcheckService = new Google\Service\Firebaseappcheck(...); * $apps = $firebaseappcheckService->apps; * */ class ProjectsApps extends \Google\Service\Resource { /** * Accepts an App Attest assertion and an artifact previously obtained from * ExchangeAppAttestAttestation and verifies those with Apple. If valid, returns * an AppCheckToken. (apps.exchangeAppAttestAssertion) * * @param string $app Required. The relative resource name of the iOS app, in * the format: ``` projects/{project_number}/apps/{app_id} ``` If necessary, the * `project_number` element can be replaced with the project ID of the Firebase * project. Learn more about using project identifiers in Google's [AIP * 2510](https://google.aip.dev/cloud/2510) standard. * @param GoogleFirebaseAppcheckV1betaExchangeAppAttestAssertionRequest $postBody * @param array $optParams Optional parameters. * @return GoogleFirebaseAppcheckV1betaAppCheckToken */ public function exchangeAppAttestAssertion($app, GoogleFirebaseAppcheckV1betaExchangeAppAttestAssertionRequest $postBody, $optParams = []) { $params = ['app' => $app, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('exchangeAppAttestAssertion', [$params], GoogleFirebaseAppcheckV1betaAppCheckToken::class); } /** * Accepts an App Attest CBOR attestation and verifies it with Apple using your * preconfigured team and bundle IDs. If valid, returns an attestation artifact * that can later be exchanged for an AppCheckToken using * ExchangeAppAttestAssertion. For convenience and performance, this method's * response object will also contain an AppCheckToken (if the verification is * successful). (apps.exchangeAppAttestAttestation) * * @param string $app Required. The relative resource name of the iOS app, in * the format: ``` projects/{project_number}/apps/{app_id} ``` If necessary, the * `project_number` element can be replaced with the project ID of the Firebase * project. Learn more about using project identifiers in Google's [AIP * 2510](https://google.aip.dev/cloud/2510) standard. * @param GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationRequest $postBody * @param array $optParams Optional parameters. * @return GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse */ public function exchangeAppAttestAttestation($app, GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationRequest $postBody, $optParams = []) { $params = ['app' => $app, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('exchangeAppAttestAttestation', [$params], GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse::class); } /** * Validates a custom token signed using your project's Admin SDK service * account credentials. If valid, returns an AppCheckToken. * (apps.exchangeCustomToken) * * @param string $app Required. The relative resource name of the app, in the * format: ``` projects/{project_number}/apps/{app_id} ``` If necessary, the * `project_number` element can be replaced with the project ID of the Firebase * project. Learn more about using project identifiers in Google's [AIP * 2510](https://google.aip.dev/cloud/2510) standard. * @param GoogleFirebaseAppcheckV1betaExchangeCustomTokenRequest $postBody * @param array $optParams Optional parameters. * @return GoogleFirebaseAppcheckV1betaAppCheckToken */ public function exchangeCustomToken($app, GoogleFirebaseAppcheckV1betaExchangeCustomTokenRequest $postBody, $optParams = []) { $params = ['app' => $app, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('exchangeCustomToken', [$params], GoogleFirebaseAppcheckV1betaAppCheckToken::class); } /** * Validates a debug token secret that you have previously created using * CreateDebugToken. If valid, returns an AppCheckToken. Note that a restrictive * quota is enforced on this method to prevent accidental exposure of the app to * abuse. (apps.exchangeDebugToken) * * @param string $app Required. The relative resource name of the app, in the * format: ``` projects/{project_number}/apps/{app_id} ``` If necessary, the * `project_number` element can be replaced with the project ID of the Firebase * project. Learn more about using project identifiers in Google's [AIP * 2510](https://google.aip.dev/cloud/2510) standard. * @param GoogleFirebaseAppcheckV1betaExchangeDebugTokenRequest $postBody * @param array $optParams Optional parameters. * @return GoogleFirebaseAppcheckV1betaAppCheckToken */ public function exchangeDebugToken($app, GoogleFirebaseAppcheckV1betaExchangeDebugTokenRequest $postBody, $optParams = []) { $params = ['app' => $app, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('exchangeDebugToken', [$params], GoogleFirebaseAppcheckV1betaAppCheckToken::class); } /** * Accepts a [`device_token`](https://developer.apple.com/documentation/devicech * eck/dcdevice) issued by DeviceCheck, and attempts to validate it with Apple. * If valid, returns an AppCheckToken. (apps.exchangeDeviceCheckToken) * * @param string $app Required. The relative resource name of the iOS app, in * the format: ``` projects/{project_number}/apps/{app_id} ``` If necessary, the * `project_number` element can be replaced with the project ID of the Firebase * project. Learn more about using project identifiers in Google's [AIP * 2510](https://google.aip.dev/cloud/2510) standard. * @param GoogleFirebaseAppcheckV1betaExchangeDeviceCheckTokenRequest $postBody * @param array $optParams Optional parameters. * @return GoogleFirebaseAppcheckV1betaAppCheckToken */ public function exchangeDeviceCheckToken($app, GoogleFirebaseAppcheckV1betaExchangeDeviceCheckTokenRequest $postBody, $optParams = []) { $params = ['app' => $app, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('exchangeDeviceCheckToken', [$params], GoogleFirebaseAppcheckV1betaAppCheckToken::class); } /** * Validates a [reCAPTCHA Enterprise response token](https://cloud.google.com * /recaptcha-enterprise/docs/create-assessment#retrieve_token). If valid, * returns an App Check token AppCheckToken. * (apps.exchangeRecaptchaEnterpriseToken) * * @param string $app Required. The relative resource name of the web app, in * the format: ``` projects/{project_number}/apps/{app_id} ``` If necessary, the * `project_number` element can be replaced with the project ID of the Firebase * project. Learn more about using project identifiers in Google's [AIP * 2510](https://google.aip.dev/cloud/2510) standard. * @param GoogleFirebaseAppcheckV1betaExchangeRecaptchaEnterpriseTokenRequest $postBody * @param array $optParams Optional parameters. * @return GoogleFirebaseAppcheckV1betaAppCheckToken */ public function exchangeRecaptchaEnterpriseToken($app, GoogleFirebaseAppcheckV1betaExchangeRecaptchaEnterpriseTokenRequest $postBody, $optParams = []) { $params = ['app' => $app, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('exchangeRecaptchaEnterpriseToken', [$params], GoogleFirebaseAppcheckV1betaAppCheckToken::class); } /** * Validates a [reCAPTCHA v3 response * token](https://developers.google.com/recaptcha/docs/v3). If valid, returns an * AppCheckToken. (apps.exchangeRecaptchaToken) * * @param string $app Required. The relative resource name of the web app, in * the format: ``` projects/{project_number}/apps/{app_id} ``` If necessary, the * `project_number` element can be replaced with the project ID of the Firebase * project. Learn more about using project identifiers in Google's [AIP * 2510](https://google.aip.dev/cloud/2510) standard. * @param GoogleFirebaseAppcheckV1betaExchangeRecaptchaTokenRequest $postBody * @param array $optParams Optional parameters. * @return GoogleFirebaseAppcheckV1betaAppCheckToken */ public function exchangeRecaptchaToken($app, GoogleFirebaseAppcheckV1betaExchangeRecaptchaTokenRequest $postBody, $optParams = []) { $params = ['app' => $app, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('exchangeRecaptchaToken', [$params], GoogleFirebaseAppcheckV1betaAppCheckToken::class); } /** * Validates a [reCAPTCHA v3 response * token](https://developers.google.com/recaptcha/docs/v3). If valid, returns an * AppCheckToken. (apps.exchangeRecaptchaV3Token) * * @param string $app Required. The relative resource name of the web app, in * the format: ``` projects/{project_number}/apps/{app_id} ``` If necessary, the * `project_number` element can be replaced with the project ID of the Firebase * project. Learn more about using project identifiers in Google's [AIP * 2510](https://google.aip.dev/cloud/2510) standard. * @param GoogleFirebaseAppcheckV1betaExchangeRecaptchaV3TokenRequest $postBody * @param array $optParams Optional parameters. * @return GoogleFirebaseAppcheckV1betaAppCheckToken */ public function exchangeRecaptchaV3Token($app, GoogleFirebaseAppcheckV1betaExchangeRecaptchaV3TokenRequest $postBody, $optParams = []) { $params = ['app' => $app, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('exchangeRecaptchaV3Token', [$params], GoogleFirebaseAppcheckV1betaAppCheckToken::class); } /** * Validates a [SafetyNet * token](https://developer.android.com/training/safetynet/attestation#request- * attestation-step). If valid, returns an AppCheckToken. * (apps.exchangeSafetyNetToken) * * @param string $app Required. The relative resource name of the Android app, * in the format: ``` projects/{project_number}/apps/{app_id} ``` If necessary, * the `project_number` element can be replaced with the project ID of the * Firebase project. Learn more about using project identifiers in Google's [AIP * 2510](https://google.aip.dev/cloud/2510) standard. * @param GoogleFirebaseAppcheckV1betaExchangeSafetyNetTokenRequest $postBody * @param array $optParams Optional parameters. * @return GoogleFirebaseAppcheckV1betaAppCheckToken */ public function exchangeSafetyNetToken($app, GoogleFirebaseAppcheckV1betaExchangeSafetyNetTokenRequest $postBody, $optParams = []) { $params = ['app' => $app, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('exchangeSafetyNetToken', [$params], GoogleFirebaseAppcheckV1betaAppCheckToken::class); } /** * Generates a challenge that protects the integrity of an immediately following * call to ExchangeAppAttestAttestation or ExchangeAppAttestAssertion. A * challenge should not be reused for multiple calls. * (apps.generateAppAttestChallenge) * * @param string $app Required. The relative resource name of the iOS app, in * the format: ``` projects/{project_number}/apps/{app_id} ``` If necessary, the * `project_number` element can be replaced with the project ID of the Firebase * project. Learn more about using project identifiers in Google's [AIP * 2510](https://google.aip.dev/cloud/2510) standard. * @param GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeRequest $postBody * @param array $optParams Optional parameters. * @return GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse */ public function generateAppAttestChallenge($app, GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeRequest $postBody, $optParams = []) { $params = ['app' => $app, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('generateAppAttestChallenge', [$params], GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsApps::class, 'Google_Service_Firebaseappcheck_Resource_ProjectsApps');