Google Cloud Secure Source Manager V1 Client - Class UpdateRepositoryRequest (1.5.0)

Reference documentation and code samples for the Google Cloud Secure Source Manager V1 Client class UpdateRepositoryRequest.

UpdateRepositoryRequest is the request to update a repository.

Generated from protobuf message google.cloud.securesourcemanager.v1.UpdateRepositoryRequest

Namespace

Google \ Cloud \ SecureSourceManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ update_mask Google\Protobuf\FieldMask

Optional. Field mask is used to specify the fields to be overwritten in the repository resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

↳ repository Repository

Required. The repository being updated.

↳ validate_only bool

Optional. False by default. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.

getUpdateMask

Optional. Field mask is used to specify the fields to be overwritten in the repository resource by the update.

The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

Returns
Type Description
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

Optional. Field mask is used to specify the fields to be overwritten in the repository resource by the update.

The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

Parameter
Name Description
var Google\Protobuf\FieldMask
Returns
Type Description
$this

getRepository

Required. The repository being updated.

Returns
Type Description
Repository|null

hasRepository

clearRepository

setRepository

Required. The repository being updated.

Parameter
Name Description
var Repository
Returns
Type Description
$this

getValidateOnly

Optional. False by default. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.

Returns
Type Description
bool

setValidateOnly

Optional. False by default. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.

Parameter
Name Description
var bool
Returns
Type Description
$this

static::build

Parameters
Name Description
repository Repository

Required. The repository being updated.

updateMask Google\Protobuf\FieldMask

Optional. Field mask is used to specify the fields to be overwritten in the repository resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

Returns
Type Description
UpdateRepositoryRequest