Class: Google::Apis::DriveV2::AppList

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

Overview

A list of third-party applications which the user has installed or given access to Google Drive.

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

Returns a new instance of AppList.


606
607
608
# File 'generated/google/apis/drive_v2/classes.rb', line 606

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

Instance Attribute Details

#default_app_idsArray<String>

List of app IDs that the user has specified to use by default. The list is in reverse-priority order (lowest to highest). Corresponds to the JSON property defaultAppIds

Returns:

  • (Array<String>)

584
585
586
# File 'generated/google/apis/drive_v2/classes.rb', line 584

def default_app_ids
  @default_app_ids
end

#etagString

The ETag of the list. Corresponds to the JSON property etag

Returns:

  • (String)

589
590
591
# File 'generated/google/apis/drive_v2/classes.rb', line 589

def etag
  @etag
end

#itemsArray<Google::Apis::DriveV2::App>

The actual list of apps. Corresponds to the JSON property items

Returns:


594
595
596
# File 'generated/google/apis/drive_v2/classes.rb', line 594

def items
  @items
end

#kindString

This is always drive#appList. Corresponds to the JSON property kind

Returns:

  • (String)

599
600
601
# File 'generated/google/apis/drive_v2/classes.rb', line 599

def kind
  @kind
end

A link back to this list. Corresponds to the JSON property selfLink

Returns:

  • (String)

604
605
606
# File 'generated/google/apis/drive_v2/classes.rb', line 604

def self_link
  @self_link
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


611
612
613
614
615
616
617
# File 'generated/google/apis/drive_v2/classes.rb', line 611

def update!(**args)
  @default_app_ids = args[:default_app_ids] if args.key?(:default_app_ids)
  @etag = args[:etag] if args.key?(:etag)
  @items = args[:items] if args.key?(:items)
  @kind = args[:kind] if args.key?(:kind)
  @self_link = args[:self_link] if args.key?(:self_link)
end