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
Namespace
Google \ Cloud \ ApiKeys \ V2Methods
__construct
Constructor.
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.
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.
$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.
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.
$this
static::build
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.
updateMask
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.