[][src]Struct google_firebase1_beta1::ProjectMethods

pub struct ProjectMethods<'a, C, A> where
    C: 'a,
    A: 'a, 
{ /* fields omitted */ }

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 yup_oauth2 as oauth2;
extern crate google_firebase1_beta1 as firebase1_beta1;
 
use std::default::Default;
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
use firebase1_beta1::FirebaseManagement;
 
let secret: ApplicationSecret = Default::default();
let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate,
                              hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())),
                              <MemoryStorage as Default>::default(), None);
let mut hub = FirebaseManagement::new(hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), 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_sha_create(...)`, `android_apps_sha_delete(...)`, `android_apps_sha_list(...)`, `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(...)`, `list(...)`, `patch(...)`, `remove_analytics(...)`, `search_apps(...)`, `web_apps_create(...)`, `web_apps_get(...)`, `web_apps_get_config(...)`, `web_apps_list(...)` and `web_apps_patch(...)`
// to build up your call.
let rb = hub.projects();

Implementations

impl<'a, C, A> ProjectMethods<'a, C, A>[src]

pub fn ios_apps_patch(
    &self,
    request: IosApp,
    name: &str
) -> ProjectIosAppPatchCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Updates the attributes of the IosApp identified by the specified resource name.

Arguments

  • request - No description provided.
  • name - The fully qualified resource name of the App, in the format:
    projects/projectId/iosApps/appId

pub fn default_location_finalize(
    &self,
    request: FinalizeDefaultLocationRequest,
    parent: &str
) -> ProjectDefaultLocationFinalizeCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

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 location_id. 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 GCP Project already has an App Engine application or FinalizeDefaultLocation was previously called with a specified location_id. Any new calls to FinalizeDefaultLocation with a different specified location_id 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 Project for which the default GCP resource location will be set, in the format:
    projects/PROJECT_NUMBER

pub fn android_apps_get(&self, name: &str) -> ProjectAndroidAppGetCall<'a, C, A>[src]

Create a builder to help you perform the following task:

Gets the AndroidApp identified by the specified resource name.

Arguments

  • name - The fully qualified resource name of the App, in the format:
    projects/PROJECT_NUMBER/androidApps/APP_ID
    As 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

pub fn android_apps_sha_list(
    &self,
    parent: &str
) -> ProjectAndroidAppShaListCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Returns the list of SHA-1 and SHA-256 certificates for the specified AndroidApp.

Arguments

  • parent - The parent App for which to list SHA certificates, in the format:
    projects/PROJECT_NUMBER/androidApps/APP_ID
    As 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

pub fn android_apps_patch(
    &self,
    request: AndroidApp,
    name: &str
) -> ProjectAndroidAppPatchCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Updates the attributes of the AndroidApp identified by the specified resource name.

Arguments

  • request - No description provided.
  • name - The fully qualified resource name of the App, in the format:
    projects/projectId/androidApps/appId

pub fn get(&self, name: &str) -> ProjectGetCall<'a, C, A>[src]

Create a builder to help you perform the following task:

Gets the FirebaseProject identified by the specified resource name.

Arguments

  • name - The fully qualified resource name of the Project, in the format:
    projects/PROJECT_NUMBER

pub fn list(&self) -> ProjectListCall<'a, C, A>[src]

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.

pub fn add_firebase(
    &self,
    request: AddFirebaseRequest,
    project: &str
) -> ProjectAddFirebaseCall<'a, C, A>
[src]

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 uses underlying GCP identifiers (most importantly, the PROJECT_NUMBER) as its own for easy interop with GCP 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 GCP Project to which Firebase resources will be added, in the format:
    projects/PROJECT_NUMBER After calling AddFirebase, the project_id of the GCP Project is also the project_id of the FirebaseProject.

pub fn search_apps(&self, parent: &str) -> ProjectSearchAppCall<'a, C, A>[src]

Create a builder to help you perform the following task:

A convenience method that lists all available Apps for the specified FirebaseProject.

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 Project for which to list Apps, in the format:
    projects/PROJECT_NUMBER

pub fn ios_apps_list(&self, parent: &str) -> ProjectIosAppListCall<'a, C, A>[src]

Create a builder to help you perform the following task:

Lists each IosApp associated with the specified parent Project.

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 parent Project for which to list Apps, in the format:
    projects/PROJECT_NUMBER

pub fn get_analytics_details(
    &self,
    name: &str
) -> ProjectGetAnalyticsDetailCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Gets the Google Analytics details currently associated with a FirebaseProject.

If the FirebaseProject is not yet linked to Google Analytics, then the response to GetAnalyticsDetails is NOT_FOUND.

Arguments

  • name - The fully qualified resource name, in the format:
    projects/PROJECT_NUMBER/analyticsDetails

pub fn web_apps_patch(
    &self,
    request: WebApp,
    name: &str
) -> ProjectWebAppPatchCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Updates the attributes of the WebApp identified by the specified resource name.

Arguments

  • request - No description provided.
  • name - The fully qualified resource name of the App, for example:
    projects/projectId/webApps/appId

pub fn web_apps_list(&self, parent: &str) -> ProjectWebAppListCall<'a, C, A>[src]

Create a builder to help you perform the following task:

Lists each WebApp associated with the specified parent Project.

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 parent Project for which to list Apps, in the format:
    projects/PROJECT_NUMBER

pub fn add_google_analytics(
    &self,
    request: AddGoogleAnalyticsRequest,
    parent: &str
) -> ProjectAddGoogleAnalyticCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Links a 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 your `FirebaseProject`.
  • Specify an existing `analyticsPropertyId` to associate the property with your `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 your `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 Android Apps and iOS Apps.
  2. If no corresponding data streams are found for your Firebase Apps, new data streams are provisioned in the Google Analytics property for each of your 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 your Analytics property.
Learn more about the hierarchy and structure of Google Analytics accounts in the [Analytics documentation](https://support.google.com/analytics/answer/9303323).

The result of this call is an [`Operation`](../../v1beta1/operations). Poll the `Operation` to track the provisioning process by calling GetOperation until [`done`](../../v1beta1/operations#Operation.FIELDS.done) is `true`. When `done` is `true`, the `Operation` has either succeeded or failed. If the `Operation` succeeded, its [`response`](../../v1beta1/operations#Operation.FIELDS.response) is set to an AnalyticsDetails; if the `Operation` failed, its [`error`](../../v1beta1/operations#Operation.FIELDS.error) is set to a google.rpc.Status.

To call `AddGoogleAnalytics`, a member must be an Owner for the existing `FirebaseProject` and have the [`Edit` permission](https://support.google.com/analytics/answer/2884495) for the Google Analytics account.

If a `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`](../../v1beta1/projects/addFirebase).

Arguments

  • request - No description provided.
  • parent - The parent FirebaseProject to link to an existing Google Analytics account, in the format:
    projects/PROJECT_NUMBER

pub fn ios_apps_get(&self, name: &str) -> ProjectIosAppGetCall<'a, C, A>[src]

Create a builder to help you perform the following task:

Gets the IosApp identified by the specified resource name.

Arguments

  • name - The fully qualified resource name of the App, in the format: projects/PROJECT_NUMBER/iosApps/APP_ID
    As 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

pub fn web_apps_create(
    &self,
    request: WebApp,
    parent: &str
) -> ProjectWebAppCreateCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Requests that a new WebApp be created.

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 parent Project in which to create an App, in the format:
    projects/PROJECT_NUMBER

pub fn web_apps_get_config(
    &self,
    name: &str
) -> ProjectWebAppGetConfigCall<'a, C, A>
[src]

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 App configuration to download, in the format:
    projects/PROJECT_NUMBER/webApps/APP_ID/config
    As 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

pub fn android_apps_get_config(
    &self,
    name: &str
) -> ProjectAndroidAppGetConfigCall<'a, C, A>
[src]

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 App configuration to download, in the format:
    projects/PROJECT_NUMBER/androidApps/APP_ID/config
    As 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

pub fn available_locations_list(
    &self,
    parent: &str
) -> ProjectAvailableLocationListCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Returns a list of 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 project 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 PROJECT_NUMBER (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 Project for which to list GCP resource locations, in the format:
    projects/PROJECT_NUMBER
    If no project is specified (that is, projects/-), the returned list does not take into account org-specific or project-specific location restrictions.

pub fn ios_apps_create(
    &self,
    request: IosApp,
    parent: &str
) -> ProjectIosAppCreateCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Requests that a new IosApp be created.

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 parent Project in which to create an App, in the format:
    projects/PROJECT_NUMBER

pub fn android_apps_sha_delete(
    &self,
    name: &str
) -> ProjectAndroidAppShaDeleteCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Removes a SHA certificate from the specified AndroidApp.

Arguments

  • name - The fully qualified resource name of the sha-key, in the format:
    projects/PROJECT_NUMBER/androidApps/APP_ID/sha/SHA_ID
    You can obtain the full name from the response of ListShaCertificates or the original CreateShaCertificate.

pub fn web_apps_get(&self, name: &str) -> ProjectWebAppGetCall<'a, C, A>[src]

Create a builder to help you perform the following task:

Gets the WebApp identified by the specified resource name.

Arguments

  • name - The fully qualified resource name of the App, in the format:
    projects/PROJECT_NUMBER/webApps/APP_ID
    As 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

pub fn android_apps_sha_create(
    &self,
    request: ShaCertificate,
    parent: &str
) -> ProjectAndroidAppShaCreateCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Adds a SHA certificate to the specified AndroidApp.

Arguments

  • request - No description provided.
  • parent - The parent App to which a SHA certificate will be added, in the format:
    projects/PROJECT_NUMBER/androidApps/APP_ID
    As 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

pub fn patch(
    &self,
    request: FirebaseProject,
    name: &str
) -> ProjectPatchCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Updates the attributes of the FirebaseProject identified by the specified resource name.

All query parameters are required.

Arguments

  • request - No description provided.
  • name - The fully qualified resource name of the Project, in the format:
    projects/projectId

pub fn android_apps_create(
    &self,
    request: AndroidApp,
    parent: &str
) -> ProjectAndroidAppCreateCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Requests that a new AndroidApp be created.

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 parent Project in which to create an App, in the format:
    projects/PROJECT_NUMBER

pub fn get_admin_sdk_config(
    &self,
    name: &str
) -> ProjectGetAdminSdkConfigCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Gets the configuration artifact used by servers to simplify initialization.

Typically, this configuration is used with the Firebase Admin SDK initializeApp command.

Arguments

  • name - The fully qualified resource name of the Project, in the format:
    projects/PROJECT_NUMBER/adminSdkConfig

pub fn android_apps_list(
    &self,
    parent: &str
) -> ProjectAndroidAppListCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Lists each AndroidApp associated with the specified parent Project.

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 parent Project for which to list Apps, in the format:
    projects/PROJECT_NUMBER

pub fn ios_apps_get_config(
    &self,
    name: &str
) -> ProjectIosAppGetConfigCall<'a, C, A>
[src]

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_NUMBER/iosApps/APP_ID/config
    As 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

pub fn remove_analytics(
    &self,
    request: RemoveAnalyticsRequest,
    parent: &str
) -> ProjectRemoveAnalyticCall<'a, C, A>
[src]

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 member must be an Owner for the FirebaseProject.

Arguments

  • request - No description provided.
  • parent - The parent FirebaseProject to unlink from its Google Analytics account, in the format:
    projects/PROJECT_NUMBER

Trait Implementations

impl<'a, C, A> MethodsBuilder for ProjectMethods<'a, C, A>[src]

Auto Trait Implementations

impl<'a, C, A> !RefUnwindSafe for ProjectMethods<'a, C, A>

impl<'a, C, A> !Send for ProjectMethods<'a, C, A>

impl<'a, C, A> !Sync for ProjectMethods<'a, C, A>

impl<'a, C, A> Unpin for ProjectMethods<'a, C, A>

impl<'a, C, A> !UnwindSafe for ProjectMethods<'a, C, A>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any