on_object_list Event
Fires once for each object, object version, or multipart upload returned when listing such items.
Syntax
class GoogleStorageObjectListEventParams(object): @property def object_name() -> str: ... @property def last_modified() -> str: ... @property def size() -> int: ... @property def e_tag() -> str: ... @property def owner_id() -> str: ... @property def owner_name() -> str: ... @property def upload_id() -> str: ... @property def version_id() -> str: ... @property def latest_version() -> bool: ... @property def deleted() -> bool: ... # In class GoogleStorage: @property def on_object_list() -> Callable[[GoogleStorageObjectListEventParams], None]: ... @on_object_list.setter def on_object_list(event_hook: Callable[[GoogleStorageObjectListEventParams], None]) -> None: ...
Remarks
This event fires once for each object, or object version, returned when get_object_info, list_objects, or list_versions is called.
ObjectName reflects the name of the object.
LastModified reflects the last modified time of the object.
Size reflects the size, in bytes, of the object.
ETag reflects the object's ETag.
OwnerId and OwnerName reflect the Id and display name of the object's owner, respectively. Not applicable when get_object_info is called.
VersionId reflects the Id of the object version (note that the string null is a valid version Id). Only applicable when list_versions is called, or when get_object_info is called while version_id is non-empty; empty in all other cases.
LatestVersion indicates whether this is the latest object version. Only applicable when list_versions is called; True in all other cases.
Deleted indicates whether this object version was deleted or overwritten. Only applicable when list_versions is called; False in all other cases.