class ProjectsAppsDebugTokens extends Resource (View source)

The "debugTokens" collection of methods.

Typical usage is:

 $firebaseappcheckService = new Google\Service\Firebaseappcheck(...);
 $debugTokens = $firebaseappcheckService->projects_apps_debugTokens;

Methods

create(string $parent, GoogleFirebaseAppcheckV1DebugToken $postBody, array $optParams = [])

Creates a new DebugToken for the specified app. For security reasons, after the creation operation completes, the token field cannot be updated or retrieved, but you can revoke the debug token using DeleteDebugToken. Each app can have a maximum of 20 debug tokens. (debugTokens.create)

delete(string $name, array $optParams = [])

Deletes the specified DebugToken. A deleted debug token cannot be used to exchange for an App Check token. Use this method when you suspect the secret token has been compromised or when you no longer need the debug token.

get(string $name, array $optParams = [])

Gets the specified DebugToken. For security reasons, the token field is never populated in the response. (debugTokens.get)

listProjectsAppsDebugTokens(string $parent, array $optParams = [])

Lists all DebugTokens for the specified app. For security reasons, the token field is never populated in the response.

patch(string $name, GoogleFirebaseAppcheckV1DebugToken $postBody, array $optParams = [])

Updates the specified DebugToken. For security reasons, the token field cannot be updated, nor will it be populated in the response, but you can revoke the debug token using DeleteDebugToken. (debugTokens.patch)

Details

GoogleFirebaseAppcheckV1DebugToken create(string $parent, GoogleFirebaseAppcheckV1DebugToken $postBody, array $optParams = [])

Creates a new DebugToken for the specified app. For security reasons, after the creation operation completes, the token field cannot be updated or retrieved, but you can revoke the debug token using DeleteDebugToken. Each app can have a maximum of 20 debug tokens. (debugTokens.create)

Parameters

string $parent

Required. The relative resource name of the parent app in which the specified DebugToken will be created, in the format: projects/{project_number}/apps/{app_id}

GoogleFirebaseAppcheckV1DebugToken $postBody
array $optParams

Optional parameters.

Return Value

GoogleFirebaseAppcheckV1DebugToken

Exceptions

Exception

GoogleProtobufEmpty delete(string $name, array $optParams = [])

Deletes the specified DebugToken. A deleted debug token cannot be used to exchange for an App Check token. Use this method when you suspect the secret token has been compromised or when you no longer need the debug token.

(debugTokens.delete)

Parameters

string $name

Required. The relative resource name of the DebugToken to delete, in the format: projects/{project_number}/apps/{app_id}/debugTokens/{debug_token_id}

array $optParams

Optional parameters.

Return Value

GoogleProtobufEmpty

Exceptions

Exception

GoogleFirebaseAppcheckV1DebugToken get(string $name, array $optParams = [])

Gets the specified DebugToken. For security reasons, the token field is never populated in the response. (debugTokens.get)

Parameters

string $name

Required. The relative resource name of the debug token, in the format: projects/{project_number}/apps/{app_id}/debugTokens/{debug_token_id}

array $optParams

Optional parameters.

Return Value

GoogleFirebaseAppcheckV1DebugToken

Exceptions

Exception

GoogleFirebaseAppcheckV1ListDebugTokensResponse listProjectsAppsDebugTokens(string $parent, array $optParams = [])

Lists all DebugTokens for the specified app. For security reasons, the token field is never populated in the response.

(debugTokens.listProjectsAppsDebugTokens)

Parameters

string $parent

Required. The relative resource name of the parent app for which to list each associated DebugToken, in the format: projects/{project_number}/apps/{app_id}

array $optParams

Optional parameters.

Return Value

GoogleFirebaseAppcheckV1ListDebugTokensResponse

Exceptions

Exception

GoogleFirebaseAppcheckV1DebugToken patch(string $name, GoogleFirebaseAppcheckV1DebugToken $postBody, array $optParams = [])

Updates the specified DebugToken. For security reasons, the token field cannot be updated, nor will it be populated in the response, but you can revoke the debug token using DeleteDebugToken. (debugTokens.patch)

Parameters

string $name

Required. The relative resource name of the debug token, in the format: projects/{project_number}/apps/{app_id}/debugTokens/{debug_token_id}

GoogleFirebaseAppcheckV1DebugToken $postBody
array $optParams

Optional parameters.

Return Value

GoogleFirebaseAppcheckV1DebugToken

Exceptions

Exception