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.



504
505
506
# File 'lib/google/apis/vault_v1/classes.rb', line 504

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

Instance Attribute Details

#include_shared_drivesBoolean Also known as: include_shared_drives?

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

Returns:

  • (Boolean)


488
489
490
# File 'lib/google/apis/vault_v1/classes.rb', line 488

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)


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

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)


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

def version_date
  @version_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

def update!(**args)
  @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