Class: Google::Apis::CloudassetV1::SavedQuery

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudasset_v1/classes.rb,
lib/google/apis/cloudasset_v1/representations.rb,
lib/google/apis/cloudasset_v1/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SavedQuery

Returns a new instance of SavedQuery.



5421
5422
5423
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5421

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#contentGoogle::Apis::CloudassetV1::QueryContent

The query content. Corresponds to the JSON property content



5377
5378
5379
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5377

def content
  @content
end

#create_timeString

Output only. The create time of this saved query. Corresponds to the JSON property createTime

Returns:

  • (String)


5382
5383
5384
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5382

def create_time
  @create_time
end

#creatorString

Output only. The account's email address who has created this saved query. Corresponds to the JSON property creator

Returns:

  • (String)


5387
5388
5389
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5387

def creator
  @creator
end

#descriptionString

The description of this saved query. This value should be fewer than 255 characters. Corresponds to the JSON property description

Returns:

  • (String)


5393
5394
5395
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5393

def description
  @description
end

#labelsHash<String,String>

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. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


5400
5401
5402
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5400

def labels
  @labels
end

#last_update_timeString

Output only. The last update time of this saved query. Corresponds to the JSON property lastUpdateTime

Returns:

  • (String)


5405
5406
5407
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5405

def last_update_time
  @last_update_time
end

#last_updaterString

Output only. The account's email address who has updated this saved query most recently. Corresponds to the JSON property lastUpdater

Returns:

  • (String)


5411
5412
5413
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5411

def last_updater
  @last_updater
end

#nameString

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 Corresponds to the JSON property name

Returns:

  • (String)


5419
5420
5421
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5419

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5426

def update!(**args)
  @content = args[:content] if args.key?(:content)
  @create_time = args[:create_time] if args.key?(:create_time)
  @creator = args[:creator] if args.key?(:creator)
  @description = args[:description] if args.key?(:description)
  @labels = args[:labels] if args.key?(:labels)
  @last_update_time = args[:last_update_time] if args.key?(:last_update_time)
  @last_updater = args[:last_updater] if args.key?(:last_updater)
  @name = args[:name] if args.key?(:name)
end