Google Cloud Asset V1 Client - Class UpdateSavedQueryRequest (1.16.4)

Reference documentation and code samples for the Google Cloud Asset V1 Client class UpdateSavedQueryRequest.

Request to update a saved query.

Generated from protobuf message google.cloud.asset.v1.UpdateSavedQueryRequest

Namespace

Google \ Cloud \ Asset \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ saved_query Google\Cloud\Asset\V1\SavedQuery

Required. The saved query to update. The saved query's name field is used to identify the one to update, which has format as below: * projects/project_number/savedQueries/saved_query_id * folders/folder_number/savedQueries/saved_query_id * organizations/organization_number/savedQueries/saved_query_id

↳ update_mask Google\Protobuf\FieldMask

Required. The list of fields to update.

getSavedQuery

Required. The saved query to update.

The saved query's name field is used to identify the one to update, which has format as below:

  • projects/project_number/savedQueries/saved_query_id
  • folders/folder_number/savedQueries/saved_query_id
  • organizations/organization_number/savedQueries/saved_query_id
Returns
Type Description
Google\Cloud\Asset\V1\SavedQuery|null

hasSavedQuery

clearSavedQuery

setSavedQuery

Required. The saved query to update.

The saved query's name field is used to identify the one to update, which has format as below:

  • projects/project_number/savedQueries/saved_query_id
  • folders/folder_number/savedQueries/saved_query_id
  • organizations/organization_number/savedQueries/saved_query_id
Parameter
Name Description
var Google\Cloud\Asset\V1\SavedQuery
Returns
Type Description
$this

getUpdateMask

Required. The list of fields to update.

Returns
Type Description
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

Required. The list of fields to update.

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

static::build

Parameters
Name Description
savedQuery Google\Cloud\Asset\V1\SavedQuery

Required. The saved query to update.

The saved query's name field is used to identify the one to update, which has format as below:

  • projects/project_number/savedQueries/saved_query_id
  • folders/folder_number/savedQueries/saved_query_id
  • organizations/organization_number/savedQueries/saved_query_id
updateMask Google\Protobuf\FieldMask

Required. The list of fields to update.

Returns
Type Description
Google\Cloud\Asset\V1\UpdateSavedQueryRequest