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

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

A query definition relevant for search & export.

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) ⇒ Query

Returns a new instance of Query



1139
1140
1141
# File 'generated/google/apis/vault_v1/classes.rb', line 1139

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

Instance Attribute Details

#account_infoGoogle::Apis::VaultV1::AccountInfo

Accounts to search Corresponds to the JSON property accountInfo



1064
1065
1066
# File 'generated/google/apis/vault_v1/classes.rb', line 1064

def 
  @account_info
end

#corpusString

The corpus to search. Corresponds to the JSON property corpus

Returns:

  • (String)


1069
1070
1071
# File 'generated/google/apis/vault_v1/classes.rb', line 1069

def corpus
  @corpus
end

#data_scopeString

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

Returns:

  • (String)


1074
1075
1076
# File 'generated/google/apis/vault_v1/classes.rb', line 1074

def data_scope
  @data_scope
end

#drive_optionsGoogle::Apis::VaultV1::DriveOptions

Drive search advanced options Corresponds to the JSON property driveOptions



1079
1080
1081
# File 'generated/google/apis/vault_v1/classes.rb', line 1079

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)


1085
1086
1087
# File 'generated/google/apis/vault_v1/classes.rb', line 1085

def end_time
  @end_time
end

#hangouts_chat_infoGoogle::Apis::VaultV1::HangoutsChatInfo

Accounts to search Corresponds to the JSON property hangoutsChatInfo



1090
1091
1092
# File 'generated/google/apis/vault_v1/classes.rb', line 1090

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



1095
1096
1097
# File 'generated/google/apis/vault_v1/classes.rb', line 1095

def hangouts_chat_options
  @hangouts_chat_options
end

#mail_optionsGoogle::Apis::VaultV1::MailOptions

Mail search advanced options Corresponds to the JSON property mailOptions



1100
1101
1102
# File 'generated/google/apis/vault_v1/classes.rb', line 1100

def mail_options
  @mail_options
end

#org_unit_infoGoogle::Apis::VaultV1::OrgUnitInfo

Org Unit to search Corresponds to the JSON property orgUnitInfo



1105
1106
1107
# File 'generated/google/apis/vault_v1/classes.rb', line 1105

def org_unit_info
  @org_unit_info
end

#search_methodString

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

Returns:

  • (String)


1110
1111
1112
# File 'generated/google/apis/vault_v1/classes.rb', line 1110

def search_method
  @search_method
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)


1116
1117
1118
# File 'generated/google/apis/vault_v1/classes.rb', line 1116

def start_time
  @start_time
end

#team_drive_infoGoogle::Apis::VaultV1::TeamDriveInfo

Team Drives to search Corresponds to the JSON property teamDriveInfo



1121
1122
1123
# File 'generated/google/apis/vault_v1/classes.rb', line 1121

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)


1128
1129
1130
# File 'generated/google/apis/vault_v1/classes.rb', line 1128

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)


1137
1138
1139
# File 'generated/google/apis/vault_v1/classes.rb', line 1137

def time_zone
  @time_zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
# File 'generated/google/apis/vault_v1/classes.rb', line 1144

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)
  @org_unit_info = args[:org_unit_info] if args.key?(:org_unit_info)
  @search_method = args[:search_method] if args.key?(:search_method)
  @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)
end