Skip to content

Commit

Permalink
feat: added field ImportSshPublicKeyRequest.regions (#6951)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 596735856
Source-Link: googleapis/googleapis@87e7305
Source-Link: googleapis/googleapis-gen@114ca4d
Copy-Tag: eyJwIjoiT3NMb2dpbi8uT3dsQm90LnlhbWwiLCJoIjoiMTE0Y2E0ZDM3NmU4NDUzMzE1MDA4OGRmOGFjODZlMDk4MjQxZTk2NiJ9

feat: add regions field to ImportSshPublicKeyRequest
PiperOrigin-RevId: 596667704
Source-Link: googleapis/googleapis@c340584
Source-Link: googleapis/googleapis-gen@53aa884
Copy-Tag: eyJwIjoiT3NMb2dpbi8uT3dsQm90LnlhbWwiLCJoIjoiNTNhYTg4NDE2NzU3MTA0NDUwMWQwNzQyMjBlNjNhYmNkOThjNmFjMSJ9

* manually update missing Request
Co-authored-by: Brent Shaffer <[email protected]>
  • Loading branch information
gcf-owl-bot[bot] and bshaffer authored Jan 12, 2024
1 parent 3f5f262 commit b7abd63
Show file tree
Hide file tree
Showing 6 changed files with 104 additions and 3 deletions.
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.

0 comments on commit b7abd63

Please sign in to comment.