Class: Google::Apis::TasksV1::DriveResourceInfo
- Inherits:
-
Object
- Object
- Google::Apis::TasksV1::DriveResourceInfo
- 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
-
#drive_file_id ⇒ String
Output only.
-
#resource_key ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DriveResourceInfo
constructor
A new instance of DriveResourceInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_id ⇒ String
Output only. Identifier of the file in the Drive API.
Corresponds to the JSON property driveFileId
73 74 75 |
# File 'lib/google/apis/tasks_v1/classes.rb', line 73 def drive_file_id @drive_file_id end |
#resource_key ⇒ String
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
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 |