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(previous_request, previous_response)

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 parent to list files for, in the format: sites/site-name /versions/versionID (required)
  pageSize: integer, The page size to return. Defaults to 1000.
  pageToken: string, The next_page_token from a previous request, if provided. This will be the encoded version of a firebase.hosting.proto.metadata.ListFilesPageToken.
  status: string, The type of files in the version that should be listed.
    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 path/hashes 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.
}
list_next(previous_request, previous_response)
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.