# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # NOTE: This class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule GoogleApi.Vault.V1.Model.Query do @moduledoc """ A query definition relevant for search & export. ## Attributes - accountInfo (AccountInfo): When 'ACCOUNT' is chosen as search method, account_info needs to be specified. Defaults to: `null`. - corpus (String.t): The corpus to search. Defaults to: `null`. - Enum - one of [CORPUS_TYPE_UNSPECIFIED, DRIVE, MAIL, GROUPS, HANGOUTS_CHAT] - dataScope (String.t): The data source to search from. Defaults to: `null`. - Enum - one of [DATA_SCOPE_UNSPECIFIED, ALL_DATA, HELD_DATA, UNPROCESSED_DATA] - driveOptions (DriveOptions): For Drive search, specify more options in this field. Defaults to: `null`. - endTime (DateTime.t): The end time range for the search query. These timestamps are in GMT and rounded down to the start of the given date. Defaults to: `null`. - hangoutsChatInfo (HangoutsChatInfo): When 'ROOM' is chosen as search method, hangout_chats_info needs to be specified. (read-only) Defaults to: `null`. - hangoutsChatOptions (HangoutsChatOptions): For hangouts chat search, specify more options in this field. (read-only) Defaults to: `null`. - mailOptions (MailOptions): For mail search, specify more options in this field. Defaults to: `null`. - orgUnitInfo (OrgUnitInfo): When 'ORG_UNIT' is chosen as as search method, org_unit_info needs to be specified. Defaults to: `null`. - searchMethod (String.t): The search method to use. Defaults to: `null`. - Enum - one of [SEARCH_METHOD_UNSPECIFIED, ACCOUNT, ORG_UNIT, TEAM_DRIVE, ENTIRE_ORG, ROOM] - startTime (DateTime.t): The start time range for the search query. These timestamps are in GMT and rounded down to the start of the given date. Defaults to: `null`. - teamDriveInfo (TeamDriveInfo): When 'TEAM_DRIVE' is chosen as search method, team_drive_info needs to be specified. Defaults to: `null`. - terms (String.t): The corpus-specific <a href=\"https://support.google.com/vault/answer/2474474\">search operators</a> used to generate search results. Defaults to: `null`. - timeZone (String.t): The time zone name. It should be an IANA TZ name, such as \"America/Los_Angeles\". For more information, see <a href=\"https://en.wikipedia.org/wiki/List_of_tz_database_time_zones\">Time Zone</a>. Defaults to: `null`. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :accountInfo => GoogleApi.Vault.V1.Model.AccountInfo.t(), :corpus => any(), :dataScope => any(), :driveOptions => GoogleApi.Vault.V1.Model.DriveOptions.t(), :endTime => DateTime.t(), :hangoutsChatInfo => GoogleApi.Vault.V1.Model.HangoutsChatInfo.t(), :hangoutsChatOptions => GoogleApi.Vault.V1.Model.HangoutsChatOptions.t(), :mailOptions => GoogleApi.Vault.V1.Model.MailOptions.t(), :orgUnitInfo => GoogleApi.Vault.V1.Model.OrgUnitInfo.t(), :searchMethod => any(), :startTime => DateTime.t(), :teamDriveInfo => GoogleApi.Vault.V1.Model.TeamDriveInfo.t(), :terms => any(), :timeZone => any() } field(:accountInfo, as: GoogleApi.Vault.V1.Model.AccountInfo) field(:corpus) field(:dataScope) field(:driveOptions, as: GoogleApi.Vault.V1.Model.DriveOptions) field(:endTime, as: DateTime) field(:hangoutsChatInfo, as: GoogleApi.Vault.V1.Model.HangoutsChatInfo) field(:hangoutsChatOptions, as: GoogleApi.Vault.V1.Model.HangoutsChatOptions) field(:mailOptions, as: GoogleApi.Vault.V1.Model.MailOptions) field(:orgUnitInfo, as: GoogleApi.Vault.V1.Model.OrgUnitInfo) field(:searchMethod) field(:startTime, as: DateTime) field(:teamDriveInfo, as: GoogleApi.Vault.V1.Model.TeamDriveInfo) field(:terms) field(:timeZone) end defimpl Poison.Decoder, for: GoogleApi.Vault.V1.Model.Query do def decode(value, options) do GoogleApi.Vault.V1.Model.Query.decode(value, options) end end defimpl Poison.Encoder, for: GoogleApi.Vault.V1.Model.Query do def encode(value, options) do GoogleApi.Gax.ModelBase.encode(value, options) end end