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 FirebaseHosting hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_firebasehosting1_beta1 as firebasehosting1_beta1;
use firebasehosting1_beta1::{FirebaseHosting, 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 = FirebaseHosting::new(client, auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `operations_get(...)`, `sites_channels_create(...)`, `sites_channels_delete(...)`, `sites_channels_get(...)`, `sites_channels_list(...)`, `sites_channels_patch(...)`, `sites_channels_releases_create(...)`, `sites_channels_releases_get(...)`, `sites_channels_releases_list(...)`, `sites_create(...)`, `sites_custom_domains_create(...)`, `sites_custom_domains_delete(...)`, `sites_custom_domains_get(...)`, `sites_custom_domains_list(...)`, `sites_custom_domains_operations_get(...)`, `sites_custom_domains_operations_list(...)`, `sites_custom_domains_patch(...)`, `sites_custom_domains_undelete(...)`, `sites_delete(...)`, `sites_domains_create(...)`, `sites_domains_delete(...)`, `sites_domains_get(...)`, `sites_domains_list(...)`, `sites_domains_update(...)`, `sites_get(...)`, `sites_get_config(...)`, `sites_list(...)`, `sites_patch(...)`, `sites_releases_create(...)`, `sites_releases_get(...)`, `sites_releases_list(...)`, `sites_update_config(...)`, `sites_versions_clone(...)`, `sites_versions_create(...)`, `sites_versions_delete(...)`, `sites_versions_files_list(...)`, `sites_versions_get(...)`, `sites_versions_list(...)`, `sites_versions_patch(...)` and `sites_versions_populate_files(...)`
// 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 operations_get(&self, name: &str) -> ProjectOperationGetCall<'a, C>
pub fn operations_get(&self, name: &str) -> ProjectOperationGetCall<'a, C>
Create a builder to help you perform the following task:
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
§Arguments
name- The name of the operation resource.
Sourcepub fn sites_channels_releases_create(
&self,
request: Release,
parent: &str,
) -> ProjectSiteChannelReleaseCreateCall<'a, C>
pub fn sites_channels_releases_create( &self, request: Release, parent: &str, ) -> ProjectSiteChannelReleaseCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates a new release, which makes the content of the specified version actively display on the appropriate URL(s).
§Arguments
request- No description provided.parent- Required. The site or channel to which the release belongs, in either of the following formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID
Sourcepub fn sites_channels_releases_get(
&self,
name: &str,
) -> ProjectSiteChannelReleaseGetCall<'a, C>
pub fn sites_channels_releases_get( &self, name: &str, ) -> ProjectSiteChannelReleaseGetCall<'a, C>
Create a builder to help you perform the following task:
Gets the specified release for a site or channel. When used to get a release for a site, this can get releases for both the default live channel and any active preview channels for the specified site.
§Arguments
name- Required. The fully-qualified resource name for the Hosting release, in either of the following formats: - sites/SITE_ID/channels/CHANNEL_ID/releases/RELEASE_ID - sites/SITE_ID/releases/RELEASE_ID
Sourcepub fn sites_channels_releases_list(
&self,
parent: &str,
) -> ProjectSiteChannelReleaseListCall<'a, C>
pub fn sites_channels_releases_list( &self, parent: &str, ) -> ProjectSiteChannelReleaseListCall<'a, C>
Create a builder to help you perform the following task:
Lists the releases that have been created for the specified site or channel. When used to list releases for a site, this list includes releases for both the default live channel and any active preview channels for the specified site.
§Arguments
parent- Required. The site or channel for which to list releases, in either of the following formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID
Sourcepub fn sites_channels_create(
&self,
request: Channel,
parent: &str,
) -> ProjectSiteChannelCreateCall<'a, C>
pub fn sites_channels_create( &self, request: Channel, parent: &str, ) -> ProjectSiteChannelCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates a new channel in the specified site.
§Arguments
request- No description provided.parent- Required. The site in which to create this channel, in the format: sites/ SITE_ID
Sourcepub fn sites_channels_delete(
&self,
name: &str,
) -> ProjectSiteChannelDeleteCall<'a, C>
pub fn sites_channels_delete( &self, name: &str, ) -> ProjectSiteChannelDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes the specified channel of the specified site. The live channel cannot be deleted.
§Arguments
name- Required. The fully-qualified resource name for the channel, in the format: sites/SITE_ID/channels/CHANNEL_ID
Sourcepub fn sites_channels_get(&self, name: &str) -> ProjectSiteChannelGetCall<'a, C>
pub fn sites_channels_get(&self, name: &str) -> ProjectSiteChannelGetCall<'a, C>
Create a builder to help you perform the following task:
Retrieves information for the specified channel of the specified site.
§Arguments
name- Required. The fully-qualified resource name for the channel, in the format: sites/SITE_ID/channels/CHANNEL_ID
Sourcepub fn sites_channels_list(
&self,
parent: &str,
) -> ProjectSiteChannelListCall<'a, C>
pub fn sites_channels_list( &self, parent: &str, ) -> ProjectSiteChannelListCall<'a, C>
Create a builder to help you perform the following task:
Lists the channels for the specified site. All sites have a default live channel.
§Arguments
parent- Required. The site for which to list channels, in the format: sites/SITE_ID
Sourcepub fn sites_channels_patch(
&self,
request: Channel,
name: &str,
) -> ProjectSiteChannelPatchCall<'a, C>
pub fn sites_channels_patch( &self, request: Channel, name: &str, ) -> ProjectSiteChannelPatchCall<'a, C>
Create a builder to help you perform the following task:
Updates information for the specified channel of the specified site. Implicitly creates the channel if it doesn’t already exist.
§Arguments
request- No description provided.name- The fully-qualified resource name for the channel, in the format: sites/ SITE_ID/channels/CHANNEL_ID
Sourcepub fn sites_custom_domains_operations_get(
&self,
name: &str,
) -> ProjectSiteCustomDomainOperationGetCall<'a, C>
pub fn sites_custom_domains_operations_get( &self, name: &str, ) -> ProjectSiteCustomDomainOperationGetCall<'a, C>
Create a builder to help you perform the following task:
Gets the latest state of a long-running operation. Use this method to poll the operation result at intervals as recommended by the API service.
§Arguments
name- The name of the operation resource.
Sourcepub fn sites_custom_domains_operations_list(
&self,
name: &str,
) -> ProjectSiteCustomDomainOperationListCall<'a, C>
pub fn sites_custom_domains_operations_list( &self, name: &str, ) -> ProjectSiteCustomDomainOperationListCall<'a, C>
Create a builder to help you perform the following task:
Lists operations that match the specified filter in the request.
§Arguments
name- The name of the operation’s parent resource.
Sourcepub fn sites_custom_domains_create(
&self,
request: CustomDomain,
parent: &str,
) -> ProjectSiteCustomDomainCreateCall<'a, C>
pub fn sites_custom_domains_create( &self, request: CustomDomain, parent: &str, ) -> ProjectSiteCustomDomainCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates a CustomDomain.
§Arguments
request- No description provided.parent- Required. The custom domain’s parent, specifically a Firebase HostingSite.
Sourcepub fn sites_custom_domains_delete(
&self,
name: &str,
) -> ProjectSiteCustomDomainDeleteCall<'a, C>
pub fn sites_custom_domains_delete( &self, name: &str, ) -> ProjectSiteCustomDomainDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes the specified CustomDomain.
§Arguments
name- Required. The name of theCustomDomainto delete.
Sourcepub fn sites_custom_domains_get(
&self,
name: &str,
) -> ProjectSiteCustomDomainGetCall<'a, C>
pub fn sites_custom_domains_get( &self, name: &str, ) -> ProjectSiteCustomDomainGetCall<'a, C>
Create a builder to help you perform the following task:
Gets the specified CustomDomain.
§Arguments
name- Required. The name of theCustomDomainto get.
Sourcepub fn sites_custom_domains_list(
&self,
parent: &str,
) -> ProjectSiteCustomDomainListCall<'a, C>
pub fn sites_custom_domains_list( &self, parent: &str, ) -> ProjectSiteCustomDomainListCall<'a, C>
Create a builder to help you perform the following task:
Lists each CustomDomain associated with the specified parent Hosting site. Returns CustomDomains in a consistent, but undefined, order to facilitate pagination.
§Arguments
parent- Required. The Firebase HostingSitewithCustomDomainentities you’d like to list.
Sourcepub fn sites_custom_domains_patch(
&self,
request: CustomDomain,
name: &str,
) -> ProjectSiteCustomDomainPatchCall<'a, C>
pub fn sites_custom_domains_patch( &self, request: CustomDomain, name: &str, ) -> ProjectSiteCustomDomainPatchCall<'a, C>
Create a builder to help you perform the following task:
Updates the specified CustomDomain.
§Arguments
request- No description provided.name- Output only. The fully-qualified name of theCustomDomain.
Sourcepub fn sites_custom_domains_undelete(
&self,
request: UndeleteCustomDomainRequest,
name: &str,
) -> ProjectSiteCustomDomainUndeleteCall<'a, C>
pub fn sites_custom_domains_undelete( &self, request: UndeleteCustomDomainRequest, name: &str, ) -> ProjectSiteCustomDomainUndeleteCall<'a, C>
Create a builder to help you perform the following task:
Undeletes the specified CustomDomain if it has been soft-deleted. Hosting retains soft-deleted custom domains for around 30 days before permanently deleting them.
§Arguments
request- No description provided.name- Required. The name of theCustomDomainto delete.
Sourcepub fn sites_domains_create(
&self,
request: Domain,
parent: &str,
) -> ProjectSiteDomainCreateCall<'a, C>
pub fn sites_domains_create( &self, request: Domain, parent: &str, ) -> ProjectSiteDomainCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates a domain mapping on the specified site.
§Arguments
request- No description provided.parent- Required. The parent to create the domain association for, in the format: sites/site-name
Sourcepub fn sites_domains_delete(
&self,
name: &str,
) -> ProjectSiteDomainDeleteCall<'a, C>
pub fn sites_domains_delete( &self, name: &str, ) -> ProjectSiteDomainDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes the existing domain mapping on the specified site.
§Arguments
name- Required. The name of the domain association to delete.
Sourcepub fn sites_domains_get(&self, name: &str) -> ProjectSiteDomainGetCall<'a, C>
pub fn sites_domains_get(&self, name: &str) -> ProjectSiteDomainGetCall<'a, C>
Create a builder to help you perform the following task:
Gets a domain mapping on the specified site.
§Arguments
name- Required. The name of the domain configuration to get.
Sourcepub fn sites_domains_list(
&self,
parent: &str,
) -> ProjectSiteDomainListCall<'a, C>
pub fn sites_domains_list( &self, parent: &str, ) -> ProjectSiteDomainListCall<'a, C>
Create a builder to help you perform the following task:
Lists the domains for the specified site.
§Arguments
parent- Required. The parent for which to list domains, in the format: sites/ site-name
Sourcepub fn sites_domains_update(
&self,
request: Domain,
name: &str,
) -> ProjectSiteDomainUpdateCall<'a, C>
pub fn sites_domains_update( &self, request: Domain, name: &str, ) -> ProjectSiteDomainUpdateCall<'a, C>
Create a builder to help you perform the following task:
Updates the specified domain mapping, creating the mapping as if it does not exist.
§Arguments
request- No description provided.name- Required. The name of the domain association to update or create, if an association doesn’t already exist.
Sourcepub fn sites_releases_create(
&self,
request: Release,
parent: &str,
) -> ProjectSiteReleaseCreateCall<'a, C>
pub fn sites_releases_create( &self, request: Release, parent: &str, ) -> ProjectSiteReleaseCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates a new release, which makes the content of the specified version actively display on the appropriate URL(s).
§Arguments
request- No description provided.parent- Required. The site or channel to which the release belongs, in either of the following formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID
Sourcepub fn sites_releases_get(&self, name: &str) -> ProjectSiteReleaseGetCall<'a, C>
pub fn sites_releases_get(&self, name: &str) -> ProjectSiteReleaseGetCall<'a, C>
Create a builder to help you perform the following task:
Gets the specified release for a site or channel. When used to get a release for a site, this can get releases for both the default live channel and any active preview channels for the specified site.
§Arguments
name- Required. The fully-qualified resource name for the Hosting release, in either of the following formats: - sites/SITE_ID/channels/CHANNEL_ID/releases/RELEASE_ID - sites/SITE_ID/releases/RELEASE_ID
Sourcepub fn sites_releases_list(
&self,
parent: &str,
) -> ProjectSiteReleaseListCall<'a, C>
pub fn sites_releases_list( &self, parent: &str, ) -> ProjectSiteReleaseListCall<'a, C>
Create a builder to help you perform the following task:
Lists the releases that have been created for the specified site or channel. When used to list releases for a site, this list includes releases for both the default live channel and any active preview channels for the specified site.
§Arguments
parent- Required. The site or channel for which to list releases, in either of the following formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID
Sourcepub fn sites_versions_files_list(
&self,
parent: &str,
) -> ProjectSiteVersionFileListCall<'a, C>
pub fn sites_versions_files_list( &self, parent: &str, ) -> ProjectSiteVersionFileListCall<'a, C>
Create a builder to help you perform the following task:
Lists the remaining files to be uploaded for the specified version.
§Arguments
parent- Required. The version for which to list files, in the format: sites/SITE_ID /versions/VERSION_ID
Sourcepub fn sites_versions_clone(
&self,
request: CloneVersionRequest,
parent: &str,
) -> ProjectSiteVersionCloneCall<'a, C>
pub fn sites_versions_clone( &self, request: CloneVersionRequest, parent: &str, ) -> ProjectSiteVersionCloneCall<'a, C>
Create a builder to help you perform the following task:
Creates a new version on the specified target site using the content of the specified version.
§Arguments
request- No description provided.parent- Required. The target site for the cloned version, in the format: sites/ SITE_ID
Sourcepub fn sites_versions_create(
&self,
request: Version,
parent: &str,
) -> ProjectSiteVersionCreateCall<'a, C>
pub fn sites_versions_create( &self, request: Version, parent: &str, ) -> ProjectSiteVersionCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates a new version for the specified site.
§Arguments
request- No description provided.parent- Required. The site in which to create the version, in the format: sites/ SITE_ID
Sourcepub fn sites_versions_delete(
&self,
name: &str,
) -> ProjectSiteVersionDeleteCall<'a, C>
pub fn sites_versions_delete( &self, name: &str, ) -> ProjectSiteVersionDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes the specified version.
§Arguments
name- Required. The fully-qualified resource name for the version, in the format: sites/SITE_ID/versions/VERSION_ID
Sourcepub fn sites_versions_get(&self, name: &str) -> ProjectSiteVersionGetCall<'a, C>
pub fn sites_versions_get(&self, name: &str) -> ProjectSiteVersionGetCall<'a, C>
Create a builder to help you perform the following task:
Get the specified version that has been created for the specified site. This can include versions that were created for the default live channel or for any active preview channels for the specified site.
§Arguments
name- Required. The fully-qualified resource name for the version, in the format: sites/SITE_ID/versions/VERSION_ID
Sourcepub fn sites_versions_list(
&self,
parent: &str,
) -> ProjectSiteVersionListCall<'a, C>
pub fn sites_versions_list( &self, parent: &str, ) -> ProjectSiteVersionListCall<'a, C>
Create a builder to help you perform the following task:
Lists the versions that have been created for the specified site. This list includes versions for both the default live channel and any active preview channels for the specified site.
§Arguments
parent- Required. The site or channel for which to list versions, in either of the following formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID
Sourcepub fn sites_versions_patch(
&self,
request: Version,
name: &str,
) -> ProjectSiteVersionPatchCall<'a, C>
pub fn sites_versions_patch( &self, request: Version, name: &str, ) -> ProjectSiteVersionPatchCall<'a, C>
Create a builder to help you perform the following task:
Updates the specified metadata for the specified version. This method will fail with FAILED_PRECONDITION in the event of an invalid state transition. The supported state transitions for a version are from CREATED to FINALIZED. Use DeleteVersion to set the status of a version to DELETED.
§Arguments
request- No description provided.name- The fully-qualified resource name for the version, in the format: sites/ SITE_ID/versions/VERSION_ID This name is provided in the response body when you callCreateVersion.
Sourcepub fn sites_versions_populate_files(
&self,
request: PopulateVersionFilesRequest,
parent: &str,
) -> ProjectSiteVersionPopulateFileCall<'a, C>
pub fn sites_versions_populate_files( &self, request: PopulateVersionFilesRequest, parent: &str, ) -> ProjectSiteVersionPopulateFileCall<'a, C>
Create a builder to help you perform the following task:
Adds content files to the specified version. Each file must be under 2 GB.
§Arguments
request- No description provided.parent- Required. The version to which to add files, in the format: sites/SITE_ID /versions/VERSION_ID
Sourcepub fn sites_create(
&self,
request: Site,
parent: &str,
) -> ProjectSiteCreateCall<'a, C>
pub fn sites_create( &self, request: Site, parent: &str, ) -> ProjectSiteCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates a new Hosting Site in the specified parent Firebase project. Note that Hosting sites can take several minutes to propagate through Firebase systems.
§Arguments
request- No description provided.parent- Required. The Firebase project in which to create a Hosting site, in the format: projects/PROJECT_IDENTIFIER Refer to theSitenamefield for details about PROJECT_IDENTIFIER values.
Sourcepub fn sites_delete(&self, name: &str) -> ProjectSiteDeleteCall<'a, C>
pub fn sites_delete(&self, name: &str) -> ProjectSiteDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes the specified Hosting Site from the specified parent Firebase project.
§Arguments
name- Required. The fully-qualified resource name for the Hosting site, in the format: projects/PROJECT_IDENTIFIER/sites/SITE_ID Refer to theSitenamefield for details about PROJECT_IDENTIFIER values.
Sourcepub fn sites_get(&self, name: &str) -> ProjectSiteGetCall<'a, C>
pub fn sites_get(&self, name: &str) -> ProjectSiteGetCall<'a, C>
Create a builder to help you perform the following task:
Gets the specified Hosting Site.
§Arguments
name- Required. The fully-qualified resource name for the Hosting site, in the format: projects/PROJECT_IDENTIFIER/sites/SITE_ID Refer to theSitenamefield for details about PROJECT_IDENTIFIER values. Since a SITE_ID is a globally unique identifier, you can also use the unique sub-collection resource access pattern, in the format: projects/-/sites/SITE_ID
Sourcepub fn sites_get_config(&self, name: &str) -> ProjectSiteGetConfigCall<'a, C>
pub fn sites_get_config(&self, name: &str) -> ProjectSiteGetConfigCall<'a, C>
Create a builder to help you perform the following task:
Gets the Hosting metadata for a specific site.
§Arguments
name- Required. The site for which to get the SiteConfig, in the format: sites/ site-name/config
Sourcepub fn sites_list(&self, parent: &str) -> ProjectSiteListCall<'a, C>
pub fn sites_list(&self, parent: &str) -> ProjectSiteListCall<'a, C>
Create a builder to help you perform the following task:
Lists each Hosting Site associated with the specified parent Firebase project.
§Arguments
parent- Required. The Firebase project for which to list sites, in the format: projects/PROJECT_IDENTIFIER Refer to theSitenamefield for details about PROJECT_IDENTIFIER values.
Sourcepub fn sites_patch(
&self,
request: Site,
name: &str,
) -> ProjectSitePatchCall<'a, C>
pub fn sites_patch( &self, request: Site, name: &str, ) -> ProjectSitePatchCall<'a, C>
Create a builder to help you perform the following task:
Updates attributes of the specified Hosting Site.
§Arguments
request- No description provided.name- Output only. The fully-qualified resource name of the Hosting site, in the format: projects/PROJECT_IDENTIFIER/sites/SITE_ID PROJECT_IDENTIFIER: the Firebase project’sProjectNumber(recommended) or itsProjectId. Learn more about using project identifiers in Google’s AIP 2510 standard.
Sourcepub fn sites_update_config(
&self,
request: SiteConfig,
name: &str,
) -> ProjectSiteUpdateConfigCall<'a, C>
pub fn sites_update_config( &self, request: SiteConfig, name: &str, ) -> ProjectSiteUpdateConfigCall<'a, C>
Create a builder to help you perform the following task:
Sets the Hosting metadata for a specific site.
§Arguments
request- No description provided.name- Required. The site for which to update the SiteConfig, in the format: sites/ site-name/config
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