Skip to content

Commit

Permalink
feat: generate sample code in the Java microgenerator (#859)
Browse files Browse the repository at this point in the history
Committer: @miraleung
PiperOrigin-RevId: 356341083

Source-Author: Google APIs <noreply@google.com>
Source-Date: Mon Feb 8 13:33:28 2021 -0800
Source-Repo: googleapis/googleapis
Source-Sha: 8d8c008e56f1af31d57f75561e0f1848ffb29eeb
Source-Link: googleapis/googleapis@8d8c008
  • Loading branch information
yoshi-automation committed Feb 9, 2021
1 parent c86fb5e commit 7cdfb82
Show file tree
Hide file tree
Showing 7 changed files with 2,210 additions and 3 deletions.

Large diffs are not rendered by default.

Expand Up @@ -26,6 +26,13 @@
* list backups for a database and to restore from an existing backup.
*
* <p>Sample for DatabaseAdminClient:
*
* <pre>{@code
* try (DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.create()) {
* DatabaseName name = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]");
* Database response = databaseAdminClient.getDatabase(name);
* }
* }</pre>
*/
@Generated("by gapic-generator-java")
package com.google.cloud.spanner.admin.database.v1;
Expand Down

0 comments on commit 7cdfb82

Please sign in to comment.