Firebase Hosting API . sites . versions . files

Instance Methods

close()

Close httplib2 connections.

list(parent, pageSize=None, pageToken=None, status=None, x__xgafv=None)

Lists the remaining files to be uploaded for the specified version.

list_next()

Retrieves the next page of results.

Method Details

close()
Close httplib2 connections.
list(parent, pageSize=None, pageToken=None, status=None, x__xgafv=None)
Lists the remaining files to be uploaded for the specified version.

Args:
  parent: string, Required. The version for which to list files, in the format: sites/SITE_ID /versions/VERSION_ID (required)
  pageSize: integer, The maximum number of version files to return. The service may return a lower number if fewer version files exist than this maximum number. If unspecified, defaults to 1000.
  pageToken: string, A token from a previous call to `ListVersionFiles` that tells the server where to resume listing.
  status: string,  The type of files that should be listed for the specified version.
    Allowed values
      STATUS_UNSPECIFIED - The default status; should not be intentionally used.
      EXPECTED - The file has been included in the version and is expected to be uploaded in the near future.
      ACTIVE - The file has already been uploaded to Firebase Hosting.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    {
  "files": [ #  The list of paths to the hashes of the files in the specified version.
    { # A static content file that is part of a version.
      "hash": "A String", # The SHA256 content hash of the file.
      "path": "A String", # The URI at which the file's content should display.
      "status": "A String", # Output only. The current status of a particular file in the specified version. The value will be either `pending upload` or `uploaded`.
    },
  ],
  "nextPageToken": "A String", # The pagination token, if more results exist beyond the ones in this response. Include this token in your next call to `ListVersionFiles`. Page tokens are short-lived and should not be stored.
}
list_next()
Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call 'execute()' on to request the next
          page. Returns None if there are no more items in the collection.