Google Cloud Asset V1 Client - Class GetSavedQueryRequest (1.16.3)

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

Request to get a saved query.

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

Namespace

Google \ Cloud \ Asset \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Required. The name of the saved query and it must be in the format of: * projects/project_number/savedQueries/saved_query_id * folders/folder_number/savedQueries/saved_query_id * organizations/organization_number/savedQueries/saved_query_id

getName

Required. The name of the saved query and it must be in the format of:

  • projects/project_number/savedQueries/saved_query_id
  • folders/folder_number/savedQueries/saved_query_id
  • organizations/organization_number/savedQueries/saved_query_id
Returns
Type Description
string

setName

Required. The name of the saved query and it must be in the format of:

  • 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 string
Returns
Type Description
$this

static::build

Parameter
Name Description
name string

Required. The name of the saved query and it must be in the format of:

  • projects/project_number/savedQueries/saved_query_id
  • folders/folder_number/savedQueries/saved_query_id
  • organizations/organization_number/savedQueries/saved_query_id Please see Google\Cloud\Asset\V1\AssetServiceClient::savedQueryName() for help formatting this field.
Returns
Type Description
Google\Cloud\Asset\V1\GetSavedQueryRequest