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 FirebaseManagement
hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_firebase1_beta1 as firebase1_beta1;
use firebase1_beta1::{FirebaseManagement, FieldMask, hyper_rustls, hyper_util, yup_oauth2};
let secret: yup_oauth2::ApplicationSecret = Default::default();
let auth = yup_oauth2::InstalledFlowAuthenticator::builder(
secret,
yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).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_http1()
.build()
);
let mut hub = FirebaseManagement::new(client, auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `add_firebase(...)`, `add_google_analytics(...)`, `android_apps_create(...)`, `android_apps_get(...)`, `android_apps_get_config(...)`, `android_apps_list(...)`, `android_apps_patch(...)`, `android_apps_remove(...)`, `android_apps_sha_create(...)`, `android_apps_sha_delete(...)`, `android_apps_sha_list(...)`, `android_apps_undelete(...)`, `available_locations_list(...)`, `default_location_finalize(...)`, `get(...)`, `get_admin_sdk_config(...)`, `get_analytics_details(...)`, `ios_apps_create(...)`, `ios_apps_get(...)`, `ios_apps_get_config(...)`, `ios_apps_list(...)`, `ios_apps_patch(...)`, `ios_apps_remove(...)`, `ios_apps_undelete(...)`, `list(...)`, `patch(...)`, `remove_analytics(...)`, `search_apps(...)`, `web_apps_create(...)`, `web_apps_get(...)`, `web_apps_get_config(...)`, `web_apps_list(...)`, `web_apps_patch(...)`, `web_apps_remove(...)` and `web_apps_undelete(...)`
// 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 android_apps_sha_create(
&self,
request: ShaCertificate,
parent: &str,
) -> ProjectAndroidAppShaCreateCall<'a, C>
pub fn android_apps_sha_create( &self, request: ShaCertificate, parent: &str, ) -> ProjectAndroidAppShaCreateCall<'a, C>
Create a builder to help you perform the following task:
Adds a ShaCertificate to the specified AndroidApp.
§Arguments
request
- No description provided.parent
- The resource name of the parent AndroidApp to which to add a ShaCertificate, in the format: projects/PROJECT_IDENTIFIER/androidApps/ APP_ID Since an APP_ID is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format: projects/-/androidApps/APP_ID Refer to theAndroidApp
name
field for details about PROJECT_IDENTIFIER and APP_ID values.
Sourcepub fn android_apps_sha_delete(
&self,
name: &str,
) -> ProjectAndroidAppShaDeleteCall<'a, C>
pub fn android_apps_sha_delete( &self, name: &str, ) -> ProjectAndroidAppShaDeleteCall<'a, C>
Create a builder to help you perform the following task:
Removes a ShaCertificate from the specified AndroidApp.
§Arguments
name
- The resource name of the ShaCertificate to remove from the parent AndroidApp, in the format: projects/PROJECT_IDENTIFIER/androidApps/APP_ID /sha/SHA_HASH Refer to theShaCertificate
name
field for details about PROJECT_IDENTIFIER, APP_ID, and SHA_HASH values. You can obtain the full resource name of theShaCertificate
from the response ofListShaCertificates
or the originalCreateShaCertificate
.
Sourcepub fn android_apps_sha_list(
&self,
parent: &str,
) -> ProjectAndroidAppShaListCall<'a, C>
pub fn android_apps_sha_list( &self, parent: &str, ) -> ProjectAndroidAppShaListCall<'a, C>
Create a builder to help you perform the following task:
Lists the SHA-1 and SHA-256 certificates for the specified AndroidApp.
§Arguments
parent
- The resource name of the parent AndroidApp for which to list each associated ShaCertificate, in the format: projects/PROJECT_IDENTIFIER /androidApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format: projects/-/androidApps/APP_ID Refer to theAndroidApp
name
field for details about PROJECT_IDENTIFIER and APP_ID values.
Sourcepub fn android_apps_create(
&self,
request: AndroidApp,
parent: &str,
) -> ProjectAndroidAppCreateCall<'a, C>
pub fn android_apps_create( &self, request: AndroidApp, parent: &str, ) -> ProjectAndroidAppCreateCall<'a, C>
Create a builder to help you perform the following task:
Requests the creation of a new AndroidApp in the specified FirebaseProject. The result of this call is an Operation
which can be used to track the provisioning process. The Operation
is automatically deleted after completion, so there is no need to call DeleteOperation
.
§Arguments
request
- No description provided.parent
- The resource name of the parent FirebaseProject in which to create an AndroidApp, in the format: projects/PROJECT_IDENTIFIER/androidApps Refer to theFirebaseProject
name
field for details about PROJECT_IDENTIFIER values.
Sourcepub fn android_apps_get(&self, name: &str) -> ProjectAndroidAppGetCall<'a, C>
pub fn android_apps_get(&self, name: &str) -> ProjectAndroidAppGetCall<'a, C>
Create a builder to help you perform the following task:
Gets the specified AndroidApp.
§Arguments
name
- The resource name of the AndroidApp, in the format: projects/ PROJECT_IDENTIFIER/androidApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format: projects/-/androidApps/APP_ID Refer to theAndroidApp
name
field for details about PROJECT_IDENTIFIER and APP_ID values.
Sourcepub fn android_apps_get_config(
&self,
name: &str,
) -> ProjectAndroidAppGetConfigCall<'a, C>
pub fn android_apps_get_config( &self, name: &str, ) -> ProjectAndroidAppGetConfigCall<'a, C>
Create a builder to help you perform the following task:
Gets the configuration artifact associated with the specified AndroidApp.
§Arguments
name
- The resource name of the AndroidApp configuration to download, in the format: projects/PROJECT_IDENTIFIER/androidApps/APP_ID/config Since an APP_ID is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format: projects/-/androidApps/APP_ID Refer to theAndroidApp
name
field for details about PROJECT_IDENTIFIER and APP_ID values.
Sourcepub fn android_apps_list(
&self,
parent: &str,
) -> ProjectAndroidAppListCall<'a, C>
pub fn android_apps_list( &self, parent: &str, ) -> ProjectAndroidAppListCall<'a, C>
Create a builder to help you perform the following task:
Lists each AndroidApp associated with the specified FirebaseProject. The elements are returned in no particular order, but will be a consistent view of the Apps when additional requests are made with a pageToken
.
§Arguments
parent
- The resource name of the parent FirebaseProject for which to list each associated AndroidApp, in the format: projects/PROJECT_IDENTIFIER /androidApps Refer to theFirebaseProject
name
field for details about PROJECT_IDENTIFIER values.
Sourcepub fn android_apps_patch(
&self,
request: AndroidApp,
name: &str,
) -> ProjectAndroidAppPatchCall<'a, C>
pub fn android_apps_patch( &self, request: AndroidApp, name: &str, ) -> ProjectAndroidAppPatchCall<'a, C>
Create a builder to help you perform the following task:
Updates the attributes of the specified AndroidApp.
§Arguments
request
- No description provided.name
- The resource name of the AndroidApp, in the format: projects/ PROJECT_IDENTIFIER/androidApps/APP_ID * PROJECT_IDENTIFIER: the parent Project’sProjectNumber
(recommended) or itsProjectId
. Learn more about using project identifiers in Google’s AIP 2510 standard. Note that the value for PROJECT_IDENTIFIER in any response body will be theProjectId
. * APP_ID: the globally unique, Firebase-assigned identifier for the App (seeappId
).
Sourcepub fn android_apps_remove(
&self,
request: RemoveAndroidAppRequest,
name: &str,
) -> ProjectAndroidAppRemoveCall<'a, C>
pub fn android_apps_remove( &self, request: RemoveAndroidAppRequest, name: &str, ) -> ProjectAndroidAppRemoveCall<'a, C>
Create a builder to help you perform the following task:
Removes the specified AndroidApp from the FirebaseProject.
§Arguments
request
- No description provided.name
- Required. The resource name of the AndroidApp, in the format: projects/ PROJECT_IDENTIFIER/androidApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format: projects/-/androidApps/APP_ID Refer to the AndroidApp name field for details about PROJECT_IDENTIFIER and APP_ID values.
Sourcepub fn android_apps_undelete(
&self,
request: UndeleteAndroidAppRequest,
name: &str,
) -> ProjectAndroidAppUndeleteCall<'a, C>
pub fn android_apps_undelete( &self, request: UndeleteAndroidAppRequest, name: &str, ) -> ProjectAndroidAppUndeleteCall<'a, C>
Create a builder to help you perform the following task:
Restores the specified AndroidApp to the FirebaseProject.
§Arguments
request
- No description provided.name
- Required. The resource name of the AndroidApp, in the format: projects/ PROJECT_IDENTIFIER/androidApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format: projects/-/androidApps/APP_ID Refer to the AndroidApp name field for details about PROJECT_IDENTIFIER and APP_ID values.
Sourcepub fn available_locations_list(
&self,
parent: &str,
) -> ProjectAvailableLocationListCall<'a, C>
pub fn available_locations_list( &self, parent: &str, ) -> ProjectAvailableLocationListCall<'a, C>
Create a builder to help you perform the following task:
DEPRECATED. Instead, use the applicable resource-specific REST API (or associated documentation, as needed) to determine valid locations for each resource used in your Project. Lists the valid Google Cloud Platform (GCP) resource locations for the specified Project (including a FirebaseProject). One of these locations can be selected as the Project’s default GCP resource location, which is the geographical location where the Project’s resources, such as Cloud Firestore, will be provisioned by default. However, if the default GCP resource location has already been set for the Project, then this setting cannot be changed. This call checks for any possible location restrictions for the specified Project and, thus, might return a subset of all possible GCP resource locations. To list all GCP resource locations (regardless of any restrictions), call the endpoint without specifying a unique project identifier (that is, /v1beta1/{parent=projects/-}/listAvailableLocations
). To call ListAvailableLocations
with a specified project, a member must be at minimum a Viewer of the Project. Calls without a specified project do not require any specific project permissions.
§Arguments
parent
- The FirebaseProject for which to list GCP resource locations, in the format: projects/PROJECT_IDENTIFIER Refer to theFirebaseProject
name
field for details about PROJECT_IDENTIFIER values. If no unique project identifier is specified (that is,projects/-
), the returned list does not take into account org-specific or project-specific location restrictions.
Sourcepub fn default_location_finalize(
&self,
request: FinalizeDefaultLocationRequest,
parent: &str,
) -> ProjectDefaultLocationFinalizeCall<'a, C>
pub fn default_location_finalize( &self, request: FinalizeDefaultLocationRequest, parent: &str, ) -> ProjectDefaultLocationFinalizeCall<'a, C>
Create a builder to help you perform the following task:
DEPRECATED. Instead, use the applicable resource-specific REST API to set the location for each resource used in your Project. Sets the default Google Cloud Platform (GCP) resource location for the specified FirebaseProject. This method creates an App Engine application with a default Cloud Storage bucket, located in the specified locationId
. This location must be one of the available GCP resource locations. After the default GCP resource location is finalized, or if it was already set, it cannot be changed. The default GCP resource location for the specified FirebaseProject
might already be set because either the underlying GCP Project
already has an App Engine application or FinalizeDefaultLocation
was previously called with a specified locationId
. Any new calls to FinalizeDefaultLocation
with a different specified locationId
will return a 409 error. The result of this call is an Operation
, which can be used to track the provisioning process. The response
type of the Operation
is google.protobuf.Empty. The Operation
can be polled by its name
using GetOperation until done
is true. When done
is true, the Operation
has either succeeded or failed. If the Operation
has succeeded, its response
will be set to a google.protobuf.Empty; if the Operation
has failed, its error
will be set to a google.rpc.Status. The Operation
is automatically deleted after completion, so there is no need to call DeleteOperation. All fields listed in the request body are required. To call FinalizeDefaultLocation
, a member must be an Owner of the Project.
§Arguments
request
- No description provided.parent
- The resource name of the FirebaseProject for which the default GCP resource location will be set, in the format: projects/PROJECT_IDENTIFIER Refer to theFirebaseProject
name
field for details about PROJECT_IDENTIFIER values.
Sourcepub fn ios_apps_create(
&self,
request: IosApp,
parent: &str,
) -> ProjectIosAppCreateCall<'a, C>
pub fn ios_apps_create( &self, request: IosApp, parent: &str, ) -> ProjectIosAppCreateCall<'a, C>
Create a builder to help you perform the following task:
Requests the creation of a new IosApp in the specified FirebaseProject. The result of this call is an Operation
which can be used to track the provisioning process. The Operation
is automatically deleted after completion, so there is no need to call DeleteOperation
.
§Arguments
request
- No description provided.parent
- The resource name of the parent FirebaseProject in which to create an IosApp, in the format: projects/PROJECT_IDENTIFIER/iosApps Refer to theFirebaseProject
name
field for details about PROJECT_IDENTIFIER values.
Sourcepub fn ios_apps_get(&self, name: &str) -> ProjectIosAppGetCall<'a, C>
pub fn ios_apps_get(&self, name: &str) -> ProjectIosAppGetCall<'a, C>
Create a builder to help you perform the following task:
Gets the specified IosApp.
§Arguments
name
- The resource name of the IosApp, in the format: projects/PROJECT_IDENTIFIER /iosApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format: projects/-/iosApps/APP_ID Refer to theIosApp
name
field for details about PROJECT_IDENTIFIER and APP_ID values.
Sourcepub fn ios_apps_get_config(
&self,
name: &str,
) -> ProjectIosAppGetConfigCall<'a, C>
pub fn ios_apps_get_config( &self, name: &str, ) -> ProjectIosAppGetConfigCall<'a, C>
Create a builder to help you perform the following task:
Gets the configuration artifact associated with the specified IosApp.
§Arguments
name
- The resource name of the App configuration to download, in the format: projects/PROJECT_IDENTIFIER/iosApps/APP_ID/config Since an APP_ID is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format: projects/-/iosApps/APP_ID Refer to theIosApp
name
field for details about PROJECT_IDENTIFIER and APP_ID values.
Sourcepub fn ios_apps_list(&self, parent: &str) -> ProjectIosAppListCall<'a, C>
pub fn ios_apps_list(&self, parent: &str) -> ProjectIosAppListCall<'a, C>
Create a builder to help you perform the following task:
Lists each IosApp associated with the specified FirebaseProject. The elements are returned in no particular order, but will be a consistent view of the Apps when additional requests are made with a pageToken
.
§Arguments
parent
- The resource name of the parent FirebaseProject for which to list each associated IosApp, in the format: projects/PROJECT_IDENTIFIER/iosApps Refer to theFirebaseProject
name
field for details about PROJECT_IDENTIFIER values.
Sourcepub fn ios_apps_patch(
&self,
request: IosApp,
name: &str,
) -> ProjectIosAppPatchCall<'a, C>
pub fn ios_apps_patch( &self, request: IosApp, name: &str, ) -> ProjectIosAppPatchCall<'a, C>
Create a builder to help you perform the following task:
Updates the attributes of the specified IosApp.
§Arguments
request
- No description provided.name
- The resource name of the IosApp, in the format: projects/PROJECT_IDENTIFIER /iosApps/APP_ID * PROJECT_IDENTIFIER: the parent Project’sProjectNumber
(recommended) or itsProjectId
. Learn more about using project identifiers in Google’s AIP 2510 standard. Note that the value for PROJECT_IDENTIFIER in any response body will be theProjectId
. * APP_ID: the globally unique, Firebase-assigned identifier for the App (seeappId
).
Sourcepub fn ios_apps_remove(
&self,
request: RemoveIosAppRequest,
name: &str,
) -> ProjectIosAppRemoveCall<'a, C>
pub fn ios_apps_remove( &self, request: RemoveIosAppRequest, name: &str, ) -> ProjectIosAppRemoveCall<'a, C>
Create a builder to help you perform the following task:
Removes the specified IosApp from the FirebaseProject.
§Arguments
request
- No description provided.name
- Required. The resource name of the IosApp, in the format: projects/ PROJECT_IDENTIFIER/iosApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format: projects/-/iosApps/APP_ID Refer to the IosApp name field for details about PROJECT_IDENTIFIER and APP_ID values.
Sourcepub fn ios_apps_undelete(
&self,
request: UndeleteIosAppRequest,
name: &str,
) -> ProjectIosAppUndeleteCall<'a, C>
pub fn ios_apps_undelete( &self, request: UndeleteIosAppRequest, name: &str, ) -> ProjectIosAppUndeleteCall<'a, C>
Create a builder to help you perform the following task:
Restores the specified IosApp to the FirebaseProject.
§Arguments
request
- No description provided.name
- Required. The resource name of the IosApp, in the format: projects/ PROJECT_IDENTIFIER/iosApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format: projects/-/iosApps/APP_ID Refer to the IosApp name field for details about PROJECT_IDENTIFIER and APP_ID values.
Sourcepub fn web_apps_create(
&self,
request: WebApp,
parent: &str,
) -> ProjectWebAppCreateCall<'a, C>
pub fn web_apps_create( &self, request: WebApp, parent: &str, ) -> ProjectWebAppCreateCall<'a, C>
Create a builder to help you perform the following task:
Requests the creation of a new WebApp in the specified FirebaseProject. The result of this call is an Operation
which can be used to track the provisioning process. The Operation
is automatically deleted after completion, so there is no need to call DeleteOperation
.
§Arguments
request
- No description provided.parent
- The resource name of the parent FirebaseProject in which to create a WebApp, in the format: projects/PROJECT_IDENTIFIER/webApps Refer to theFirebaseProject
name
field for details about PROJECT_IDENTIFIER values.
Sourcepub fn web_apps_get(&self, name: &str) -> ProjectWebAppGetCall<'a, C>
pub fn web_apps_get(&self, name: &str) -> ProjectWebAppGetCall<'a, C>
Create a builder to help you perform the following task:
Gets the specified WebApp.
§Arguments
name
- The resource name of the WebApp, in the format: projects/PROJECT_IDENTIFIER /webApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format: projects/-/webApps/APP_ID Refer to theWebApp
name
field for details about PROJECT_IDENTIFIER and APP_ID values.
Sourcepub fn web_apps_get_config(
&self,
name: &str,
) -> ProjectWebAppGetConfigCall<'a, C>
pub fn web_apps_get_config( &self, name: &str, ) -> ProjectWebAppGetConfigCall<'a, C>
Create a builder to help you perform the following task:
Gets the configuration artifact associated with the specified WebApp.
§Arguments
name
- The resource name of the WebApp configuration to download, in the format: projects/PROJECT_IDENTIFIER/webApps/APP_ID/config Since an APP_ID is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format: projects/-/webApps/APP_ID Refer to theWebApp
name
field for details about PROJECT_IDENTIFIER and APP_ID values.
Sourcepub fn web_apps_list(&self, parent: &str) -> ProjectWebAppListCall<'a, C>
pub fn web_apps_list(&self, parent: &str) -> ProjectWebAppListCall<'a, C>
Create a builder to help you perform the following task:
Lists each WebApp associated with the specified FirebaseProject. The elements are returned in no particular order, but will be a consistent view of the Apps when additional requests are made with a pageToken
.
§Arguments
parent
- The resource name of the parent FirebaseProject for which to list each associated WebApp, in the format: projects/PROJECT_IDENTIFIER/webApps Refer to theFirebaseProject
name
field for details about PROJECT_IDENTIFIER values.
Sourcepub fn web_apps_patch(
&self,
request: WebApp,
name: &str,
) -> ProjectWebAppPatchCall<'a, C>
pub fn web_apps_patch( &self, request: WebApp, name: &str, ) -> ProjectWebAppPatchCall<'a, C>
Create a builder to help you perform the following task:
Updates the attributes of the specified WebApp.
§Arguments
request
- No description provided.name
- The resource name of the WebApp, in the format: projects/PROJECT_IDENTIFIER /webApps/APP_ID * PROJECT_IDENTIFIER: the parent Project’sProjectNumber
(recommended) or itsProjectId
. Learn more about using project identifiers in Google’s AIP 2510 standard. Note that the value for PROJECT_IDENTIFIER in any response body will be theProjectId
. * APP_ID: the globally unique, Firebase-assigned identifier for the App (seeappId
).
Sourcepub fn web_apps_remove(
&self,
request: RemoveWebAppRequest,
name: &str,
) -> ProjectWebAppRemoveCall<'a, C>
pub fn web_apps_remove( &self, request: RemoveWebAppRequest, name: &str, ) -> ProjectWebAppRemoveCall<'a, C>
Create a builder to help you perform the following task:
Removes the specified WebApp from the FirebaseProject.
§Arguments
request
- No description provided.name
- Required. The resource name of the WebApp, in the format: projects/ PROJECT_IDENTIFIER/webApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format: projects/-/webApps/APP_ID Refer to the WebApp name field for details about PROJECT_IDENTIFIER and APP_ID values.
Sourcepub fn web_apps_undelete(
&self,
request: UndeleteWebAppRequest,
name: &str,
) -> ProjectWebAppUndeleteCall<'a, C>
pub fn web_apps_undelete( &self, request: UndeleteWebAppRequest, name: &str, ) -> ProjectWebAppUndeleteCall<'a, C>
Create a builder to help you perform the following task:
Restores the specified WebApp to the FirebaseProject.
§Arguments
request
- No description provided.name
- Required. The resource name of the WebApp, in the format: projects/ PROJECT_IDENTIFIER/webApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format: projects/-/webApps/APP_ID Refer to the WebApp name field for details about PROJECT_IDENTIFIER and APP_ID values.
Sourcepub fn add_firebase(
&self,
request: AddFirebaseRequest,
project: &str,
) -> ProjectAddFirebaseCall<'a, C>
pub fn add_firebase( &self, request: AddFirebaseRequest, project: &str, ) -> ProjectAddFirebaseCall<'a, C>
Create a builder to help you perform the following task:
Adds Firebase resources to the specified existing [Google Cloud Platform (GCP) Project
] (https://cloud.google.com/resource-manager/reference/rest/v1/projects). Since a FirebaseProject is actually also a GCP Project
, a FirebaseProject
has the same underlying GCP identifiers (projectNumber
and projectId
). This allows for easy interop with Google APIs. The result of this call is an Operation
. Poll the Operation
to track the provisioning process by calling GetOperation until done
is true
. When done
is true
, the Operation
has either succeeded or failed. If the Operation
succeeded, its response
is set to a FirebaseProject; if the Operation
failed, its error
is set to a google.rpc.Status. The Operation
is automatically deleted after completion, so there is no need to call DeleteOperation. This method does not modify any billing account information on the underlying GCP Project
. To call AddFirebase
, a project member or service account must have the following permissions (the IAM roles of Editor and Owner contain these permissions): firebase.projects.update
, resourcemanager.projects.get
, serviceusage.services.enable
, and serviceusage.services.get
.
§Arguments
request
- No description provided.project
- The resource name of the GCPProject
to which Firebase resources will be added, in the format: projects/PROJECT_IDENTIFIER Refer to theFirebaseProject
name
field for details about PROJECT_IDENTIFIER values. After callingAddFirebase
, the unique Project identifiers (projectNumber
andprojectId
) of the underlying GCPProject
are also the identifiers of the FirebaseProject.
Sourcepub fn add_google_analytics(
&self,
request: AddGoogleAnalyticsRequest,
parent: &str,
) -> ProjectAddGoogleAnalyticCall<'a, C>
pub fn add_google_analytics( &self, request: AddGoogleAnalyticsRequest, parent: &str, ) -> ProjectAddGoogleAnalyticCall<'a, C>
Create a builder to help you perform the following task:
Links the specified FirebaseProject with an existing Google Analytics account. Using this call, you can either: - Specify an analyticsAccountId
to provision a new Google Analytics property within the specified account and associate the new property with the FirebaseProject
. - Specify an existing analyticsPropertyId
to associate the property with the FirebaseProject
. Note that when you call AddGoogleAnalytics
: 1. The first check determines if any existing data streams in the Google Analytics property correspond to any existing Firebase Apps in the FirebaseProject
(based on the packageName
or bundleId
associated with the data stream). Then, as applicable, the data streams and apps are linked. Note that this auto-linking only applies to AndroidApps
and IosApps
. 2. If no corresponding data streams are found for the Firebase Apps, new data streams are provisioned in the Google Analytics property for each of the Firebase Apps. Note that a new data stream is always provisioned for a Web App even if it was previously associated with a data stream in the Analytics property. Learn more about the hierarchy and structure of Google Analytics accounts in the Analytics documentation. The result of this call is an Operation
. Poll the Operation
to track the provisioning process by calling GetOperation until done
is true
. When done
is true
, the Operation
has either succeeded or failed. If the Operation
succeeded, its response
is set to an AnalyticsDetails; if the Operation
failed, its error
is set to a google.rpc.Status. To call AddGoogleAnalytics
, a project member must be an Owner for the existing FirebaseProject
and have the Edit
permission for the Google Analytics account. If the FirebaseProject
already has Google Analytics enabled, and you call AddGoogleAnalytics
using an analyticsPropertyId
that’s different from the currently associated property, then the call will fail. Analytics may have already been enabled in the Firebase console or by specifying timeZone
and regionCode
in the call to AddFirebase
.
§Arguments
request
- No description provided.parent
- The resource name of the FirebaseProject to link to an existing Google Analytics account, in the format: projects/PROJECT_IDENTIFIER Refer to theFirebaseProject
name
field for details about PROJECT_IDENTIFIER values.
Sourcepub fn get(&self, name: &str) -> ProjectGetCall<'a, C>
pub fn get(&self, name: &str) -> ProjectGetCall<'a, C>
Sourcepub fn get_admin_sdk_config(
&self,
name: &str,
) -> ProjectGetAdminSdkConfigCall<'a, C>
pub fn get_admin_sdk_config( &self, name: &str, ) -> ProjectGetAdminSdkConfigCall<'a, C>
Create a builder to help you perform the following task:
Gets the configuration artifact associated with the specified FirebaseProject, which can be used by servers to simplify initialization. Typically, this configuration is used with the Firebase Admin SDK initializeApp command.
§Arguments
name
- The resource name of the FirebaseProject, in the format: projects/ PROJECT_IDENTIFIER/adminSdkConfig Refer to theFirebaseProject
name
field for details about PROJECT_IDENTIFIER values.
Sourcepub fn get_analytics_details(
&self,
name: &str,
) -> ProjectGetAnalyticsDetailCall<'a, C>
pub fn get_analytics_details( &self, name: &str, ) -> ProjectGetAnalyticsDetailCall<'a, C>
Create a builder to help you perform the following task:
Gets the Google Analytics details currently associated with the specified FirebaseProject. If the FirebaseProject
is not yet linked to Google Analytics, then the response to GetAnalyticsDetails
is NOT_FOUND
.
§Arguments
name
- The resource name of the FirebaseProject, in the format: projects/ PROJECT_IDENTIFIER/analyticsDetails Refer to theFirebaseProject
name
field for details about PROJECT_IDENTIFIER values.
Sourcepub fn list(&self) -> ProjectListCall<'a, C>
pub fn list(&self) -> ProjectListCall<'a, C>
Create a builder to help you perform the following task:
Lists each FirebaseProject accessible to the caller. The elements are returned in no particular order, but they will be a consistent view of the Projects when additional requests are made with a pageToken
. This method is eventually consistent with Project mutations, which means newly provisioned Projects and recent modifications to existing Projects might not be reflected in the set of Projects. The list will include only ACTIVE Projects. Use GetFirebaseProject for consistent reads as well as for additional Project details.
Sourcepub fn patch(
&self,
request: FirebaseProject,
name: &str,
) -> ProjectPatchCall<'a, C>
pub fn patch( &self, request: FirebaseProject, name: &str, ) -> ProjectPatchCall<'a, C>
Create a builder to help you perform the following task:
Updates the attributes of the specified FirebaseProject. All query parameters are required.
§Arguments
request
- No description provided.name
- The resource name of the Project, in the format: projects/PROJECT_IDENTIFIER PROJECT_IDENTIFIER: the Project’sProjectNumber
(recommended) or itsProjectId
. Learn more about using project identifiers in Google’s AIP 2510 standard. Note that the value for PROJECT_IDENTIFIER in any response body will be theProjectId
.
Sourcepub fn remove_analytics(
&self,
request: RemoveAnalyticsRequest,
parent: &str,
) -> ProjectRemoveAnalyticCall<'a, C>
pub fn remove_analytics( &self, request: RemoveAnalyticsRequest, parent: &str, ) -> ProjectRemoveAnalyticCall<'a, C>
Create a builder to help you perform the following task:
Unlinks the specified FirebaseProject from its Google Analytics account. This call removes the association of the specified FirebaseProject
with its current Google Analytics property. However, this call does not delete the Google Analytics resources, such as the Google Analytics property or any data streams. These resources may be re-associated later to the FirebaseProject
by calling AddGoogleAnalytics
and specifying the same analyticsPropertyId
. For Android Apps and iOS Apps, this call re-links data streams with their corresponding apps. However, for Web Apps, this call provisions a new data stream for each Web App. To call RemoveAnalytics
, a project member must be an Owner for the FirebaseProject
.
§Arguments
request
- No description provided.parent
- The resource name of the FirebaseProject to unlink from its Google Analytics account, in the format: projects/PROJECT_IDENTIFIER Refer to theFirebaseProject
name
field for details about PROJECT_IDENTIFIER values.
Sourcepub fn search_apps(&self, parent: &str) -> ProjectSearchAppCall<'a, C>
pub fn search_apps(&self, parent: &str) -> ProjectSearchAppCall<'a, C>
Create a builder to help you perform the following task:
Lists all available Apps for the specified FirebaseProject. This is a convenience method. Typically, interaction with an App should be done using the platform-specific service, but some tool use-cases require a summary of all known Apps (such as for App selector interfaces).
§Arguments
parent
- The parent FirebaseProject for which to list Apps, in the format: projects/ PROJECT_IDENTIFIER Refer to theFirebaseProject
name
field for details about PROJECT_IDENTIFIER values.
Trait Implementations§
impl<'a, C> MethodsBuilder for ProjectMethods<'a, C>
Auto Trait Implementations§
impl<'a, C> Freeze for ProjectMethods<'a, C>
impl<'a, C> !RefUnwindSafe for ProjectMethods<'a, C>
impl<'a, C> Send for ProjectMethods<'a, C>where
C: Sync,
impl<'a, C> Sync for ProjectMethods<'a, C>where
C: Sync,
impl<'a, C> Unpin for ProjectMethods<'a, C>
impl<'a, C> !UnwindSafe for ProjectMethods<'a, C>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more