Google Cloud Api Keys V2 Client - Class UpdateKeyRequest (0.1.7)

Reference documentation and code samples for the Google Cloud Api Keys V2 Client class UpdateKeyRequest.

Request message for UpdateKey method.

Generated from protobuf message google.api.apikeys.v2.UpdateKeyRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ key Google\Cloud\ApiKeys\V2\Key

Required. Set the name field to the resource name of the API key to be updated. You can update only the display_name, restrictions, and annotations fields.

↳ update_mask Google\Protobuf\FieldMask

The field mask specifies which fields to be updated as part of this request. All other fields are ignored. Mutable fields are: display_name, restrictions, and annotations. If an update mask is not provided, the service treats it as an implied mask equivalent to all allowed fields that are set on the wire. If the field mask has a special value "*", the service treats it equivalent to replace all allowed mutable fields.

getKey

Required. Set the name field to the resource name of the API key to be updated. You can update only the display_name, restrictions, and annotations fields.

Returns
TypeDescription
Google\Cloud\ApiKeys\V2\Key|null

hasKey

clearKey

setKey

Required. Set the name field to the resource name of the API key to be updated. You can update only the display_name, restrictions, and annotations fields.

Parameter
NameDescription
var Google\Cloud\ApiKeys\V2\Key
Returns
TypeDescription
$this

getUpdateMask

The field mask specifies which fields to be updated as part of this request. All other fields are ignored.

Mutable fields are: display_name, restrictions, and annotations. If an update mask is not provided, the service treats it as an implied mask equivalent to all allowed fields that are set on the wire. If the field mask has a special value "*", the service treats it equivalent to replace all allowed mutable fields.

Returns
TypeDescription
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

The field mask specifies which fields to be updated as part of this request. All other fields are ignored.

Mutable fields are: display_name, restrictions, and annotations. If an update mask is not provided, the service treats it as an implied mask equivalent to all allowed fields that are set on the wire. If the field mask has a special value "*", the service treats it equivalent to replace all allowed mutable fields.

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