Google Cloud OsLogin V1 Client - Class UpdateSshPublicKeyRequest (1.7.0)

Reference documentation and code samples for the Google Cloud OsLogin V1 Client class UpdateSshPublicKeyRequest.

A request message for updating an SSH public key.

Generated from protobuf message google.cloud.oslogin.v1.UpdateSshPublicKeyRequest

Namespace

Google \ Cloud \ OsLogin \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

↳ ssh_public_key Google\Cloud\OsLogin\Common\SshPublicKey

Required. The SSH public key and expiration time.

↳ update_mask Google\Protobuf\FieldMask

Mask to control which fields get updated. Updates all if not present.

getName

Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

Returns
TypeDescription
string

setName

Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSshPublicKey

Required. The SSH public key and expiration time.

Returns
TypeDescription
Google\Cloud\OsLogin\Common\SshPublicKey|null

hasSshPublicKey

clearSshPublicKey

setSshPublicKey

Required. The SSH public key and expiration time.

Parameter
NameDescription
var Google\Cloud\OsLogin\Common\SshPublicKey
Returns
TypeDescription
$this

getUpdateMask

Mask to control which fields get updated. Updates all if not present.

Returns
TypeDescription
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

Mask to control which fields get updated. Updates all if not present.

Parameter
NameDescription
var Google\Protobuf\FieldMask
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
name string

Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}. Please see Google\Cloud\OsLogin\V1\OsLoginServiceClient::sshPublicKeyName() for help formatting this field.

sshPublicKey Google\Cloud\OsLogin\Common\SshPublicKey

Required. The SSH public key and expiration time.

Returns
TypeDescription
Google\Cloud\OsLogin\V1\UpdateSshPublicKeyRequest

static::buildFromNameSshPublicKeyUpdateMask

Parameters
NameDescription
name string

Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}. Please see Google\Cloud\OsLogin\V1\OsLoginServiceClient::sshPublicKeyName() for help formatting this field.

sshPublicKey Google\Cloud\OsLogin\Common\SshPublicKey

Required. The SSH public key and expiration time.

updateMask Google\Protobuf\FieldMask

Mask to control which fields get updated. Updates all if not present.

Returns
TypeDescription
Google\Cloud\OsLogin\V1\UpdateSshPublicKeyRequest