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 — Change TTL to accept unit · Issue #581 · googleapis/google-cloud-java

Change TTL to accept unit #581

New issue
Copy link
New issue
Copy link
Closed
Closed
Change TTL to accept unit#581
Copy link
Assignees
mderka
Labels
api: dnsIssues related to the Cloud DNS API.

Description

@mderka
mderka
opened on Jan 25, 2016
Issue body actions

As per suggestion of @jgeewax, change ttl in DnsRecord to accept duration as a number and TimeUnit. For an example, see e.g. here:

https://github.com/GoogleCloudPlatform/gcloud-java/blob/master/gcloud-java-storage/src/main/java/com/google/gcloud/storage/Storage.java#L1475

Activity

Next
  1. mderka
    added
    api: dnsIssues related to the Cloud DNS API.
    on Jan 25, 2016
  2. mderka
    self-assigned this
    on Jan 25, 2016
  3. jgeewax commented on Jan 26, 2016

    @jgeewax
    jgeewax
    on Jan 26, 2016
    More actions

    Cool - thanks for looking at this.

    I was thinking this might make more sense as taking a number (ie, 123 meaning "123 seconds") as well as a Duration (ie, Duration.ofSeconds(123) being "123 seconds").

    Does that make sense? @aozarov , @mziccard, thoughts ?

  4. mziccard commented on Jan 26, 2016

    @mziccard
    mziccard
    on Jan 26, 2016
    Contributor
    More actions

    If I am not mistaken Duration.ofSeconds is part of Java 8 and now we are sticking to java 7.

    As soon as we move to java 8 we should support Duration and all of java8's time support.

  5. mderka
    added 2 commits that reference this issue on Jan 28, 2016

    Modified ttl to accept time unit. Fixed googleapis#581.

    This issue will close once commit c364ff3 is merged into the 'master' branch.
    c364ff3

    Merge pull request #592 from mderka/dns-polishing

    This issue will close once commit a2fdb69 is merged into the 'main' branch.
    a2fdb69
  6. mderka
    closed this as completedon Jan 28, 2016
  7. mderka
    reopened this on Jan 28, 2016
  8. mderka commented on Jan 28, 2016

    @mderka
    mderka
    on Jan 28, 2016
    Author
    More actions

    So, for now we have the TimeUnit solution. Duration.ofSeconds should be implemented when moving to Java 8.

  9. mderka
    removed their assignment
    on Jan 28, 2016
  10. aozarov commented on Jan 29, 2016

    @aozarov
    aozarov
    on Jan 29, 2016
    Contributor
    More actions

    Right, I think #592 is the best we can do for now.

    We already have an open issue for changing our API on Java 8 (#108) and we can use that issue as
    a laundry list of things that we should change (including this one). In that case, I think we can close
    this issue.. @jgeewax ?

  11. jgeewax commented on Feb 3, 2016

    @jgeewax
    jgeewax
    on Feb 3, 2016
    More actions

    If it's covered by #108, then sure.

  12. mderka
    closed this as completedon Feb 3, 2016
  13. JustinBeckwith
    assigned
    mderka
    on Feb 1, 2021
  14. github-actions
    added a commit that references this issue on Jun 29, 2022

    feat!: release gapic-generator-java v2.0.0 (googleapis#581)

    d96a5b4
  15. 1 remaining item

  16. github-actions
    added 4 commits that reference this issue on Oct 5, 2022

    chore(main): release 0.14.8-SNAPSHOT (#581)

    991f9c2

    deps: update dependency com.google.cloud:google-cloud-storage to v2.1…

    55a12bb

    chore(main): release 2.5.2 (#582)

    252f94d

    chore(deps): update dependency com.google.cloud:libraries-bom to v26.…

    852bd4e
  17. suztomo
    added a commit that references this issue on Feb 1, 2023

    chore(main): release 2.0.0 (#739)

    ea9f421
  18. chingor13
    added a commit that references this issue on Jan 6, 2026

    chore(deps): update dependency com.google.cloud:google-cloud-logging-…

    5db3b48
  19. chingor13
    added a commit that references this issue on Feb 24, 2026

    test: adds integration tests for workload identity federation (#581)

    31ebe6e
  20. chingor13
    added a commit that references this issue on Mar 12, 2026

    test: adds integration tests for workload identity federation (#581)

    2df2dbf
  21. suztomo
    added a commit that references this issue on Mar 23, 2026

    chore(deps): update dependency com.google.cloud:libraries-bom to v22 (g…

    216bd0d
  22. suztomo
    added a commit that references this issue on Mar 30, 2026

    chore: regenerate README (#581)

    a5c5c5a
  23. lqiu96
    added a commit that references this issue on Apr 1, 2026

    chore: regenerate README (#581)

    7b36ad5
  24. meltsufin
    added 2 commits that reference this issue on Apr 29, 2026

    chore(java): detect sample-secrets in build.sh (#581)

    134273d

    chore(java): detect sample-secrets in build.sh (#581)

    e5ff518
  25. benjaminp
    added 2 commits that reference this issue on Jul 13, 2026

    fix: fix MetricTracerTest to rebase on head (googleapis#581)

    480c771

    chore(master): release 1.20.0 (googleapis#610)

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

Metadata

Metadata

Assignees

  • @mderka
    mderka

Labels

api: dnsIssues related to the Cloud DNS API.

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.