Firebase Hosting API . sites

Instance Methods

domains()

Returns the domains Resource.

releases()

Returns the releases Resource.

versions()

Returns the versions Resource.

getConfig(name, x__xgafv=None)

Gets the Hosting metadata for a specific site.

updateConfig(name, body, updateMask=None, x__xgafv=None)

Sets the Hosting metadata for a specific site.

Method Details

getConfig(name, x__xgafv=None)
Gets the Hosting metadata for a specific site.

Args:
  name: string, Required. The site for which to get the SiteConfig, in the format:
sites/site-name/config (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A `SiteConfig` contains metadata associated with a specific site that
        # controls Firebase Hosting serving behavior
      "maxVersions": "A String", # The number of FINALIZED versions that will be held for a site before
          # automatic deletion. When a new version is deployed, content for versions
          # in storage in excess of this number will be deleted, and will no longer be
          # billed for storage usage. Oldest versions will be deleted first; sites are
          # created with an unlimited number of max_versions by default.
    }
updateConfig(name, body, updateMask=None, x__xgafv=None)
Sets the Hosting metadata for a specific site.

Args:
  name: string, Required. The site for which to update the SiteConfig, in the format:
sites/site-name/config (required)
  body: object, The request body. (required)
    The object takes the form of:

{ # A `SiteConfig` contains metadata associated with a specific site that
      # controls Firebase Hosting serving behavior
    "maxVersions": "A String", # The number of FINALIZED versions that will be held for a site before
        # automatic deletion. When a new version is deployed, content for versions
        # in storage in excess of this number will be deleted, and will no longer be
        # billed for storage usage. Oldest versions will be deleted first; sites are
        # created with an unlimited number of max_versions by default.
  }

  updateMask: string, A set of field names from your [site configuration](../sites.SiteConfig)
that you want to update.

A field will be overwritten if, and only if, it's in the mask.
If a mask is not provided then a default mask of only [`max_versions`](../sites.SiteConfig.max_versions) will be used. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A `SiteConfig` contains metadata associated with a specific site that # controls Firebase Hosting serving behavior "maxVersions": "A String", # The number of FINALIZED versions that will be held for a site before # automatic deletion. When a new version is deployed, content for versions # in storage in excess of this number will be deleted, and will no longer be # billed for storage usage. Oldest versions will be deleted first; sites are # created with an unlimited number of max_versions by default. }