Class: Google::Apis::TasksV1::DriveResourceInfo

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

Overview

Information about the Drive resource where a task was assigned from (the document, sheet, etc.).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DriveResourceInfo

Returns a new instance of DriveResourceInfo.



82
83
84
# File 'lib/google/apis/tasks_v1/classes.rb', line 82

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

Instance Attribute Details

#drive_file_idString

Output only. Identifier of the file in the Drive API. Corresponds to the JSON property driveFileId

Returns:

  • (String)


73
74
75
# File 'lib/google/apis/tasks_v1/classes.rb', line 73

def drive_file_id
  @drive_file_id
end

#resource_keyString

Output only. Resource key required to access files shared via a shared link. Not required for all files. See also developers.google.com/drive/api/guides/ resource-keys. Corresponds to the JSON property resourceKey

Returns:

  • (String)


80
81
82
# File 'lib/google/apis/tasks_v1/classes.rb', line 80

def resource_key
  @resource_key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



87
88
89
90
# File 'lib/google/apis/tasks_v1/classes.rb', line 87

def update!(**args)
  @drive_file_id = args[:drive_file_id] if args.key?(:drive_file_id)
  @resource_key = args[:resource_key] if args.key?(:resource_key)
end