Class: Google::Apis::VaultV1::DriveOptions

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

Additional options for Drive search

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DriveOptions

Returns a new instance of DriveOptions.



511
512
513
# File 'lib/google/apis/vault_v1/classes.rb', line 511

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

Instance Attribute Details

#client_side_encrypted_optionString

Set whether the results include only content encrypted with Google Workspace Client-side encryption content, only unencrypted content, or both. Defaults to both. Currently supported for Drive. Corresponds to the JSON property clientSideEncryptedOption

Returns:

  • (String)


490
491
492
# File 'lib/google/apis/vault_v1/classes.rb', line 490

def client_side_encrypted_option
  @client_side_encrypted_option
end

#include_shared_drivesBoolean Also known as: include_shared_drives?

Set to true to include shared drives. Corresponds to the JSON property includeSharedDrives

Returns:

  • (Boolean)


495
496
497
# File 'lib/google/apis/vault_v1/classes.rb', line 495

def include_shared_drives
  @include_shared_drives
end

#include_team_drivesBoolean Also known as: include_team_drives?

Set to true to include Team Drive. Corresponds to the JSON property includeTeamDrives

Returns:

  • (Boolean)


501
502
503
# File 'lib/google/apis/vault_v1/classes.rb', line 501

def include_team_drives
  @include_team_drives
end

#version_dateString

Search the current version of the Drive file, but export the contents of the last version saved before 12:00 AM UTC on the specified date. Enter the date in UTC. Corresponds to the JSON property versionDate

Returns:

  • (String)


509
510
511
# File 'lib/google/apis/vault_v1/classes.rb', line 509

def version_date
  @version_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



516
517
518
519
520
521
# File 'lib/google/apis/vault_v1/classes.rb', line 516

def update!(**args)
  @client_side_encrypted_option = args[:client_side_encrypted_option] if args.key?(:client_side_encrypted_option)
  @include_shared_drives = args[:include_shared_drives] if args.key?(:include_shared_drives)
  @include_team_drives = args[:include_team_drives] if args.key?(:include_team_drives)
  @version_date = args[:version_date] if args.key?(:version_date)
end