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: [OsLogin] added field ImportSshPublicKeyRequest.regions #6951

Merged
merged 3 commits into from
Jan 12, 2024
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
7 changes: 4 additions & 3 deletions OsLogin/metadata/V1/Oslogin.php

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

Binary file modified OsLogin/metadata/V1Beta/Oslogin.php
Binary file not shown.
8 changes: 8 additions & 0 deletions OsLogin/src/V1/Gapic/OsLoginServiceGapicClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,10 @@ public function getSshPublicKey($name, array $optionalArgs = [])
* Optional. The SSH public key and expiration time.
* @type string $projectId
* The project ID of the Google Cloud Platform project.
* @type string[] $regions
* Optional. The regions to which to assert that the key was written.
* If unspecified, defaults to all regions.
* Regions are listed at https://cloud.google.com/about/locations#region.
* @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 All @@ -647,6 +651,10 @@ public function importSshPublicKey($parent, array $optionalArgs = [])
$request->setProjectId($optionalArgs['projectId']);
}

if (isset($optionalArgs['regions'])) {
$request->setRegions($optionalArgs['regions']);
}

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

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

8 changes: 8 additions & 0 deletions OsLogin/src/V1beta/Gapic/OsLoginServiceGapicClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,10 @@ public function getSshPublicKey($name, array $optionalArgs = [])
* @type int $view
* The view configures whether to retrieve security keys information.
* For allowed values, use constants defined on {@see \Google\Cloud\OsLogin\V1beta\LoginProfileView}
* @type string[] $regions
* Optional. The regions to which to assert that the key was written.
* If unspecified, defaults to all regions.
* Regions are listed at https://cloud.google.com/about/locations#region.
* @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 @@ -689,6 +693,10 @@ public function importSshPublicKey($sshPublicKey, array $optionalArgs = [])
$request->setView($optionalArgs['view']);
}

if (isset($optionalArgs['regions'])) {
$request->setRegions($optionalArgs['regions']);
}

$requestParams = new RequestParamsHeaderDescriptor(
$requestParamHeaders
);
Expand Down
42 changes: 42 additions & 0 deletions OsLogin/src/V1beta/ImportSshPublicKeyRequest.php

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