Class: Google::Apis::TasksV1::AssignmentInfo
- Inherits:
-
Object
- Object
- Google::Apis::TasksV1::AssignmentInfo
- 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 source of the task assignment (Document, Chat Space).
Instance Attribute Summary collapse
-
#drive_resource_info ⇒ Google::Apis::TasksV1::DriveResourceInfo
Information about the Drive resource where a task was assigned from (the document, sheet, etc.).
-
#link_to_task ⇒ String
Output only.
-
#space_info ⇒ Google::Apis::TasksV1::SpaceInfo
Information about the Chat Space where a task was assigned from.
-
#surface_type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AssignmentInfo
constructor
A new instance of AssignmentInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AssignmentInfo
Returns a new instance of AssignmentInfo.
52 53 54 |
# File 'lib/google/apis/tasks_v1/classes.rb', line 52 def initialize(**args) update!(**args) end |
Instance Attribute Details
#drive_resource_info ⇒ Google::Apis::TasksV1::DriveResourceInfo
Information about the Drive resource where a task was assigned from (the
document, sheet, etc.).
Corresponds to the JSON property driveResourceInfo
33 34 35 |
# File 'lib/google/apis/tasks_v1/classes.rb', line 33 def drive_resource_info @drive_resource_info end |
#link_to_task ⇒ String
Output only. An absolute link to the original task in the surface of
assignment (Docs, Chat spaces, etc.).
Corresponds to the JSON property linkToTask
39 40 41 |
# File 'lib/google/apis/tasks_v1/classes.rb', line 39 def link_to_task @link_to_task end |
#space_info ⇒ Google::Apis::TasksV1::SpaceInfo
Information about the Chat Space where a task was assigned from.
Corresponds to the JSON property spaceInfo
44 45 46 |
# File 'lib/google/apis/tasks_v1/classes.rb', line 44 def space_info @space_info end |
#surface_type ⇒ String
Output only. The type of surface this assigned task originates from. Currently
limited to DOCUMENT or SPACE.
Corresponds to the JSON property surfaceType
50 51 52 |
# File 'lib/google/apis/tasks_v1/classes.rb', line 50 def surface_type @surface_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
57 58 59 60 61 62 |
# File 'lib/google/apis/tasks_v1/classes.rb', line 57 def update!(**args) @drive_resource_info = args[:drive_resource_info] if args.key?(:drive_resource_info) @link_to_task = args[:link_to_task] if args.key?(:link_to_task) @space_info = args[:space_info] if args.key?(:space_info) @surface_type = args[:surface_type] if args.key?(:surface_type) end |