Google Cloud Asset V1 Client - Class SavedQuery (1.9.2)

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

A saved query which can be shared with others or used later.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

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

↳ description string

The description of this saved query. This value should be fewer than 255 characters.

↳ create_time Google\Protobuf\Timestamp

Output only. The create time of this saved query.

↳ creator string

Output only. The account's email address who has created this saved query.

↳ last_update_time Google\Protobuf\Timestamp

Output only. The last update time of this saved query.

↳ last_updater string

Output only. The account's email address who has updated this saved query most recently.

↳ labels array|Google\Protobuf\Internal\MapField

Labels applied on the resource. This value should not contain more than 10 entries. The key and value of each entry must be non-empty and fewer than 64 characters.

↳ content Google\Cloud\Asset\V1\SavedQuery\QueryContent

The query content.

getName

The resource name of the saved query. The format must be:

  • projects/project_number/savedQueries/saved_query_id
  • folders/folder_number/savedQueries/saved_query_id
  • organizations/organization_number/savedQueries/saved_query_id

Generated from protobuf field string name = 1;

Returns
TypeDescription
string

setName

The resource name of the saved query. The format must be:

  • projects/project_number/savedQueries/saved_query_id
  • folders/folder_number/savedQueries/saved_query_id
  • organizations/organization_number/savedQueries/saved_query_id

Generated from protobuf field string name = 1;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

The description of this saved query. This value should be fewer than 255 characters.

Generated from protobuf field string description = 2;

Returns
TypeDescription
string

setDescription

The description of this saved query. This value should be fewer than 255 characters.

Generated from protobuf field string description = 2;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. The create time of this saved query.

Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The create time of this saved query.

Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

getCreator

Output only. The account's email address who has created this saved query.

Generated from protobuf field string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
string

setCreator

Output only. The account's email address who has created this saved query.

Generated from protobuf field string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLastUpdateTime

Output only. The last update time of this saved query.

Generated from protobuf field .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasLastUpdateTime

clearLastUpdateTime

setLastUpdateTime

Output only. The last update time of this saved query.

Generated from protobuf field .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

getLastUpdater

Output only. The account's email address who has updated this saved query most recently.

Generated from protobuf field string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
string

setLastUpdater

Output only. The account's email address who has updated this saved query most recently.

Generated from protobuf field string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLabels

Labels applied on the resource.

This value should not contain more than 10 entries. The key and value of each entry must be non-empty and fewer than 64 characters.

Generated from protobuf field map<string, string> labels = 7;

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

Labels applied on the resource.

This value should not contain more than 10 entries. The key and value of each entry must be non-empty and fewer than 64 characters.

Generated from protobuf field map<string, string> labels = 7;

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getContent

The query content.

Generated from protobuf field .google.cloud.asset.v1.SavedQuery.QueryContent content = 8;

Returns
TypeDescription
Google\Cloud\Asset\V1\SavedQuery\QueryContent|null

hasContent

clearContent

setContent

The query content.

Generated from protobuf field .google.cloud.asset.v1.SavedQuery.QueryContent content = 8;

Parameter
NameDescription
var Google\Cloud\Asset\V1\SavedQuery\QueryContent
Returns
TypeDescription
$this