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: No additional query parameters apply-able --> library feels very limiting · Issue #163 · googleapis/google-cloud-node

storage: No additional query parameters apply-able --> library feels very limiting #163

New issue
Copy link
New issue
Copy link
Closed
Closed
storage: No additional query parameters apply-able --> library feels very limiting#163
Copy link
Assignees
ryanseys
Labels
🚨This issue needs some love.api: storageIssues related to the Cloud Storage API.triage meI really want to be triaged.
Milestone
Storage Stable

Description

@ryanseys
ryanseys
opened on Sep 1, 2014
Issue body actions

Trying to upload a file with a predefinedAcl of 'publicRead' i.e. apply acl of allUsers = READABLE and owner has full access. This applies a simple query parameter to the request which we have no access to apply with the current library. I'm guessing this is by design but I can see a scenario in the future where a single developer is happily using this library and then wants to do something slightly outside the "norm" (where we decide what the norm is?) and therefore they can't use this library anymore to get the job done, so they abandon using this library. 😦

I mean, perhaps we could "open" this small functionality as:

bucket.write('filename.png', {
  data: data,
  metadata: {},
  public: true // will apply ?predefinedAcl=publicRead to URL
}, callback);

But the bigger question still remains:

How do we choose what to include and exclude from this library? Who decides what features exposed by the API make the cut in our library? Why would I ever choose to use gcloud in the first place if it's explicitly designed to leave out features that I don't know if I need to use yet?

Activity

Next
  1. stephenplusplus commented on Sep 1, 2014

    @stephenplusplus
    stephenplusplus
    on Sep 1, 2014
    Contributor
    More actions

    I'm guessing this is by design

    My guess would be we forgot 😊 Another guess, but I believe the goal is to provide 100% functionality, where we provide the easiest API possible to do the most common things, then allowing more verbose configuration objects where possible to handle not as common things.

  2. stephenplusplus commented on Sep 1, 2014

    @stephenplusplus
    stephenplusplus
    on Sep 1, 2014
    Contributor
    More actions

    As an example of more verbose configuration objects, here's what the write call could look like:

    bucket.write('filename.png', {
      data: data,
      metadata: {},
    
      query: {
        predefinedAcl: 'publicRead'
      },
    
      request: {
        acl: [],
        cacheControl: []
      }
    }, callback);

    (Maybe query makes more sense renamed to request and request makes more sense named as body?)

    Making a shortcut for public: true is nicer, however there are a lot of query options available when doing an insert. Favoring some by adding a shortcut could make our API confusing, but if it's common enough, I won't fight it.

    Also, on this topic, our storage API needs an update method.

  3. ryanseys commented on Sep 1, 2014

    @ryanseys
    ryanseys
    on Sep 1, 2014
    ContributorAuthor
    More actions

    So if we exposed this functionality, we effectively have the same thing as google-api-nodejs-client with storage.bucket.insert(). Only datastore, not storage, uses protobuf as well so we aren't even gaining a smaller request footprint.

    Seems datastore is where we are gaining the most help for developers with automatic transaction handling and protobuf support. Not sure how we gain much in this library for cloud storage compared to google-api-nodejs-client without sacrificing functionality.

    We should be designing a specification of what methods we want this library to expose to the developer and what the equivalent method(s) would be if they used a generated tool such as google-api-nodejs-client.

  4. stephenplusplus commented on Sep 1, 2014

    @stephenplusplus
    stephenplusplus
    on Sep 1, 2014
    Contributor
    More actions

    I'll step aside to let others answer how we are meant to "compete" with the api client.

    What I would consider a good goal for this client would be providing convenience methods, allowing access to underlying operations, while developing the app using maintainable, best practices, which will give us a platform to continue to grow, and add more features and optimizations going forward. This opens the doors for more contributions from users with use cases we haven't considered, and puts us in a better, focused OSS lifecycle.

    We're really just providing a facade for API calls, and I think we're doing a pretty good job of making it more usable than alternatives. Again, the areas we need to improve will likely become more clear once we release 1.0 and get user feedback.

  5. rakyll
    added this to the This milestone has been deleted milestone on Sep 2, 2014
  6. ryanseys
    modified the milestones: This milestone has been deleted, This milestone has been deleted on Sep 18, 2014
  7. stephenplusplus
    added
    opinions wanted
    on Sep 29, 2014
  8. jgeewax
    changed the title [-]No additional query parameters apply-able --> library feels very limiting[/-] [+]storage: No additional query parameters apply-able --> library feels very limiting[/+] on Oct 5, 2014
  9. ryanseys commented on Nov 2, 2014

    @ryanseys
    ryanseys
    on Nov 2, 2014
    ContributorAuthor
    More actions

    Predefined ACL support I believe is now working thanks to bucket#setMetadata but bucket ACL I don't believe is working yet (as defined by this resource and method) https://cloud.google.com/storage/docs/json_api/v1/bucketAccessControls/insert

  10. ryanseys commented on Nov 24, 2014

    @ryanseys
    ryanseys
    on Nov 24, 2014
    ContributorAuthor
    More actions

    This issue was pretty generic (my bad) but I'm going to close this now that ACL support has been merged into master in #304.

  11. ryanseys
    closed this as completedon Nov 24, 2014
  12. jgeewax
    added
    api: storageIssues related to the Cloud Storage API.
    on Feb 2, 2015
  13. 58 remaining items

  14. sofisl
    added a commit that references this issue on Feb 4, 2026

    fix(middleware): use bunyan log.child (#163)

    c277665
  15. GautamSharda
    added a commit that references this issue on Feb 5, 2026

    chore(deps): lock file maintenance (#163)

    b42e177
  16. GautamSharda
    added a commit that references this issue on Feb 23, 2026

    chore(deps): lock file maintenance (#163)

    d4f5f5a
  17. sofisl
    added 2 commits that reference this issue on Feb 24, 2026

    Fixing API documentation for 'id' (#163)

    f168f5e

    Fix stale test. (#163)

    b774ff3
  18. GautamSharda
    added a commit that references this issue on Feb 26, 2026

    chore(deps): lock file maintenance (#163)

    da7c10c
  19. sofisl
    added a commit that references this issue on Feb 26, 2026

    feature: commit timestamp (#163)

    5de0c24
  20. codyoss
    added a commit that references this issue on Mar 5, 2026

    build(tests): fix coveralls and enable build cop (#163)

    690dabb
  21. GautamSharda
    added a commit that references this issue on Mar 5, 2026

    chore(deps): lock file maintenance (#163)

    a5037f6
  22. sofisl
    added a commit that references this issue on Mar 5, 2026

    chore: update npm scripts and synth.py (#163)

    2bda264
  23. GautamSharda
    added 3 commits that reference this issue on Mar 12, 2026

    chore: regenerate synth.metadata (#163)

    93df834

    chore: regenerate synth.metadata (#163)

    5b6641b

    chore: Remove 'is' dependency (#270)

    da03eeb
  24. thiyaguk09
    added a commit that references this issue on Mar 18, 2026

    Fix stale test. (googleapis#163)

    9b5a970
  25. feywind
    added a commit that references this issue on Mar 27, 2026

    fix(deps): update dependency yargs to v11 (#163)

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

Metadata

Metadata

Assignees

  • @ryanseys
    ryanseys

Labels

🚨This issue needs some love.api: storageIssues related to the Cloud Storage API.triage meI really want to be triaged.

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.