From 0578064a8849d47d87b3b7d30968acc6920cc9af Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 9 Aug 2022 05:30:23 +0000 Subject: [PATCH 1/8] chore(main): release 2.2.4-SNAPSHOT (#252) :robot: 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). --- google-cloud-dms-bom/pom.xml | 8 ++++---- google-cloud-dms/pom.xml | 4 ++-- grpc-google-cloud-dms-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dms-v1/pom.xml | 4 ++-- versions.txt | 6 +++--- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/google-cloud-dms-bom/pom.xml b/google-cloud-dms-bom/pom.xml index 4c65567a..71e4f97a 100644 --- a/google-cloud-dms-bom/pom.xml +++ b/google-cloud-dms-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dms-bom - 2.2.3 + 2.2.4-SNAPSHOT pom com.google.cloud @@ -56,17 +56,17 @@ com.google.cloud google-cloud-dms - 2.2.3 + 2.2.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-dms-v1 - 2.2.3 + 2.2.4-SNAPSHOT com.google.api.grpc proto-google-cloud-dms-v1 - 2.2.3 + 2.2.4-SNAPSHOT diff --git a/google-cloud-dms/pom.xml b/google-cloud-dms/pom.xml index 45f1dbde..7dfeded9 100644 --- a/google-cloud-dms/pom.xml +++ b/google-cloud-dms/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dms - 2.2.3 + 2.2.4-SNAPSHOT jar Google Database Migration Service https://github.com/googleapis/java-dms @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dms-parent - 2.2.3 + 2.2.4-SNAPSHOT google-cloud-dms diff --git a/grpc-google-cloud-dms-v1/pom.xml b/grpc-google-cloud-dms-v1/pom.xml index 41ae9f14..aa2e7809 100644 --- a/grpc-google-cloud-dms-v1/pom.xml +++ b/grpc-google-cloud-dms-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dms-v1 - 2.2.3 + 2.2.4-SNAPSHOT grpc-google-cloud-dms-v1 GRPC library for google-cloud-dms com.google.cloud google-cloud-dms-parent - 2.2.3 + 2.2.4-SNAPSHOT diff --git a/pom.xml b/pom.xml index de3c8ec2..2b88a225 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dms-parent pom - 2.2.3 + 2.2.4-SNAPSHOT Google Database Migration Service Parent https://github.com/googleapis/java-dms @@ -60,18 +60,18 @@ com.google.cloud google-cloud-dms - 2.2.3 + 2.2.4-SNAPSHOT com.google.api.grpc proto-google-cloud-dms-v1 - 2.2.3 + 2.2.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-dms-v1 - 2.2.3 + 2.2.4-SNAPSHOT com.google.cloud diff --git a/proto-google-cloud-dms-v1/pom.xml b/proto-google-cloud-dms-v1/pom.xml index 2f79e0f1..6c9b5b97 100644 --- a/proto-google-cloud-dms-v1/pom.xml +++ b/proto-google-cloud-dms-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dms-v1 - 2.2.3 + 2.2.4-SNAPSHOT proto-google-cloud-dms-v1 Proto library for google-cloud-dms com.google.cloud google-cloud-dms-parent - 2.2.3 + 2.2.4-SNAPSHOT diff --git a/versions.txt b/versions.txt index c869e7e9..4eca9856 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dms:2.2.3:2.2.3 -grpc-google-cloud-dms-v1:2.2.3:2.2.3 -proto-google-cloud-dms-v1:2.2.3:2.2.3 +google-cloud-dms:2.2.3:2.2.4-SNAPSHOT +grpc-google-cloud-dms-v1:2.2.3:2.2.4-SNAPSHOT +proto-google-cloud-dms-v1:2.2.3:2.2.4-SNAPSHOT From 70c41962baa3a61120d79d25962eb63642f6768b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 18 Aug 2022 15:34:25 +0200 Subject: [PATCH 2/8] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.4.1 (#255) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-project-info-reports-plugin](https://maven.apache.org/plugins/) | `3.4.0` -> `3.4.1` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.1/compatibility-slim/3.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.1/confidence-slim/3.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### 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**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- 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-dms). --- README.md | 6 +++--- pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 70db4f4a..a322e80e 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-dms - 2.2.1 + 2.2.3 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dms:2.2.1' +implementation 'com.google.cloud:google-cloud-dms:2.2.3' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.2.1" +libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.2.3" ``` ## Authentication diff --git a/pom.xml b/pom.xml index 2b88a225..4761a2a3 100644 --- a/pom.xml +++ b/pom.xml @@ -112,7 +112,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.4.0 + 3.4.1 From f229fae73ebafb8e94ad582814673aa22f60cad4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 18 Aug 2022 15:40:20 +0200 Subject: [PATCH 3/8] chore(deps): update dependency com.google.cloud:google-cloud-dms to v2.2.3 (#253) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![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-dms](https://togithub.com/googleapis/java-dms) | `2.2.1` -> `2.2.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dms/2.2.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dms/2.2.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dms/2.2.3/compatibility-slim/2.2.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dms/2.2.3/confidence-slim/2.2.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### 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**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- 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-dms). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index af37c2b3..13ffca2b 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dms - 2.2.1 + 2.2.3 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 1a3bb360..a7da09c1 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dms - 2.2.1 + 2.2.3 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 35d5cd10..0003cbaf 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dms - 2.2.1 + 2.2.3 From 11d48be6b9526ce8e95acf7665d46a6343fc06dc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 19 Aug 2022 21:02:13 +0200 Subject: [PATCH 4/8] build(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.4.1 (#254) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-javadoc-plugin](https://maven.apache.org/plugins/) ([source](https://togithub.com/apache/maven-javadoc-plugin)) | `3.4.0` -> `3.4.1` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.1/compatibility-slim/3.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.1/confidence-slim/3.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### 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**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- 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-dms). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 4761a2a3..08808565 100644 --- a/pom.xml +++ b/pom.xml @@ -139,7 +139,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 html From a04171a44a0dec87a05db3f9069c2ca8de76bc62 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 22 Aug 2022 14:18:54 +0000 Subject: [PATCH 5/8] chore: remove unused proto imports (#256) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 468735472 Source-Link: https://github.com/googleapis/googleapis/commit/cfa1b3782da7ccae31673d45401a0b79d2d4a84b Source-Link: https://github.com/googleapis/googleapis-gen/commit/09b7666656510f5b00b893f003a0ba5766f9e250 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDliNzY2NjY1NjUxMGY1YjAwYjg5M2YwMDNhMGJhNTc2NmY5ZTI1MCJ9 --- .../clouddms/v1/ClouddmsResourcesProto.java | 331 +++++++++--------- .../clouddms/v1/clouddms_resources.proto | 1 - .../SyncCreateSetCredentialsProvider.java | 42 +++ .../create/SyncCreateSetEndpoint.java | 39 +++ .../AsyncCreateConnectionProfile.java | 54 +++ .../AsyncCreateConnectionProfileLRO.java | 54 +++ .../SyncCreateConnectionProfile.java | 50 +++ ...ionprofilenameConnectionprofileString.java | 47 +++ ...nProfileStringConnectionprofileString.java | 46 +++ .../AsyncCreateMigrationJob.java | 52 +++ .../AsyncCreateMigrationJobLRO.java | 52 +++ .../SyncCreateMigrationJob.java | 47 +++ ...tionJobLocationnameMigrationjobString.java | 45 +++ ...eMigrationJobStringMigrationjobString.java | 45 +++ .../AsyncDeleteConnectionProfile.java | 52 +++ .../AsyncDeleteConnectionProfileLRO.java | 53 +++ .../SyncDeleteConnectionProfile.java | 48 +++ ...onnectionProfileConnectionprofilename.java | 41 +++ .../SyncDeleteConnectionProfileString.java | 41 +++ .../AsyncDeleteMigrationJob.java | 50 +++ .../AsyncDeleteMigrationJobLRO.java | 51 +++ .../SyncDeleteMigrationJob.java | 46 +++ ...yncDeleteMigrationJobMigrationjobname.java | 40 +++ .../SyncDeleteMigrationJobString.java | 40 +++ .../AsyncGenerateSshScript.java | 51 +++ .../SyncGenerateSshScript.java | 47 +++ .../AsyncGetConnectionProfile.java | 50 +++ .../SyncGetConnectionProfile.java | 46 +++ ...onnectionProfileConnectionprofilename.java | 41 +++ .../SyncGetConnectionProfileString.java | 41 +++ .../getmigrationjob/AsyncGetMigrationJob.java | 48 +++ .../getmigrationjob/SyncGetMigrationJob.java | 44 +++ .../SyncGetMigrationJobMigrationjobname.java | 40 +++ .../SyncGetMigrationJobString.java | 40 +++ .../AsyncListConnectionProfiles.java | 54 +++ .../AsyncListConnectionProfilesPaged.java | 62 ++++ .../SyncListConnectionProfiles.java | 51 +++ ...yncListConnectionProfilesLocationname.java | 43 +++ .../SyncListConnectionProfilesString.java | 43 +++ .../AsyncListMigrationJobs.java | 54 +++ .../AsyncListMigrationJobsPaged.java | 62 ++++ .../SyncListMigrationJobs.java | 51 +++ .../SyncListMigrationJobsLocationname.java | 43 +++ .../SyncListMigrationJobsString.java | 43 +++ .../AsyncPromoteMigrationJob.java | 48 +++ .../AsyncPromoteMigrationJobLRO.java | 49 +++ .../SyncPromoteMigrationJob.java | 44 +++ .../AsyncRestartMigrationJob.java | 48 +++ .../AsyncRestartMigrationJobLRO.java | 49 +++ .../SyncRestartMigrationJob.java | 44 +++ .../AsyncResumeMigrationJob.java | 48 +++ .../AsyncResumeMigrationJobLRO.java | 49 +++ .../SyncResumeMigrationJob.java | 44 +++ .../AsyncStartMigrationJob.java | 48 +++ .../AsyncStartMigrationJobLRO.java | 49 +++ .../SyncStartMigrationJob.java | 44 +++ .../AsyncStopMigrationJob.java | 48 +++ .../AsyncStopMigrationJobLRO.java | 49 +++ .../SyncStopMigrationJob.java | 44 +++ .../AsyncUpdateConnectionProfile.java | 51 +++ .../AsyncUpdateConnectionProfileLRO.java | 51 +++ .../SyncUpdateConnectionProfile.java | 47 +++ ...tionProfileConnectionprofileFieldmask.java | 44 +++ .../AsyncUpdateMigrationJob.java | 51 +++ .../AsyncUpdateMigrationJobLRO.java | 51 +++ .../SyncUpdateMigrationJob.java | 46 +++ ...dateMigrationJobMigrationjobFieldmask.java | 42 +++ .../AsyncVerifyMigrationJob.java | 48 +++ .../AsyncVerifyMigrationJobLRO.java | 49 +++ .../SyncVerifyMigrationJob.java | 44 +++ .../getmigrationjob/SyncGetMigrationJob.java | 47 +++ .../getmigrationjob/SyncGetMigrationJob.java | 47 +++ 72 files changed, 3476 insertions(+), 168 deletions(-) create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/AsyncCreateConnectionProfile.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/AsyncCreateConnectionProfileLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfile.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfileConnectionprofilenameConnectionprofileString.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/AsyncCreateMigrationJob.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/AsyncCreateMigrationJobLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJob.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJobLocationnameMigrationjobString.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJobStringMigrationjobString.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/AsyncDeleteConnectionProfile.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfile.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfileString.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/AsyncDeleteMigrationJob.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/AsyncDeleteMigrationJobLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJob.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJobMigrationjobname.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJobString.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/generatesshscript/AsyncGenerateSshScript.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/generatesshscript/SyncGenerateSshScript.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/AsyncGetConnectionProfile.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfile.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfileString.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/AsyncGetMigrationJob.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJob.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJobMigrationjobname.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJobString.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/AsyncListConnectionProfiles.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/AsyncListConnectionProfilesPaged.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfiles.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfilesLocationname.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfilesString.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/AsyncListMigrationJobs.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/AsyncListMigrationJobsPaged.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobs.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobsLocationname.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobsString.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/AsyncPromoteMigrationJob.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/AsyncPromoteMigrationJobLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/SyncPromoteMigrationJob.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/AsyncRestartMigrationJob.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/AsyncRestartMigrationJobLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/SyncRestartMigrationJob.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/AsyncResumeMigrationJob.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/AsyncResumeMigrationJobLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/SyncResumeMigrationJob.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/AsyncStartMigrationJob.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/AsyncStartMigrationJobLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/SyncStartMigrationJob.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/AsyncStopMigrationJob.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/AsyncStopMigrationJobLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/SyncStopMigrationJob.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/AsyncUpdateConnectionProfile.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/SyncUpdateConnectionProfile.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/AsyncUpdateMigrationJob.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/AsyncUpdateMigrationJobLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/SyncUpdateMigrationJob.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/SyncUpdateMigrationJobMigrationjobFieldmask.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/AsyncVerifyMigrationJob.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/AsyncVerifyMigrationJobLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/SyncVerifyMigrationJob.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservicesettings/getmigrationjob/SyncGetMigrationJob.java create mode 100644 samples/snippets/generated/com/google/cloud/clouddms/v1/stub/datamigrationservicestubsettings/getmigrationjob/SyncGetMigrationJob.java diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java index 15d628b1..fcb66291 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java @@ -114,173 +114,172 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "pi/resource.proto\032\036google/protobuf/durat" + "ion.proto\032\037google/protobuf/timestamp.pro" + "to\032\036google/protobuf/wrappers.proto\032\027goog" - + "le/rpc/status.proto\032\034google/api/annotati" - + "ons.proto\"\356\001\n\tSslConfig\022>\n\004type\030\001 \001(\0162+." - + "google.cloud.clouddms.v1.SslConfig.SslTy" - + "peB\003\340A\003\022\027\n\nclient_key\030\002 \001(\tB\003\340A\004\022\037\n\022clie" - + "nt_certificate\030\003 \001(\tB\003\340A\004\022\036\n\016ca_certific" - + "ate\030\004 \001(\tB\006\340A\004\340A\002\"G\n\007SslType\022\030\n\024SSL_TYPE" - + "_UNSPECIFIED\020\000\022\017\n\013SERVER_ONLY\020\001\022\021\n\rSERVE" - + "R_CLIENT\020\002\"\322\001\n\026MySqlConnectionProfile\022\021\n" - + "\004host\030\001 \001(\tB\003\340A\002\022\021\n\004port\030\002 \001(\005B\003\340A\002\022\025\n\010u" - + "sername\030\003 \001(\tB\003\340A\002\022\030\n\010password\030\004 \001(\tB\006\340A" - + "\004\340A\002\022\031\n\014password_set\030\005 \001(\010B\003\340A\003\0220\n\003ssl\030\006" - + " \001(\0132#.google.cloud.clouddms.v1.SslConfi" - + "g\022\024\n\014cloud_sql_id\030\007 \001(\t\"\327\001\n\033PostgreSqlCo" - + "nnectionProfile\022\021\n\004host\030\001 \001(\tB\003\340A\002\022\021\n\004po" - + "rt\030\002 \001(\005B\003\340A\002\022\025\n\010username\030\003 \001(\tB\003\340A\002\022\030\n\010" - + "password\030\004 \001(\tB\006\340A\004\340A\002\022\031\n\014password_set\030\005" - + " \001(\010B\003\340A\003\0220\n\003ssl\030\006 \001(\0132#.google.cloud.cl" - + "ouddms.v1.SslConfig\022\024\n\014cloud_sql_id\030\007 \001(" - + "\t\"\252\001\n\031CloudSqlConnectionProfile\022\031\n\014cloud" - + "_sql_id\030\001 \001(\tB\003\340A\003\022A\n\010settings\030\002 \001(\0132*.g" + + "le/rpc/status.proto\"\356\001\n\tSslConfig\022>\n\004typ" + + "e\030\001 \001(\0162+.google.cloud.clouddms.v1.SslCo" + + "nfig.SslTypeB\003\340A\003\022\027\n\nclient_key\030\002 \001(\tB\003\340" + + "A\004\022\037\n\022client_certificate\030\003 \001(\tB\003\340A\004\022\036\n\016c" + + "a_certificate\030\004 \001(\tB\006\340A\004\340A\002\"G\n\007SslType\022\030" + + "\n\024SSL_TYPE_UNSPECIFIED\020\000\022\017\n\013SERVER_ONLY\020" + + "\001\022\021\n\rSERVER_CLIENT\020\002\"\322\001\n\026MySqlConnection" + + "Profile\022\021\n\004host\030\001 \001(\tB\003\340A\002\022\021\n\004port\030\002 \001(\005" + + "B\003\340A\002\022\025\n\010username\030\003 \001(\tB\003\340A\002\022\030\n\010password" + + "\030\004 \001(\tB\006\340A\004\340A\002\022\031\n\014password_set\030\005 \001(\010B\003\340A" + + "\003\0220\n\003ssl\030\006 \001(\0132#.google.cloud.clouddms.v" + + "1.SslConfig\022\024\n\014cloud_sql_id\030\007 \001(\t\"\327\001\n\033Po" + + "stgreSqlConnectionProfile\022\021\n\004host\030\001 \001(\tB" + + "\003\340A\002\022\021\n\004port\030\002 \001(\005B\003\340A\002\022\025\n\010username\030\003 \001(" + + "\tB\003\340A\002\022\030\n\010password\030\004 \001(\tB\006\340A\004\340A\002\022\031\n\014pass" + + "word_set\030\005 \001(\010B\003\340A\003\0220\n\003ssl\030\006 \001(\0132#.googl" + + "e.cloud.clouddms.v1.SslConfig\022\024\n\014cloud_s" + + "ql_id\030\007 \001(\t\"\252\001\n\031CloudSqlConnectionProfil" + + "e\022\031\n\014cloud_sql_id\030\001 \001(\tB\003\340A\003\022A\n\010settings" + + "\030\002 \001(\0132*.google.cloud.clouddms.v1.CloudS" + + "qlSettingsB\003\340A\005\022\027\n\nprivate_ip\030\003 \001(\tB\003\340A\003" + + "\022\026\n\tpublic_ip\030\004 \001(\tB\003\340A\003\"\233\001\n\013SqlAclEntry" + + "\022\r\n\005value\030\001 \001(\t\0221\n\013expire_time\030\n \001(\0132\032.g" + + "oogle.protobuf.TimestampH\000\022-\n\003ttl\030\013 \001(\0132" + + "\031.google.protobuf.DurationB\003\340A\004H\000\022\r\n\005lab" + + "el\030\003 \001(\tB\014\n\nexpiration\"\314\001\n\013SqlIpConfig\022/" + + "\n\013enable_ipv4\030\001 \001(\0132\032.google.protobuf.Bo" + + "olValue\022\027\n\017private_network\030\002 \001(\t\022/\n\013requ" + + "ire_ssl\030\003 \001(\0132\032.google.protobuf.BoolValu" + + "e\022B\n\023authorized_networks\030\004 \003(\0132%.google." + + "cloud.clouddms.v1.SqlAclEntry\"\372\t\n\020CloudS" + + "qlSettings\022W\n\020database_version\030\001 \001(\0162=.g" + "oogle.cloud.clouddms.v1.CloudSqlSettings" - + "B\003\340A\005\022\027\n\nprivate_ip\030\003 \001(\tB\003\340A\003\022\026\n\tpublic" - + "_ip\030\004 \001(\tB\003\340A\003\"\233\001\n\013SqlAclEntry\022\r\n\005value\030" - + "\001 \001(\t\0221\n\013expire_time\030\n \001(\0132\032.google.prot" - + "obuf.TimestampH\000\022-\n\003ttl\030\013 \001(\0132\031.google.p" - + "rotobuf.DurationB\003\340A\004H\000\022\r\n\005label\030\003 \001(\tB\014" - + "\n\nexpiration\"\314\001\n\013SqlIpConfig\022/\n\013enable_i" - + "pv4\030\001 \001(\0132\032.google.protobuf.BoolValue\022\027\n" - + "\017private_network\030\002 \001(\t\022/\n\013require_ssl\030\003 " - + "\001(\0132\032.google.protobuf.BoolValue\022B\n\023autho" - + "rized_networks\030\004 \003(\0132%.google.cloud.clou" - + "ddms.v1.SqlAclEntry\"\372\t\n\020CloudSqlSettings" - + "\022W\n\020database_version\030\001 \001(\0162=.google.clou" - + "d.clouddms.v1.CloudSqlSettings.SqlDataba" - + "seVersion\022O\n\013user_labels\030\002 \003(\0132:.google." - + "cloud.clouddms.v1.CloudSqlSettings.UserL" - + "abelsEntry\022\014\n\004tier\030\003 \001(\t\022>\n\031storage_auto" - + "_resize_limit\030\004 \001(\0132\033.google.protobuf.In" - + "t64Value\022Y\n\021activation_policy\030\005 \001(\0162>.go" - + "ogle.cloud.clouddms.v1.CloudSqlSettings." - + "SqlActivationPolicy\0228\n\tip_config\030\006 \001(\0132%" - + ".google.cloud.clouddms.v1.SqlIpConfig\0229\n" - + "\025auto_storage_increase\030\007 \001(\0132\032.google.pr" - + "otobuf.BoolValue\022U\n\016database_flags\030\010 \003(\013" - + "2=.google.cloud.clouddms.v1.CloudSqlSett" - + "ings.DatabaseFlagsEntry\022R\n\016data_disk_typ" - + "e\030\t \001(\0162:.google.cloud.clouddms.v1.Cloud" - + "SqlSettings.SqlDataDiskType\0226\n\021data_disk" - + "_size_gb\030\n \001(\0132\033.google.protobuf.Int64Va" - + "lue\022\014\n\004zone\030\013 \001(\t\022\021\n\tsource_id\030\014 \001(\t\022\032\n\r" - + "root_password\030\r \001(\tB\003\340A\004\022\036\n\021root_passwor" - + "d_set\030\016 \001(\010B\003\340A\003\022\021\n\tcollation\030\017 \001(\t\0321\n\017U" - + "serLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001\0324\n\022DatabaseFlagsEntry\022\013\n\003key\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"S\n\023SqlActivationPol" - + "icy\022%\n!SQL_ACTIVATION_POLICY_UNSPECIFIED" - + "\020\000\022\n\n\006ALWAYS\020\001\022\t\n\005NEVER\020\002\"M\n\017SqlDataDisk" - + "Type\022\"\n\036SQL_DATA_DISK_TYPE_UNSPECIFIED\020\000" - + "\022\n\n\006PD_SSD\020\001\022\n\n\006PD_HDD\020\002\"\275\001\n\022SqlDatabase" - + "Version\022$\n SQL_DATABASE_VERSION_UNSPECIF" - + "IED\020\000\022\r\n\tMYSQL_5_6\020\001\022\r\n\tMYSQL_5_7\020\002\022\020\n\014P" - + "OSTGRES_9_6\020\003\022\017\n\013POSTGRES_11\020\004\022\017\n\013POSTGR" - + "ES_10\020\005\022\r\n\tMYSQL_8_0\020\006\022\017\n\013POSTGRES_12\020\007\022" - + "\017\n\013POSTGRES_13\020\010\"\026\n\024StaticIpConnectivity" - + "\"[\n\026ReverseSshConnectivity\022\022\n\005vm_ip\030\001 \001(" - + "\tB\003\340A\002\022\024\n\007vm_port\030\002 \001(\005B\003\340A\002\022\n\n\002vm\030\003 \001(\t" - + "\022\013\n\003vpc\030\004 \001(\t\"%\n\026VpcPeeringConnectivity\022" - + "\013\n\003vpc\030\001 \001(\t\"\206\001\n\014DatabaseType\022<\n\010provide" - + "r\030\001 \001(\0162*.google.cloud.clouddms.v1.Datab" - + "aseProvider\0228\n\006engine\030\002 \001(\0162(.google.clo" - + "ud.clouddms.v1.DatabaseEngine\"\354\014\n\014Migrat" - + "ionJob\022\014\n\004name\030\001 \001(\t\0224\n\013create_time\030\002 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" - + "date_time\030\003 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\022B\n\006labels\030\004 \003(\01322.google.cloud." - + "clouddms.v1.MigrationJob.LabelsEntry\022\024\n\014" - + "display_name\030\005 \001(\t\022;\n\005state\030\006 \001(\0162,.goog" - + "le.cloud.clouddms.v1.MigrationJob.State\022" - + "@\n\005phase\030\007 \001(\0162,.google.cloud.clouddms.v" - + "1.MigrationJob.PhaseB\003\340A\003\022>\n\004type\030\010 \001(\0162" - + "+.google.cloud.clouddms.v1.MigrationJob." - + "TypeB\003\340A\002\022\021\n\tdump_path\030\t \001(\t\022\023\n\006source\030\n" - + " \001(\tB\003\340A\002\022\030\n\013destination\030\013 \001(\tB\003\340A\002\022T\n\030r" - + "everse_ssh_connectivity\030e \001(\01320.google.c" - + "loud.clouddms.v1.ReverseSshConnectivityH" - + "\000\022T\n\030vpc_peering_connectivity\030f \001(\01320.go" - + "ogle.cloud.clouddms.v1.VpcPeeringConnect" - + "ivityH\000\022P\n\026static_ip_connectivity\030g \001(\0132" - + "..google.cloud.clouddms.v1.StaticIpConne" - + "ctivityH\000\0220\n\010duration\030\014 \001(\0132\031.google.pro" - + "tobuf.DurationB\003\340A\003\022&\n\005error\030\r \001(\0132\022.goo" - + "gle.rpc.StatusB\003\340A\003\022?\n\017source_database\030\016" + + ".SqlDatabaseVersion\022O\n\013user_labels\030\002 \003(\013" + + "2:.google.cloud.clouddms.v1.CloudSqlSett" + + "ings.UserLabelsEntry\022\014\n\004tier\030\003 \001(\t\022>\n\031st" + + "orage_auto_resize_limit\030\004 \001(\0132\033.google.p" + + "rotobuf.Int64Value\022Y\n\021activation_policy\030" + + "\005 \001(\0162>.google.cloud.clouddms.v1.CloudSq" + + "lSettings.SqlActivationPolicy\0228\n\tip_conf" + + "ig\030\006 \001(\0132%.google.cloud.clouddms.v1.SqlI" + + "pConfig\0229\n\025auto_storage_increase\030\007 \001(\0132\032" + + ".google.protobuf.BoolValue\022U\n\016database_f" + + "lags\030\010 \003(\0132=.google.cloud.clouddms.v1.Cl" + + "oudSqlSettings.DatabaseFlagsEntry\022R\n\016dat" + + "a_disk_type\030\t \001(\0162:.google.cloud.clouddm" + + "s.v1.CloudSqlSettings.SqlDataDiskType\0226\n" + + "\021data_disk_size_gb\030\n \001(\0132\033.google.protob" + + "uf.Int64Value\022\014\n\004zone\030\013 \001(\t\022\021\n\tsource_id" + + "\030\014 \001(\t\022\032\n\rroot_password\030\r \001(\tB\003\340A\004\022\036\n\021ro" + + "ot_password_set\030\016 \001(\010B\003\340A\003\022\021\n\tcollation\030" + + "\017 \001(\t\0321\n\017UserLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\0324\n\022DatabaseFlagsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"S\n\023SqlAct" + + "ivationPolicy\022%\n!SQL_ACTIVATION_POLICY_U" + + "NSPECIFIED\020\000\022\n\n\006ALWAYS\020\001\022\t\n\005NEVER\020\002\"M\n\017S" + + "qlDataDiskType\022\"\n\036SQL_DATA_DISK_TYPE_UNS" + + "PECIFIED\020\000\022\n\n\006PD_SSD\020\001\022\n\n\006PD_HDD\020\002\"\275\001\n\022S" + + "qlDatabaseVersion\022$\n SQL_DATABASE_VERSIO" + + "N_UNSPECIFIED\020\000\022\r\n\tMYSQL_5_6\020\001\022\r\n\tMYSQL_" + + "5_7\020\002\022\020\n\014POSTGRES_9_6\020\003\022\017\n\013POSTGRES_11\020\004" + + "\022\017\n\013POSTGRES_10\020\005\022\r\n\tMYSQL_8_0\020\006\022\017\n\013POST" + + "GRES_12\020\007\022\017\n\013POSTGRES_13\020\010\"\026\n\024StaticIpCo" + + "nnectivity\"[\n\026ReverseSshConnectivity\022\022\n\005" + + "vm_ip\030\001 \001(\tB\003\340A\002\022\024\n\007vm_port\030\002 \001(\005B\003\340A\002\022\n" + + "\n\002vm\030\003 \001(\t\022\013\n\003vpc\030\004 \001(\t\"%\n\026VpcPeeringCon" + + "nectivity\022\013\n\003vpc\030\001 \001(\t\"\206\001\n\014DatabaseType\022" + + "<\n\010provider\030\001 \001(\0162*.google.cloud.clouddm" + + "s.v1.DatabaseProvider\0228\n\006engine\030\002 \001(\0162(." + + "google.cloud.clouddms.v1.DatabaseEngine\"" + + "\354\014\n\014MigrationJob\022\014\n\004name\030\001 \001(\t\0224\n\013create" + + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022B\n\006labels\030\004 \003(\01322.goo" + + "gle.cloud.clouddms.v1.MigrationJob.Label" + + "sEntry\022\024\n\014display_name\030\005 \001(\t\022;\n\005state\030\006 " + + "\001(\0162,.google.cloud.clouddms.v1.Migration" + + "Job.State\022@\n\005phase\030\007 \001(\0162,.google.cloud." + + "clouddms.v1.MigrationJob.PhaseB\003\340A\003\022>\n\004t" + + "ype\030\010 \001(\0162+.google.cloud.clouddms.v1.Mig" + + "rationJob.TypeB\003\340A\002\022\021\n\tdump_path\030\t \001(\t\022\023" + + "\n\006source\030\n \001(\tB\003\340A\002\022\030\n\013destination\030\013 \001(\t" + + "B\003\340A\002\022T\n\030reverse_ssh_connectivity\030e \001(\0132" + + "0.google.cloud.clouddms.v1.ReverseSshCon" + + "nectivityH\000\022T\n\030vpc_peering_connectivity\030" + + "f \001(\01320.google.cloud.clouddms.v1.VpcPeer" + + "ingConnectivityH\000\022P\n\026static_ip_connectiv" + + "ity\030g \001(\0132..google.cloud.clouddms.v1.Sta" + + "ticIpConnectivityH\000\0220\n\010duration\030\014 \001(\0132\031." + + "google.protobuf.DurationB\003\340A\003\022&\n\005error\030\r" + + " \001(\0132\022.google.rpc.StatusB\003\340A\003\022?\n\017source_" + + "database\030\016 \001(\0132&.google.cloud.clouddms.v" + + "1.DatabaseType\022D\n\024destination_database\030\017" + " \001(\0132&.google.cloud.clouddms.v1.Database" - + "Type\022D\n\024destination_database\030\017 \001(\0132&.goo" - + "gle.cloud.clouddms.v1.DatabaseType\0221\n\010en" - + "d_time\030\020 \001(\0132\032.google.protobuf.Timestamp" - + "B\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\t:\0028\001\"\361\001\n\005State\022\025\n\021STATE_UNSPECIF" - + "IED\020\000\022\017\n\013MAINTENANCE\020\001\022\t\n\005DRAFT\020\002\022\014\n\010CRE" - + "ATING\020\003\022\017\n\013NOT_STARTED\020\004\022\013\n\007RUNNING\020\005\022\n\n" - + "\006FAILED\020\006\022\r\n\tCOMPLETED\020\007\022\014\n\010DELETING\020\010\022\014" - + "\n\010STOPPING\020\t\022\013\n\007STOPPED\020\n\022\013\n\007DELETED\020\013\022\014" - + "\n\010UPDATING\020\014\022\014\n\010STARTING\020\r\022\016\n\nRESTARTING" - + "\020\016\022\014\n\010RESUMING\020\017\"\216\001\n\005Phase\022\025\n\021PHASE_UNSP" - + "ECIFIED\020\000\022\r\n\tFULL_DUMP\020\001\022\007\n\003CDC\020\002\022\027\n\023PRO" - + "MOTE_IN_PROGRESS\020\003\022%\n!WAITING_FOR_SOURCE" - + "_WRITES_TO_STOP\020\004\022\026\n\022PREPARING_THE_DUMP\020" - + "\005\":\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\014\n\010ONE_T" - + "IME\020\001\022\016\n\nCONTINUOUS\020\002:u\352Ar\n)datamigratio" - + "n.googleapis.com/MigrationJob\022Eprojects/" - + "{project}/locations/{location}/migration" - + "Jobs/{migration_job}B\016\n\014connectivity\"\263\007\n" - + "\021ConnectionProfile\022\014\n\004name\030\001 \001(\t\0224\n\013crea" - + "te_time\030\002 \001(\0132\032.google.protobuf.Timestam" - + "pB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\022G\n\006labels\030\004 \003(\01327.g" - + "oogle.cloud.clouddms.v1.ConnectionProfil" - + "e.LabelsEntry\022@\n\005state\030\005 \001(\01621.google.cl" - + "oud.clouddms.v1.ConnectionProfile.State\022" - + "\024\n\014display_name\030\006 \001(\t\022A\n\005mysql\030d \001(\01320.g" - + "oogle.cloud.clouddms.v1.MySqlConnectionP" - + "rofileH\000\022K\n\npostgresql\030e \001(\01325.google.cl" - + "oud.clouddms.v1.PostgreSqlConnectionProf" - + "ileH\000\022G\n\010cloudsql\030f \001(\01323.google.cloud.c" - + "louddms.v1.CloudSqlConnectionProfileH\000\022&" - + "\n\005error\030\007 \001(\0132\022.google.rpc.StatusB\003\340A\003\022<" - + "\n\010provider\030\010 \001(\0162*.google.cloud.clouddms" - + ".v1.DatabaseProvider\032-\n\013LabelsEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"w\n\005State\022\025\n\021" - + "STATE_UNSPECIFIED\020\000\022\t\n\005DRAFT\020\001\022\014\n\010CREATI" - + "NG\020\002\022\t\n\005READY\020\003\022\014\n\010UPDATING\020\004\022\014\n\010DELETIN" - + "G\020\005\022\013\n\007DELETED\020\006\022\n\n\006FAILED\020\007:\205\001\352A\201\001\n.dat" - + "amigration.googleapis.com/ConnectionProf" - + "ile\022Oprojects/{project}/locations/{locat" - + "ion}/connectionProfiles/{connection_prof" - + "ile}B\024\n\022connection_profile\"\320\006\n\035Migration" - + "JobVerificationError\022Z\n\nerror_code\030\001 \001(\016" - + "2A.google.cloud.clouddms.v1.MigrationJob" - + "VerificationError.ErrorCodeB\003\340A\003\022\032\n\rerro" - + "r_message\030\002 \001(\tB\003\340A\003\022!\n\024error_detail_mes" - + "sage\030\003 \001(\tB\003\340A\003\"\223\005\n\tErrorCode\022\032\n\026ERROR_C" - + "ODE_UNSPECIFIED\020\000\022\026\n\022CONNECTION_FAILURE\020" - + "\001\022\032\n\026AUTHENTICATION_FAILURE\020\002\022%\n!INVALID" - + "_CONNECTION_PROFILE_CONFIG\020\003\022\033\n\027VERSION_" - + "INCOMPATIBILITY\020\004\022,\n(CONNECTION_PROFILE_" - + "TYPES_INCOMPATIBILITY\020\005\022\032\n\026NO_PGLOGICAL_" - + "INSTALLED\020\007\022!\n\035PGLOGICAL_NODE_ALREADY_EX" - + "ISTS\020\010\022\025\n\021INVALID_WAL_LEVEL\020\t\022\"\n\036INVALID" - + "_SHARED_PRELOAD_LIBRARY\020\n\022&\n\"INSUFFICIEN" - + "T_MAX_REPLICATION_SLOTS\020\013\022 \n\034INSUFFICIEN" - + "T_MAX_WAL_SENDERS\020\014\022%\n!INSUFFICIENT_MAX_" - + "WORKER_PROCESSES\020\r\022\032\n\026UNSUPPORTED_EXTENS" - + "IONS\020\016\022\036\n\032UNSUPPORTED_MIGRATION_TYPE\020\017\022#" - + "\n\037INVALID_RDS_LOGICAL_REPLICATION\020\020\022\031\n\025U" - + "NSUPPORTED_GTID_MODE\020\021\022 \n\034UNSUPPORTED_TA" - + "BLE_DEFINITION\020\022\022\027\n\023UNSUPPORTED_DEFINER\020" - + "\023\022\"\n\036CANT_RESTART_RUNNING_MIGRATION\020\025*L\n" - + "\016DatabaseEngine\022\037\n\033DATABASE_ENGINE_UNSPE" - + "CIFIED\020\000\022\t\n\005MYSQL\020\001\022\016\n\nPOSTGRESQL\020\002*L\n\020D" - + "atabaseProvider\022!\n\035DATABASE_PROVIDER_UNS" - + "PECIFIED\020\000\022\014\n\010CLOUDSQL\020\001\022\007\n\003RDS\020\002B\316\001\n\034co" - + "m.google.cloud.clouddms.v1B\026ClouddmsReso" - + "urcesProtoP\001Z@google.golang.org/genproto" - + "/googleapis/cloud/clouddms/v1;clouddms\252\002" - + "\030Google.Cloud.CloudDms.V1\312\002\030Google\\Cloud" - + "\\CloudDms\\V1\352\002\033Google::Cloud::CloudDMS::" - + "V1b\006proto3" + + "Type\0221\n\010end_time\030\020 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\361\001\n\005State\022\025\n\021STAT" + + "E_UNSPECIFIED\020\000\022\017\n\013MAINTENANCE\020\001\022\t\n\005DRAF" + + "T\020\002\022\014\n\010CREATING\020\003\022\017\n\013NOT_STARTED\020\004\022\013\n\007RU" + + "NNING\020\005\022\n\n\006FAILED\020\006\022\r\n\tCOMPLETED\020\007\022\014\n\010DE" + + "LETING\020\010\022\014\n\010STOPPING\020\t\022\013\n\007STOPPED\020\n\022\013\n\007D" + + "ELETED\020\013\022\014\n\010UPDATING\020\014\022\014\n\010STARTING\020\r\022\016\n\n" + + "RESTARTING\020\016\022\014\n\010RESUMING\020\017\"\216\001\n\005Phase\022\025\n\021" + + "PHASE_UNSPECIFIED\020\000\022\r\n\tFULL_DUMP\020\001\022\007\n\003CD" + + "C\020\002\022\027\n\023PROMOTE_IN_PROGRESS\020\003\022%\n!WAITING_" + + "FOR_SOURCE_WRITES_TO_STOP\020\004\022\026\n\022PREPARING" + + "_THE_DUMP\020\005\":\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020" + + "\000\022\014\n\010ONE_TIME\020\001\022\016\n\nCONTINUOUS\020\002:u\352Ar\n)da" + + "tamigration.googleapis.com/MigrationJob\022" + + "Eprojects/{project}/locations/{location}" + + "/migrationJobs/{migration_job}B\016\n\014connec" + + "tivity\"\263\007\n\021ConnectionProfile\022\014\n\004name\030\001 \001" + + "(\t\0224\n\013create_time\030\002 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\022G\n\006labels" + + "\030\004 \003(\01327.google.cloud.clouddms.v1.Connec" + + "tionProfile.LabelsEntry\022@\n\005state\030\005 \001(\01621" + + ".google.cloud.clouddms.v1.ConnectionProf" + + "ile.State\022\024\n\014display_name\030\006 \001(\t\022A\n\005mysql" + + "\030d \001(\01320.google.cloud.clouddms.v1.MySqlC" + + "onnectionProfileH\000\022K\n\npostgresql\030e \001(\01325" + + ".google.cloud.clouddms.v1.PostgreSqlConn" + + "ectionProfileH\000\022G\n\010cloudsql\030f \001(\01323.goog" + + "le.cloud.clouddms.v1.CloudSqlConnectionP" + + "rofileH\000\022&\n\005error\030\007 \001(\0132\022.google.rpc.Sta" + + "tusB\003\340A\003\022<\n\010provider\030\010 \001(\0162*.google.clou" + + "d.clouddms.v1.DatabaseProvider\032-\n\013Labels" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"w\n" + + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n\005DRAFT\020\001" + + "\022\014\n\010CREATING\020\002\022\t\n\005READY\020\003\022\014\n\010UPDATING\020\004\022" + + "\014\n\010DELETING\020\005\022\013\n\007DELETED\020\006\022\n\n\006FAILED\020\007:\205" + + "\001\352A\201\001\n.datamigration.googleapis.com/Conn" + + "ectionProfile\022Oprojects/{project}/locati" + + "ons/{location}/connectionProfiles/{conne" + + "ction_profile}B\024\n\022connection_profile\"\320\006\n" + + "\035MigrationJobVerificationError\022Z\n\nerror_" + + "code\030\001 \001(\0162A.google.cloud.clouddms.v1.Mi" + + "grationJobVerificationError.ErrorCodeB\003\340" + + "A\003\022\032\n\rerror_message\030\002 \001(\tB\003\340A\003\022!\n\024error_" + + "detail_message\030\003 \001(\tB\003\340A\003\"\223\005\n\tErrorCode\022" + + "\032\n\026ERROR_CODE_UNSPECIFIED\020\000\022\026\n\022CONNECTIO" + + "N_FAILURE\020\001\022\032\n\026AUTHENTICATION_FAILURE\020\002\022" + + "%\n!INVALID_CONNECTION_PROFILE_CONFIG\020\003\022\033" + + "\n\027VERSION_INCOMPATIBILITY\020\004\022,\n(CONNECTIO" + + "N_PROFILE_TYPES_INCOMPATIBILITY\020\005\022\032\n\026NO_" + + "PGLOGICAL_INSTALLED\020\007\022!\n\035PGLOGICAL_NODE_" + + "ALREADY_EXISTS\020\010\022\025\n\021INVALID_WAL_LEVEL\020\t\022" + + "\"\n\036INVALID_SHARED_PRELOAD_LIBRARY\020\n\022&\n\"I" + + "NSUFFICIENT_MAX_REPLICATION_SLOTS\020\013\022 \n\034I" + + "NSUFFICIENT_MAX_WAL_SENDERS\020\014\022%\n!INSUFFI" + + "CIENT_MAX_WORKER_PROCESSES\020\r\022\032\n\026UNSUPPOR" + + "TED_EXTENSIONS\020\016\022\036\n\032UNSUPPORTED_MIGRATIO" + + "N_TYPE\020\017\022#\n\037INVALID_RDS_LOGICAL_REPLICAT" + + "ION\020\020\022\031\n\025UNSUPPORTED_GTID_MODE\020\021\022 \n\034UNSU" + + "PPORTED_TABLE_DEFINITION\020\022\022\027\n\023UNSUPPORTE" + + "D_DEFINER\020\023\022\"\n\036CANT_RESTART_RUNNING_MIGR" + + "ATION\020\025*L\n\016DatabaseEngine\022\037\n\033DATABASE_EN" + + "GINE_UNSPECIFIED\020\000\022\t\n\005MYSQL\020\001\022\016\n\nPOSTGRE" + + "SQL\020\002*L\n\020DatabaseProvider\022!\n\035DATABASE_PR" + + "OVIDER_UNSPECIFIED\020\000\022\014\n\010CLOUDSQL\020\001\022\007\n\003RD" + + "S\020\002B\316\001\n\034com.google.cloud.clouddms.v1B\026Cl" + + "ouddmsResourcesProtoP\001Z@google.golang.or" + + "g/genproto/googleapis/cloud/clouddms/v1;" + + "clouddms\252\002\030Google.Cloud.CloudDms.V1\312\002\030Go" + + "ogle\\Cloud\\CloudDms\\V1\352\002\033Google::Cloud::" + + "CloudDMS::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -292,7 +291,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.TimestampProto.getDescriptor(), com.google.protobuf.WrappersProto.getDescriptor(), com.google.rpc.StatusProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), }); internal_static_google_cloud_clouddms_v1_SslConfig_descriptor = getDescriptor().getMessageTypes().get(0); @@ -498,7 +496,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.WrappersProto.getDescriptor(); com.google.rpc.StatusProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms_resources.proto b/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms_resources.proto index 1032e18a..dd7731a6 100644 --- a/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms_resources.proto +++ b/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms_resources.proto @@ -22,7 +22,6 @@ import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; import "google/protobuf/wrappers.proto"; import "google/rpc/status.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.CloudDms.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/clouddms/v1;clouddms"; diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 00000000..24ea866d --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.DataMigrationServiceSettings; +import com.google.cloud.clouddms.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + DataMigrationServiceSettings dataMigrationServiceSettings = + DataMigrationServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create(dataMigrationServiceSettings); + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_create_setcredentialsprovider_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 00000000..08a82e8a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_create_setendpoint_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.DataMigrationServiceSettings; +import com.google.cloud.clouddms.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + DataMigrationServiceSettings dataMigrationServiceSettings = + DataMigrationServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create(dataMigrationServiceSettings); + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_create_setendpoint_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/AsyncCreateConnectionProfile.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/AsyncCreateConnectionProfile.java new file mode 100644 index 00000000..9ad46e33 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/AsyncCreateConnectionProfile.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_createconnectionprofile_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.ConnectionProfile; +import com.google.cloud.clouddms.v1.ConnectionProfileName; +import com.google.cloud.clouddms.v1.CreateConnectionProfileRequest; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.longrunning.Operation; + +public class AsyncCreateConnectionProfile { + + public static void main(String[] args) throws Exception { + asyncCreateConnectionProfile(); + } + + public static void asyncCreateConnectionProfile() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + CreateConnectionProfileRequest request = + CreateConnectionProfileRequest.newBuilder() + .setParent( + ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]") + .toString()) + .setConnectionProfileId("connectionProfileId597575526") + .setConnectionProfile(ConnectionProfile.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + dataMigrationServiceClient.createConnectionProfileCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_createconnectionprofile_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/AsyncCreateConnectionProfileLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/AsyncCreateConnectionProfileLRO.java new file mode 100644 index 00000000..0a7fd4d2 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/AsyncCreateConnectionProfileLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_createconnectionprofile_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.clouddms.v1.ConnectionProfile; +import com.google.cloud.clouddms.v1.ConnectionProfileName; +import com.google.cloud.clouddms.v1.CreateConnectionProfileRequest; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.OperationMetadata; + +public class AsyncCreateConnectionProfileLRO { + + public static void main(String[] args) throws Exception { + asyncCreateConnectionProfileLRO(); + } + + public static void asyncCreateConnectionProfileLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + CreateConnectionProfileRequest request = + CreateConnectionProfileRequest.newBuilder() + .setParent( + ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]") + .toString()) + .setConnectionProfileId("connectionProfileId597575526") + .setConnectionProfile(ConnectionProfile.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + dataMigrationServiceClient.createConnectionProfileOperationCallable().futureCall(request); + // Do something. + ConnectionProfile response = future.get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_createconnectionprofile_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfile.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfile.java new file mode 100644 index 00000000..a1f9dd75 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfile.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_createconnectionprofile_sync] +import com.google.cloud.clouddms.v1.ConnectionProfile; +import com.google.cloud.clouddms.v1.ConnectionProfileName; +import com.google.cloud.clouddms.v1.CreateConnectionProfileRequest; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; + +public class SyncCreateConnectionProfile { + + public static void main(String[] args) throws Exception { + syncCreateConnectionProfile(); + } + + public static void syncCreateConnectionProfile() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + CreateConnectionProfileRequest request = + CreateConnectionProfileRequest.newBuilder() + .setParent( + ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]") + .toString()) + .setConnectionProfileId("connectionProfileId597575526") + .setConnectionProfile(ConnectionProfile.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ConnectionProfile response = + dataMigrationServiceClient.createConnectionProfileAsync(request).get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_createconnectionprofile_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfileConnectionprofilenameConnectionprofileString.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfileConnectionprofilenameConnectionprofileString.java new file mode 100644 index 00000000..777e1b52 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfileConnectionprofilenameConnectionprofileString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_createconnectionprofile_connectionprofilenameconnectionprofilestring_sync] +import com.google.cloud.clouddms.v1.ConnectionProfile; +import com.google.cloud.clouddms.v1.ConnectionProfileName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; + +public class SyncCreateConnectionProfileConnectionprofilenameConnectionprofileString { + + public static void main(String[] args) throws Exception { + syncCreateConnectionProfileConnectionprofilenameConnectionprofileString(); + } + + public static void syncCreateConnectionProfileConnectionprofilenameConnectionprofileString() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ConnectionProfileName parent = + ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]"); + ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build(); + String connectionProfileId = "connectionProfileId597575526"; + ConnectionProfile response = + dataMigrationServiceClient + .createConnectionProfileAsync(parent, connectionProfile, connectionProfileId) + .get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_createconnectionprofile_connectionprofilenameconnectionprofilestring_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java new file mode 100644 index 00000000..82ad8070 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_createconnectionprofile_stringconnectionprofilestring_sync] +import com.google.cloud.clouddms.v1.ConnectionProfile; +import com.google.cloud.clouddms.v1.ConnectionProfileName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; + +public class SyncCreateConnectionProfileStringConnectionprofileString { + + public static void main(String[] args) throws Exception { + syncCreateConnectionProfileStringConnectionprofileString(); + } + + public static void syncCreateConnectionProfileStringConnectionprofileString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + String parent = + ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]").toString(); + ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build(); + String connectionProfileId = "connectionProfileId597575526"; + ConnectionProfile response = + dataMigrationServiceClient + .createConnectionProfileAsync(parent, connectionProfile, connectionProfileId) + .get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_createconnectionprofile_stringconnectionprofilestring_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/AsyncCreateMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/AsyncCreateMigrationJob.java new file mode 100644 index 00000000..63720cb5 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/AsyncCreateMigrationJob.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_createmigrationjob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.CreateMigrationJobRequest; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.LocationName; +import com.google.cloud.clouddms.v1.MigrationJob; +import com.google.longrunning.Operation; + +public class AsyncCreateMigrationJob { + + public static void main(String[] args) throws Exception { + asyncCreateMigrationJob(); + } + + public static void asyncCreateMigrationJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + CreateMigrationJobRequest request = + CreateMigrationJobRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setMigrationJobId("migrationJobId1870575242") + .setMigrationJob(MigrationJob.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + dataMigrationServiceClient.createMigrationJobCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_createmigrationjob_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/AsyncCreateMigrationJobLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/AsyncCreateMigrationJobLRO.java new file mode 100644 index 00000000..c1ef0049 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/AsyncCreateMigrationJobLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_createmigrationjob_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.clouddms.v1.CreateMigrationJobRequest; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.LocationName; +import com.google.cloud.clouddms.v1.MigrationJob; +import com.google.cloud.clouddms.v1.OperationMetadata; + +public class AsyncCreateMigrationJobLRO { + + public static void main(String[] args) throws Exception { + asyncCreateMigrationJobLRO(); + } + + public static void asyncCreateMigrationJobLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + CreateMigrationJobRequest request = + CreateMigrationJobRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setMigrationJobId("migrationJobId1870575242") + .setMigrationJob(MigrationJob.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + dataMigrationServiceClient.createMigrationJobOperationCallable().futureCall(request); + // Do something. + MigrationJob response = future.get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_createmigrationjob_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJob.java new file mode 100644 index 00000000..ebe89c5c --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJob.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_createmigrationjob_sync] +import com.google.cloud.clouddms.v1.CreateMigrationJobRequest; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.LocationName; +import com.google.cloud.clouddms.v1.MigrationJob; + +public class SyncCreateMigrationJob { + + public static void main(String[] args) throws Exception { + syncCreateMigrationJob(); + } + + public static void syncCreateMigrationJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + CreateMigrationJobRequest request = + CreateMigrationJobRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setMigrationJobId("migrationJobId1870575242") + .setMigrationJob(MigrationJob.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + MigrationJob response = dataMigrationServiceClient.createMigrationJobAsync(request).get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_createmigrationjob_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJobLocationnameMigrationjobString.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJobLocationnameMigrationjobString.java new file mode 100644 index 00000000..feb87e1b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJobLocationnameMigrationjobString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_createmigrationjob_locationnamemigrationjobstring_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.LocationName; +import com.google.cloud.clouddms.v1.MigrationJob; + +public class SyncCreateMigrationJobLocationnameMigrationjobString { + + public static void main(String[] args) throws Exception { + syncCreateMigrationJobLocationnameMigrationjobString(); + } + + public static void syncCreateMigrationJobLocationnameMigrationjobString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + MigrationJob migrationJob = MigrationJob.newBuilder().build(); + String migrationJobId = "migrationJobId1870575242"; + MigrationJob response = + dataMigrationServiceClient + .createMigrationJobAsync(parent, migrationJob, migrationJobId) + .get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_createmigrationjob_locationnamemigrationjobstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJobStringMigrationjobString.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJobStringMigrationjobString.java new file mode 100644 index 00000000..240a7e08 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJobStringMigrationjobString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_createmigrationjob_stringmigrationjobstring_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.LocationName; +import com.google.cloud.clouddms.v1.MigrationJob; + +public class SyncCreateMigrationJobStringMigrationjobString { + + public static void main(String[] args) throws Exception { + syncCreateMigrationJobStringMigrationjobString(); + } + + public static void syncCreateMigrationJobStringMigrationjobString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + MigrationJob migrationJob = MigrationJob.newBuilder().build(); + String migrationJobId = "migrationJobId1870575242"; + MigrationJob response = + dataMigrationServiceClient + .createMigrationJobAsync(parent, migrationJob, migrationJobId) + .get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_createmigrationjob_stringmigrationjobstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/AsyncDeleteConnectionProfile.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/AsyncDeleteConnectionProfile.java new file mode 100644 index 00000000..9f224981 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/AsyncDeleteConnectionProfile.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_deleteconnectionprofile_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.ConnectionProfileName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest; +import com.google.longrunning.Operation; + +public class AsyncDeleteConnectionProfile { + + public static void main(String[] args) throws Exception { + asyncDeleteConnectionProfile(); + } + + public static void asyncDeleteConnectionProfile() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + DeleteConnectionProfileRequest request = + DeleteConnectionProfileRequest.newBuilder() + .setName( + ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]") + .toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + ApiFuture future = + dataMigrationServiceClient.deleteConnectionProfileCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_deleteconnectionprofile_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java new file mode 100644 index 00000000..bc5adaaa --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_deleteconnectionprofile_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.clouddms.v1.ConnectionProfileName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest; +import com.google.cloud.clouddms.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteConnectionProfileLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteConnectionProfileLRO(); + } + + public static void asyncDeleteConnectionProfileLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + DeleteConnectionProfileRequest request = + DeleteConnectionProfileRequest.newBuilder() + .setName( + ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]") + .toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + OperationFuture future = + dataMigrationServiceClient.deleteConnectionProfileOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_deleteconnectionprofile_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfile.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfile.java new file mode 100644 index 00000000..03404f5f --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfile.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_deleteconnectionprofile_sync] +import com.google.cloud.clouddms.v1.ConnectionProfileName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteConnectionProfile { + + public static void main(String[] args) throws Exception { + syncDeleteConnectionProfile(); + } + + public static void syncDeleteConnectionProfile() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + DeleteConnectionProfileRequest request = + DeleteConnectionProfileRequest.newBuilder() + .setName( + ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]") + .toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + dataMigrationServiceClient.deleteConnectionProfileAsync(request).get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_deleteconnectionprofile_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java new file mode 100644 index 00000000..6e78b7bf --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_deleteconnectionprofile_connectionprofilename_sync] +import com.google.cloud.clouddms.v1.ConnectionProfileName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteConnectionProfileConnectionprofilename { + + public static void main(String[] args) throws Exception { + syncDeleteConnectionProfileConnectionprofilename(); + } + + public static void syncDeleteConnectionProfileConnectionprofilename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ConnectionProfileName name = + ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]"); + dataMigrationServiceClient.deleteConnectionProfileAsync(name).get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_deleteconnectionprofile_connectionprofilename_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfileString.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfileString.java new file mode 100644 index 00000000..29dcce72 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfileString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_deleteconnectionprofile_string_sync] +import com.google.cloud.clouddms.v1.ConnectionProfileName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteConnectionProfileString { + + public static void main(String[] args) throws Exception { + syncDeleteConnectionProfileString(); + } + + public static void syncDeleteConnectionProfileString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + String name = + ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]").toString(); + dataMigrationServiceClient.deleteConnectionProfileAsync(name).get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_deleteconnectionprofile_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/AsyncDeleteMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/AsyncDeleteMigrationJob.java new file mode 100644 index 00000000..b7070389 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/AsyncDeleteMigrationJob.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_deletemigrationjob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.DeleteMigrationJobRequest; +import com.google.cloud.clouddms.v1.MigrationJobName; +import com.google.longrunning.Operation; + +public class AsyncDeleteMigrationJob { + + public static void main(String[] args) throws Exception { + asyncDeleteMigrationJob(); + } + + public static void asyncDeleteMigrationJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + DeleteMigrationJobRequest request = + DeleteMigrationJobRequest.newBuilder() + .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + ApiFuture future = + dataMigrationServiceClient.deleteMigrationJobCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_deletemigrationjob_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/AsyncDeleteMigrationJobLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/AsyncDeleteMigrationJobLRO.java new file mode 100644 index 00000000..45bc083d --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/AsyncDeleteMigrationJobLRO.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_deletemigrationjob_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.DeleteMigrationJobRequest; +import com.google.cloud.clouddms.v1.MigrationJobName; +import com.google.cloud.clouddms.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteMigrationJobLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteMigrationJobLRO(); + } + + public static void asyncDeleteMigrationJobLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + DeleteMigrationJobRequest request = + DeleteMigrationJobRequest.newBuilder() + .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + OperationFuture future = + dataMigrationServiceClient.deleteMigrationJobOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_deletemigrationjob_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJob.java new file mode 100644 index 00000000..92e1e7f8 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJob.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_deletemigrationjob_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.DeleteMigrationJobRequest; +import com.google.cloud.clouddms.v1.MigrationJobName; +import com.google.protobuf.Empty; + +public class SyncDeleteMigrationJob { + + public static void main(String[] args) throws Exception { + syncDeleteMigrationJob(); + } + + public static void syncDeleteMigrationJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + DeleteMigrationJobRequest request = + DeleteMigrationJobRequest.newBuilder() + .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + dataMigrationServiceClient.deleteMigrationJobAsync(request).get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_deletemigrationjob_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJobMigrationjobname.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJobMigrationjobname.java new file mode 100644 index 00000000..ab861746 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJobMigrationjobname.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_deletemigrationjob_migrationjobname_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MigrationJobName; +import com.google.protobuf.Empty; + +public class SyncDeleteMigrationJobMigrationjobname { + + public static void main(String[] args) throws Exception { + syncDeleteMigrationJobMigrationjobname(); + } + + public static void syncDeleteMigrationJobMigrationjobname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + MigrationJobName name = MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]"); + dataMigrationServiceClient.deleteMigrationJobAsync(name).get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_deletemigrationjob_migrationjobname_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJobString.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJobString.java new file mode 100644 index 00000000..602f918d --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJobString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_deletemigrationjob_string_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MigrationJobName; +import com.google.protobuf.Empty; + +public class SyncDeleteMigrationJobString { + + public static void main(String[] args) throws Exception { + syncDeleteMigrationJobString(); + } + + public static void syncDeleteMigrationJobString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + String name = MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString(); + dataMigrationServiceClient.deleteMigrationJobAsync(name).get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_deletemigrationjob_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/generatesshscript/AsyncGenerateSshScript.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/generatesshscript/AsyncGenerateSshScript.java new file mode 100644 index 00000000..87703ce2 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/generatesshscript/AsyncGenerateSshScript.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_generatesshscript_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.GenerateSshScriptRequest; +import com.google.cloud.clouddms.v1.MigrationJobName; +import com.google.cloud.clouddms.v1.SshScript; + +public class AsyncGenerateSshScript { + + public static void main(String[] args) throws Exception { + asyncGenerateSshScript(); + } + + public static void asyncGenerateSshScript() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + GenerateSshScriptRequest request = + GenerateSshScriptRequest.newBuilder() + .setMigrationJob( + MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .setVm("vm3767") + .setVmPort(563010825) + .build(); + ApiFuture future = + dataMigrationServiceClient.generateSshScriptCallable().futureCall(request); + // Do something. + SshScript response = future.get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_generatesshscript_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/generatesshscript/SyncGenerateSshScript.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/generatesshscript/SyncGenerateSshScript.java new file mode 100644 index 00000000..b4dd045b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/generatesshscript/SyncGenerateSshScript.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_generatesshscript_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.GenerateSshScriptRequest; +import com.google.cloud.clouddms.v1.MigrationJobName; +import com.google.cloud.clouddms.v1.SshScript; + +public class SyncGenerateSshScript { + + public static void main(String[] args) throws Exception { + syncGenerateSshScript(); + } + + public static void syncGenerateSshScript() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + GenerateSshScriptRequest request = + GenerateSshScriptRequest.newBuilder() + .setMigrationJob( + MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .setVm("vm3767") + .setVmPort(563010825) + .build(); + SshScript response = dataMigrationServiceClient.generateSshScript(request); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_generatesshscript_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/AsyncGetConnectionProfile.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/AsyncGetConnectionProfile.java new file mode 100644 index 00000000..5305d37d --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/AsyncGetConnectionProfile.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_getconnectionprofile_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.ConnectionProfile; +import com.google.cloud.clouddms.v1.ConnectionProfileName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.GetConnectionProfileRequest; + +public class AsyncGetConnectionProfile { + + public static void main(String[] args) throws Exception { + asyncGetConnectionProfile(); + } + + public static void asyncGetConnectionProfile() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + GetConnectionProfileRequest request = + GetConnectionProfileRequest.newBuilder() + .setName( + ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]") + .toString()) + .build(); + ApiFuture future = + dataMigrationServiceClient.getConnectionProfileCallable().futureCall(request); + // Do something. + ConnectionProfile response = future.get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_getconnectionprofile_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfile.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfile.java new file mode 100644 index 00000000..7b2d86fc --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfile.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_getconnectionprofile_sync] +import com.google.cloud.clouddms.v1.ConnectionProfile; +import com.google.cloud.clouddms.v1.ConnectionProfileName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.GetConnectionProfileRequest; + +public class SyncGetConnectionProfile { + + public static void main(String[] args) throws Exception { + syncGetConnectionProfile(); + } + + public static void syncGetConnectionProfile() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + GetConnectionProfileRequest request = + GetConnectionProfileRequest.newBuilder() + .setName( + ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]") + .toString()) + .build(); + ConnectionProfile response = dataMigrationServiceClient.getConnectionProfile(request); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_getconnectionprofile_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java new file mode 100644 index 00000000..72b9a172 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_getconnectionprofile_connectionprofilename_sync] +import com.google.cloud.clouddms.v1.ConnectionProfile; +import com.google.cloud.clouddms.v1.ConnectionProfileName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; + +public class SyncGetConnectionProfileConnectionprofilename { + + public static void main(String[] args) throws Exception { + syncGetConnectionProfileConnectionprofilename(); + } + + public static void syncGetConnectionProfileConnectionprofilename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ConnectionProfileName name = + ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]"); + ConnectionProfile response = dataMigrationServiceClient.getConnectionProfile(name); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_getconnectionprofile_connectionprofilename_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfileString.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfileString.java new file mode 100644 index 00000000..15928de5 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfileString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_getconnectionprofile_string_sync] +import com.google.cloud.clouddms.v1.ConnectionProfile; +import com.google.cloud.clouddms.v1.ConnectionProfileName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; + +public class SyncGetConnectionProfileString { + + public static void main(String[] args) throws Exception { + syncGetConnectionProfileString(); + } + + public static void syncGetConnectionProfileString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + String name = + ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]").toString(); + ConnectionProfile response = dataMigrationServiceClient.getConnectionProfile(name); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_getconnectionprofile_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/AsyncGetMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/AsyncGetMigrationJob.java new file mode 100644 index 00000000..0e364b83 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/AsyncGetMigrationJob.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_getmigrationjob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.GetMigrationJobRequest; +import com.google.cloud.clouddms.v1.MigrationJob; +import com.google.cloud.clouddms.v1.MigrationJobName; + +public class AsyncGetMigrationJob { + + public static void main(String[] args) throws Exception { + asyncGetMigrationJob(); + } + + public static void asyncGetMigrationJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + GetMigrationJobRequest request = + GetMigrationJobRequest.newBuilder() + .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .build(); + ApiFuture future = + dataMigrationServiceClient.getMigrationJobCallable().futureCall(request); + // Do something. + MigrationJob response = future.get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_getmigrationjob_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJob.java new file mode 100644 index 00000000..84e30618 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJob.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_getmigrationjob_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.GetMigrationJobRequest; +import com.google.cloud.clouddms.v1.MigrationJob; +import com.google.cloud.clouddms.v1.MigrationJobName; + +public class SyncGetMigrationJob { + + public static void main(String[] args) throws Exception { + syncGetMigrationJob(); + } + + public static void syncGetMigrationJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + GetMigrationJobRequest request = + GetMigrationJobRequest.newBuilder() + .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .build(); + MigrationJob response = dataMigrationServiceClient.getMigrationJob(request); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_getmigrationjob_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJobMigrationjobname.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJobMigrationjobname.java new file mode 100644 index 00000000..d67c7a21 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJobMigrationjobname.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_getmigrationjob_migrationjobname_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MigrationJob; +import com.google.cloud.clouddms.v1.MigrationJobName; + +public class SyncGetMigrationJobMigrationjobname { + + public static void main(String[] args) throws Exception { + syncGetMigrationJobMigrationjobname(); + } + + public static void syncGetMigrationJobMigrationjobname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + MigrationJobName name = MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]"); + MigrationJob response = dataMigrationServiceClient.getMigrationJob(name); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_getmigrationjob_migrationjobname_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJobString.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJobString.java new file mode 100644 index 00000000..b26d332f --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJobString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_getmigrationjob_string_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MigrationJob; +import com.google.cloud.clouddms.v1.MigrationJobName; + +public class SyncGetMigrationJobString { + + public static void main(String[] args) throws Exception { + syncGetMigrationJobString(); + } + + public static void syncGetMigrationJobString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + String name = MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString(); + MigrationJob response = dataMigrationServiceClient.getMigrationJob(name); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_getmigrationjob_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/AsyncListConnectionProfiles.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/AsyncListConnectionProfiles.java new file mode 100644 index 00000000..3e329d75 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/AsyncListConnectionProfiles.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_listconnectionprofiles_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.ConnectionProfile; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.ListConnectionProfilesRequest; +import com.google.cloud.clouddms.v1.LocationName; + +public class AsyncListConnectionProfiles { + + public static void main(String[] args) throws Exception { + asyncListConnectionProfiles(); + } + + public static void asyncListConnectionProfiles() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ListConnectionProfilesRequest request = + ListConnectionProfilesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + dataMigrationServiceClient.listConnectionProfilesPagedCallable().futureCall(request); + // Do something. + for (ConnectionProfile element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_listconnectionprofiles_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/AsyncListConnectionProfilesPaged.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/AsyncListConnectionProfilesPaged.java new file mode 100644 index 00000000..1d32f146 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/AsyncListConnectionProfilesPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_listconnectionprofiles_paged_async] +import com.google.cloud.clouddms.v1.ConnectionProfile; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.ListConnectionProfilesRequest; +import com.google.cloud.clouddms.v1.ListConnectionProfilesResponse; +import com.google.cloud.clouddms.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListConnectionProfilesPaged { + + public static void main(String[] args) throws Exception { + asyncListConnectionProfilesPaged(); + } + + public static void asyncListConnectionProfilesPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ListConnectionProfilesRequest request = + ListConnectionProfilesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListConnectionProfilesResponse response = + dataMigrationServiceClient.listConnectionProfilesCallable().call(request); + for (ConnectionProfile element : response.getConnectionProfilesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_listconnectionprofiles_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfiles.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfiles.java new file mode 100644 index 00000000..89936fbd --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfiles.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_listconnectionprofiles_sync] +import com.google.cloud.clouddms.v1.ConnectionProfile; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.ListConnectionProfilesRequest; +import com.google.cloud.clouddms.v1.LocationName; + +public class SyncListConnectionProfiles { + + public static void main(String[] args) throws Exception { + syncListConnectionProfiles(); + } + + public static void syncListConnectionProfiles() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ListConnectionProfilesRequest request = + ListConnectionProfilesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (ConnectionProfile element : + dataMigrationServiceClient.listConnectionProfiles(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_listconnectionprofiles_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfilesLocationname.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfilesLocationname.java new file mode 100644 index 00000000..39dbdc2f --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfilesLocationname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_listconnectionprofiles_locationname_sync] +import com.google.cloud.clouddms.v1.ConnectionProfile; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.LocationName; + +public class SyncListConnectionProfilesLocationname { + + public static void main(String[] args) throws Exception { + syncListConnectionProfilesLocationname(); + } + + public static void syncListConnectionProfilesLocationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (ConnectionProfile element : + dataMigrationServiceClient.listConnectionProfiles(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_listconnectionprofiles_locationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfilesString.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfilesString.java new file mode 100644 index 00000000..7374d25a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfilesString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_listconnectionprofiles_string_sync] +import com.google.cloud.clouddms.v1.ConnectionProfile; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.LocationName; + +public class SyncListConnectionProfilesString { + + public static void main(String[] args) throws Exception { + syncListConnectionProfilesString(); + } + + public static void syncListConnectionProfilesString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (ConnectionProfile element : + dataMigrationServiceClient.listConnectionProfiles(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_listconnectionprofiles_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/AsyncListMigrationJobs.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/AsyncListMigrationJobs.java new file mode 100644 index 00000000..f595095b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/AsyncListMigrationJobs.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_listmigrationjobs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.ListMigrationJobsRequest; +import com.google.cloud.clouddms.v1.LocationName; +import com.google.cloud.clouddms.v1.MigrationJob; + +public class AsyncListMigrationJobs { + + public static void main(String[] args) throws Exception { + asyncListMigrationJobs(); + } + + public static void asyncListMigrationJobs() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ListMigrationJobsRequest request = + ListMigrationJobsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + dataMigrationServiceClient.listMigrationJobsPagedCallable().futureCall(request); + // Do something. + for (MigrationJob element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_listmigrationjobs_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/AsyncListMigrationJobsPaged.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/AsyncListMigrationJobsPaged.java new file mode 100644 index 00000000..18118b37 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/AsyncListMigrationJobsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_listmigrationjobs_paged_async] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.ListMigrationJobsRequest; +import com.google.cloud.clouddms.v1.ListMigrationJobsResponse; +import com.google.cloud.clouddms.v1.LocationName; +import com.google.cloud.clouddms.v1.MigrationJob; +import com.google.common.base.Strings; + +public class AsyncListMigrationJobsPaged { + + public static void main(String[] args) throws Exception { + asyncListMigrationJobsPaged(); + } + + public static void asyncListMigrationJobsPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ListMigrationJobsRequest request = + ListMigrationJobsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListMigrationJobsResponse response = + dataMigrationServiceClient.listMigrationJobsCallable().call(request); + for (MigrationJob element : response.getMigrationJobsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_listmigrationjobs_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobs.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobs.java new file mode 100644 index 00000000..8223d1b4 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobs.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_listmigrationjobs_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.ListMigrationJobsRequest; +import com.google.cloud.clouddms.v1.LocationName; +import com.google.cloud.clouddms.v1.MigrationJob; + +public class SyncListMigrationJobs { + + public static void main(String[] args) throws Exception { + syncListMigrationJobs(); + } + + public static void syncListMigrationJobs() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ListMigrationJobsRequest request = + ListMigrationJobsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (MigrationJob element : + dataMigrationServiceClient.listMigrationJobs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_listmigrationjobs_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobsLocationname.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobsLocationname.java new file mode 100644 index 00000000..f457bdfb --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobsLocationname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_listmigrationjobs_locationname_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.LocationName; +import com.google.cloud.clouddms.v1.MigrationJob; + +public class SyncListMigrationJobsLocationname { + + public static void main(String[] args) throws Exception { + syncListMigrationJobsLocationname(); + } + + public static void syncListMigrationJobsLocationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (MigrationJob element : + dataMigrationServiceClient.listMigrationJobs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_listmigrationjobs_locationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobsString.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobsString.java new file mode 100644 index 00000000..5f53b026 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobsString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_listmigrationjobs_string_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.LocationName; +import com.google.cloud.clouddms.v1.MigrationJob; + +public class SyncListMigrationJobsString { + + public static void main(String[] args) throws Exception { + syncListMigrationJobsString(); + } + + public static void syncListMigrationJobsString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (MigrationJob element : + dataMigrationServiceClient.listMigrationJobs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_listmigrationjobs_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/AsyncPromoteMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/AsyncPromoteMigrationJob.java new file mode 100644 index 00000000..8beabf0b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/AsyncPromoteMigrationJob.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_promotemigrationjob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MigrationJobName; +import com.google.cloud.clouddms.v1.PromoteMigrationJobRequest; +import com.google.longrunning.Operation; + +public class AsyncPromoteMigrationJob { + + public static void main(String[] args) throws Exception { + asyncPromoteMigrationJob(); + } + + public static void asyncPromoteMigrationJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + PromoteMigrationJobRequest request = + PromoteMigrationJobRequest.newBuilder() + .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .build(); + ApiFuture future = + dataMigrationServiceClient.promoteMigrationJobCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_promotemigrationjob_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/AsyncPromoteMigrationJobLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/AsyncPromoteMigrationJobLRO.java new file mode 100644 index 00000000..1fb6cf77 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/AsyncPromoteMigrationJobLRO.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_promotemigrationjob_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MigrationJob; +import com.google.cloud.clouddms.v1.MigrationJobName; +import com.google.cloud.clouddms.v1.OperationMetadata; +import com.google.cloud.clouddms.v1.PromoteMigrationJobRequest; + +public class AsyncPromoteMigrationJobLRO { + + public static void main(String[] args) throws Exception { + asyncPromoteMigrationJobLRO(); + } + + public static void asyncPromoteMigrationJobLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + PromoteMigrationJobRequest request = + PromoteMigrationJobRequest.newBuilder() + .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .build(); + OperationFuture future = + dataMigrationServiceClient.promoteMigrationJobOperationCallable().futureCall(request); + // Do something. + MigrationJob response = future.get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_promotemigrationjob_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/SyncPromoteMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/SyncPromoteMigrationJob.java new file mode 100644 index 00000000..b07cd310 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/SyncPromoteMigrationJob.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_promotemigrationjob_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MigrationJob; +import com.google.cloud.clouddms.v1.MigrationJobName; +import com.google.cloud.clouddms.v1.PromoteMigrationJobRequest; + +public class SyncPromoteMigrationJob { + + public static void main(String[] args) throws Exception { + syncPromoteMigrationJob(); + } + + public static void syncPromoteMigrationJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + PromoteMigrationJobRequest request = + PromoteMigrationJobRequest.newBuilder() + .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .build(); + MigrationJob response = dataMigrationServiceClient.promoteMigrationJobAsync(request).get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_promotemigrationjob_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/AsyncRestartMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/AsyncRestartMigrationJob.java new file mode 100644 index 00000000..2f18d75d --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/AsyncRestartMigrationJob.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_restartmigrationjob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MigrationJobName; +import com.google.cloud.clouddms.v1.RestartMigrationJobRequest; +import com.google.longrunning.Operation; + +public class AsyncRestartMigrationJob { + + public static void main(String[] args) throws Exception { + asyncRestartMigrationJob(); + } + + public static void asyncRestartMigrationJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + RestartMigrationJobRequest request = + RestartMigrationJobRequest.newBuilder() + .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .build(); + ApiFuture future = + dataMigrationServiceClient.restartMigrationJobCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_restartmigrationjob_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/AsyncRestartMigrationJobLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/AsyncRestartMigrationJobLRO.java new file mode 100644 index 00000000..f7749943 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/AsyncRestartMigrationJobLRO.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_restartmigrationjob_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MigrationJob; +import com.google.cloud.clouddms.v1.MigrationJobName; +import com.google.cloud.clouddms.v1.OperationMetadata; +import com.google.cloud.clouddms.v1.RestartMigrationJobRequest; + +public class AsyncRestartMigrationJobLRO { + + public static void main(String[] args) throws Exception { + asyncRestartMigrationJobLRO(); + } + + public static void asyncRestartMigrationJobLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + RestartMigrationJobRequest request = + RestartMigrationJobRequest.newBuilder() + .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .build(); + OperationFuture future = + dataMigrationServiceClient.restartMigrationJobOperationCallable().futureCall(request); + // Do something. + MigrationJob response = future.get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_restartmigrationjob_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/SyncRestartMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/SyncRestartMigrationJob.java new file mode 100644 index 00000000..080db968 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/SyncRestartMigrationJob.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_restartmigrationjob_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MigrationJob; +import com.google.cloud.clouddms.v1.MigrationJobName; +import com.google.cloud.clouddms.v1.RestartMigrationJobRequest; + +public class SyncRestartMigrationJob { + + public static void main(String[] args) throws Exception { + syncRestartMigrationJob(); + } + + public static void syncRestartMigrationJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + RestartMigrationJobRequest request = + RestartMigrationJobRequest.newBuilder() + .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .build(); + MigrationJob response = dataMigrationServiceClient.restartMigrationJobAsync(request).get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_restartmigrationjob_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/AsyncResumeMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/AsyncResumeMigrationJob.java new file mode 100644 index 00000000..262baca2 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/AsyncResumeMigrationJob.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_resumemigrationjob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MigrationJobName; +import com.google.cloud.clouddms.v1.ResumeMigrationJobRequest; +import com.google.longrunning.Operation; + +public class AsyncResumeMigrationJob { + + public static void main(String[] args) throws Exception { + asyncResumeMigrationJob(); + } + + public static void asyncResumeMigrationJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ResumeMigrationJobRequest request = + ResumeMigrationJobRequest.newBuilder() + .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .build(); + ApiFuture future = + dataMigrationServiceClient.resumeMigrationJobCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_resumemigrationjob_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/AsyncResumeMigrationJobLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/AsyncResumeMigrationJobLRO.java new file mode 100644 index 00000000..5ac2bc29 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/AsyncResumeMigrationJobLRO.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_resumemigrationjob_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MigrationJob; +import com.google.cloud.clouddms.v1.MigrationJobName; +import com.google.cloud.clouddms.v1.OperationMetadata; +import com.google.cloud.clouddms.v1.ResumeMigrationJobRequest; + +public class AsyncResumeMigrationJobLRO { + + public static void main(String[] args) throws Exception { + asyncResumeMigrationJobLRO(); + } + + public static void asyncResumeMigrationJobLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ResumeMigrationJobRequest request = + ResumeMigrationJobRequest.newBuilder() + .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .build(); + OperationFuture future = + dataMigrationServiceClient.resumeMigrationJobOperationCallable().futureCall(request); + // Do something. + MigrationJob response = future.get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_resumemigrationjob_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/SyncResumeMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/SyncResumeMigrationJob.java new file mode 100644 index 00000000..8942980f --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/SyncResumeMigrationJob.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_resumemigrationjob_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MigrationJob; +import com.google.cloud.clouddms.v1.MigrationJobName; +import com.google.cloud.clouddms.v1.ResumeMigrationJobRequest; + +public class SyncResumeMigrationJob { + + public static void main(String[] args) throws Exception { + syncResumeMigrationJob(); + } + + public static void syncResumeMigrationJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ResumeMigrationJobRequest request = + ResumeMigrationJobRequest.newBuilder() + .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .build(); + MigrationJob response = dataMigrationServiceClient.resumeMigrationJobAsync(request).get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_resumemigrationjob_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/AsyncStartMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/AsyncStartMigrationJob.java new file mode 100644 index 00000000..0e67e0e1 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/AsyncStartMigrationJob.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_startmigrationjob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MigrationJobName; +import com.google.cloud.clouddms.v1.StartMigrationJobRequest; +import com.google.longrunning.Operation; + +public class AsyncStartMigrationJob { + + public static void main(String[] args) throws Exception { + asyncStartMigrationJob(); + } + + public static void asyncStartMigrationJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + StartMigrationJobRequest request = + StartMigrationJobRequest.newBuilder() + .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .build(); + ApiFuture future = + dataMigrationServiceClient.startMigrationJobCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_startmigrationjob_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/AsyncStartMigrationJobLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/AsyncStartMigrationJobLRO.java new file mode 100644 index 00000000..a3bfe640 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/AsyncStartMigrationJobLRO.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_startmigrationjob_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MigrationJob; +import com.google.cloud.clouddms.v1.MigrationJobName; +import com.google.cloud.clouddms.v1.OperationMetadata; +import com.google.cloud.clouddms.v1.StartMigrationJobRequest; + +public class AsyncStartMigrationJobLRO { + + public static void main(String[] args) throws Exception { + asyncStartMigrationJobLRO(); + } + + public static void asyncStartMigrationJobLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + StartMigrationJobRequest request = + StartMigrationJobRequest.newBuilder() + .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .build(); + OperationFuture future = + dataMigrationServiceClient.startMigrationJobOperationCallable().futureCall(request); + // Do something. + MigrationJob response = future.get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_startmigrationjob_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/SyncStartMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/SyncStartMigrationJob.java new file mode 100644 index 00000000..524061ba --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/SyncStartMigrationJob.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_startmigrationjob_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MigrationJob; +import com.google.cloud.clouddms.v1.MigrationJobName; +import com.google.cloud.clouddms.v1.StartMigrationJobRequest; + +public class SyncStartMigrationJob { + + public static void main(String[] args) throws Exception { + syncStartMigrationJob(); + } + + public static void syncStartMigrationJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + StartMigrationJobRequest request = + StartMigrationJobRequest.newBuilder() + .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .build(); + MigrationJob response = dataMigrationServiceClient.startMigrationJobAsync(request).get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_startmigrationjob_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/AsyncStopMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/AsyncStopMigrationJob.java new file mode 100644 index 00000000..8d4606a3 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/AsyncStopMigrationJob.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_stopmigrationjob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MigrationJobName; +import com.google.cloud.clouddms.v1.StopMigrationJobRequest; +import com.google.longrunning.Operation; + +public class AsyncStopMigrationJob { + + public static void main(String[] args) throws Exception { + asyncStopMigrationJob(); + } + + public static void asyncStopMigrationJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + StopMigrationJobRequest request = + StopMigrationJobRequest.newBuilder() + .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .build(); + ApiFuture future = + dataMigrationServiceClient.stopMigrationJobCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_stopmigrationjob_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/AsyncStopMigrationJobLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/AsyncStopMigrationJobLRO.java new file mode 100644 index 00000000..7fdb71be --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/AsyncStopMigrationJobLRO.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_stopmigrationjob_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MigrationJob; +import com.google.cloud.clouddms.v1.MigrationJobName; +import com.google.cloud.clouddms.v1.OperationMetadata; +import com.google.cloud.clouddms.v1.StopMigrationJobRequest; + +public class AsyncStopMigrationJobLRO { + + public static void main(String[] args) throws Exception { + asyncStopMigrationJobLRO(); + } + + public static void asyncStopMigrationJobLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + StopMigrationJobRequest request = + StopMigrationJobRequest.newBuilder() + .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .build(); + OperationFuture future = + dataMigrationServiceClient.stopMigrationJobOperationCallable().futureCall(request); + // Do something. + MigrationJob response = future.get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_stopmigrationjob_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/SyncStopMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/SyncStopMigrationJob.java new file mode 100644 index 00000000..77d43280 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/SyncStopMigrationJob.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_stopmigrationjob_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MigrationJob; +import com.google.cloud.clouddms.v1.MigrationJobName; +import com.google.cloud.clouddms.v1.StopMigrationJobRequest; + +public class SyncStopMigrationJob { + + public static void main(String[] args) throws Exception { + syncStopMigrationJob(); + } + + public static void syncStopMigrationJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + StopMigrationJobRequest request = + StopMigrationJobRequest.newBuilder() + .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .build(); + MigrationJob response = dataMigrationServiceClient.stopMigrationJobAsync(request).get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_stopmigrationjob_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/AsyncUpdateConnectionProfile.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/AsyncUpdateConnectionProfile.java new file mode 100644 index 00000000..26bb5f5f --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/AsyncUpdateConnectionProfile.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_updateconnectionprofile_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.ConnectionProfile; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateConnectionProfile { + + public static void main(String[] args) throws Exception { + asyncUpdateConnectionProfile(); + } + + public static void asyncUpdateConnectionProfile() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + UpdateConnectionProfileRequest request = + UpdateConnectionProfileRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setConnectionProfile(ConnectionProfile.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + dataMigrationServiceClient.updateConnectionProfileCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_updateconnectionprofile_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java new file mode 100644 index 00000000..d83ad515 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_updateconnectionprofile_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.clouddms.v1.ConnectionProfile; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.OperationMetadata; +import com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateConnectionProfileLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateConnectionProfileLRO(); + } + + public static void asyncUpdateConnectionProfileLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + UpdateConnectionProfileRequest request = + UpdateConnectionProfileRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setConnectionProfile(ConnectionProfile.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + dataMigrationServiceClient.updateConnectionProfileOperationCallable().futureCall(request); + // Do something. + ConnectionProfile response = future.get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_updateconnectionprofile_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/SyncUpdateConnectionProfile.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/SyncUpdateConnectionProfile.java new file mode 100644 index 00000000..85e0b543 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/SyncUpdateConnectionProfile.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_updateconnectionprofile_sync] +import com.google.cloud.clouddms.v1.ConnectionProfile; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateConnectionProfile { + + public static void main(String[] args) throws Exception { + syncUpdateConnectionProfile(); + } + + public static void syncUpdateConnectionProfile() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + UpdateConnectionProfileRequest request = + UpdateConnectionProfileRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setConnectionProfile(ConnectionProfile.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ConnectionProfile response = + dataMigrationServiceClient.updateConnectionProfileAsync(request).get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_updateconnectionprofile_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java new file mode 100644 index 00000000..ac1244f7 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_updateconnectionprofile_connectionprofilefieldmask_sync] +import com.google.cloud.clouddms.v1.ConnectionProfile; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateConnectionProfileConnectionprofileFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateConnectionProfileConnectionprofileFieldmask(); + } + + public static void syncUpdateConnectionProfileConnectionprofileFieldmask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + ConnectionProfile response = + dataMigrationServiceClient + .updateConnectionProfileAsync(connectionProfile, updateMask) + .get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_updateconnectionprofile_connectionprofilefieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/AsyncUpdateMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/AsyncUpdateMigrationJob.java new file mode 100644 index 00000000..80478843 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/AsyncUpdateMigrationJob.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_updatemigrationjob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MigrationJob; +import com.google.cloud.clouddms.v1.UpdateMigrationJobRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateMigrationJob { + + public static void main(String[] args) throws Exception { + asyncUpdateMigrationJob(); + } + + public static void asyncUpdateMigrationJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + UpdateMigrationJobRequest request = + UpdateMigrationJobRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setMigrationJob(MigrationJob.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + dataMigrationServiceClient.updateMigrationJobCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_updatemigrationjob_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/AsyncUpdateMigrationJobLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/AsyncUpdateMigrationJobLRO.java new file mode 100644 index 00000000..13425973 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/AsyncUpdateMigrationJobLRO.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_updatemigrationjob_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MigrationJob; +import com.google.cloud.clouddms.v1.OperationMetadata; +import com.google.cloud.clouddms.v1.UpdateMigrationJobRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateMigrationJobLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateMigrationJobLRO(); + } + + public static void asyncUpdateMigrationJobLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + UpdateMigrationJobRequest request = + UpdateMigrationJobRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setMigrationJob(MigrationJob.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + dataMigrationServiceClient.updateMigrationJobOperationCallable().futureCall(request); + // Do something. + MigrationJob response = future.get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_updatemigrationjob_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/SyncUpdateMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/SyncUpdateMigrationJob.java new file mode 100644 index 00000000..8bc0974c --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/SyncUpdateMigrationJob.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_updatemigrationjob_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MigrationJob; +import com.google.cloud.clouddms.v1.UpdateMigrationJobRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateMigrationJob { + + public static void main(String[] args) throws Exception { + syncUpdateMigrationJob(); + } + + public static void syncUpdateMigrationJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + UpdateMigrationJobRequest request = + UpdateMigrationJobRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setMigrationJob(MigrationJob.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + MigrationJob response = dataMigrationServiceClient.updateMigrationJobAsync(request).get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_updatemigrationjob_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/SyncUpdateMigrationJobMigrationjobFieldmask.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/SyncUpdateMigrationJobMigrationjobFieldmask.java new file mode 100644 index 00000000..a8708694 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/SyncUpdateMigrationJobMigrationjobFieldmask.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_updatemigrationjob_migrationjobfieldmask_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MigrationJob; +import com.google.protobuf.FieldMask; + +public class SyncUpdateMigrationJobMigrationjobFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateMigrationJobMigrationjobFieldmask(); + } + + public static void syncUpdateMigrationJobMigrationjobFieldmask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + MigrationJob migrationJob = MigrationJob.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + MigrationJob response = + dataMigrationServiceClient.updateMigrationJobAsync(migrationJob, updateMask).get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_updatemigrationjob_migrationjobfieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/AsyncVerifyMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/AsyncVerifyMigrationJob.java new file mode 100644 index 00000000..a046ab56 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/AsyncVerifyMigrationJob.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_verifymigrationjob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MigrationJobName; +import com.google.cloud.clouddms.v1.VerifyMigrationJobRequest; +import com.google.longrunning.Operation; + +public class AsyncVerifyMigrationJob { + + public static void main(String[] args) throws Exception { + asyncVerifyMigrationJob(); + } + + public static void asyncVerifyMigrationJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + VerifyMigrationJobRequest request = + VerifyMigrationJobRequest.newBuilder() + .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .build(); + ApiFuture future = + dataMigrationServiceClient.verifyMigrationJobCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_verifymigrationjob_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/AsyncVerifyMigrationJobLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/AsyncVerifyMigrationJobLRO.java new file mode 100644 index 00000000..7027cdbf --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/AsyncVerifyMigrationJobLRO.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_verifymigrationjob_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MigrationJob; +import com.google.cloud.clouddms.v1.MigrationJobName; +import com.google.cloud.clouddms.v1.OperationMetadata; +import com.google.cloud.clouddms.v1.VerifyMigrationJobRequest; + +public class AsyncVerifyMigrationJobLRO { + + public static void main(String[] args) throws Exception { + asyncVerifyMigrationJobLRO(); + } + + public static void asyncVerifyMigrationJobLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + VerifyMigrationJobRequest request = + VerifyMigrationJobRequest.newBuilder() + .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .build(); + OperationFuture future = + dataMigrationServiceClient.verifyMigrationJobOperationCallable().futureCall(request); + // Do something. + MigrationJob response = future.get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_verifymigrationjob_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/SyncVerifyMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/SyncVerifyMigrationJob.java new file mode 100644 index 00000000..ffcd6f07 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/SyncVerifyMigrationJob.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationserviceclient_verifymigrationjob_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MigrationJob; +import com.google.cloud.clouddms.v1.MigrationJobName; +import com.google.cloud.clouddms.v1.VerifyMigrationJobRequest; + +public class SyncVerifyMigrationJob { + + public static void main(String[] args) throws Exception { + syncVerifyMigrationJob(); + } + + public static void syncVerifyMigrationJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + VerifyMigrationJobRequest request = + VerifyMigrationJobRequest.newBuilder() + .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .build(); + MigrationJob response = dataMigrationServiceClient.verifyMigrationJobAsync(request).get(); + } + } +} +// [END clouddms_v1_generated_datamigrationserviceclient_verifymigrationjob_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservicesettings/getmigrationjob/SyncGetMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservicesettings/getmigrationjob/SyncGetMigrationJob.java new file mode 100644 index 00000000..5c0e865a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservicesettings/getmigrationjob/SyncGetMigrationJob.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START clouddms_v1_generated_datamigrationservicesettings_getmigrationjob_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceSettings; +import java.time.Duration; + +public class SyncGetMigrationJob { + + public static void main(String[] args) throws Exception { + syncGetMigrationJob(); + } + + public static void syncGetMigrationJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + DataMigrationServiceSettings.Builder dataMigrationServiceSettingsBuilder = + DataMigrationServiceSettings.newBuilder(); + dataMigrationServiceSettingsBuilder + .getMigrationJobSettings() + .setRetrySettings( + dataMigrationServiceSettingsBuilder + .getMigrationJobSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + DataMigrationServiceSettings dataMigrationServiceSettings = + dataMigrationServiceSettingsBuilder.build(); + } +} +// [END clouddms_v1_generated_datamigrationservicesettings_getmigrationjob_sync] diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/stub/datamigrationservicestubsettings/getmigrationjob/SyncGetMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/stub/datamigrationservicestubsettings/getmigrationjob/SyncGetMigrationJob.java new file mode 100644 index 00000000..af5026bc --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/stub/datamigrationservicestubsettings/getmigrationjob/SyncGetMigrationJob.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.clouddms.v1.stub.samples; + +// [START clouddms_v1_generated_datamigrationservicestubsettings_getmigrationjob_sync] +import com.google.cloud.clouddms.v1.stub.DataMigrationServiceStubSettings; +import java.time.Duration; + +public class SyncGetMigrationJob { + + public static void main(String[] args) throws Exception { + syncGetMigrationJob(); + } + + public static void syncGetMigrationJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + DataMigrationServiceStubSettings.Builder dataMigrationServiceSettingsBuilder = + DataMigrationServiceStubSettings.newBuilder(); + dataMigrationServiceSettingsBuilder + .getMigrationJobSettings() + .setRetrySettings( + dataMigrationServiceSettingsBuilder + .getMigrationJobSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + DataMigrationServiceStubSettings dataMigrationServiceSettings = + dataMigrationServiceSettingsBuilder.build(); + } +} +// [END clouddms_v1_generated_datamigrationservicestubsettings_getmigrationjob_sync] From 0fb545eba650648f4cb2779fe41306d8d1a5c504 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 8 Sep 2022 21:00:29 +0000 Subject: [PATCH 6/8] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#257) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 472750037 Source-Link: https://github.com/googleapis/googleapis/commit/88f2ea3f53b9712f2e04f28f06210f6f77fa7e24 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9 --- .../v1/DataMigrationServiceClient.java | 483 +++++++++++++----- .../v1/DataMigrationServiceSettings.java | 7 +- .../cloud/clouddms/v1/package-info.java | 7 +- .../DataMigrationServiceStubSettings.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../AsyncCreateConnectionProfile.java | 7 +- .../AsyncCreateConnectionProfileLRO.java | 7 +- .../SyncCreateConnectionProfile.java | 7 +- ...ionprofilenameConnectionprofileString.java | 7 +- ...nProfileStringConnectionprofileString.java | 7 +- .../AsyncCreateMigrationJob.java | 7 +- .../AsyncCreateMigrationJobLRO.java | 7 +- .../SyncCreateMigrationJob.java | 7 +- ...tionJobLocationnameMigrationjobString.java | 7 +- ...eMigrationJobStringMigrationjobString.java | 7 +- .../AsyncDeleteConnectionProfile.java | 7 +- .../AsyncDeleteConnectionProfileLRO.java | 7 +- .../SyncDeleteConnectionProfile.java | 7 +- ...onnectionProfileConnectionprofilename.java | 7 +- .../SyncDeleteConnectionProfileString.java | 7 +- .../AsyncDeleteMigrationJob.java | 7 +- .../AsyncDeleteMigrationJobLRO.java | 7 +- .../SyncDeleteMigrationJob.java | 7 +- ...yncDeleteMigrationJobMigrationjobname.java | 7 +- .../SyncDeleteMigrationJobString.java | 7 +- .../AsyncGenerateSshScript.java | 7 +- .../SyncGenerateSshScript.java | 7 +- .../AsyncGetConnectionProfile.java | 7 +- .../SyncGetConnectionProfile.java | 7 +- ...onnectionProfileConnectionprofilename.java | 7 +- .../SyncGetConnectionProfileString.java | 7 +- .../getmigrationjob/AsyncGetMigrationJob.java | 7 +- .../getmigrationjob/SyncGetMigrationJob.java | 7 +- .../SyncGetMigrationJobMigrationjobname.java | 7 +- .../SyncGetMigrationJobString.java | 7 +- .../AsyncListConnectionProfiles.java | 7 +- .../AsyncListConnectionProfilesPaged.java | 7 +- .../SyncListConnectionProfiles.java | 7 +- ...yncListConnectionProfilesLocationname.java | 7 +- .../SyncListConnectionProfilesString.java | 7 +- .../AsyncListMigrationJobs.java | 7 +- .../AsyncListMigrationJobsPaged.java | 7 +- .../SyncListMigrationJobs.java | 7 +- .../SyncListMigrationJobsLocationname.java | 7 +- .../SyncListMigrationJobsString.java | 7 +- .../AsyncPromoteMigrationJob.java | 7 +- .../AsyncPromoteMigrationJobLRO.java | 7 +- .../SyncPromoteMigrationJob.java | 7 +- .../AsyncRestartMigrationJob.java | 7 +- .../AsyncRestartMigrationJobLRO.java | 7 +- .../SyncRestartMigrationJob.java | 7 +- .../AsyncResumeMigrationJob.java | 7 +- .../AsyncResumeMigrationJobLRO.java | 7 +- .../SyncResumeMigrationJob.java | 7 +- .../AsyncStartMigrationJob.java | 7 +- .../AsyncStartMigrationJobLRO.java | 7 +- .../SyncStartMigrationJob.java | 7 +- .../AsyncStopMigrationJob.java | 7 +- .../AsyncStopMigrationJobLRO.java | 7 +- .../SyncStopMigrationJob.java | 7 +- .../AsyncUpdateConnectionProfile.java | 7 +- .../AsyncUpdateConnectionProfileLRO.java | 7 +- .../SyncUpdateConnectionProfile.java | 7 +- ...tionProfileConnectionprofileFieldmask.java | 7 +- .../AsyncUpdateMigrationJob.java | 7 +- .../AsyncUpdateMigrationJobLRO.java | 7 +- .../SyncUpdateMigrationJob.java | 7 +- ...dateMigrationJobMigrationjobFieldmask.java | 7 +- .../AsyncVerifyMigrationJob.java | 7 +- .../AsyncVerifyMigrationJobLRO.java | 7 +- .../SyncVerifyMigrationJob.java | 7 +- .../getmigrationjob/SyncGetMigrationJob.java | 7 +- .../getmigrationjob/SyncGetMigrationJob.java | 7 +- 74 files changed, 710 insertions(+), 284 deletions(-) diff --git a/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java b/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java index 95d9af25..c072f4e1 100644 --- a/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java +++ b/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java @@ -46,8 +46,11 @@ * calls that map to API methods. Sample code to get started: * *
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (DataMigrationServiceClient dataMigrationServiceClient =
  *     DataMigrationServiceClient.create()) {
  *   MigrationJobName name = MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]");
@@ -85,8 +88,11 @@
  * 

To customize credentials: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * DataMigrationServiceSettings dataMigrationServiceSettings =
  *     DataMigrationServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -98,8 +104,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * DataMigrationServiceSettings dataMigrationServiceSettings =
  *     DataMigrationServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * DataMigrationServiceClient dataMigrationServiceClient =
@@ -176,8 +185,11 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -206,8 +218,11 @@ public final ListMigrationJobsPagedResponse listMigrationJobs(LocationName paren
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -234,8 +249,11 @@ public final ListMigrationJobsPagedResponse listMigrationJobs(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   ListMigrationJobsRequest request =
@@ -267,8 +285,11 @@ public final ListMigrationJobsPagedResponse listMigrationJobs(ListMigrationJobsR
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   ListMigrationJobsRequest request =
@@ -300,8 +321,11 @@ public final ListMigrationJobsPagedResponse listMigrationJobs(ListMigrationJobsR
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   ListMigrationJobsRequest request =
@@ -340,8 +364,11 @@ public final ListMigrationJobsPagedResponse listMigrationJobs(ListMigrationJobsR
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   MigrationJobName name = MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]");
@@ -365,8 +392,11 @@ public final MigrationJob getMigrationJob(MigrationJobName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   String name = MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString();
@@ -389,8 +419,11 @@ public final MigrationJob getMigrationJob(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   GetMigrationJobRequest request =
@@ -415,8 +448,11 @@ public final MigrationJob getMigrationJob(GetMigrationJobRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   GetMigrationJobRequest request =
@@ -441,8 +477,11 @@ public final UnaryCallable getMigrationJob
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -480,8 +519,11 @@ public final OperationFuture createMigrationJob
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -519,8 +561,11 @@ public final OperationFuture createMigrationJob
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   CreateMigrationJobRequest request =
@@ -549,8 +594,11 @@ public final OperationFuture createMigrationJob
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   CreateMigrationJobRequest request =
@@ -579,8 +627,11 @@ public final OperationFuture createMigrationJob
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   CreateMigrationJobRequest request =
@@ -608,8 +659,11 @@ public final UnaryCallable createMigration
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   MigrationJob migrationJob = MigrationJob.newBuilder().build();
@@ -641,8 +695,11 @@ public final OperationFuture updateMigrationJob
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   UpdateMigrationJobRequest request =
@@ -670,8 +727,11 @@ public final OperationFuture updateMigrationJob
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   UpdateMigrationJobRequest request =
@@ -699,8 +759,11 @@ public final OperationFuture updateMigrationJob
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   UpdateMigrationJobRequest request =
@@ -727,8 +790,11 @@ public final UnaryCallable updateMigration
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   MigrationJobName name = MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]");
@@ -755,8 +821,11 @@ public final OperationFuture deleteMigrationJobAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   String name = MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString();
@@ -780,8 +849,11 @@ public final OperationFuture deleteMigrationJobAsync(S
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   DeleteMigrationJobRequest request =
@@ -809,8 +881,11 @@ public final OperationFuture deleteMigrationJobAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   DeleteMigrationJobRequest request =
@@ -838,8 +913,11 @@ public final OperationFuture deleteMigrationJobAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   DeleteMigrationJobRequest request =
@@ -866,8 +944,11 @@ public final UnaryCallable deleteMigration
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   StartMigrationJobRequest request =
@@ -893,8 +974,11 @@ public final OperationFuture startMigrationJobA
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   StartMigrationJobRequest request =
@@ -920,8 +1004,11 @@ public final OperationFuture startMigrationJobA
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   StartMigrationJobRequest request =
@@ -946,8 +1033,11 @@ public final UnaryCallable startMigrationJo
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   StopMigrationJobRequest request =
@@ -973,8 +1063,11 @@ public final OperationFuture stopMigrationJobAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   StopMigrationJobRequest request =
@@ -1000,8 +1093,11 @@ public final OperationFuture stopMigrationJobAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   StopMigrationJobRequest request =
@@ -1027,8 +1123,11 @@ public final UnaryCallable stopMigrationJobC
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   ResumeMigrationJobRequest request =
@@ -1055,8 +1154,11 @@ public final OperationFuture resumeMigrationJob
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   ResumeMigrationJobRequest request =
@@ -1083,8 +1185,11 @@ public final OperationFuture resumeMigrationJob
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   ResumeMigrationJobRequest request =
@@ -1110,8 +1215,11 @@ public final UnaryCallable resumeMigration
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   PromoteMigrationJobRequest request =
@@ -1138,8 +1246,11 @@ public final OperationFuture promoteMigrationJo
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   PromoteMigrationJobRequest request =
@@ -1166,8 +1277,11 @@ public final OperationFuture promoteMigrationJo
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   PromoteMigrationJobRequest request =
@@ -1193,8 +1307,11 @@ public final UnaryCallable promoteMigrati
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   VerifyMigrationJobRequest request =
@@ -1221,8 +1338,11 @@ public final OperationFuture verifyMigrationJob
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   VerifyMigrationJobRequest request =
@@ -1249,8 +1369,11 @@ public final OperationFuture verifyMigrationJob
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   VerifyMigrationJobRequest request =
@@ -1276,8 +1399,11 @@ public final UnaryCallable verifyMigration
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   RestartMigrationJobRequest request =
@@ -1304,8 +1430,11 @@ public final OperationFuture restartMigrationJo
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   RestartMigrationJobRequest request =
@@ -1332,8 +1461,11 @@ public final OperationFuture restartMigrationJo
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   RestartMigrationJobRequest request =
@@ -1358,8 +1490,11 @@ public final UnaryCallable restartMigrati
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   GenerateSshScriptRequest request =
@@ -1387,8 +1522,11 @@ public final SshScript generateSshScript(GenerateSshScriptRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   GenerateSshScriptRequest request =
@@ -1416,8 +1554,11 @@ public final UnaryCallable generateSshScrip
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -1446,8 +1587,11 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles(Location
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -1474,8 +1618,11 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles(String p
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   ListConnectionProfilesRequest request =
@@ -1508,8 +1655,11 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   ListConnectionProfilesRequest request =
@@ -1541,8 +1691,11 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   ListConnectionProfilesRequest request =
@@ -1581,8 +1734,11 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   ConnectionProfileName name =
@@ -1609,8 +1765,11 @@ public final ConnectionProfile getConnectionProfile(ConnectionProfileName name)
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   String name =
@@ -1635,8 +1794,11 @@ public final ConnectionProfile getConnectionProfile(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   GetConnectionProfileRequest request =
@@ -1663,8 +1825,11 @@ public final ConnectionProfile getConnectionProfile(GetConnectionProfileRequest
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   GetConnectionProfileRequest request =
@@ -1692,8 +1857,11 @@ public final ConnectionProfile getConnectionProfile(GetConnectionProfileRequest
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   ConnectionProfileName parent =
@@ -1733,8 +1901,11 @@ public final OperationFuture createConnect
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   String parent =
@@ -1772,8 +1943,11 @@ public final OperationFuture createConnect
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   CreateConnectionProfileRequest request =
@@ -1805,8 +1979,11 @@ public final OperationFuture createConnect
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   CreateConnectionProfileRequest request =
@@ -1838,8 +2015,11 @@ public final OperationFuture createConnect
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   CreateConnectionProfileRequest request =
@@ -1870,8 +2050,11 @@ public final OperationFuture createConnect
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build();
@@ -1905,8 +2088,11 @@ public final OperationFuture updateConnect
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   UpdateConnectionProfileRequest request =
@@ -1935,8 +2121,11 @@ public final OperationFuture updateConnect
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   UpdateConnectionProfileRequest request =
@@ -1965,8 +2154,11 @@ public final OperationFuture updateConnect
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   UpdateConnectionProfileRequest request =
@@ -1995,8 +2187,11 @@ public final OperationFuture updateConnect
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   ConnectionProfileName name =
@@ -2025,8 +2220,11 @@ public final OperationFuture deleteConnectionProfileAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   String name =
@@ -2052,8 +2250,11 @@ public final OperationFuture deleteConnectionProfileAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   DeleteConnectionProfileRequest request =
@@ -2084,8 +2285,11 @@ public final OperationFuture deleteConnectionProfileAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   DeleteConnectionProfileRequest request =
@@ -2116,8 +2320,11 @@ public final OperationFuture deleteConnectionProfileAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   DeleteConnectionProfileRequest request =
diff --git a/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java b/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java
index 86df72e4..039127f3 100644
--- a/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java
+++ b/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java
@@ -56,8 +56,11 @@
  * 

For example, to set the total timeout of getMigrationJob to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * DataMigrationServiceSettings.Builder dataMigrationServiceSettingsBuilder =
  *     DataMigrationServiceSettings.newBuilder();
  * dataMigrationServiceSettingsBuilder
diff --git a/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/package-info.java b/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/package-info.java
index 6a26838f..fcbbe42b 100644
--- a/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/package-info.java
+++ b/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/package-info.java
@@ -24,8 +24,11 @@
  * 

Sample for DataMigrationServiceClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (DataMigrationServiceClient dataMigrationServiceClient =
  *     DataMigrationServiceClient.create()) {
  *   MigrationJobName name = MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]");
diff --git a/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java b/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java
index 73c5b74d..6b8e60b8 100644
--- a/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java
+++ b/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java
@@ -97,8 +97,11 @@
  * 

For example, to set the total timeout of getMigrationJob to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * DataMigrationServiceStubSettings.Builder dataMigrationServiceSettingsBuilder =
  *     DataMigrationServiceStubSettings.newBuilder();
  * dataMigrationServiceSettingsBuilder
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/create/SyncCreateSetCredentialsProvider.java
index 24ea866d..787b9e63 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/create/SyncCreateSetCredentialsProvider.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/create/SyncCreateSetCredentialsProvider.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     DataMigrationServiceSettings dataMigrationServiceSettings =
         DataMigrationServiceSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/create/SyncCreateSetEndpoint.java
index 08a82e8a..e9a01be4 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/create/SyncCreateSetEndpoint.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/create/SyncCreateSetEndpoint.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetEndpoint() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     DataMigrationServiceSettings dataMigrationServiceSettings =
         DataMigrationServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
     DataMigrationServiceClient dataMigrationServiceClient =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/AsyncCreateConnectionProfile.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/AsyncCreateConnectionProfile.java
index 9ad46e33..baabc329 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/AsyncCreateConnectionProfile.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/AsyncCreateConnectionProfile.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateConnectionProfile() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       CreateConnectionProfileRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/AsyncCreateConnectionProfileLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/AsyncCreateConnectionProfileLRO.java
index 0a7fd4d2..ca5a5286 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/AsyncCreateConnectionProfileLRO.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/AsyncCreateConnectionProfileLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateConnectionProfileLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       CreateConnectionProfileRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfile.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfile.java
index a1f9dd75..e8440875 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfile.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfile.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateConnectionProfile() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       CreateConnectionProfileRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfileConnectionprofilenameConnectionprofileString.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfileConnectionprofilenameConnectionprofileString.java
index 777e1b52..bad31a2a 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfileConnectionprofilenameConnectionprofileString.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfileConnectionprofilenameConnectionprofileString.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
 
   public static void syncCreateConnectionProfileConnectionprofilenameConnectionprofileString()
       throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       ConnectionProfileName parent =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java
index 82ad8070..62e2fba4 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateConnectionProfileStringConnectionprofileString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       String parent =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/AsyncCreateMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/AsyncCreateMigrationJob.java
index 63720cb5..595b6f41 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/AsyncCreateMigrationJob.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/AsyncCreateMigrationJob.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateMigrationJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       CreateMigrationJobRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/AsyncCreateMigrationJobLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/AsyncCreateMigrationJobLRO.java
index c1ef0049..723b16a3 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/AsyncCreateMigrationJobLRO.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/AsyncCreateMigrationJobLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateMigrationJobLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       CreateMigrationJobRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJob.java
index ebe89c5c..51ce36c7 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJob.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJob.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateMigrationJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       CreateMigrationJobRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJobLocationnameMigrationjobString.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJobLocationnameMigrationjobString.java
index feb87e1b..cee4a468 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJobLocationnameMigrationjobString.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJobLocationnameMigrationjobString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateMigrationJobLocationnameMigrationjobString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJobStringMigrationjobString.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJobStringMigrationjobString.java
index 240a7e08..27ac3efe 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJobStringMigrationjobString.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJobStringMigrationjobString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateMigrationJobStringMigrationjobString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/AsyncDeleteConnectionProfile.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/AsyncDeleteConnectionProfile.java
index 9f224981..ab22ec5b 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/AsyncDeleteConnectionProfile.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/AsyncDeleteConnectionProfile.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteConnectionProfile() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       DeleteConnectionProfileRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java
index bc5adaaa..79863d49 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteConnectionProfileLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       DeleteConnectionProfileRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfile.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfile.java
index 03404f5f..c04bba2c 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfile.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfile.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteConnectionProfile() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       DeleteConnectionProfileRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java
index 6e78b7bf..935e1d0a 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteConnectionProfileConnectionprofilename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       ConnectionProfileName name =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfileString.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfileString.java
index 29dcce72..915bd054 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfileString.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfileString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteConnectionProfileString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       String name =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/AsyncDeleteMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/AsyncDeleteMigrationJob.java
index b7070389..d7e594f7 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/AsyncDeleteMigrationJob.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/AsyncDeleteMigrationJob.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteMigrationJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       DeleteMigrationJobRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/AsyncDeleteMigrationJobLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/AsyncDeleteMigrationJobLRO.java
index 45bc083d..a410af6b 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/AsyncDeleteMigrationJobLRO.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/AsyncDeleteMigrationJobLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteMigrationJobLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       DeleteMigrationJobRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJob.java
index 92e1e7f8..597a9ccb 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJob.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJob.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteMigrationJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       DeleteMigrationJobRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJobMigrationjobname.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJobMigrationjobname.java
index ab861746..5790f7c5 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJobMigrationjobname.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJobMigrationjobname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteMigrationJobMigrationjobname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       MigrationJobName name = MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]");
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJobString.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJobString.java
index 602f918d..13c7b475 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJobString.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJobString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteMigrationJobString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       String name = MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString();
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/generatesshscript/AsyncGenerateSshScript.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/generatesshscript/AsyncGenerateSshScript.java
index 87703ce2..3ee1b83d 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/generatesshscript/AsyncGenerateSshScript.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/generatesshscript/AsyncGenerateSshScript.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGenerateSshScript() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       GenerateSshScriptRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/generatesshscript/SyncGenerateSshScript.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/generatesshscript/SyncGenerateSshScript.java
index b4dd045b..80a82079 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/generatesshscript/SyncGenerateSshScript.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/generatesshscript/SyncGenerateSshScript.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGenerateSshScript() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       GenerateSshScriptRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/AsyncGetConnectionProfile.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/AsyncGetConnectionProfile.java
index 5305d37d..e2096aea 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/AsyncGetConnectionProfile.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/AsyncGetConnectionProfile.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetConnectionProfile() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       GetConnectionProfileRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfile.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfile.java
index 7b2d86fc..423cc716 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfile.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfile.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetConnectionProfile() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       GetConnectionProfileRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java
index 72b9a172..a6618a98 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetConnectionProfileConnectionprofilename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       ConnectionProfileName name =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfileString.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfileString.java
index 15928de5..c8783e93 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfileString.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfileString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetConnectionProfileString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       String name =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/AsyncGetMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/AsyncGetMigrationJob.java
index 0e364b83..fda606d9 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/AsyncGetMigrationJob.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/AsyncGetMigrationJob.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetMigrationJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       GetMigrationJobRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJob.java
index 84e30618..dd6c465a 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJob.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJob.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetMigrationJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       GetMigrationJobRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJobMigrationjobname.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJobMigrationjobname.java
index d67c7a21..d8935664 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJobMigrationjobname.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJobMigrationjobname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetMigrationJobMigrationjobname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       MigrationJobName name = MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]");
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJobString.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJobString.java
index b26d332f..d0174269 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJobString.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJobString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetMigrationJobString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       String name = MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString();
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/AsyncListConnectionProfiles.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/AsyncListConnectionProfiles.java
index 3e329d75..e3934a89 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/AsyncListConnectionProfiles.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/AsyncListConnectionProfiles.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListConnectionProfiles() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       ListConnectionProfilesRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/AsyncListConnectionProfilesPaged.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/AsyncListConnectionProfilesPaged.java
index 1d32f146..1e79e71b 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/AsyncListConnectionProfilesPaged.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/AsyncListConnectionProfilesPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListConnectionProfilesPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       ListConnectionProfilesRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfiles.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfiles.java
index 89936fbd..0c11c431 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfiles.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfiles.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListConnectionProfiles() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       ListConnectionProfilesRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfilesLocationname.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfilesLocationname.java
index 39dbdc2f..951d17dc 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfilesLocationname.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfilesLocationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListConnectionProfilesLocationname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfilesString.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfilesString.java
index 7374d25a..942ed5e3 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfilesString.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfilesString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListConnectionProfilesString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/AsyncListMigrationJobs.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/AsyncListMigrationJobs.java
index f595095b..bc4d9714 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/AsyncListMigrationJobs.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/AsyncListMigrationJobs.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListMigrationJobs() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       ListMigrationJobsRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/AsyncListMigrationJobsPaged.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/AsyncListMigrationJobsPaged.java
index 18118b37..ab5d6cf2 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/AsyncListMigrationJobsPaged.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/AsyncListMigrationJobsPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListMigrationJobsPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       ListMigrationJobsRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobs.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobs.java
index 8223d1b4..24e23a9f 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobs.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobs.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListMigrationJobs() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       ListMigrationJobsRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobsLocationname.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobsLocationname.java
index f457bdfb..8f607df5 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobsLocationname.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobsLocationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListMigrationJobsLocationname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobsString.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobsString.java
index 5f53b026..42de9c15 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobsString.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobsString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListMigrationJobsString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/AsyncPromoteMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/AsyncPromoteMigrationJob.java
index 8beabf0b..f305794f 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/AsyncPromoteMigrationJob.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/AsyncPromoteMigrationJob.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncPromoteMigrationJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       PromoteMigrationJobRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/AsyncPromoteMigrationJobLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/AsyncPromoteMigrationJobLRO.java
index 1fb6cf77..739d10e4 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/AsyncPromoteMigrationJobLRO.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/AsyncPromoteMigrationJobLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncPromoteMigrationJobLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       PromoteMigrationJobRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/SyncPromoteMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/SyncPromoteMigrationJob.java
index b07cd310..bed2e779 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/SyncPromoteMigrationJob.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/SyncPromoteMigrationJob.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPromoteMigrationJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       PromoteMigrationJobRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/AsyncRestartMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/AsyncRestartMigrationJob.java
index 2f18d75d..2f4fbaf4 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/AsyncRestartMigrationJob.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/AsyncRestartMigrationJob.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncRestartMigrationJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       RestartMigrationJobRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/AsyncRestartMigrationJobLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/AsyncRestartMigrationJobLRO.java
index f7749943..2a9c8b48 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/AsyncRestartMigrationJobLRO.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/AsyncRestartMigrationJobLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncRestartMigrationJobLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       RestartMigrationJobRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/SyncRestartMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/SyncRestartMigrationJob.java
index 080db968..2a24bc3e 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/SyncRestartMigrationJob.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/SyncRestartMigrationJob.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRestartMigrationJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       RestartMigrationJobRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/AsyncResumeMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/AsyncResumeMigrationJob.java
index 262baca2..271fe4c7 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/AsyncResumeMigrationJob.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/AsyncResumeMigrationJob.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncResumeMigrationJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       ResumeMigrationJobRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/AsyncResumeMigrationJobLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/AsyncResumeMigrationJobLRO.java
index 5ac2bc29..39281ad5 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/AsyncResumeMigrationJobLRO.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/AsyncResumeMigrationJobLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncResumeMigrationJobLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       ResumeMigrationJobRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/SyncResumeMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/SyncResumeMigrationJob.java
index 8942980f..ecb7ec69 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/SyncResumeMigrationJob.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/SyncResumeMigrationJob.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncResumeMigrationJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       ResumeMigrationJobRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/AsyncStartMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/AsyncStartMigrationJob.java
index 0e67e0e1..0672a9a5 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/AsyncStartMigrationJob.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/AsyncStartMigrationJob.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncStartMigrationJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       StartMigrationJobRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/AsyncStartMigrationJobLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/AsyncStartMigrationJobLRO.java
index a3bfe640..8a6a645c 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/AsyncStartMigrationJobLRO.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/AsyncStartMigrationJobLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncStartMigrationJobLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       StartMigrationJobRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/SyncStartMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/SyncStartMigrationJob.java
index 524061ba..1f2fd78e 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/SyncStartMigrationJob.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/SyncStartMigrationJob.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncStartMigrationJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       StartMigrationJobRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/AsyncStopMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/AsyncStopMigrationJob.java
index 8d4606a3..88983793 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/AsyncStopMigrationJob.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/AsyncStopMigrationJob.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncStopMigrationJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       StopMigrationJobRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/AsyncStopMigrationJobLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/AsyncStopMigrationJobLRO.java
index 7fdb71be..cd9e12d9 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/AsyncStopMigrationJobLRO.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/AsyncStopMigrationJobLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncStopMigrationJobLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       StopMigrationJobRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/SyncStopMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/SyncStopMigrationJob.java
index 77d43280..15f9d506 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/SyncStopMigrationJob.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/SyncStopMigrationJob.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncStopMigrationJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       StopMigrationJobRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/AsyncUpdateConnectionProfile.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/AsyncUpdateConnectionProfile.java
index 26bb5f5f..ca513f48 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/AsyncUpdateConnectionProfile.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/AsyncUpdateConnectionProfile.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdateConnectionProfile() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       UpdateConnectionProfileRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java
index d83ad515..c9b8d206 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdateConnectionProfileLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       UpdateConnectionProfileRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/SyncUpdateConnectionProfile.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/SyncUpdateConnectionProfile.java
index 85e0b543..76111400 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/SyncUpdateConnectionProfile.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/SyncUpdateConnectionProfile.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateConnectionProfile() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       UpdateConnectionProfileRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java
index ac1244f7..c2559b15 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateConnectionProfileConnectionprofileFieldmask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/AsyncUpdateMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/AsyncUpdateMigrationJob.java
index 80478843..b2139601 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/AsyncUpdateMigrationJob.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/AsyncUpdateMigrationJob.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdateMigrationJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       UpdateMigrationJobRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/AsyncUpdateMigrationJobLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/AsyncUpdateMigrationJobLRO.java
index 13425973..16061473 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/AsyncUpdateMigrationJobLRO.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/AsyncUpdateMigrationJobLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdateMigrationJobLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       UpdateMigrationJobRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/SyncUpdateMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/SyncUpdateMigrationJob.java
index 8bc0974c..a2545f7e 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/SyncUpdateMigrationJob.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/SyncUpdateMigrationJob.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateMigrationJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       UpdateMigrationJobRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/SyncUpdateMigrationJobMigrationjobFieldmask.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/SyncUpdateMigrationJobMigrationjobFieldmask.java
index a8708694..3a7b8ebe 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/SyncUpdateMigrationJobMigrationjobFieldmask.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/SyncUpdateMigrationJobMigrationjobFieldmask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateMigrationJobMigrationjobFieldmask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       MigrationJob migrationJob = MigrationJob.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/AsyncVerifyMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/AsyncVerifyMigrationJob.java
index a046ab56..8891608c 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/AsyncVerifyMigrationJob.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/AsyncVerifyMigrationJob.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncVerifyMigrationJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       VerifyMigrationJobRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/AsyncVerifyMigrationJobLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/AsyncVerifyMigrationJobLRO.java
index 7027cdbf..8ec5798e 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/AsyncVerifyMigrationJobLRO.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/AsyncVerifyMigrationJobLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncVerifyMigrationJobLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       VerifyMigrationJobRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/SyncVerifyMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/SyncVerifyMigrationJob.java
index ffcd6f07..36118d5f 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/SyncVerifyMigrationJob.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/SyncVerifyMigrationJob.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncVerifyMigrationJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DataMigrationServiceClient dataMigrationServiceClient =
         DataMigrationServiceClient.create()) {
       VerifyMigrationJobRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservicesettings/getmigrationjob/SyncGetMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservicesettings/getmigrationjob/SyncGetMigrationJob.java
index 5c0e865a..366de98e 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservicesettings/getmigrationjob/SyncGetMigrationJob.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservicesettings/getmigrationjob/SyncGetMigrationJob.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetMigrationJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     DataMigrationServiceSettings.Builder dataMigrationServiceSettingsBuilder =
         DataMigrationServiceSettings.newBuilder();
     dataMigrationServiceSettingsBuilder
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/stub/datamigrationservicestubsettings/getmigrationjob/SyncGetMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/stub/datamigrationservicestubsettings/getmigrationjob/SyncGetMigrationJob.java
index af5026bc..324269e0 100644
--- a/samples/snippets/generated/com/google/cloud/clouddms/v1/stub/datamigrationservicestubsettings/getmigrationjob/SyncGetMigrationJob.java
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/stub/datamigrationservicestubsettings/getmigrationjob/SyncGetMigrationJob.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetMigrationJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     DataMigrationServiceStubSettings.Builder dataMigrationServiceSettingsBuilder =
         DataMigrationServiceStubSettings.newBuilder();
     dataMigrationServiceSettingsBuilder

From da927bf96d5c0c419e48e60eea2a18490a61d11c Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate 
Date: Fri, 9 Sep 2022 05:46:16 +0200
Subject: [PATCH 7/8] deps: update dependency
 com.google.cloud:google-cloud-shared-dependencies to v3.0.2 (#258)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

[![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.1` -> `3.0.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.2/compatibility-slim/3.0.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.2/confidence-slim/3.0.1)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

googleapis/java-shared-dependencies ### [`v3.0.2`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​302-httpsgithubcomgoogleapisjava-shared-dependenciescomparev301v302-2022-09-08) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v3.0.1...v3.0.2) ##### Dependencies - Update dependency com.fasterxml.jackson:jackson-bom to v2.13.4 ([#​789](https://togithub.com/googleapis/java-shared-dependencies/issues/789)) ([6cf91a9](https://togithub.com/googleapis/java-shared-dependencies/commit/6cf91a96b9ea6af0fb845b50582dac7aa2892cab)) - Update dependency com.google.auth:google-auth-library-bom to v1.10.0 ([#​781](https://togithub.com/googleapis/java-shared-dependencies/issues/781)) ([8859e61](https://togithub.com/googleapis/java-shared-dependencies/commit/8859e61808bfc5cd9546e27e945fc855b36d2554)) - Update dependency com.google.auth:google-auth-library-bom to v1.11.0 ([#​790](https://togithub.com/googleapis/java-shared-dependencies/issues/790)) ([3431a47](https://togithub.com/googleapis/java-shared-dependencies/commit/3431a471cbf874a67a4f1a42e31f0ed891dedc92)) - Update dependency com.google.auth:google-auth-library-bom to v1.9.0 ([#​773](https://togithub.com/googleapis/java-shared-dependencies/issues/773)) ([27fc79f](https://togithub.com/googleapis/java-shared-dependencies/commit/27fc79f00ee70011df6a368bb8fcfad7f0ce41f0)) - Update dependency com.google.errorprone:error_prone_annotations to v2.15.0 ([#​776](https://togithub.com/googleapis/java-shared-dependencies/issues/776)) ([bf333b8](https://togithub.com/googleapis/java-shared-dependencies/commit/bf333b8c88072d21cb959db4d3328bbb55d9ef5c)) - Update dependency com.google.protobuf:protobuf-bom to v3.21.5 ([#​780](https://togithub.com/googleapis/java-shared-dependencies/issues/780)) ([da7f44d](https://togithub.com/googleapis/java-shared-dependencies/commit/da7f44d71d6d7f372b5313dab68ce220308614d4)) - Update dependency io.grpc:grpc-bom to v1.48.1 ([#​768](https://togithub.com/googleapis/java-shared-dependencies/issues/768)) ([5c7768d](https://togithub.com/googleapis/java-shared-dependencies/commit/5c7768d3c9665dd356de6c39c0a6a5fa6e992f2e)) - Update dependency io.grpc:grpc-bom to v1.49.0 ([#​786](https://togithub.com/googleapis/java-shared-dependencies/issues/786)) ([8734812](https://togithub.com/googleapis/java-shared-dependencies/commit/8734812f1b4e2faaa48caf41eff59a85892ae344)) - Update dependency org.checkerframework:checker-qual to v3.24.0 ([#​775](https://togithub.com/googleapis/java-shared-dependencies/issues/775)) ([df74b7b](https://togithub.com/googleapis/java-shared-dependencies/commit/df74b7b0dd5dd592523f302d9fb36adb5991cb0b)) - Update dependency org.checkerframework:checker-qual to v3.25.0 ([#​788](https://togithub.com/googleapis/java-shared-dependencies/issues/788)) ([207035b](https://togithub.com/googleapis/java-shared-dependencies/commit/207035bd04c9305899eea540acbefaf06a7b1ec9)) - Update dependency org.threeten:threetenbp to v1.6.1 ([#​782](https://togithub.com/googleapis/java-shared-dependencies/issues/782)) ([0f218ae](https://togithub.com/googleapis/java-shared-dependencies/commit/0f218aeb6aa33cf1da4a8b1d6c82bbf87946dab9)) - Update gax.version to v2.19.0 ([#​785](https://togithub.com/googleapis/java-shared-dependencies/issues/785)) ([4448331](https://togithub.com/googleapis/java-shared-dependencies/commit/4448331c4c6d88ea8076260776d1d47d24aa19fa)) - Update google.core.version to v2.8.10 ([#​787](https://togithub.com/googleapis/java-shared-dependencies/issues/787)) ([3c344d5](https://togithub.com/googleapis/java-shared-dependencies/commit/3c344d515e3b9215db5a1f8ef550d800d974e558)) - Update google.core.version to v2.8.7 ([#​774](https://togithub.com/googleapis/java-shared-dependencies/issues/774)) ([d0cd5e8](https://togithub.com/googleapis/java-shared-dependencies/commit/d0cd5e8f6ca88787fe0dbf7f30c849cb4c4fae5e)) - Update google.core.version to v2.8.8 ([#​777](https://togithub.com/googleapis/java-shared-dependencies/issues/777)) ([f00571c](https://togithub.com/googleapis/java-shared-dependencies/commit/f00571cd1e9f1c4e011fba4a1e1674c1d8d60200)) - Update google.core.version to v2.8.9 ([#​784](https://togithub.com/googleapis/java-shared-dependencies/issues/784)) ([aa8e505](https://togithub.com/googleapis/java-shared-dependencies/commit/aa8e505dbb1214b2239e55d5ac83b00c167d77e4))
--- ### 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. --- - [ ] 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-dms). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 08808565..bf3bee9c 100644 --- a/pom.xml +++ b/pom.xml @@ -76,7 +76,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.0.1 + 3.0.2 pom import From ee3022e4bf11b27d0391d8679848677a84992232 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 9 Sep 2022 04:24:19 +0000 Subject: [PATCH 8/8] chore(main): release 2.2.4 (#259) :robot: I have created a release *beep* *boop* --- ## [2.2.4](https://github.com/googleapis/java-dms/compare/v2.2.3...v2.2.4) (2022-09-09) ### Dependencies * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#258](https://github.com/googleapis/java-dms/issues/258)) ([da927bf](https://github.com/googleapis/java-dms/commit/da927bf96d5c0c419e48e60eea2a18490a61d11c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-dms-bom/pom.xml | 8 ++++---- google-cloud-dms/pom.xml | 4 ++-- grpc-google-cloud-dms-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dms-v1/pom.xml | 4 ++-- versions.txt | 6 +++--- 7 files changed, 24 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f43734b5..3792d853 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.2.4](https://github.com/googleapis/java-dms/compare/v2.2.3...v2.2.4) (2022-09-09) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#258](https://github.com/googleapis/java-dms/issues/258)) ([da927bf](https://github.com/googleapis/java-dms/commit/da927bf96d5c0c419e48e60eea2a18490a61d11c)) + ## [2.2.3](https://github.com/googleapis/java-dms/compare/v2.2.2...v2.2.3) (2022-08-09) diff --git a/google-cloud-dms-bom/pom.xml b/google-cloud-dms-bom/pom.xml index 71e4f97a..21bab8ae 100644 --- a/google-cloud-dms-bom/pom.xml +++ b/google-cloud-dms-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dms-bom - 2.2.4-SNAPSHOT + 2.2.4 pom com.google.cloud @@ -56,17 +56,17 @@ com.google.cloud google-cloud-dms - 2.2.4-SNAPSHOT + 2.2.4 com.google.api.grpc grpc-google-cloud-dms-v1 - 2.2.4-SNAPSHOT + 2.2.4 com.google.api.grpc proto-google-cloud-dms-v1 - 2.2.4-SNAPSHOT + 2.2.4 diff --git a/google-cloud-dms/pom.xml b/google-cloud-dms/pom.xml index 7dfeded9..591d2385 100644 --- a/google-cloud-dms/pom.xml +++ b/google-cloud-dms/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dms - 2.2.4-SNAPSHOT + 2.2.4 jar Google Database Migration Service https://github.com/googleapis/java-dms @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dms-parent - 2.2.4-SNAPSHOT + 2.2.4 google-cloud-dms diff --git a/grpc-google-cloud-dms-v1/pom.xml b/grpc-google-cloud-dms-v1/pom.xml index aa2e7809..7c0bf372 100644 --- a/grpc-google-cloud-dms-v1/pom.xml +++ b/grpc-google-cloud-dms-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dms-v1 - 2.2.4-SNAPSHOT + 2.2.4 grpc-google-cloud-dms-v1 GRPC library for google-cloud-dms com.google.cloud google-cloud-dms-parent - 2.2.4-SNAPSHOT + 2.2.4 diff --git a/pom.xml b/pom.xml index bf3bee9c..64b250b4 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dms-parent pom - 2.2.4-SNAPSHOT + 2.2.4 Google Database Migration Service Parent https://github.com/googleapis/java-dms @@ -60,18 +60,18 @@ com.google.cloud google-cloud-dms - 2.2.4-SNAPSHOT + 2.2.4 com.google.api.grpc proto-google-cloud-dms-v1 - 2.2.4-SNAPSHOT + 2.2.4 com.google.api.grpc grpc-google-cloud-dms-v1 - 2.2.4-SNAPSHOT + 2.2.4 com.google.cloud diff --git a/proto-google-cloud-dms-v1/pom.xml b/proto-google-cloud-dms-v1/pom.xml index 6c9b5b97..73fd0191 100644 --- a/proto-google-cloud-dms-v1/pom.xml +++ b/proto-google-cloud-dms-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dms-v1 - 2.2.4-SNAPSHOT + 2.2.4 proto-google-cloud-dms-v1 Proto library for google-cloud-dms com.google.cloud google-cloud-dms-parent - 2.2.4-SNAPSHOT + 2.2.4 diff --git a/versions.txt b/versions.txt index 4eca9856..3bb63c17 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dms:2.2.3:2.2.4-SNAPSHOT -grpc-google-cloud-dms-v1:2.2.3:2.2.4-SNAPSHOT -proto-google-cloud-dms-v1:2.2.3:2.2.4-SNAPSHOT +google-cloud-dms:2.2.4:2.2.4 +grpc-google-cloud-dms-v1:2.2.4:2.2.4 +proto-google-cloud-dms-v1:2.2.4:2.2.4