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 — `storage.bucket.Bucket`: add direct support for additional resource fields · Issue #314 · googleapis/google-cloud-python

storage.bucket.Bucket: add direct support for additional resource fields #314

New issue
Copy link
New issue
Copy link
Closed
Closed
storage.bucket.Bucket: add direct support for additional resource fields#314
Copy link
Assignees
tseaver
Labels
api: storageIssues related to the Cloud Storage API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
Milestone
Storage Stable

Description

@tseaver
tseaver
opened on Oct 29, 2014
Issue body actions

The Bucket API resource representation defines a number of fields as "writable", but which we don't already map:

  • cors[]
  • lifecycle{}
  • location
  • logging{}
  • versioning{}

The support for the website{} field is slightly odd (Bucket.configure_website / Bucket.disable_website), and should likely be normalized with support for the other fields.

Bucket.from_dict currently captures them all in the key's metadata attribute, but that name creates confusion with its metadata key (which stores application-defined key-value pairs).

I think it would be cleaner to map each the non-user-defined fields onto separate attributes, and propagate them to the server via the insert, and patch or update endpoints.

Bucket should also expose read-only properties for the non-writable resource fields not already mapped, and which aren't constants:

  • etag
  • id
  • metageneration
  • name
  • owner{}
  • projectNumber
  • selfLink
  • storageClass
  • timeCreated

Activity

Next
  1. tseaver
    added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    api: storageIssues related to the Cloud Storage API.
    on Oct 29, 2014
  2. tseaver commented on Oct 29, 2014

    @tseaver
    tseaver
    on Oct 29, 2014
    ContributorAuthor
    More actions

    Note that support for lifecycle{} allows for a natural solution to #162: buckets with no lifecycle{} defined just overwrite on uploads.

  3. tseaver commented on Oct 29, 2014

    @tseaver
    tseaver
    on Oct 29, 2014
    ContributorAuthor
    More actions

    See the lifecycle spec for notes on configuring a lifecycle policy.

  4. tseaver
    added a commit that references this issue on Nov 6, 2014

    Merge pull request #347 from tseaver/314-omnibus

    4a8f6b4
  5. tseaver commented on Nov 6, 2014

    @tseaver
    tseaver
    on Nov 6, 2014
    ContributorAuthor
    More actions

    Closed via #347.

  6. tseaver
    closed this as completedon Nov 6, 2014
  7. jgeewax
    modified the milestone: Storage Stable on Jan 30, 2015
  8. JustinBeckwith
    assigned
    tseaver
    on Feb 1, 2021
  9. atulep
    added 3 commits that reference this issue on Apr 3, 2023

    chore(main): release 2.13.0 (#314)

    c535525

    chore(main): release 2.13.0 (#314)

    1fa1135

    chore(main): release 2.13.0 (#314)

    d7fa8a8
  10. atulep
    added a commit that references this issue on Apr 18, 2023

    chore(main): release 2.13.0 (#314)

    7b32778
  11. parthea
    added a commit that references this issue on Jun 4, 2023

    chore(python): use ubuntu 22.04 in docs image (#314)

    a67192d
  12. 29 remaining items

  13. parthea
    added a commit that references this issue on Oct 22, 2023

    chore(main): release 2.13.0 (#314)

    c8b1df4
  14. parthea
    added a commit that references this issue on Aug 21, 2025

    chore(deps): update dependency google-auth to v2.2.1 (#314)

    e2e3325
  15. parthea
    added 2 commits that reference this issue on Sep 16, 2025

    chore(deps): update dependency google-auth to v2.2.1 (#314)

    01101bc

    ENH: restrict to Python 3.5 and higher in setup.py (#314)

    3be0be5
  16. parthea
    added 7 commits that reference this issue on Nov 22, 2025

    chore: upgrade gapic-generator-python to 0.46.3 (#314)

    093009a

    chore: release 2.3.0 (#314)

    ca47c24

    chore(python): exclude .github/workflows/unittest.yml in renovate con…

    00f52d9

    fix: regenerate pb2 file with grpcio-tools (#314)

    ae27b09

    chore(main): release 0.35.1 (#314)

    9cb4f60

    chore(main): release 0.13.4-alpha (#314)

    ffb64b7

    Release 1.6.1 (#314)

    752ca17
  17. parthea
    added a commit that references this issue on Mar 2, 2026

    fix: append existing headers in prepare_initiate_request (#314)

    5debec1
  18. parthea
    added 3 commits that reference this issue on Mar 9, 2026

    feat: feat: SQLAlchemy 2.0 support (#314)

    409ffad

    chore: release 1.33.0 (#314)

    867d64e

    fix: correctly set resume token when restarting streams (#314)

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

Metadata

Metadata

Assignees

  • @tseaver
    tseaver

Labels

api: storageIssues related to the Cloud Storage API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

    Milestone

    • Storage Stable

    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.