Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

chore: replace client creation methods for all new samples with auto-generated admin clients#2927

Merged
arpan14 merged 24 commits intogoogleapis:mainfrom
arpan14:admin-sample-emulator-support
Feb 26, 2024
Merged

chore: replace client creation methods for all new samples with auto-generated admin clients#2927
arpan14 merged 24 commits intogoogleapis:mainfrom
arpan14:admin-sample-emulator-support

Conversation

@arpan14
Copy link
Copy Markdown
Contributor

@arpan14 arpan14 commented Feb 23, 2024

  • Replacing client creation methods with createDatabaseAdminClient() and createInstanceAdminClient methods since it supports emulator.
  • Removing some unused imports.

@arpan14 arpan14 requested a review from a team February 23, 2024 15:00
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. api: spanner Issues related to the googleapis/java-spanner API. samples Issues that are directly related to samples. labels Feb 23, 2024
arpan14 and others added 2 commits February 23, 2024 21:49
@product-auto-label product-auto-label Bot removed the size: m Pull request size is medium. label Feb 24, 2024
@product-auto-label product-auto-label Bot added the size: s Pull request size is small. label Feb 24, 2024
}
}
for (String backupId : idGenerator.getBackupIds()) {
System.out.println("Trying to delete " + backupId);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I assume that this and the other System.out.println will be removed before merging.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually pretty useful. At the end of the test it prints if all the resources were cleaned up or not.

@product-auto-label product-auto-label Bot added size: l Pull request size is large. and removed size: s Pull request size is small. labels Feb 24, 2024
@arpan14 arpan14 added owlbot:run Add this label to trigger the Owlbot post processor. and removed owlbot:run Add this label to trigger the Owlbot post processor. labels Feb 24, 2024
@rahul2393 rahul2393 added the owlbot:run Add this label to trigger the Owlbot post processor. label Feb 26, 2024
@arpan14 arpan14 added owlbot:run Add this label to trigger the Owlbot post processor. and removed owlbot:run Add this label to trigger the Owlbot post processor. labels Feb 26, 2024
@chingor13 chingor13 added owlbot:run Add this label to trigger the Owlbot post processor. and removed owlbot:run Add this label to trigger the Owlbot post processor. labels Feb 26, 2024
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Feb 26, 2024
@arpan14 arpan14 added the automerge Merge the pull request once unit tests and other checks pass. label Feb 26, 2024
@arpan14 arpan14 merged commit c6d82d4 into googleapis:main Feb 26, 2024
@arpan14 arpan14 deleted the admin-sample-emulator-support branch February 26, 2024 18:55
@gcf-merge-on-green gcf-merge-on-green Bot removed the automerge Merge the pull request once unit tests and other checks pass. label Feb 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: spanner Issues related to the googleapis/java-spanner API. samples Issues that are directly related to samples. size: l Pull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants