Google Cloud OsLogin V1beta Client - Class ImportSshPublicKeyRequest (1.9.6)

Reference documentation and code samples for the Google Cloud OsLogin V1beta Client class ImportSshPublicKeyRequest.

A request message for importing an SSH public key.

Generated from protobuf message google.cloud.oslogin.v1beta.ImportSshPublicKeyRequest

Namespace

Google \ Cloud \ OsLogin \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

The unique ID for the user in format users/{user}.

↳ ssh_public_key Google\Cloud\OsLogin\Common\SshPublicKey

Required. The SSH public key and expiration time.

↳ project_id string

The project ID of the Google Cloud Platform project.

↳ view int

The view configures whether to retrieve security keys information.

↳ 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

The unique ID for the user in format users/{user}.

Returns
Type Description
string

setParent

The unique ID for the user in format users/{user}.

Parameter
Name Description
var string
Returns
Type Description
$this

getSshPublicKey

Required. The SSH public key and expiration time.

Returns
Type Description
Google\Cloud\OsLogin\Common\SshPublicKey|null

hasSshPublicKey

clearSshPublicKey

setSshPublicKey

Required. The SSH public key and expiration time.

Parameter
Name Description
var Google\Cloud\OsLogin\Common\SshPublicKey
Returns
Type Description
$this

getProjectId

The project ID of the Google Cloud Platform project.

Returns
Type Description
string

setProjectId

The project ID of the Google Cloud Platform project.

Parameter
Name Description
var string
Returns
Type Description
$this

getView

The view configures whether to retrieve security keys information.

Returns
Type Description
int

setView

The view configures whether to retrieve security keys information.

Parameter
Name Description
var int
Returns
Type Description
$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.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

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.

Parameter
Name Description
var string[]
Returns
Type Description
$this