* $firebaseappcheckService = new Google\Service\Firebaseappcheck(...); * $safetyNetConfig = $firebaseappcheckService->safetyNetConfig; * */ class ProjectsAppsSafetyNetConfig extends \Google\Service\Resource { /** * Atomically gets the SafetyNetConfigs for the specified list of apps. * (safetyNetConfig.batchGet) * * @param string $parent Required. The parent project name shared by all * SafetyNetConfigs being retrieved, in the format ``` projects/{project_number} * ``` The parent collection in the `name` field of any resource being retrieved * must match this field, or the entire batch fails. * @param array $optParams Optional parameters. * * @opt_param string names Required. The relative resource names of the * SafetyNetConfigs to retrieve, in the format ``` * projects/{project_number}/apps/{app_id}/safetyNetConfig ``` A maximum of 100 * objects can be retrieved in a batch. * @return GoogleFirebaseAppcheckV1betaBatchGetSafetyNetConfigsResponse */ public function batchGet($parent, $optParams = []) { $params = ['parent' => $parent]; $params = array_merge($params, $optParams); return $this->call('batchGet', [$params], GoogleFirebaseAppcheckV1betaBatchGetSafetyNetConfigsResponse::class); } /** * Gets the SafetyNetConfig for the specified app. (safetyNetConfig.get) * * @param string $name Required. The relative resource name of the * SafetyNetConfig, in the format: ``` * projects/{project_number}/apps/{app_id}/safetyNetConfig ``` * @param array $optParams Optional parameters. * @return GoogleFirebaseAppcheckV1betaSafetyNetConfig */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('get', [$params], GoogleFirebaseAppcheckV1betaSafetyNetConfig::class); } /** * Updates the SafetyNetConfig for the specified app. While this configuration * is incomplete or invalid, the app will be unable to exchange SafetyNet tokens * for App Check tokens. (safetyNetConfig.patch) * * @param string $name Required. The relative resource name of the SafetyNet * configuration object, in the format: ``` * projects/{project_number}/apps/{app_id}/safetyNetConfig ``` * @param GoogleFirebaseAppcheckV1betaSafetyNetConfig $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask Required. A comma-separated list of names of * fields in the SafetyNetConfig Gets to update. Example: `token_ttl`. * @return GoogleFirebaseAppcheckV1betaSafetyNetConfig */ public function patch($name, GoogleFirebaseAppcheckV1betaSafetyNetConfig $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('patch', [$params], GoogleFirebaseAppcheckV1betaSafetyNetConfig::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsAppsSafetyNetConfig::class, 'Google_Service_Firebaseappcheck_Resource_ProjectsAppsSafetyNetConfig');