Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create functional class for DNS ChangeRequest #679

Closed
mziccard opened this issue Feb 27, 2016 · 9 comments
Closed

Create functional class for DNS ChangeRequest #679

mziccard opened this issue Feb 27, 2016 · 9 comments
Assignees
Labels
api: dns Issues related to the Cloud DNS API. type: question Request for information or clarification. Not an issue.

Comments

@mziccard
Copy link
Contributor

If this has been already discussed I am sorry for bringing it up again.

A DNS change request is now mapped using a single non-functional class ChangeRequest. I see a benefit in having a functional class for change requests as well. It would be cool to be able to write:

ChangeRequest change = dns.applyChangeRequest(ChangeRequestInfo.builder...);
while (!change. isDone()) {
  Thread.sleep (1000L);
}
// change request is DONE

In the same way we do for bigquery's jobs and as I plan to do with compute's operations. What do you think?

@mziccard mziccard added type: question Request for information or clarification. Not an issue. api: dns Issues related to the Cloud DNS API. labels Feb 27, 2016
@aozarov
Copy link
Contributor

aozarov commented Feb 27, 2016

We could (I do not object), however I think in this case it would be much less useful (at least for now) as:

  • The proposed ChangeRequest will not have any other additional methods other than isDone.
  • isDone is much less useful as, there are no obvious actions to take when true (as opposed to BigQuery that you may want to query after a successful upload job).
  • I could not find any time commitment/expectation for how long such operation may take.

@aozarov
Copy link
Contributor

aozarov commented Feb 27, 2016

I managed to find this for propagation time expectation: "You can use this command determine when your authoritative name server picks up your change, which should happen within 120 seconds"

@mziccard
Copy link
Contributor Author

We could add also reload but I agree that's almost the same as isDone in terms of usage.

You might be interested in the change to be completed to start redirecting traffic or start using records that the change request just created.

@mderka
Copy link

mderka commented Feb 29, 2016

I think this goes against our decision to make change request a zone-independent struct. Since changes always happen inside zones, you would need dns.applyChangeRequest(zone, ChangeRequestInfo.builder...); in which case you can right away query done on the zone object. Otherwise, we would need to equip ChangeRequest with zone reference.

@mziccard
Copy link
Contributor Author

Adding zone to ChangeRequest doesn't seem absurd to me. If you want to keep it independent from the user perspective the zone reference could be added as a private field in the functional object, without the user even knowing.

@mderka
Copy link

mderka commented Mar 1, 2016

As per my discussion with @aozarov, a suitable way of handling this would be treating ChangeRequestInfo as zone-independent struct and functional object having zone. We do see value in this, but we also agreed that there are more urgent things to handle. I am assigning this to myself and categorizing as "yes, do it if you have time at the end."

@mderka
Copy link

mderka commented Mar 25, 2016

Before closing this, add isDone() and reload().

@aozarov
Copy link
Contributor

aozarov commented Mar 30, 2016

Also, I find the ChangeRequest.applyTo method strange for various reasons:

  1. As user can't create ChangeRequest it means that it was returned by a get or list mehods and hence
    suggests that it was already applied, no?

  2. If we think there is a reason for re-applying it maybe it should be called reapply?

  3. If the intent was to apply it on a different zone (hence the name applyTo?) then we should pass a zone as an argument.

/cc @mziccard @mderka

@aozarov aozarov added this to the DNS Stable milestone Mar 30, 2016
@mderka
Copy link

mderka commented Apr 4, 2016

  1. Correct.
  2. No, the intention was (3).
  3. Correct. Changing the signature.

@mderka mderka closed this as completed Apr 4, 2016
github-actions bot pushed a commit that referenced this issue Jun 21, 2022
…onfig to v1.5.0 (#679)

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.4.0` -> `1.5.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.0/compatibility-slim/1.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.0/confidence-slim/1.4.0)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>googleapis/java-shared-config</summary>

### [`v1.5.0`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#&#8203;150-httpsgithubcomgoogleapisjava-shared-configcomparev140v150-2022-06-10)

[Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.4.0...v1.5.0)

##### Features

-   add build scripts for native image testing in Java 17 ([#&#8203;1440](https://togithub.com/googleapis/java-shared-config/issues/1440)) ([#&#8203;475](https://togithub.com/googleapis/java-shared-config/issues/475)) ([e4dfc1b](https://togithub.com/googleapis/java-shared-config/commit/e4dfc1ba29295158c78c8fcf94467d2a6a33538a))
-   to produce Java 8 compatible bytecode when using JDK 9+ ([2468276](https://togithub.com/googleapis/java-shared-config/commit/2468276145cdfe1ca911b52f765e026e77661a09))

##### Dependencies

-   update surefire.version to v3.0.0-m7 ([bbfe663](https://togithub.com/googleapis/java-shared-config/commit/bbfe66393af3e49612c9c1e4334ba39c133ea1d0))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-servicedirectory).
github-actions bot pushed a commit to suztomo/google-cloud-java that referenced this issue Jun 29, 2022
github-actions bot pushed a commit to suztomo/google-cloud-java that referenced this issue Jul 1, 2022
🤖 I have created a release *beep* *boop*
---


## [2.4.0](googleapis/java-bigqueryreservation@v2.3.1...v2.4.0) (2022-07-01)


### Features

* Enable REST transport for most of Java and Go clients ([googleapis#676](googleapis/java-bigqueryreservation#676)) ([099e250](googleapis/java-bigqueryreservation@099e250))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
github-actions bot pushed a commit to suztomo/google-cloud-java that referenced this issue Jul 1, 2022
🤖 I have created a release *beep* *boop*
---


### Updating meta-information for bleeding-edge SNAPSHOT release.

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
github-actions bot pushed a commit that referenced this issue Jul 6, 2022
🤖 I have created a release *beep* *boop*
---


## [2.3.0](googleapis/java-game-servers@v2.2.1...v2.3.0) (2022-07-01)


### Features

* Enable REST transport for most of Java and Go clients ([#676](googleapis/java-game-servers#676)) ([cb2d950](googleapis/java-game-servers@cb2d950))


### Bug Fixes

* update gapic-generator-java with mock service generation fixes ([#682](googleapis/java-game-servers#682)) ([c35eaca](googleapis/java-game-servers@c35eaca))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
github-actions bot pushed a commit that referenced this issue Jul 6, 2022
…onfig to v1.5.1 (#679)

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.5.0` -> `1.5.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.1/compatibility-slim/1.5.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.1/confidence-slim/1.5.0)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>googleapis/java-shared-config</summary>

### [`v1.5.1`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#&#8203;151-httpsgithubcomgoogleapisjava-shared-configcomparev150v151-2022-06-30)

[Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.5.0...v1.5.1)

##### Dependencies

-   update dependency org.graalvm.buildtools:junit-platform-native to v0.9.12 ([#&#8203;482](https://togithub.com/googleapis/java-shared-config/issues/482)) ([fbfc6dc](https://togithub.com/googleapis/java-shared-config/commit/fbfc6dc1329faaead3a3114c8599d9267722e7f0))
-   update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.12 ([#&#8203;483](https://togithub.com/googleapis/java-shared-config/issues/483)) ([336cb78](https://togithub.com/googleapis/java-shared-config/commit/336cb7827b36583228c9e2b85871ae72f4c55975))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-webrisk).
github-actions bot pushed a commit that referenced this issue Aug 9, 2022
…cies to v3.0.1 (#679)

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `3.0.0` -> `3.0.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.1/compatibility-slim/3.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.1/confidence-slim/3.0.0)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>googleapis/java-shared-dependencies</summary>

### [`v3.0.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#&#8203;301-httpsgithubcomgoogleapisjava-shared-dependenciescomparev300v301-2022-08-02)

[Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v3.0.0...v3.0.1)

##### Dependencies

-   update dependency com.google.code.gson:gson to v2.9.1 ([#&#8203;766](https://togithub.com/googleapis/java-shared-dependencies/issues/766)) ([f7b2b06](https://togithub.com/googleapis/java-shared-dependencies/commit/f7b2b06b80e3e95ff8ab9b1d6a2638ef3069298a))
-   update gax.version to v2.18.7 ([#&#8203;767](https://togithub.com/googleapis/java-shared-dependencies/issues/767)) ([9650368](https://togithub.com/googleapis/java-shared-dependencies/commit/96503682e98cdf348ea2c1365a03a60f4322c712))
-   update google.core.version to v2.8.6 ([#&#8203;770](https://togithub.com/googleapis/java-shared-dependencies/issues/770)) ([cfd4377](https://togithub.com/googleapis/java-shared-dependencies/commit/cfd4377dc178cebb4724065d55d185ce03988d55))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-mediatranslation).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xMzUuMSIsInVwZGF0ZWRJblZlciI6IjMyLjEzNS4xIn0=-->
github-actions bot pushed a commit that referenced this issue Aug 9, 2022
🤖 I have created a release *beep* *boop*
---


## [0.9.2](googleapis/java-mediatranslation@v0.9.1...v0.9.2) (2022-08-09)


### Dependencies

* update dependency com.google.cloud:google-cloud-shared-dependencies to v3 ([#676](googleapis/java-mediatranslation#676)) ([4aeaf7f](googleapis/java-mediatranslation@4aeaf7f))
* update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.1 ([#679](googleapis/java-mediatranslation#679)) ([47927af](googleapis/java-mediatranslation@47927af))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
github-actions bot pushed a commit that referenced this issue Aug 9, 2022
🤖 I have created a release *beep* *boop*
---


### Updating meta-information for bleeding-edge SNAPSHOT release.

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
suztomo pushed a commit that referenced this issue Feb 1, 2023
[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.api.grpc:grpc-google-iam-v1](https://togithub.com/googleapis/java-iam) | `1.3.2` -> `1.3.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.api.grpc:grpc-google-iam-v1/1.3.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.api.grpc:grpc-google-iam-v1/1.3.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.api.grpc:grpc-google-iam-v1/1.3.3/compatibility-slim/1.3.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.api.grpc:grpc-google-iam-v1/1.3.3/confidence-slim/1.3.2)](https://docs.renovatebot.com/merge-confidence/) |
| [com.google.api.grpc:proto-google-iam-v1](https://togithub.com/googleapis/java-iam) | `1.3.2` -> `1.3.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.api.grpc:proto-google-iam-v1/1.3.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.api.grpc:proto-google-iam-v1/1.3.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.api.grpc:proto-google-iam-v1/1.3.3/compatibility-slim/1.3.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.api.grpc:proto-google-iam-v1/1.3.3/confidence-slim/1.3.2)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>googleapis/java-iam</summary>

### [`v1.3.3`](https://togithub.com/googleapis/java-iam/blob/HEAD/CHANGELOG.md#&#8203;133-httpsgithubcomgoogleapisjava-iamcomparev132v133-2022-04-22)

[Compare Source](https://togithub.com/googleapis/java-iam/compare/v1.3.2...v1.3.3)

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-shared-dependencies).
suztomo pushed a commit that referenced this issue Feb 1, 2023
🤖 I have created a release *beep* *boop*
---


## [2.11.0](googleapis/java-shared-dependencies@v2.10.0...v2.11.0) (2022-05-18)


### Features

* next release from main branch is 2.11.0 ([#674](googleapis/java-shared-dependencies#674)) ([323a20c](googleapis/java-shared-dependencies@323a20c))


### Dependencies

* update dependency com.fasterxml.jackson:jackson-bom to v2.13.3 ([#689](googleapis/java-shared-dependencies#689)) ([1bcea0e](googleapis/java-shared-dependencies@1bcea0e))
* update dependency com.google.api-client:google-api-client-bom to v1.34.1 ([#685](googleapis/java-shared-dependencies#685)) ([82ea316](googleapis/java-shared-dependencies@82ea316))
* update dependency com.google.api:api-common to v2.2.0 ([#690](googleapis/java-shared-dependencies#690)) ([d5e8571](googleapis/java-shared-dependencies@d5e8571))
* update dependency com.google.auth:google-auth-library-bom to v1.7.0 ([#691](googleapis/java-shared-dependencies#691)) ([067f7b9](googleapis/java-shared-dependencies@067f7b9))
* update dependency com.google.errorprone:error_prone_annotations to v2.13.1 ([#672](googleapis/java-shared-dependencies#672)) ([11311c4](googleapis/java-shared-dependencies@11311c4))
* update dependency com.google.http-client:google-http-client-bom to v1.41.8 ([#684](googleapis/java-shared-dependencies#684)) ([5153a98](googleapis/java-shared-dependencies@5153a98))
* update dependency com.google.protobuf:protobuf-bom to v3.20.1 ([#678](googleapis/java-shared-dependencies#678)) ([3d3a224](googleapis/java-shared-dependencies@3d3a224))
* update dependency io.grpc:grpc-bom to v1.46.0 ([#680](googleapis/java-shared-dependencies#680)) ([00f5d4a](googleapis/java-shared-dependencies@00f5d4a))
* update dependency org.checkerframework:checker-qual to v3.22.0 ([#683](googleapis/java-shared-dependencies#683)) ([275a37e](googleapis/java-shared-dependencies@275a37e))
* update gax.version to v2.17.0 ([#687](googleapis/java-shared-dependencies#687)) ([4b65150](googleapis/java-shared-dependencies@4b65150))
* update gax.version to v2.18.0 ([#692](googleapis/java-shared-dependencies#692)) ([f18503f](googleapis/java-shared-dependencies@f18503f))
* update google.core.version to v2.6.1 ([#671](googleapis/java-shared-dependencies#671)) ([a1bb345](googleapis/java-shared-dependencies@a1bb345))
* update google.core.version to v2.7.0 ([#693](googleapis/java-shared-dependencies#693)) ([d3a6ece](googleapis/java-shared-dependencies@d3a6ece))
* update iam.version to v1.3.2 ([#673](googleapis/java-shared-dependencies#673)) ([9d01376](googleapis/java-shared-dependencies@9d01376))
* update iam.version to v1.3.3 ([#679](googleapis/java-shared-dependencies#679)) ([27ee2b3](googleapis/java-shared-dependencies@27ee2b3))
* update iam.version to v1.3.4 ([#686](googleapis/java-shared-dependencies#686)) ([b860caf](googleapis/java-shared-dependencies@b860caf))
* update opencensus.version to v0.31.1 ([#682](googleapis/java-shared-dependencies#682)) ([1d0832c](googleapis/java-shared-dependencies@1d0832c))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: dns Issues related to the Cloud DNS API. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

3 participants