* Firebase App Check works alongside other Firebase services to help protect * your backend resources from abuse, such as billing fraud or phishing.

* *

* For more information about this service, see the API * Documentation *

* * @author Google, Inc. */ class Firebaseappcheck extends \Google\Service { /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; /** View and administer all your Firebase data and settings. */ const FIREBASE = "https://www.googleapis.com/auth/firebase"; public $jwks; public $projects_apps; public $projects_apps_appAttestConfig; public $projects_apps_debugTokens; public $projects_apps_deviceCheckConfig; public $projects_apps_recaptchaConfig; public $projects_apps_recaptchaEnterpriseConfig; public $projects_apps_recaptchaV3Config; public $projects_apps_safetyNetConfig; public $projects_services; /** * Constructs the internal representation of the Firebaseappcheck service. * * @param Client|array $clientOrConfig The client used to deliver requests, or a * config array to pass to a new Client instance. * @param string $rootUrl The root URL used for requests to the service. */ public function __construct($clientOrConfig = [], $rootUrl = null) { parent::__construct($clientOrConfig); $this->rootUrl = $rootUrl ?: 'https://firebaseappcheck.googleapis.com/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v1beta'; $this->serviceName = 'firebaseappcheck'; $this->jwks = new Firebaseappcheck\Resource\Jwks( $this, $this->serviceName, 'jwks', [ 'methods' => [ 'get' => [ 'path' => 'v1beta/{+name}', 'httpMethod' => 'GET', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ], ] ] ); $this->projects_apps = new Firebaseappcheck\Resource\ProjectsApps( $this, $this->serviceName, 'apps', [ 'methods' => [ 'exchangeAppAttestAssertion' => [ 'path' => 'v1beta/{+app}:exchangeAppAttestAssertion', 'httpMethod' => 'POST', 'parameters' => [ 'app' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'exchangeAppAttestAttestation' => [ 'path' => 'v1beta/{+app}:exchangeAppAttestAttestation', 'httpMethod' => 'POST', 'parameters' => [ 'app' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'exchangeCustomToken' => [ 'path' => 'v1beta/{+app}:exchangeCustomToken', 'httpMethod' => 'POST', 'parameters' => [ 'app' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'exchangeDebugToken' => [ 'path' => 'v1beta/{+app}:exchangeDebugToken', 'httpMethod' => 'POST', 'parameters' => [ 'app' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'exchangeDeviceCheckToken' => [ 'path' => 'v1beta/{+app}:exchangeDeviceCheckToken', 'httpMethod' => 'POST', 'parameters' => [ 'app' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'exchangeRecaptchaEnterpriseToken' => [ 'path' => 'v1beta/{+app}:exchangeRecaptchaEnterpriseToken', 'httpMethod' => 'POST', 'parameters' => [ 'app' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'exchangeRecaptchaToken' => [ 'path' => 'v1beta/{+app}:exchangeRecaptchaToken', 'httpMethod' => 'POST', 'parameters' => [ 'app' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'exchangeRecaptchaV3Token' => [ 'path' => 'v1beta/{+app}:exchangeRecaptchaV3Token', 'httpMethod' => 'POST', 'parameters' => [ 'app' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'exchangeSafetyNetToken' => [ 'path' => 'v1beta/{+app}:exchangeSafetyNetToken', 'httpMethod' => 'POST', 'parameters' => [ 'app' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'generateAppAttestChallenge' => [ 'path' => 'v1beta/{+app}:generateAppAttestChallenge', 'httpMethod' => 'POST', 'parameters' => [ 'app' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ], ] ] ); $this->projects_apps_appAttestConfig = new Firebaseappcheck\Resource\ProjectsAppsAppAttestConfig( $this, $this->serviceName, 'appAttestConfig', [ 'methods' => [ 'batchGet' => [ 'path' => 'v1beta/{+parent}/apps/-/appAttestConfig:batchGet', 'httpMethod' => 'GET', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'names' => [ 'location' => 'query', 'type' => 'string', 'repeated' => true, ], ], ],'get' => [ 'path' => 'v1beta/{+name}', 'httpMethod' => 'GET', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'patch' => [ 'path' => 'v1beta/{+name}', 'httpMethod' => 'PATCH', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'updateMask' => [ 'location' => 'query', 'type' => 'string', ], ], ], ] ] ); $this->projects_apps_debugTokens = new Firebaseappcheck\Resource\ProjectsAppsDebugTokens( $this, $this->serviceName, 'debugTokens', [ 'methods' => [ 'create' => [ 'path' => 'v1beta/{+parent}/debugTokens', 'httpMethod' => 'POST', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'delete' => [ 'path' => 'v1beta/{+name}', 'httpMethod' => 'DELETE', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'get' => [ 'path' => 'v1beta/{+name}', 'httpMethod' => 'GET', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'list' => [ 'path' => 'v1beta/{+parent}/debugTokens', 'httpMethod' => 'GET', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'pageSize' => [ 'location' => 'query', 'type' => 'integer', ], 'pageToken' => [ 'location' => 'query', 'type' => 'string', ], ], ],'patch' => [ 'path' => 'v1beta/{+name}', 'httpMethod' => 'PATCH', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'updateMask' => [ 'location' => 'query', 'type' => 'string', ], ], ], ] ] ); $this->projects_apps_deviceCheckConfig = new Firebaseappcheck\Resource\ProjectsAppsDeviceCheckConfig( $this, $this->serviceName, 'deviceCheckConfig', [ 'methods' => [ 'batchGet' => [ 'path' => 'v1beta/{+parent}/apps/-/deviceCheckConfig:batchGet', 'httpMethod' => 'GET', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'names' => [ 'location' => 'query', 'type' => 'string', 'repeated' => true, ], ], ],'get' => [ 'path' => 'v1beta/{+name}', 'httpMethod' => 'GET', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'patch' => [ 'path' => 'v1beta/{+name}', 'httpMethod' => 'PATCH', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'updateMask' => [ 'location' => 'query', 'type' => 'string', ], ], ], ] ] ); $this->projects_apps_recaptchaConfig = new Firebaseappcheck\Resource\ProjectsAppsRecaptchaConfig( $this, $this->serviceName, 'recaptchaConfig', [ 'methods' => [ 'batchGet' => [ 'path' => 'v1beta/{+parent}/apps/-/recaptchaConfig:batchGet', 'httpMethod' => 'GET', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'names' => [ 'location' => 'query', 'type' => 'string', 'repeated' => true, ], ], ],'get' => [ 'path' => 'v1beta/{+name}', 'httpMethod' => 'GET', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'patch' => [ 'path' => 'v1beta/{+name}', 'httpMethod' => 'PATCH', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'updateMask' => [ 'location' => 'query', 'type' => 'string', ], ], ], ] ] ); $this->projects_apps_recaptchaEnterpriseConfig = new Firebaseappcheck\Resource\ProjectsAppsRecaptchaEnterpriseConfig( $this, $this->serviceName, 'recaptchaEnterpriseConfig', [ 'methods' => [ 'batchGet' => [ 'path' => 'v1beta/{+parent}/apps/-/recaptchaEnterpriseConfig:batchGet', 'httpMethod' => 'GET', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'names' => [ 'location' => 'query', 'type' => 'string', 'repeated' => true, ], ], ],'get' => [ 'path' => 'v1beta/{+name}', 'httpMethod' => 'GET', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'patch' => [ 'path' => 'v1beta/{+name}', 'httpMethod' => 'PATCH', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'updateMask' => [ 'location' => 'query', 'type' => 'string', ], ], ], ] ] ); $this->projects_apps_recaptchaV3Config = new Firebaseappcheck\Resource\ProjectsAppsRecaptchaV3Config( $this, $this->serviceName, 'recaptchaV3Config', [ 'methods' => [ 'batchGet' => [ 'path' => 'v1beta/{+parent}/apps/-/recaptchaV3Config:batchGet', 'httpMethod' => 'GET', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'names' => [ 'location' => 'query', 'type' => 'string', 'repeated' => true, ], ], ],'get' => [ 'path' => 'v1beta/{+name}', 'httpMethod' => 'GET', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'patch' => [ 'path' => 'v1beta/{+name}', 'httpMethod' => 'PATCH', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'updateMask' => [ 'location' => 'query', 'type' => 'string', ], ], ], ] ] ); $this->projects_apps_safetyNetConfig = new Firebaseappcheck\Resource\ProjectsAppsSafetyNetConfig( $this, $this->serviceName, 'safetyNetConfig', [ 'methods' => [ 'batchGet' => [ 'path' => 'v1beta/{+parent}/apps/-/safetyNetConfig:batchGet', 'httpMethod' => 'GET', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'names' => [ 'location' => 'query', 'type' => 'string', 'repeated' => true, ], ], ],'get' => [ 'path' => 'v1beta/{+name}', 'httpMethod' => 'GET', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'patch' => [ 'path' => 'v1beta/{+name}', 'httpMethod' => 'PATCH', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'updateMask' => [ 'location' => 'query', 'type' => 'string', ], ], ], ] ] ); $this->projects_services = new Firebaseappcheck\Resource\ProjectsServices( $this, $this->serviceName, 'services', [ 'methods' => [ 'batchUpdate' => [ 'path' => 'v1beta/{+parent}/services:batchUpdate', 'httpMethod' => 'POST', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'get' => [ 'path' => 'v1beta/{+name}', 'httpMethod' => 'GET', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'list' => [ 'path' => 'v1beta/{+parent}/services', 'httpMethod' => 'GET', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'pageSize' => [ 'location' => 'query', 'type' => 'integer', ], 'pageToken' => [ 'location' => 'query', 'type' => 'string', ], ], ],'patch' => [ 'path' => 'v1beta/{+name}', 'httpMethod' => 'PATCH', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'updateMask' => [ 'location' => 'query', 'type' => 'string', ], ], ], ] ] ); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Firebaseappcheck::class, 'Google_Service_Firebaseappcheck');