Class: Google::Apis::VaultV1::Query

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

Overview

A query definition relevant for search & export.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Query

Returns a new instance of Query.



1568
1569
1570
# File 'lib/google/apis/vault_v1/classes.rb', line 1568

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

Instance Attribute Details

#account_infoGoogle::Apis::VaultV1::AccountInfo

Accounts to search Corresponds to the JSON property accountInfo



1480
1481
1482
# File 'lib/google/apis/vault_v1/classes.rb', line 1480

def 
  @account_info
end

#corpusString

The corpus to search. Corresponds to the JSON property corpus

Returns:

  • (String)


1485
1486
1487
# File 'lib/google/apis/vault_v1/classes.rb', line 1485

def corpus
  @corpus
end

#data_scopeString

The data source to search from. Corresponds to the JSON property dataScope

Returns:

  • (String)


1490
1491
1492
# File 'lib/google/apis/vault_v1/classes.rb', line 1490

def data_scope
  @data_scope
end

#drive_optionsGoogle::Apis::VaultV1::DriveOptions

Drive search advanced options Corresponds to the JSON property driveOptions



1495
1496
1497
# File 'lib/google/apis/vault_v1/classes.rb', line 1495

def drive_options
  @drive_options
end

#end_timeString

The end time range for the search query. These timestamps are in GMT and rounded down to the start of the given date. Corresponds to the JSON property endTime

Returns:

  • (String)


1501
1502
1503
# File 'lib/google/apis/vault_v1/classes.rb', line 1501

def end_time
  @end_time
end

#hangouts_chat_infoGoogle::Apis::VaultV1::HangoutsChatInfo

Accounts to search Corresponds to the JSON property hangoutsChatInfo



1506
1507
1508
# File 'lib/google/apis/vault_v1/classes.rb', line 1506

def hangouts_chat_info
  @hangouts_chat_info
end

#hangouts_chat_optionsGoogle::Apis::VaultV1::HangoutsChatOptions

Hangouts chat search advanced options Corresponds to the JSON property hangoutsChatOptions



1511
1512
1513
# File 'lib/google/apis/vault_v1/classes.rb', line 1511

def hangouts_chat_options
  @hangouts_chat_options
end

#mail_optionsGoogle::Apis::VaultV1::MailOptions

Mail search advanced options Corresponds to the JSON property mailOptions



1516
1517
1518
# File 'lib/google/apis/vault_v1/classes.rb', line 1516

def mail_options
  @mail_options
end

#method_propString

The search method to use. This field is similar to the search_method field but is introduced to support shared drives. It supports all search method types. In case the search_method is TEAM_DRIVE the response of this field will be SHARED_DRIVE only. Corresponds to the JSON property method

Returns:

  • (String)


1524
1525
1526
# File 'lib/google/apis/vault_v1/classes.rb', line 1524

def method_prop
  @method_prop
end

#org_unit_infoGoogle::Apis::VaultV1::OrgUnitInfo

Org Unit to search Corresponds to the JSON property orgUnitInfo



1529
1530
1531
# File 'lib/google/apis/vault_v1/classes.rb', line 1529

def org_unit_info
  @org_unit_info
end

#search_methodString

The search method to use. Corresponds to the JSON property searchMethod

Returns:

  • (String)


1534
1535
1536
# File 'lib/google/apis/vault_v1/classes.rb', line 1534

def search_method
  @search_method
end

#shared_drive_infoGoogle::Apis::VaultV1::SharedDriveInfo

Shared drives to search Corresponds to the JSON property sharedDriveInfo



1539
1540
1541
# File 'lib/google/apis/vault_v1/classes.rb', line 1539

def shared_drive_info
  @shared_drive_info
end

#start_timeString

The start time range for the search query. These timestamps are in GMT and rounded down to the start of the given date. Corresponds to the JSON property startTime

Returns:

  • (String)


1545
1546
1547
# File 'lib/google/apis/vault_v1/classes.rb', line 1545

def start_time
  @start_time
end

#team_drive_infoGoogle::Apis::VaultV1::TeamDriveInfo

Team Drives to search Corresponds to the JSON property teamDriveInfo



1550
1551
1552
# File 'lib/google/apis/vault_v1/classes.rb', line 1550

def team_drive_info
  @team_drive_info
end

#termsString

The corpus-specific search operators used to generate search results. Corresponds to the JSON property terms

Returns:

  • (String)


1555
1556
1557
# File 'lib/google/apis/vault_v1/classes.rb', line 1555

def terms
  @terms
end

#time_zoneString

The time zone name. It should be an IANA TZ name, such as "America/Los_Angeles" . For more information, see Time Zone. Corresponds to the JSON property timeZone

Returns:

  • (String)


1561
1562
1563
# File 'lib/google/apis/vault_v1/classes.rb', line 1561

def time_zone
  @time_zone
end

#voice_optionsGoogle::Apis::VaultV1::VoiceOptions

Voice search options Corresponds to the JSON property voiceOptions



1566
1567
1568
# File 'lib/google/apis/vault_v1/classes.rb', line 1566

def voice_options
  @voice_options
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
# File 'lib/google/apis/vault_v1/classes.rb', line 1573

def update!(**args)
  @account_info = args[:account_info] if args.key?(:account_info)
  @corpus = args[:corpus] if args.key?(:corpus)
  @data_scope = args[:data_scope] if args.key?(:data_scope)
  @drive_options = args[:drive_options] if args.key?(:drive_options)
  @end_time = args[:end_time] if args.key?(:end_time)
  @hangouts_chat_info = args[:hangouts_chat_info] if args.key?(:hangouts_chat_info)
  @hangouts_chat_options = args[:hangouts_chat_options] if args.key?(:hangouts_chat_options)
  @mail_options = args[:mail_options] if args.key?(:mail_options)
  @method_prop = args[:method_prop] if args.key?(:method_prop)
  @org_unit_info = args[:org_unit_info] if args.key?(:org_unit_info)
  @search_method = args[:search_method] if args.key?(:search_method)
  @shared_drive_info = args[:shared_drive_info] if args.key?(:shared_drive_info)
  @start_time = args[:start_time] if args.key?(:start_time)
  @team_drive_info = args[:team_drive_info] if args.key?(:team_drive_info)
  @terms = args[:terms] if args.key?(:terms)
  @time_zone = args[:time_zone] if args.key?(:time_zone)
  @voice_options = args[:voice_options] if args.key?(:voice_options)
end