Struct google_firebasehosting1_beta1::SiteMethods[][src]

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

A builder providing access to all methods supported on site 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 yup_oauth2 as oauth2;
extern crate google_firebasehosting1_beta1 as firebasehosting1_beta1;
 
use std::default::Default;
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
use firebasehosting1_beta1::FirebaseHosting;
 
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 = FirebaseHosting::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 `domains_create(...)`, `domains_delete(...)`, `domains_get(...)`, `domains_list(...)`, `domains_update(...)`, `releases_create(...)`, `releases_list(...)`, `versions_create(...)`, `versions_delete(...)`, `versions_files_list(...)`, `versions_patch(...)` and `versions_populate_files(...)`
// to build up your call.
let rb = hub.sites();

Methods

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

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 parent to list files for, in the format: sites/site-name/versions/versionID

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.

Create a builder to help you perform the following task:

Lists the releases that have been created on the specified site.

Arguments

  • parent - Required. The parent for which to list files, in the format: sites/site-name

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 site.

Arguments

  • request - No description provided.
  • parent - The site that the release belongs to, in the format: sites/site-name

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

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

Create a builder to help you perform the following task:

Creates a new version for a site.

Arguments

  • request - No description provided.
  • parent - Required. The parent to create the version for, in the format: sites/site-name

Create a builder to help you perform the following task:

Updates the specified metadata for a version. Note that this method will fail with FAILED_PRECONDITION in the event of an invalid state transition. The only valid transition for a version is currently from a CREATED status to a FINALIZED status. Use DeleteVersion to set the status of a version to DELETED.

Arguments

  • request - No description provided.
  • name - The unique identifier for a version, in the format: sites/site-name/versions/versionID This name is provided in the response body when you call the CreateVersion endpoint.

Create a builder to help you perform the following task:

Adds content files to a version.

Arguments

  • request - No description provided.
  • parent - Required. The version to add files to, in the format: sites/site-name/versions/versionID

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.

Create a builder to help you perform the following task:

Deletes the specified version.

Arguments

  • name - Required. The name of the version to be deleted, in the format: sites/site-name/versions/versionID

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.

Trait Implementations

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

Auto Trait Implementations

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

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