Reference documentation and code samples for the Google Cloud OsLogin V1 Client class ImportSshPublicKeyRequest.
A request message for importing an SSH public key.
Generated from protobuf message google.cloud.oslogin.v1.ImportSshPublicKeyRequest
Namespace
Google \ Cloud \ OsLogin \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The unique ID for the user in format users/{user}
.
↳ ssh_public_key
↳ project_id
string
The project ID of the Google Cloud Platform project.
↳ regions
array
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 .
getParent
Required. The unique ID for the user in format users/{user}
.
string
setParent
Required. The unique ID for the user in format users/{user}
.
var
string
$this
getSshPublicKey
Optional. The SSH public key and expiration time.
hasSshPublicKey
clearSshPublicKey
setSshPublicKey
Optional. The SSH public key and expiration time.
$this
getProjectId
The project ID of the Google Cloud Platform project.
string
setProjectId
The project ID of the Google Cloud Platform project.
var
string
$this
getRegions
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 .
setRegions
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 .
var
string[]
$this
static::build
parent
string
Required. The unique ID for the user in format users/{user}
. Please see OsLoginServiceClient::userName()
for help formatting this field.
sshPublicKey
static::buildFromParentSshPublicKeyProjectId
parent
string
Required. The unique ID for the user in format users/{user}
. Please see OsLoginServiceClient::userName()
for help formatting this field.
sshPublicKey
projectId
string
The project ID of the Google Cloud Platform project.

