Firebase Hosting API . sites . versions . files

Instance Methods

list(parent, status=None, pageSize=None, pageToken=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

list(parent, status=None, pageSize=None, pageToken=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:
<code>sites/<var>site-name</var>/versions/<var>versionID</var></code> (required)
  status: string, The type of files in the version that should be listed.
  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.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # The response when listing a Version's Files..
    "files": [ # The list path/hashes in the specified version.
      { # A static content file that is part of a version.
        "status": "A String", # Output only. The current status of a particular file in the specified
            # version.
            # <br>The value will be either `pending upload` or `uploaded`.
        "path": "A String", # The URI at which the file's content should display.
        "hash": "A String", # The SHA256 content hash of the file.
      },
    ],
    "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.