Class: Google::Apis::CloudassetV1::SavedQuery
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1::SavedQuery
- 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
-
#content ⇒ Google::Apis::CloudassetV1::QueryContent
The query content.
-
#create_time ⇒ String
Output only.
-
#creator ⇒ String
Output only.
-
#description ⇒ String
The description of this saved query.
-
#labels ⇒ Hash<String,String>
Labels applied on the resource.
-
#last_update_time ⇒ String
Output only.
-
#last_updater ⇒ String
Output only.
-
#name ⇒ String
The resource name of the saved query.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SavedQuery
constructor
A new instance of SavedQuery.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SavedQuery
Returns a new instance of SavedQuery.
5827 5828 5829 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5827 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content ⇒ Google::Apis::CloudassetV1::QueryContent
The query content.
Corresponds to the JSON property content
5783 5784 5785 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5783 def content @content end |
#create_time ⇒ String
Output only. The create time of this saved query.
Corresponds to the JSON property createTime
5788 5789 5790 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5788 def create_time @create_time end |
#creator ⇒ String
Output only. The account's email address who has created this saved query.
Corresponds to the JSON property creator
5793 5794 5795 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5793 def creator @creator end |
#description ⇒ String
The description of this saved query. This value should be fewer than 255
characters.
Corresponds to the JSON property description
5799 5800 5801 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5799 def description @description end |
#labels ⇒ Hash<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
5806 5807 5808 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5806 def labels @labels end |
#last_update_time ⇒ String
Output only. The last update time of this saved query.
Corresponds to the JSON property lastUpdateTime
5811 5812 5813 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5811 def last_update_time @last_update_time end |
#last_updater ⇒ String
Output only. The account's email address who has updated this saved query most
recently.
Corresponds to the JSON property lastUpdater
5817 5818 5819 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5817 def last_updater @last_updater end |
#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
Corresponds to the JSON property name
5825 5826 5827 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5825 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5832 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 |