Skip to content

Commit

Permalink
feat!: owlbot updates for Spanner V2
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed Nov 16, 2024
1 parent d8a6602 commit 8c27502
Show file tree
Hide file tree
Showing 157 changed files with 379 additions and 2,138 deletions.
18 changes: 9 additions & 9 deletions Spanner/src/Admin/Database/V1/Backup.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Spanner/src/Admin/Database/V1/BackupInfo.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 0 additions & 16 deletions Spanner/src/Admin/Database/V1/Backup_State.php

This file was deleted.

23 changes: 21 additions & 2 deletions Spanner/src/Admin/Database/V1/Client/DatabaseAdminClient.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -28,7 +28,6 @@
use Google\ApiCore\CredentialsWrapper;
use Google\ApiCore\GapicClientTrait;
use Google\ApiCore\InsecureCredentialsWrapper;
use Google\ApiCore\LongRunning\OperationsClient;
use Google\ApiCore\OperationResponse;
use Google\ApiCore\PagedListResponse;
use Google\ApiCore\ResourceHelperTrait;
Expand Down Expand Up @@ -73,6 +72,7 @@
use Google\Cloud\Spanner\Admin\Database\V1\UpdateDatabaseDdlRequest;
use Google\Cloud\Spanner\Admin\Database\V1\UpdateDatabaseMetadata;
use Google\Cloud\Spanner\Admin\Database\V1\UpdateDatabaseRequest;
use Google\LongRunning\Client\OperationsClient;
use Google\LongRunning\Operation;
use Grpc\ChannelCredentials;
use GuzzleHttp\Promise\PromiseInterface;
Expand Down Expand Up @@ -200,6 +200,25 @@ public function resumeOperation($operationName, $methodName = null)
return $operation;
}

/**
* Create the default operation client for the service.
*
* @param array $options ClientOptions for the client.
*
* @return OperationsClient
*/
private function createOperationsClient(array $options)
{
// Unset client-specific configuration options
unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']);

if (isset($options['operationsClient'])) {
return $options['operationsClient'];
}

return new OperationsClient($options);
}

/**
* Formats a string containing the fully-qualified path to represent a backup
* resource.
Expand Down
4 changes: 2 additions & 2 deletions Spanner/src/Admin/Database/V1/CopyBackupEncryptionConfig.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

8 changes: 4 additions & 4 deletions Spanner/src/Admin/Database/V1/CopyBackupMetadata.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions Spanner/src/Admin/Database/V1/CopyBackupRequest.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

8 changes: 4 additions & 4 deletions Spanner/src/Admin/Database/V1/CreateBackupMetadata.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Spanner/src/Admin/Database/V1/CreateBackupRequest.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8c27502

Please sign in to comment.