pub struct ProjectMethods<'a, C>where
C: 'a,{ /* private fields */ }Expand description
A builder providing access to all methods supported on project resources.
It is not used directly, but through the Firebaseappcheck hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_firebaseappcheck1_beta as firebaseappcheck1_beta;
use firebaseappcheck1_beta::{Firebaseappcheck, FieldMask, hyper_rustls, hyper_util, yup_oauth2};
let secret: yup_oauth2::ApplicationSecret = Default::default();
let connector = hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.unwrap()
.https_only()
.enable_http2()
.build();
let executor = hyper_util::rt::TokioExecutor::new();
let auth = yup_oauth2::InstalledFlowAuthenticator::with_client(
secret,
yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
yup_oauth2::client::CustomHyperClientBuilder::from(
hyper_util::client::legacy::Client::builder(executor).build(connector),
),
).build().await.unwrap();
let client = hyper_util::client::legacy::Client::builder(
hyper_util::rt::TokioExecutor::new()
)
.build(
hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.unwrap()
.https_or_http()
.enable_http2()
.build()
);
let mut hub = Firebaseappcheck::new(client, auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `apps_app_attest_config_batch_get(...)`, `apps_app_attest_config_get(...)`, `apps_app_attest_config_patch(...)`, `apps_debug_tokens_create(...)`, `apps_debug_tokens_delete(...)`, `apps_debug_tokens_get(...)`, `apps_debug_tokens_list(...)`, `apps_debug_tokens_patch(...)`, `apps_device_check_config_batch_get(...)`, `apps_device_check_config_get(...)`, `apps_device_check_config_patch(...)`, `apps_exchange_app_attest_assertion(...)`, `apps_exchange_app_attest_attestation(...)`, `apps_exchange_custom_token(...)`, `apps_exchange_debug_token(...)`, `apps_exchange_device_check_token(...)`, `apps_exchange_play_integrity_token(...)`, `apps_exchange_recaptcha_enterprise_token(...)`, `apps_exchange_recaptcha_token(...)`, `apps_exchange_recaptcha_v3_token(...)`, `apps_exchange_safety_net_token(...)`, `apps_generate_app_attest_challenge(...)`, `apps_generate_play_integrity_challenge(...)`, `apps_play_integrity_config_batch_get(...)`, `apps_play_integrity_config_get(...)`, `apps_play_integrity_config_patch(...)`, `apps_recaptcha_config_batch_get(...)`, `apps_recaptcha_config_get(...)`, `apps_recaptcha_config_patch(...)`, `apps_recaptcha_enterprise_config_batch_get(...)`, `apps_recaptcha_enterprise_config_get(...)`, `apps_recaptcha_enterprise_config_patch(...)`, `apps_recaptcha_v3_config_batch_get(...)`, `apps_recaptcha_v3_config_get(...)`, `apps_recaptcha_v3_config_patch(...)`, `apps_safety_net_config_batch_get(...)`, `apps_safety_net_config_get(...)`, `apps_safety_net_config_patch(...)`, `services_batch_update(...)`, `services_get(...)`, `services_list(...)`, `services_patch(...)`, `services_resource_policies_batch_update(...)`, `services_resource_policies_create(...)`, `services_resource_policies_delete(...)`, `services_resource_policies_get(...)`, `services_resource_policies_list(...)`, `services_resource_policies_patch(...)` and `verify_app_check_token(...)`
// to build up your call.
let rb = hub.projects();Implementations§
Source§impl<'a, C> ProjectMethods<'a, C>
impl<'a, C> ProjectMethods<'a, C>
Sourcepub fn apps_app_attest_config_batch_get(
&self,
parent: &str,
) -> ProjectAppAppAttestConfigBatchGetCall<'a, C>
pub fn apps_app_attest_config_batch_get( &self, parent: &str, ) -> ProjectAppAppAttestConfigBatchGetCall<'a, C>
Create a builder to help you perform the following task:
Atomically gets the AppAttestConfigs for the specified list of apps.
§Arguments
parent- Required. The parent project name shared by all AppAttestConfigs being retrieved, in the formatprojects/{project_number}The parent collection in thenamefield of any resource being retrieved must match this field, or the entire batch fails.
Sourcepub fn apps_app_attest_config_get(
&self,
name: &str,
) -> ProjectAppAppAttestConfigGetCall<'a, C>
pub fn apps_app_attest_config_get( &self, name: &str, ) -> ProjectAppAppAttestConfigGetCall<'a, C>
Create a builder to help you perform the following task:
Gets the AppAttestConfig for the specified app.
§Arguments
name- Required. The relative resource name of the AppAttestConfig, in the format:projects/{project_number}/apps/{app_id}/appAttestConfig
Sourcepub fn apps_app_attest_config_patch(
&self,
request: GoogleFirebaseAppcheckV1betaAppAttestConfig,
name: &str,
) -> ProjectAppAppAttestConfigPatchCall<'a, C>
pub fn apps_app_attest_config_patch( &self, request: GoogleFirebaseAppcheckV1betaAppAttestConfig, name: &str, ) -> ProjectAppAppAttestConfigPatchCall<'a, C>
Create a builder to help you perform the following task:
Updates the AppAttestConfig for the specified app. While this configuration is incomplete or invalid, the app will be unable to exchange AppAttest tokens for App Check tokens.
§Arguments
request- No description provided.name- Required. The relative resource name of the App Attest configuration object, in the format:projects/{project_number}/apps/{app_id}/appAttestConfig
Sourcepub fn apps_debug_tokens_create(
&self,
request: GoogleFirebaseAppcheckV1betaDebugToken,
parent: &str,
) -> ProjectAppDebugTokenCreateCall<'a, C>
pub fn apps_debug_tokens_create( &self, request: GoogleFirebaseAppcheckV1betaDebugToken, parent: &str, ) -> ProjectAppDebugTokenCreateCall<'a, C>
Create a builder to help you perform the following task:
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.
§Arguments
request- No description provided.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}
Sourcepub fn apps_debug_tokens_delete(
&self,
name: &str,
) -> ProjectAppDebugTokenDeleteCall<'a, C>
pub fn apps_debug_tokens_delete( &self, name: &str, ) -> ProjectAppDebugTokenDeleteCall<'a, C>
Create a builder to help you perform the following task:
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.
§Arguments
name- Required. The relative resource name of the DebugToken to delete, in the format:projects/{project_number}/apps/{app_id}/debugTokens/{debug_token_id}
Sourcepub fn apps_debug_tokens_get(
&self,
name: &str,
) -> ProjectAppDebugTokenGetCall<'a, C>
pub fn apps_debug_tokens_get( &self, name: &str, ) -> ProjectAppDebugTokenGetCall<'a, C>
Create a builder to help you perform the following task:
Gets the specified DebugToken. For security reasons, the token field is never populated in the response.
§Arguments
name- Required. The relative resource name of the debug token, in the format:projects/{project_number}/apps/{app_id}/debugTokens/{debug_token_id}
Sourcepub fn apps_debug_tokens_list(
&self,
parent: &str,
) -> ProjectAppDebugTokenListCall<'a, C>
pub fn apps_debug_tokens_list( &self, parent: &str, ) -> ProjectAppDebugTokenListCall<'a, C>
Create a builder to help you perform the following task:
Lists all DebugTokens for the specified app. For security reasons, the token field is never populated in the response.
§Arguments
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}
Sourcepub fn apps_debug_tokens_patch(
&self,
request: GoogleFirebaseAppcheckV1betaDebugToken,
name: &str,
) -> ProjectAppDebugTokenPatchCall<'a, C>
pub fn apps_debug_tokens_patch( &self, request: GoogleFirebaseAppcheckV1betaDebugToken, name: &str, ) -> ProjectAppDebugTokenPatchCall<'a, C>
Create a builder to help you perform the following task:
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.
§Arguments
request- No description provided.name- Required. The relative resource name of the debug token, in the format:projects/{project_number}/apps/{app_id}/debugTokens/{debug_token_id}
Sourcepub fn apps_device_check_config_batch_get(
&self,
parent: &str,
) -> ProjectAppDeviceCheckConfigBatchGetCall<'a, C>
pub fn apps_device_check_config_batch_get( &self, parent: &str, ) -> ProjectAppDeviceCheckConfigBatchGetCall<'a, C>
Create a builder to help you perform the following task:
Atomically gets the DeviceCheckConfigs for the specified list of apps. For security reasons, the private_key field is never populated in the response.
§Arguments
parent- Required. The parent project name shared by all DeviceCheckConfigs being retrieved, in the formatprojects/{project_number}The parent collection in thenamefield of any resource being retrieved must match this field, or the entire batch fails.
Sourcepub fn apps_device_check_config_get(
&self,
name: &str,
) -> ProjectAppDeviceCheckConfigGetCall<'a, C>
pub fn apps_device_check_config_get( &self, name: &str, ) -> ProjectAppDeviceCheckConfigGetCall<'a, C>
Create a builder to help you perform the following task:
Gets the DeviceCheckConfig for the specified app. For security reasons, the private_key field is never populated in the response.
§Arguments
name- Required. The relative resource name of the DeviceCheckConfig, in the format:projects/{project_number}/apps/{app_id}/deviceCheckConfig
Sourcepub fn apps_device_check_config_patch(
&self,
request: GoogleFirebaseAppcheckV1betaDeviceCheckConfig,
name: &str,
) -> ProjectAppDeviceCheckConfigPatchCall<'a, C>
pub fn apps_device_check_config_patch( &self, request: GoogleFirebaseAppcheckV1betaDeviceCheckConfig, name: &str, ) -> ProjectAppDeviceCheckConfigPatchCall<'a, C>
Create a builder to help you perform the following task:
Updates the DeviceCheckConfig for the specified app. While this configuration is incomplete or invalid, the app will be unable to exchange DeviceCheck tokens for App Check tokens. For security reasons, the private_key field is never populated in the response.
§Arguments
request- No description provided.name- Required. The relative resource name of the DeviceCheck configuration object, in the format:projects/{project_number}/apps/{app_id}/deviceCheckConfig
Sourcepub fn apps_play_integrity_config_batch_get(
&self,
parent: &str,
) -> ProjectAppPlayIntegrityConfigBatchGetCall<'a, C>
pub fn apps_play_integrity_config_batch_get( &self, parent: &str, ) -> ProjectAppPlayIntegrityConfigBatchGetCall<'a, C>
Create a builder to help you perform the following task:
Atomically gets the PlayIntegrityConfigs for the specified list of apps.
§Arguments
parent- Required. The parent project name shared by all PlayIntegrityConfigs being retrieved, in the formatprojects/{project_number}The parent collection in thenamefield of any resource being retrieved must match this field, or the entire batch fails.
Sourcepub fn apps_play_integrity_config_get(
&self,
name: &str,
) -> ProjectAppPlayIntegrityConfigGetCall<'a, C>
pub fn apps_play_integrity_config_get( &self, name: &str, ) -> ProjectAppPlayIntegrityConfigGetCall<'a, C>
Create a builder to help you perform the following task:
Gets the PlayIntegrityConfig for the specified app.
§Arguments
name- Required. The relative resource name of the PlayIntegrityConfig, in the format:projects/{project_number}/apps/{app_id}/playIntegrityConfig
Sourcepub fn apps_play_integrity_config_patch(
&self,
request: GoogleFirebaseAppcheckV1betaPlayIntegrityConfig,
name: &str,
) -> ProjectAppPlayIntegrityConfigPatchCall<'a, C>
pub fn apps_play_integrity_config_patch( &self, request: GoogleFirebaseAppcheckV1betaPlayIntegrityConfig, name: &str, ) -> ProjectAppPlayIntegrityConfigPatchCall<'a, C>
Create a builder to help you perform the following task:
Updates the PlayIntegrityConfig for the specified app. While this configuration is incomplete or invalid, the app will be unable to exchange Play Integrity tokens for App Check tokens.
§Arguments
request- No description provided.name- Required. The relative resource name of the Play Integrity configuration object, in the format:projects/{project_number}/apps/{app_id}/playIntegrityConfig
Sourcepub fn apps_recaptcha_config_batch_get(
&self,
parent: &str,
) -> ProjectAppRecaptchaConfigBatchGetCall<'a, C>
pub fn apps_recaptcha_config_batch_get( &self, parent: &str, ) -> ProjectAppRecaptchaConfigBatchGetCall<'a, C>
Create a builder to help you perform the following task:
Atomically gets the RecaptchaConfigs for the specified list of apps. For security reasons, the site_secret field is never populated in the response.
§Arguments
parent- Required. The parent project name shared by all RecaptchaConfigs being retrieved, in the formatprojects/{project_number}The parent collection in thenamefield of any resource being retrieved must match this field, or the entire batch fails.
Sourcepub fn apps_recaptcha_config_get(
&self,
name: &str,
) -> ProjectAppRecaptchaConfigGetCall<'a, C>
pub fn apps_recaptcha_config_get( &self, name: &str, ) -> ProjectAppRecaptchaConfigGetCall<'a, C>
Create a builder to help you perform the following task:
Gets the RecaptchaConfig for the specified app. For security reasons, the site_secret field is never populated in the response.
§Arguments
name- Required. The relative resource name of the RecaptchaConfig, in the format:projects/{project_number}/apps/{app_id}/recaptchaConfig
Sourcepub fn apps_recaptcha_config_patch(
&self,
request: GoogleFirebaseAppcheckV1betaRecaptchaConfig,
name: &str,
) -> ProjectAppRecaptchaConfigPatchCall<'a, C>
pub fn apps_recaptcha_config_patch( &self, request: GoogleFirebaseAppcheckV1betaRecaptchaConfig, name: &str, ) -> ProjectAppRecaptchaConfigPatchCall<'a, C>
Create a builder to help you perform the following task:
Updates the RecaptchaConfig for the specified app. While this configuration is incomplete or invalid, the app will be unable to exchange reCAPTCHA tokens for App Check tokens. For security reasons, the site_secret field is never populated in the response.
§Arguments
request- No description provided.name- Required. The relative resource name of the reCAPTCHA v3 configuration object, in the format:projects/{project_number}/apps/{app_id}/recaptchaConfig
Sourcepub fn apps_recaptcha_enterprise_config_batch_get(
&self,
parent: &str,
) -> ProjectAppRecaptchaEnterpriseConfigBatchGetCall<'a, C>
pub fn apps_recaptcha_enterprise_config_batch_get( &self, parent: &str, ) -> ProjectAppRecaptchaEnterpriseConfigBatchGetCall<'a, C>
Create a builder to help you perform the following task:
Atomically gets the RecaptchaEnterpriseConfigs for the specified list of apps.
§Arguments
parent- Required. The parent project name shared by all RecaptchaEnterpriseConfigs being retrieved, in the formatprojects/{project_number}The parent collection in thenamefield of any resource being retrieved must match this field, or the entire batch fails.
Sourcepub fn apps_recaptcha_enterprise_config_get(
&self,
name: &str,
) -> ProjectAppRecaptchaEnterpriseConfigGetCall<'a, C>
pub fn apps_recaptcha_enterprise_config_get( &self, name: &str, ) -> ProjectAppRecaptchaEnterpriseConfigGetCall<'a, C>
Create a builder to help you perform the following task:
Gets the RecaptchaEnterpriseConfig for the specified app.
§Arguments
name- Required. The relative resource name of the RecaptchaEnterpriseConfig, in the format:projects/{project_number}/apps/{app_id}/recaptchaEnterpriseConfig
Sourcepub fn apps_recaptcha_enterprise_config_patch(
&self,
request: GoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfig,
name: &str,
) -> ProjectAppRecaptchaEnterpriseConfigPatchCall<'a, C>
pub fn apps_recaptcha_enterprise_config_patch( &self, request: GoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfig, name: &str, ) -> ProjectAppRecaptchaEnterpriseConfigPatchCall<'a, C>
Create a builder to help you perform the following task:
Updates the RecaptchaEnterpriseConfig for the specified app. While this configuration is incomplete or invalid, the app will be unable to exchange reCAPTCHA Enterprise tokens for App Check tokens.
§Arguments
request- No description provided.name- Required. The relative resource name of the reCAPTCHA Enterprise configuration object, in the format:projects/{project_number}/apps/{app_id}/recaptchaEnterpriseConfig
Sourcepub fn apps_recaptcha_v3_config_batch_get(
&self,
parent: &str,
) -> ProjectAppRecaptchaV3ConfigBatchGetCall<'a, C>
pub fn apps_recaptcha_v3_config_batch_get( &self, parent: &str, ) -> ProjectAppRecaptchaV3ConfigBatchGetCall<'a, C>
Create a builder to help you perform the following task:
Atomically gets the RecaptchaV3Configs for the specified list of apps. For security reasons, the site_secret field is never populated in the response.
§Arguments
parent- Required. The parent project name shared by all RecaptchaV3Configs being retrieved, in the formatprojects/{project_number}The parent collection in thenamefield of any resource being retrieved must match this field, or the entire batch fails.
Sourcepub fn apps_recaptcha_v3_config_get(
&self,
name: &str,
) -> ProjectAppRecaptchaV3ConfigGetCall<'a, C>
pub fn apps_recaptcha_v3_config_get( &self, name: &str, ) -> ProjectAppRecaptchaV3ConfigGetCall<'a, C>
Create a builder to help you perform the following task:
Gets the RecaptchaV3Config for the specified app. For security reasons, the site_secret field is never populated in the response.
§Arguments
name- Required. The relative resource name of the RecaptchaV3Config, in the format:projects/{project_number}/apps/{app_id}/recaptchaV3Config
Sourcepub fn apps_recaptcha_v3_config_patch(
&self,
request: GoogleFirebaseAppcheckV1betaRecaptchaV3Config,
name: &str,
) -> ProjectAppRecaptchaV3ConfigPatchCall<'a, C>
pub fn apps_recaptcha_v3_config_patch( &self, request: GoogleFirebaseAppcheckV1betaRecaptchaV3Config, name: &str, ) -> ProjectAppRecaptchaV3ConfigPatchCall<'a, C>
Create a builder to help you perform the following task:
Updates the RecaptchaV3Config for the specified app. While this configuration is incomplete or invalid, the app will be unable to exchange reCAPTCHA V3 tokens for App Check tokens. For security reasons, the site_secret field is never populated in the response.
§Arguments
request- No description provided.name- Required. The relative resource name of the reCAPTCHA v3 configuration object, in the format:projects/{project_number}/apps/{app_id}/recaptchaV3Config
Sourcepub fn apps_safety_net_config_batch_get(
&self,
parent: &str,
) -> ProjectAppSafetyNetConfigBatchGetCall<'a, C>
pub fn apps_safety_net_config_batch_get( &self, parent: &str, ) -> ProjectAppSafetyNetConfigBatchGetCall<'a, C>
Create a builder to help you perform the following task:
Atomically gets the SafetyNetConfigs for the specified list of apps.
§Arguments
parent- Required. The parent project name shared by all SafetyNetConfigs being retrieved, in the formatprojects/{project_number}The parent collection in thenamefield of any resource being retrieved must match this field, or the entire batch fails.
Sourcepub fn apps_safety_net_config_get(
&self,
name: &str,
) -> ProjectAppSafetyNetConfigGetCall<'a, C>
pub fn apps_safety_net_config_get( &self, name: &str, ) -> ProjectAppSafetyNetConfigGetCall<'a, C>
Create a builder to help you perform the following task:
Gets the SafetyNetConfig for the specified app.
§Arguments
name- Required. The relative resource name of the SafetyNetConfig, in the format:projects/{project_number}/apps/{app_id}/safetyNetConfig
Sourcepub fn apps_safety_net_config_patch(
&self,
request: GoogleFirebaseAppcheckV1betaSafetyNetConfig,
name: &str,
) -> ProjectAppSafetyNetConfigPatchCall<'a, C>
pub fn apps_safety_net_config_patch( &self, request: GoogleFirebaseAppcheckV1betaSafetyNetConfig, name: &str, ) -> ProjectAppSafetyNetConfigPatchCall<'a, C>
Create a builder to help you perform the following task:
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.
§Arguments
request- No description provided.name- Required. The relative resource name of the SafetyNet configuration object, in the format:projects/{project_number}/apps/{app_id}/safetyNetConfig
Sourcepub fn apps_exchange_app_attest_assertion(
&self,
request: GoogleFirebaseAppcheckV1betaExchangeAppAttestAssertionRequest,
app: &str,
) -> ProjectAppExchangeAppAttestAssertionCall<'a, C>
pub fn apps_exchange_app_attest_assertion( &self, request: GoogleFirebaseAppcheckV1betaExchangeAppAttestAssertionRequest, app: &str, ) -> ProjectAppExchangeAppAttestAssertionCall<'a, C>
Create a builder to help you perform the following task:
Accepts an App Attest assertion and an artifact previously obtained from ExchangeAppAttestAttestation and verifies those with Apple. If valid, returns an AppCheckToken.
§Arguments
request- No description provided.app- Required. The relative resource name of the iOS app, in the format:projects/{project_number}/apps/{app_id}If necessary, theproject_numberelement can be replaced with the project ID of the Firebase project. Learn more about using project identifiers in Google’s AIP 2510 standard. Alternatively, if this method is being called for an OAuth client protected by App Check, this field can also be in the format:oauthClients/{oauth_client_id}You can view the OAuth client ID for your OAuth clients in the Google Cloud console. Note that only iOS OAuth clients are supported at this time, and they must be linked to corresponding iOS Firebase apps. Please see the documentation for more information.
Sourcepub fn apps_exchange_app_attest_attestation(
&self,
request: GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationRequest,
app: &str,
) -> ProjectAppExchangeAppAttestAttestationCall<'a, C>
pub fn apps_exchange_app_attest_attestation( &self, request: GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationRequest, app: &str, ) -> ProjectAppExchangeAppAttestAttestationCall<'a, C>
Create a builder to help you perform the following task:
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).
§Arguments
request- No description provided.app- Required. The relative resource name of the iOS app, in the format:projects/{project_number}/apps/{app_id}If necessary, theproject_numberelement can be replaced with the project ID of the Firebase project. Learn more about using project identifiers in Google’s AIP 2510 standard. Alternatively, if this method is being called for an OAuth client protected by App Check, this field can also be in the format:oauthClients/{oauth_client_id}You can view the OAuth client ID for your OAuth clients in the Google Cloud console. Note that only iOS OAuth clients are supported at this time, and they must be linked to corresponding iOS Firebase apps. Please see the documentation for more information.
Sourcepub fn apps_exchange_custom_token(
&self,
request: GoogleFirebaseAppcheckV1betaExchangeCustomTokenRequest,
app: &str,
) -> ProjectAppExchangeCustomTokenCall<'a, C>
pub fn apps_exchange_custom_token( &self, request: GoogleFirebaseAppcheckV1betaExchangeCustomTokenRequest, app: &str, ) -> ProjectAppExchangeCustomTokenCall<'a, C>
Create a builder to help you perform the following task:
Validates a custom token signed using your project’s Admin SDK service account credentials. If valid, returns an AppCheckToken.
§Arguments
request- No description provided.app- Required. The relative resource name of the app, in the format:projects/{project_number}/apps/{app_id}If necessary, theproject_numberelement can be replaced with the project ID of the Firebase project. Learn more about using project identifiers in Google’s AIP 2510 standard.
Sourcepub fn apps_exchange_debug_token(
&self,
request: GoogleFirebaseAppcheckV1betaExchangeDebugTokenRequest,
app: &str,
) -> ProjectAppExchangeDebugTokenCall<'a, C>
pub fn apps_exchange_debug_token( &self, request: GoogleFirebaseAppcheckV1betaExchangeDebugTokenRequest, app: &str, ) -> ProjectAppExchangeDebugTokenCall<'a, C>
Create a builder to help you perform the following task:
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.
§Arguments
request- No description provided.app- Required. The relative resource name of the app, in the format:projects/{project_number}/apps/{app_id}If necessary, theproject_numberelement can be replaced with the project ID of the Firebase project. Learn more about using project identifiers in Google’s AIP 2510 standard. Alternatively, if this method is being called for an OAuth client protected by App Check, this field can also be in the format:oauthClients/{oauth_client_id}You can view the OAuth client ID for your OAuth clients in the Google Cloud console. Note that only iOS OAuth clients are supported at this time, and they must be linked to corresponding iOS Firebase apps. Please see the documentation for more information.
Sourcepub fn apps_exchange_device_check_token(
&self,
request: GoogleFirebaseAppcheckV1betaExchangeDeviceCheckTokenRequest,
app: &str,
) -> ProjectAppExchangeDeviceCheckTokenCall<'a, C>
pub fn apps_exchange_device_check_token( &self, request: GoogleFirebaseAppcheckV1betaExchangeDeviceCheckTokenRequest, app: &str, ) -> ProjectAppExchangeDeviceCheckTokenCall<'a, C>
Create a builder to help you perform the following task:
Accepts a device_token issued by DeviceCheck, and attempts to validate it with Apple. If valid, returns an AppCheckToken.
§Arguments
request- No description provided.app- Required. The relative resource name of the iOS app, in the format:projects/{project_number}/apps/{app_id}If necessary, theproject_numberelement can be replaced with the project ID of the Firebase project. Learn more about using project identifiers in Google’s AIP 2510 standard.
Sourcepub fn apps_exchange_play_integrity_token(
&self,
request: GoogleFirebaseAppcheckV1betaExchangePlayIntegrityTokenRequest,
app: &str,
) -> ProjectAppExchangePlayIntegrityTokenCall<'a, C>
pub fn apps_exchange_play_integrity_token( &self, request: GoogleFirebaseAppcheckV1betaExchangePlayIntegrityTokenRequest, app: &str, ) -> ProjectAppExchangePlayIntegrityTokenCall<'a, C>
Create a builder to help you perform the following task:
Validates an integrity verdict response token from Play Integrity. If valid, returns an AppCheckToken.
§Arguments
request- No description provided.app- Required. The relative resource name of the Android app, in the format:projects/{project_number}/apps/{app_id}If necessary, theproject_numberelement can be replaced with the project ID of the Firebase project. Learn more about using project identifiers in Google’s AIP 2510 standard.
Sourcepub fn apps_exchange_recaptcha_enterprise_token(
&self,
request: GoogleFirebaseAppcheckV1betaExchangeRecaptchaEnterpriseTokenRequest,
app: &str,
) -> ProjectAppExchangeRecaptchaEnterpriseTokenCall<'a, C>
pub fn apps_exchange_recaptcha_enterprise_token( &self, request: GoogleFirebaseAppcheckV1betaExchangeRecaptchaEnterpriseTokenRequest, app: &str, ) -> ProjectAppExchangeRecaptchaEnterpriseTokenCall<'a, C>
Create a builder to help you perform the following task:
Validates a reCAPTCHA Enterprise response token. If valid, returns an App Check token AppCheckToken.
§Arguments
request- No description provided.app- Required. The relative resource name of the web app, in the format:projects/{project_number}/apps/{app_id}If necessary, theproject_numberelement can be replaced with the project ID of the Firebase project. Learn more about using project identifiers in Google’s AIP 2510 standard.
Sourcepub fn apps_exchange_recaptcha_token(
&self,
request: GoogleFirebaseAppcheckV1betaExchangeRecaptchaTokenRequest,
app: &str,
) -> ProjectAppExchangeRecaptchaTokenCall<'a, C>
pub fn apps_exchange_recaptcha_token( &self, request: GoogleFirebaseAppcheckV1betaExchangeRecaptchaTokenRequest, app: &str, ) -> ProjectAppExchangeRecaptchaTokenCall<'a, C>
Create a builder to help you perform the following task:
Validates a reCAPTCHA v3 response token. If valid, returns an AppCheckToken.
§Arguments
request- No description provided.app- Required. The relative resource name of the web app, in the format:projects/{project_number}/apps/{app_id}If necessary, theproject_numberelement can be replaced with the project ID of the Firebase project. Learn more about using project identifiers in Google’s AIP 2510 standard.
Sourcepub fn apps_exchange_recaptcha_v3_token(
&self,
request: GoogleFirebaseAppcheckV1betaExchangeRecaptchaV3TokenRequest,
app: &str,
) -> ProjectAppExchangeRecaptchaV3TokenCall<'a, C>
pub fn apps_exchange_recaptcha_v3_token( &self, request: GoogleFirebaseAppcheckV1betaExchangeRecaptchaV3TokenRequest, app: &str, ) -> ProjectAppExchangeRecaptchaV3TokenCall<'a, C>
Create a builder to help you perform the following task:
Validates a reCAPTCHA v3 response token. If valid, returns an AppCheckToken.
§Arguments
request- No description provided.app- Required. The relative resource name of the web app, in the format:projects/{project_number}/apps/{app_id}If necessary, theproject_numberelement can be replaced with the project ID of the Firebase project. Learn more about using project identifiers in Google’s AIP 2510 standard.
Sourcepub fn apps_exchange_safety_net_token(
&self,
request: GoogleFirebaseAppcheckV1betaExchangeSafetyNetTokenRequest,
app: &str,
) -> ProjectAppExchangeSafetyNetTokenCall<'a, C>
pub fn apps_exchange_safety_net_token( &self, request: GoogleFirebaseAppcheckV1betaExchangeSafetyNetTokenRequest, app: &str, ) -> ProjectAppExchangeSafetyNetTokenCall<'a, C>
Create a builder to help you perform the following task:
Validates a SafetyNet token. If valid, returns an AppCheckToken.
§Arguments
request- No description provided.app- Required. The relative resource name of the Android app, in the format:projects/{project_number}/apps/{app_id}If necessary, theproject_numberelement can be replaced with the project ID of the Firebase project. Learn more about using project identifiers in Google’s AIP 2510 standard.
Sourcepub fn apps_generate_app_attest_challenge(
&self,
request: GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeRequest,
app: &str,
) -> ProjectAppGenerateAppAttestChallengeCall<'a, C>
pub fn apps_generate_app_attest_challenge( &self, request: GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeRequest, app: &str, ) -> ProjectAppGenerateAppAttestChallengeCall<'a, C>
Create a builder to help you perform the following task:
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.
§Arguments
request- No description provided.app- Required. The relative resource name of the iOS app, in the format:projects/{project_number}/apps/{app_id}If necessary, theproject_numberelement can be replaced with the project ID of the Firebase project. Learn more about using project identifiers in Google’s AIP 2510 standard. Alternatively, if this method is being called for an OAuth client protected by App Check, this field can also be in the format:oauthClients/{oauth_client_id}You can view the OAuth client ID for your OAuth clients in the Google Cloud console. Note that only iOS OAuth clients are supported at this time, and they must be linked to corresponding iOS Firebase apps. Please see the documentation for more information.
Sourcepub fn apps_generate_play_integrity_challenge(
&self,
request: GoogleFirebaseAppcheckV1betaGeneratePlayIntegrityChallengeRequest,
app: &str,
) -> ProjectAppGeneratePlayIntegrityChallengeCall<'a, C>
pub fn apps_generate_play_integrity_challenge( &self, request: GoogleFirebaseAppcheckV1betaGeneratePlayIntegrityChallengeRequest, app: &str, ) -> ProjectAppGeneratePlayIntegrityChallengeCall<'a, C>
Create a builder to help you perform the following task:
Generates a challenge that protects the integrity of an immediately following integrity verdict request to the Play Integrity API. The next call to ExchangePlayIntegrityToken using the resulting integrity token will verify the presence and validity of the challenge. A challenge should not be reused for multiple calls.
§Arguments
request- No description provided.app- Required. The relative resource name of the app, in the format:projects/{project_number}/apps/{app_id}If necessary, theproject_numberelement can be replaced with the project ID of the Firebase project. Learn more about using project identifiers in Google’s AIP 2510 standard.
Sourcepub fn services_resource_policies_batch_update(
&self,
request: GoogleFirebaseAppcheckV1betaBatchUpdateResourcePoliciesRequest,
parent: &str,
) -> ProjectServiceResourcePolicyBatchUpdateCall<'a, C>
pub fn services_resource_policies_batch_update( &self, request: GoogleFirebaseAppcheckV1betaBatchUpdateResourcePoliciesRequest, parent: &str, ) -> ProjectServiceResourcePolicyBatchUpdateCall<'a, C>
Create a builder to help you perform the following task:
Atomically updates the specified ResourcePolicy configurations.
§Arguments
request- No description provided.parent- Required. The parent service name, in the formatprojects/{project_number}/services/{service_id}The parent collection in thenamefield of any resource being updated must match this field, or the entire batch fails.
Sourcepub fn services_resource_policies_create(
&self,
request: GoogleFirebaseAppcheckV1betaResourcePolicy,
parent: &str,
) -> ProjectServiceResourcePolicyCreateCall<'a, C>
pub fn services_resource_policies_create( &self, request: GoogleFirebaseAppcheckV1betaResourcePolicy, parent: &str, ) -> ProjectServiceResourcePolicyCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates the specified ResourcePolicy configuration.
§Arguments
request- No description provided.parent- Required. The relative resource name of the parent Service in which the specified ResourcePolicy will be created, in the format:projects/{project_number}/services/{service_id}Note that theservice_idelement must be a supported service ID. Currently, the following service IDs are supported: *oauth2.googleapis.com(Google Identity for iOS)
Sourcepub fn services_resource_policies_delete(
&self,
name: &str,
) -> ProjectServiceResourcePolicyDeleteCall<'a, C>
pub fn services_resource_policies_delete( &self, name: &str, ) -> ProjectServiceResourcePolicyDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes the specified ResourcePolicy configuration.
§Arguments
name- Required. The relative resource name of the ResourcePolicy to delete, in the format:projects/{project_number}/services/{service_id}/resourcePolicies/{resource_policy_id}
Sourcepub fn services_resource_policies_get(
&self,
name: &str,
) -> ProjectServiceResourcePolicyGetCall<'a, C>
pub fn services_resource_policies_get( &self, name: &str, ) -> ProjectServiceResourcePolicyGetCall<'a, C>
Create a builder to help you perform the following task:
Gets the requested ResourcePolicy configuration.
§Arguments
name- Required. The relative resource name of the ResourcePolicy to retrieve, in the format:projects/{project_number}/services/{service_id}/resourcePolicies/{resource_policy_id}Note that theservice_idelement must be a supported service ID. Currently, the following service IDs are supported: *oauth2.googleapis.com(Google Identity for iOS)
Sourcepub fn services_resource_policies_list(
&self,
parent: &str,
) -> ProjectServiceResourcePolicyListCall<'a, C>
pub fn services_resource_policies_list( &self, parent: &str, ) -> ProjectServiceResourcePolicyListCall<'a, C>
Create a builder to help you perform the following task:
Lists all ResourcePolicy configurations for the specified project and service.
§Arguments
parent- Required. The relative resource name of the parent Service for which to list each associated ResourcePolicy, in the format:projects/{project_number}/services/{service_id}Note that theservice_idelement must be a supported service ID. Currently, the following service IDs are supported: *oauth2.googleapis.com(Google Identity for iOS)
Sourcepub fn services_resource_policies_patch(
&self,
request: GoogleFirebaseAppcheckV1betaResourcePolicy,
name: &str,
) -> ProjectServiceResourcePolicyPatchCall<'a, C>
pub fn services_resource_policies_patch( &self, request: GoogleFirebaseAppcheckV1betaResourcePolicy, name: &str, ) -> ProjectServiceResourcePolicyPatchCall<'a, C>
Create a builder to help you perform the following task:
Updates the specified ResourcePolicy configuration.
§Arguments
request- No description provided.name- Required. Identifier. The relative name of the resource policy object, in the format:projects/{project_number}/services/{service_id}/resourcePolicies/{resource_policy_id}Note that theservice_idelement must be a supported service ID. Currently, the following service IDs are supported: *oauth2.googleapis.com(Google Identity for iOS)resource_policy_idis a system-generated UID.
Sourcepub fn services_batch_update(
&self,
request: GoogleFirebaseAppcheckV1betaBatchUpdateServicesRequest,
parent: &str,
) -> ProjectServiceBatchUpdateCall<'a, C>
pub fn services_batch_update( &self, request: GoogleFirebaseAppcheckV1betaBatchUpdateServicesRequest, parent: &str, ) -> ProjectServiceBatchUpdateCall<'a, C>
Create a builder to help you perform the following task:
Atomically updates the specified Service configurations.
§Arguments
request- No description provided.parent- Required. The parent project name shared by all Service configurations being updated, in the formatprojects/{project_number}The parent collection in thenamefield of any resource being updated must match this field, or the entire batch fails.
Sourcepub fn services_get(&self, name: &str) -> ProjectServiceGetCall<'a, C>
pub fn services_get(&self, name: &str) -> ProjectServiceGetCall<'a, C>
Create a builder to help you perform the following task:
Gets the Service configuration for the specified service name.
§Arguments
name- Required. The relative resource name of the Service to retrieve, in the format:projects/{project_number}/services/{service_id}Note that theservice_idelement must be a supported service ID. Currently, the following service IDs are supported: *firebasestorage.googleapis.com(Cloud Storage for Firebase) *firebasedatabase.googleapis.com(Firebase Realtime Database) *firestore.googleapis.com(Cloud Firestore) *identitytoolkit.googleapis.com(Firebase Authentication with Identity Platform) *oauth2.googleapis.com(Google Identity for iOS)
Sourcepub fn services_list(&self, parent: &str) -> ProjectServiceListCall<'a, C>
pub fn services_list(&self, parent: &str) -> ProjectServiceListCall<'a, C>
Create a builder to help you perform the following task:
Lists all Service configurations for the specified project. Only Services which were explicitly configured using UpdateService or BatchUpdateServices will be returned.
§Arguments
parent- Required. The relative resource name of the parent project for which to list each associated Service, in the format:projects/{project_number}
Sourcepub fn services_patch(
&self,
request: GoogleFirebaseAppcheckV1betaService,
name: &str,
) -> ProjectServicePatchCall<'a, C>
pub fn services_patch( &self, request: GoogleFirebaseAppcheckV1betaService, name: &str, ) -> ProjectServicePatchCall<'a, C>
Create a builder to help you perform the following task:
Updates the specified Service configuration.
§Arguments
request- No description provided.name- Required. The relative resource name of the service configuration object, in the format:projects/{project_number}/services/{service_id}Note that theservice_idelement must be a supported service ID. Currently, the following service IDs are supported: *firebasestorage.googleapis.com(Cloud Storage for Firebase) *firebasedatabase.googleapis.com(Firebase Realtime Database) *firestore.googleapis.com(Cloud Firestore) *identitytoolkit.googleapis.com(Firebase Authentication with Identity Platform) *oauth2.googleapis.com(Google Identity for iOS)
Sourcepub fn verify_app_check_token(
&self,
request: GoogleFirebaseAppcheckV1betaVerifyAppCheckTokenRequest,
project: &str,
) -> ProjectVerifyAppCheckTokenCall<'a, C>
pub fn verify_app_check_token( &self, request: GoogleFirebaseAppcheckV1betaVerifyAppCheckTokenRequest, project: &str, ) -> ProjectVerifyAppCheckTokenCall<'a, C>
Create a builder to help you perform the following task:
Verifies the given App Check token and returns token usage signals that callers may act upon. This method currently only supports App Check tokens exchanged from the following attestation providers: * Play Integrity API * App Attest * DeviceCheck (DCDevice tokens) * reCAPTCHA Enterprise * reCAPTCHA v3 * Custom providers App Check tokens exchanged from debug secrets are also supported. Calling this method on an otherwise valid App Check token with an unsupported provider will cause an HTTP 400 error to be returned. Returns whether this token was already consumed before this call. If this is the first time this method has seen the given App Check token, the field already_consumed in the response will be absent. The given token will then be marked as already_consumed (set to true) for all future invocations of this method for that token. Note that if the given App Check token is invalid, an HTTP 403 error is returned instead of a response object, regardless whether the token was already consumed. Currently, when evaluating whether an App Check token was already consumed, only calls to this exact method are counted. Use of the App Check token elsewhere will not mark the token as being already consumed. The caller must have the firebaseappcheck.appCheckTokens.verify permission to call this method. This permission is part of the Firebase App Check Token Verifier role.
§Arguments
request- No description provided.project- Required. The relative resource name of the project for which the token was minted, in the format:projects/{project_number}If necessary, theproject_numberelement can be replaced with the project ID of the Firebase project. Learn more about using project identifiers in Google’s AIP 2510 standard.