/// <summary>Snippet for GetDatabase</summary> public void GetDatabase() { // Snippet: GetDatabase(DatabaseName,CallSettings) // Create client DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create(); // Initialize request argument(s) DatabaseName name = new DatabaseName("[PROJECT]", "[INSTANCE]", "[DATABASE]"); // Make the request Database response = databaseAdminClient.GetDatabase(name); // End snippet }
/// <summary>Snippet for GetDatabase</summary> public void GetDatabase_RequestObject() { // Snippet: GetDatabase(GetDatabaseRequest,CallSettings) // Create client DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create(); // Initialize request argument(s) GetDatabaseRequest request = new GetDatabaseRequest { DatabaseName = new DatabaseName("[PROJECT]", "[INSTANCE]", "[DATABASE]"), }; // Make the request Database response = databaseAdminClient.GetDatabase(request); // End snippet }