GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Support If*generation preconditions · Issue #127 · googleapis/python-storage

This repository was archived by the owner on Mar 31, 2026. It is now read-only.
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Support If*generation preconditions #127

Copy link
Copy link
Closed
Closed
Support If*generation preconditions#127
Copy link
Assignees
IlyaFaer
Labels
api: storageIssues related to the googleapis/python-storage API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Description

@frankyn
frankyn
opened on May 4, 2020
Issue body actions

@IlyaFaer has started on this work in the following PR's:
#122 (merged)
#123 (merged)
#130 (merged)
#141 (merged)

  • Bucket Delete: google.cloud.storage.bucket.Bucket.delete

    • ifMetagenerationMatch

    • ifMetagenerationNotMatch

  • Bucket Get: google.cloud.storage.client.Client.get_bucket

    • ifMetagenerationMatch

    • ifMetagenerationNotMatch

  • Bucket Get: google.cloud.storage.bucket.Bucket.reload

    • ifMetagenerationMatch

    • ifMetagenerationNotMatch

  • Bucket Get: google.cloud.storage.client.Client.lookup_bucket

    • ifMetagenerationMatch

    • ifMetagenerationNotMatch

  • Bucket Get: google.cloud.storage.bucket.Bucket.exists

    • ifMetagenerationMatch

    • ifMetagenerationNotMatch

  • Bucket Patch: google.cloud.storage.bucket.Bucket.patch

    • ifMetagenerationMatch

    • ifMetagenerationNotMatch

  • Bucket Update: google.cloud.storage.bucket.Bucket.update

    • ifMetagenerationMatch

    • ifMetagenerationNotMatch

  • Object Copy: google.cloud.storage.bucket.Bucket.copy_blob

    • ifGenerationMatch

    • ifGenerationNotMatch

    • ifMetagenerationMatch

    • ifMetagenerationNotMatch

    • ifSourceGenerationMatch

    • ifSourceGenerationNotMatch

    • ifSourceMetagenerationMatch

    • ifSourceMetagenerationNotMatch

  • Object Delete: google.cloud.storage.blob.Blob.delete

    • ifGenerationMatch

    • ifGenerationNotMatch

    • ifMetagenerationMatch

    • ifMetagenerationNotMatch

  • Object Delete: google.cloud.storage.bucket.Bucket.delete_blob

    • ifGenerationMatch

    • ifGenerationNotMatch

    • ifMetagenerationMatch

    • ifMetagenerationNotMatch

  • Object Get: google.cloud.storage.blob.Blob.reload

    • ifGenerationMatch

    • ifGenerationNotMatch

    • ifMetagenerationMatch

    • ifMetagenerationNotMatch

  • Object Get: google.cloud.storage.bucket.Bucket.get_blob

    • ifGenerationMatch

    • ifGenerationNotMatch

    • ifMetagenerationMatch

    • ifMetagenerationNotMatch

  • Object Get: google.cloud.storage.blob.Blob.download_as_string

    • ifGenerationMatch

    • ifGenerationNotMatch

    • ifMetagenerationMatch

    • ifMetagenerationNotMatch

  • Object Get: google.cloud.storage.blob.Blob.download_to_file

    • ifGenerationMatch

    • ifGenerationNotMatch

    • ifMetagenerationMatch

    • ifMetagenerationNotMatch

  • Object Get: google.cloud.storage.blob.Blob.download_to_filename

    • ifGenerationMatch

    • ifGenerationNotMatch

    • ifMetagenerationMatch

    • ifMetagenerationNotMatch

  • Object Get: google.cloud.storage.blob.Blob.exists

    • ifGenerationMatch

    • ifGenerationNotMatch

    • ifMetagenerationMatch

    • ifMetagenerationNotMatch

  • Object Patch: google.cloud.storage.blob.Blob.patch

    • ifGenerationMatch

    • ifGenerationNotMatch

    • ifMetagenerationMatch

    • ifMetagenerationNotMatch

  • Object Rewrite: google.cloud.storage.blob.Blob.rewrite

    • ifGenerationMatch

    • ifGenerationNotMatch

    • ifMetagenerationMatch

    • ifMetagenerationNotMatch

    • ifSourceGenerationMatch

    • ifSourceGenerationNotMatch

    • ifSourceMetagenerationMatch

    • ifSourceMetagenerationNotMatch

  • Object Rewrite: google.cloud.storage.blob.Blob.update_storage_class

    • ifGenerationMatch

    • ifGenerationNotMatch

    • ifMetagenerationMatch

    • ifMetagenerationNotMatch

    • ifSourceGenerationMatch

    • ifSourceGenerationNotMatch

    • ifSourceMetagenerationMatch

    • ifSourceMetagenerationNotMatch

  • Object Update: google.cloud.storage.blob.Blob.update

    • ifGenerationMatch

    • ifGenerationNotMatch

    • ifMetagenerationMatch

    • ifMetagenerationNotMatch

  • Object Compose: google.cloud.storage.blob.Blob.compose

    • ifGenerationMatch

    • ifMetagenerationMatch

    • List of Individual Object

      • "name": string,

      • "objectPreconditions":

        • "ifGenerationMatch": long
  • Object Copy/Delete: google.cloud.storage.bucket.Bucket.rename_blob

    • Copy

      • ifGenerationMatch

      • ifGenerationNotMatch

      • ifMetagenerationMatch

      • ifMetagenerationNotMatch

      • ifSourceGenerationMatch

      • ifSourceGenerationNotMatch

      • ifSourceMetagenerationMatch

      • ifSourceMetagenerationNotMatch

    • Delete

      • ifGenerationMatch

      • ifGenerationNotMatch

      • ifMetagenerationMatch

      • ifMetagenerationNotMatch

  • Object Delete: google.cloud.storage.bucket.Bucket.delete_blobs

    • (List of)

      • ifGenerationMatch

      • ifGenerationNotMatch

      • ifMetagenerationMatch

      • ifMetagenerationNotMatch

Activity

  1. frankyn
    added
    api: storageIssues related to the googleapis/python-storage API.
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    on May 4, 2020
  2. frankyn
    assigned
    IlyaFaer
    on May 4, 2020
  3. gcf-merge-on-green
    added a commit that references this issue on May 22, 2020

    feat: add Bucket.reload() and Bucket.update() wrappers to restrict ge…

    76dd9ac
  4. gcf-merge-on-green
    added a commit that references this issue on Jun 15, 2020

    feat: add if*generation*match args into Bucket.delete_blobs() (#130)

    5e60991
  5. IlyaFaer commented on Jun 16, 2020

    @IlyaFaer
    IlyaFaer
    on Jun 16, 2020
    More actions

    The feature was incorporated into all of the listed methods.

  6. IlyaFaer
    closed this as completedon Jun 16, 2020
  7. cojenco
    added 4 commits that reference this issue on Oct 13, 2021

    feat: add Bucket.reload() and Bucket.update() wrappers to restrict ge…

    7104f2a

    feat: add if*generation*match args into Bucket.delete_blobs() (googl…

    393c73c

    feat: add Bucket.reload() and Bucket.update() wrappers to restrict ge…

    e3ae721

    feat: add if*generation*match args into Bucket.delete_blobs() (googl…

    16a66bf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @IlyaFaer
    IlyaFaer

Labels

api: storageIssues related to the googleapis/python-storage API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.