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.key.Key`: add direct support for additional resource fields · Issue #313 · googleapis/google-cloud-python

storage.key.Key: add direct support for additional resource fields  #313

New issue
Copy link
New issue
Copy link
Closed
Closed
storage.key.Key: add direct support for additional resource fields #313
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 Object API resource representation defines a number of fields as "writable":

  • acl[]
  • cacheControl
  • contentDisposition
  • contentEncoding
  • contentLanguage
  • contentType
  • crc32c
  • md5Hash
  • metadata{}
  • name

Key.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.

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

  • componentCount
  • etag
  • generation
  • id
  • mediaLink
  • metageneration
  • owner{}
  • selfLink
  • size
  • storageClass
  • timeDeleted
  • updated

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. dhermes commented on Oct 29, 2014

    @dhermes
    dhermes
    on Oct 29, 2014
    Contributor
    More actions

    Is there some sort of existing implementation to compare against? I'm all for renaming the metadata dictionary as something else to clean up the namespace, but implementing all of these seems like it should be done carefully (hence learning from existing would be useful).

  3. tseaver commented on Oct 29, 2014

    @tseaver
    tseaver
    on Oct 29, 2014
    ContributorAuthor
    More actions

    I don't know about other implementations. This issue (and the parallel one for Bucket) are pointing out gaps where we don't fully expose the API. It would be fine for @silvolu to say, "don't worry about those gaps for M1".

  4. silvolu commented on Nov 3, 2014

    @silvolu
    silvolu
    on Nov 3, 2014
    Contributor
    More actions

    I think we should take action on both, but let's switch to apitools first, and then we'll get back to this issue.

  5. silvolu commented on Nov 4, 2014

    @silvolu
    silvolu
    on Nov 4, 2014
    Contributor
    More actions

    It's fine to do this now, see #343 (comment)

  6. tseaver
    closed this as completedin 8cd4c5eon Nov 7, 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

    feat: add api key support (#313)

    f154008

    feat: add api key support (#313)

    a271da8

    feat: add api key support (#313)

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

    feat: add api key support (#313)

    9a33180
  11. parthea
    added a commit that references this issue on Jun 4, 2023

    chore(deps): update dependency pytest to v7.2.0 (#313)

    6998821
  12. 32 remaining items

  13. parthea
    added 10 commits that reference this issue on Nov 24, 2025

    chore: [autoapprove] Update `black` and `isort` to latest versions (#313

    0d579d2

    chore(main): release 1.20.4 (#313)

    88fe639

    chore(python): disable dependency dashboard (#313)

    3a30f03

    chore(deps): bump jinja2 from 3.1.4 to 3.1.5 in /.kokoro (#313)

    cdfea0d

    chore(python): fix docs publish build (#313)

    1bb656c

    fix: resolve issues where pre-release versions of dependencies are in…

    c8d3e86

    fix: Change `if` condition typo in `_get_children_of_element()` (#313)

    932e0ba

    fix: Refactor page.py to improve performance and organization (#316)

    3ede3cb

    fix: correct migration doc (#313) (#317)

    df9d672

    _default.default() now handles ImportErrors for optional dependencies. (

    27b6656
  14. parthea
    added 5 commits that reference this issue on Mar 6, 2026

    django/DatabaseIntrospection: implement get_primary_key_column, get_r…

    efb7647

    django: set SchemaEditor.sql_create_fk = None

    3feb888

    chore(main): release 1.4.0 (#313)

    b91c504

    feat: add testing for Python 3.9, drop Python 3.5 (#313)

    9252c46

    feat: add support for low-cost instances (#313)

    bd6f1a1
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.