Skip to content

Commit 8c27502

Browse files
committed
feat!: owlbot updates for Spanner V2
1 parent d8a6602 commit 8c27502

157 files changed

Lines changed: 379 additions & 2138 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Spanner/src/Admin/Database/V1/Backup.php

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Spanner/src/Admin/Database/V1/BackupInfo.php

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Spanner/src/Admin/Database/V1/Backup_State.php

Lines changed: 0 additions & 16 deletions
This file was deleted.

Spanner/src/Admin/Database/V1/Client/DatabaseAdminClient.php

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2023 Google LLC
3+
* Copyright 2024 Google LLC
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.
@@ -28,7 +28,6 @@
2828
use Google\ApiCore\CredentialsWrapper;
2929
use Google\ApiCore\GapicClientTrait;
3030
use Google\ApiCore\InsecureCredentialsWrapper;
31-
use Google\ApiCore\LongRunning\OperationsClient;
3231
use Google\ApiCore\OperationResponse;
3332
use Google\ApiCore\PagedListResponse;
3433
use Google\ApiCore\ResourceHelperTrait;
@@ -73,6 +72,7 @@
7372
use Google\Cloud\Spanner\Admin\Database\V1\UpdateDatabaseDdlRequest;
7473
use Google\Cloud\Spanner\Admin\Database\V1\UpdateDatabaseMetadata;
7574
use Google\Cloud\Spanner\Admin\Database\V1\UpdateDatabaseRequest;
75+
use Google\LongRunning\Client\OperationsClient;
7676
use Google\LongRunning\Operation;
7777
use Grpc\ChannelCredentials;
7878
use GuzzleHttp\Promise\PromiseInterface;
@@ -200,6 +200,25 @@ public function resumeOperation($operationName, $methodName = null)
200200
return $operation;
201201
}
202202

203+
/**
204+
* Create the default operation client for the service.
205+
*
206+
* @param array $options ClientOptions for the client.
207+
*
208+
* @return OperationsClient
209+
*/
210+
private function createOperationsClient(array $options)
211+
{
212+
// Unset client-specific configuration options
213+
unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']);
214+
215+
if (isset($options['operationsClient'])) {
216+
return $options['operationsClient'];
217+
}
218+
219+
return new OperationsClient($options);
220+
}
221+
203222
/**
204223
* Formats a string containing the fully-qualified path to represent a backup
205224
* resource.

Spanner/src/Admin/Database/V1/CopyBackupEncryptionConfig.php

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Spanner/src/Admin/Database/V1/CopyBackupEncryptionConfig_EncryptionType.php

Lines changed: 0 additions & 16 deletions
This file was deleted.

Spanner/src/Admin/Database/V1/CopyBackupMetadata.php

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Spanner/src/Admin/Database/V1/CopyBackupRequest.php

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Spanner/src/Admin/Database/V1/CreateBackupEncryptionConfig.php

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Spanner/src/Admin/Database/V1/CreateBackupEncryptionConfig_EncryptionType.php

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)