Skip to content

Commit

Permalink
feat: Automated regeneration of tasks v1 client (#19815)
Browse files Browse the repository at this point in the history
Auto-created at 2024-07-07 09:43:42 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Jul 7, 2024
1 parent c63bb84 commit 089119c
Show file tree
Hide file tree
Showing 6 changed files with 209 additions and 23 deletions.
13 changes: 13 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -307244,7 +307244,18 @@
"/taskqueue:v1beta2/taskqueue.tasks.update/task": task
"/taskqueue:v1beta2/taskqueue.tasks.update/taskqueue": taskqueue
"/taskqueue:v1beta2/userIp": user_ip
"/tasks:v1/AssignmentInfo": assignment_info
"/tasks:v1/AssignmentInfo/driveResourceInfo": drive_resource_info
"/tasks:v1/AssignmentInfo/linkToTask": link_to_task
"/tasks:v1/AssignmentInfo/spaceInfo": space_info
"/tasks:v1/AssignmentInfo/surfaceType": surface_type
"/tasks:v1/DriveResourceInfo": drive_resource_info
"/tasks:v1/DriveResourceInfo/driveFileId": drive_file_id
"/tasks:v1/DriveResourceInfo/resourceKey": resource_key
"/tasks:v1/SpaceInfo": space_info
"/tasks:v1/SpaceInfo/space": space
"/tasks:v1/Task": task
"/tasks:v1/Task/assignmentInfo": assignment_info
"/tasks:v1/Task/completed": completed
"/tasks:v1/Task/deleted": deleted
"/tasks:v1/Task/due": due
Expand Down Expand Up @@ -307318,12 +307329,14 @@
"/tasks:v1/tasks.tasks.list/dueMin": due_min
"/tasks:v1/tasks.tasks.list/maxResults": max_results
"/tasks:v1/tasks.tasks.list/pageToken": page_token
"/tasks:v1/tasks.tasks.list/showAssigned": show_assigned
"/tasks:v1/tasks.tasks.list/showCompleted": show_completed
"/tasks:v1/tasks.tasks.list/showDeleted": show_deleted
"/tasks:v1/tasks.tasks.list/showHidden": show_hidden
"/tasks:v1/tasks.tasks.list/tasklist": tasklist
"/tasks:v1/tasks.tasks.list/updatedMin": updated_min
"/tasks:v1/tasks.tasks.move": move_task
"/tasks:v1/tasks.tasks.move/destinationTasklist": destination_tasklist
"/tasks:v1/tasks.tasks.move/parent": parent
"/tasks:v1/tasks.tasks.move/previous": previous
"/tasks:v1/tasks.tasks.move/task": task
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-tasks_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-tasks_v1

### v0.24.0 (2024-07-07)

* Regenerated from discovery document revision 20240630

### v0.23.0 (2024-06-02)

* Regenerated from discovery document revision 20240526
Expand Down
108 changes: 104 additions & 4 deletions generated/google-apis-tasks_v1/lib/google/apis/tasks_v1/classes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,114 @@ module Google
module Apis
module TasksV1

# Information about the source of the task assignment (Document, Chat Space).
class AssignmentInfo
include Google::Apis::Core::Hashable

# Information about the Drive resource where a task was assigned from (the
# document, sheet, etc.).
# Corresponds to the JSON property `driveResourceInfo`
# @return [Google::Apis::TasksV1::DriveResourceInfo]
attr_accessor :drive_resource_info

# Output only. An absolute link to the original task in the surface of
# assignment (Docs, Chat spaces, etc.).
# Corresponds to the JSON property `linkToTask`
# @return [String]
attr_accessor :link_to_task

# Information about the Chat Space where a task was assigned from.
# Corresponds to the JSON property `spaceInfo`
# @return [Google::Apis::TasksV1::SpaceInfo]
attr_accessor :space_info

# Output only. The type of surface this assigned task originates from. Currently
# limited to DOCUMENT or SPACE.
# Corresponds to the JSON property `surfaceType`
# @return [String]
attr_accessor :surface_type

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

# Update properties of this object
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
end

# Information about the Drive resource where a task was assigned from (the
# document, sheet, etc.).
class DriveResourceInfo
include Google::Apis::Core::Hashable

# Output only. Identifier of the file in the Drive API.
# Corresponds to the JSON property `driveFileId`
# @return [String]
attr_accessor :drive_file_id

# 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`
# @return [String]
attr_accessor :resource_key

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

# Update properties of this object
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
end

# Information about the Chat Space where a task was assigned from.
class SpaceInfo
include Google::Apis::Core::Hashable

# Output only. The Chat space where this task originates from. The format is "
# spaces/`space`".
# Corresponds to the JSON property `space`
# @return [String]
attr_accessor :space

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

# Update properties of this object
def update!(**args)
@space = args[:space] if args.key?(:space)
end
end

#
class Task
include Google::Apis::Core::Hashable

# Information about the source of the task assignment (Document, Chat Space).
# Corresponds to the JSON property `assignmentInfo`
# @return [Google::Apis::TasksV1::AssignmentInfo]
attr_accessor :assignment_info

# Completion date of the task (as a RFC 3339 timestamp). This field is omitted
# if the task has not been completed.
# Corresponds to the JSON property `completed`
# @return [String]
attr_accessor :completed

# Flag indicating whether the task has been deleted. The default is False.
# Flag indicating whether the task has been deleted. For assigned tasks this
# field is read-only. They can only be deleted by calling tasks.delete, in which
# case both the assigned task and the original task (in Docs or Chat Spaces) are
# deleted. To delete the assigned task only, navigate to the assignment surface
# and unassign the task from there. The default is False.
# Corresponds to the JSON property `deleted`
# @return [Boolean]
attr_accessor :deleted
Expand Down Expand Up @@ -74,14 +171,16 @@ class Task
# @return [Array<Google::Apis::TasksV1::Task::Link>]
attr_accessor :links

# Notes describing the task. Optional. Maximum length allowed: 8192 characters.
# Notes describing the task. Tasks assigned from Google Docs cannot have notes.
# Optional. Maximum length allowed: 8192 characters.
# Corresponds to the JSON property `notes`
# @return [String]
attr_accessor :notes

# Output only. Parent task identifier. This field is omitted if it is a top-
# level task. This field is read-only. Use the "move" method to move the task
# under a different parent or to the top level.
# level task. Use the "move" method to move the task under a different parent or
# to the top level. A parent task can never be an assigned task (from Chat
# Spaces, Docs). This field is read-only.
# Corresponds to the JSON property `parent`
# @return [String]
attr_accessor :parent
Expand Down Expand Up @@ -128,6 +227,7 @@ def initialize(**args)

# Update properties of this object
def update!(**args)
@assignment_info = args[:assignment_info] if args.key?(:assignment_info)
@completed = args[:completed] if args.key?(:completed)
@deleted = args[:deleted] if args.key?(:deleted)
@due = args[:due] if args.key?(:due)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module TasksV1
# Version of the google-apis-tasks_v1 gem
GEM_VERSION = "0.23.0"
GEM_VERSION = "0.24.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.15.0"

# Revision of the discovery document this client was generated from
REVISION = "20240526"
REVISION = "20240630"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,24 @@ module Google
module Apis
module TasksV1

class AssignmentInfo
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class DriveResourceInfo
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class SpaceInfo
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class Task
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -52,9 +70,38 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class AssignmentInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :drive_resource_info, as: 'driveResourceInfo', class: Google::Apis::TasksV1::DriveResourceInfo, decorator: Google::Apis::TasksV1::DriveResourceInfo::Representation

property :link_to_task, as: 'linkToTask'
property :space_info, as: 'spaceInfo', class: Google::Apis::TasksV1::SpaceInfo, decorator: Google::Apis::TasksV1::SpaceInfo::Representation

property :surface_type, as: 'surfaceType'
end
end

class DriveResourceInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :drive_file_id, as: 'driveFileId'
property :resource_key, as: 'resourceKey'
end
end

class SpaceInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :space, as: 'space'
end
end

class Task
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :assignment_info, as: 'assignmentInfo', class: Google::Apis::TasksV1::AssignmentInfo, decorator: Google::Apis::TasksV1::AssignmentInfo::Representation

property :completed, as: 'completed'
property :deleted, as: 'deleted'
property :due, as: 'due'
Expand Down
Loading

0 comments on commit 089119c

Please sign in to comment.