Skip to content

Clarify what "generation" does in the File.acl method #349

Description

@jgeewax

The docs mention that I can specify a generation property when adding an ACL, but doesn't give much background on how that works.

Could we add a real life example of when generation is used ? And a link to "learn more about object versioning" ?

References:

Activity

  1. ryanseys commented on Jan 18, 2015

    @ryanseys
    Contributor

    Isn't a description of the generation parameter seen here sufficient?

    Excerpt:

    @param {int=} options.generation - **File Objects Only** Select a specific revision of this file (as opposed to the latest version, the default).

    Or would you like a better-described code example?

  2. jgeewax commented on Jan 20, 2015

    @jgeewax
    ContributorAuthor

    I think that covers it if we're looking at the parameter, but since we're giving an example, we should include more detail:

    /*
     * For file ACL operations, you can also specify a `generation` property 
     * to control access on a specific revision of a file.
     */
  3. added this to the Storage Stable milestone on Feb 2, 2015
  4. added a commit that references this issue on Sep 16, 2022
  5. 33 remaining items

  6. added a commit that references this issue on Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

🚨This issue needs some love.api: storageIssues related to the Cloud Storage API.library: cloud-profilerIssues transferred from another repositorytriage meI really want to be triaged.

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions