Class: Google::Apis::VaultV1::SavedQuery

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/vault_v1/classes.rb,
generated/google/apis/vault_v1/representations.rb,
generated/google/apis/vault_v1/representations.rb

Overview

Definition of the saved query.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SavedQuery

Returns a new instance of SavedQuery



1316
1317
1318
# File 'generated/google/apis/vault_v1/classes.rb', line 1316

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

Instance Attribute Details

#create_timeString

Output only. The server generated timestamp at which saved query was created. Corresponds to the JSON property createTime

Returns:

  • (String)


1292
1293
1294
# File 'generated/google/apis/vault_v1/classes.rb', line 1292

def create_time
  @create_time
end

#display_nameString

Name of the saved query. Corresponds to the JSON property displayName

Returns:

  • (String)


1297
1298
1299
# File 'generated/google/apis/vault_v1/classes.rb', line 1297

def display_name
  @display_name
end

#matter_idString

Output only. The matter id of the associated matter. The server does not look at this field during create and always uses matter id in the URL. Corresponds to the JSON property matterId

Returns:

  • (String)


1304
1305
1306
# File 'generated/google/apis/vault_v1/classes.rb', line 1304

def matter_id
  @matter_id
end

#queryGoogle::Apis::VaultV1::Query

A query definition relevant for search & export. Corresponds to the JSON property query



1309
1310
1311
# File 'generated/google/apis/vault_v1/classes.rb', line 1309

def query
  @query
end

#saved_query_idString

A unique identifier for the saved query. Corresponds to the JSON property savedQueryId

Returns:

  • (String)


1314
1315
1316
# File 'generated/google/apis/vault_v1/classes.rb', line 1314

def saved_query_id
  @saved_query_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1321
1322
1323
1324
1325
1326
1327
# File 'generated/google/apis/vault_v1/classes.rb', line 1321

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @display_name = args[:display_name] if args.key?(:display_name)
  @matter_id = args[:matter_id] if args.key?(:matter_id)
  @query = args[:query] if args.key?(:query)
  @saved_query_id = args[:saved_query_id] if args.key?(:saved_query_id)
end