Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [AlloyDb] Add new field in GenerateClientCertificate v1 API to allow AlloyDB connectors request client certs with metadata exchange support #6762

Merged
merged 2 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified AlloyDb/metadata/V1/Service.php
Binary file not shown.
16 changes: 8 additions & 8 deletions AlloyDb/src/V1/Cluster/NetworkConfig.php

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

10 changes: 10 additions & 0 deletions AlloyDb/src/V1/Gapic/AlloyDBAdminGapicClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -1869,6 +1869,10 @@ public function failoverInstance($name, array $optionalArgs = [])
* default duration.
* @type string $publicKey
* Optional. The public key from the client.
* @type bool $useMetadataExchange
* Optional. An optional hint to the endpoint to generate a client
* ceritificate that can be used by AlloyDB connectors to exchange additional
* metadata with the server after TLS handshake.
* @type RetrySettings|array $retrySettings
* Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
* associative array of retry settings parameters. See the documentation on
Expand Down Expand Up @@ -1897,6 +1901,12 @@ public function generateClientCertificate($parent, array $optionalArgs = [])
$request->setPublicKey($optionalArgs['publicKey']);
}

if (isset($optionalArgs['useMetadataExchange'])) {
$request->setUseMetadataExchange(
$optionalArgs['useMetadataExchange']
);
}

$requestParams = new RequestParamsHeaderDescriptor(
$requestParamHeaders
);
Expand Down
42 changes: 42 additions & 0 deletions AlloyDb/src/V1/GenerateClientCertificateRequest.php

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

12 changes: 8 additions & 4 deletions AlloyDb/src/V1/Instance.php

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