generated/google/apis/tasks_v1/service.rb in google-api-client-0.9.pre3 vs generated/google/apis/tasks_v1/service.rb in google-api-client-0.9.pre4
- old
+ new
@@ -75,12 +75,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_tasklist(tasklist, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- path = 'users/@me/lists/{tasklist}'
- command = make_simple_command(:delete, path, options)
+ command = make_simple_command(:delete, 'users/@me/lists/{tasklist}', options)
command.params['tasklist'] = tasklist unless tasklist.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
@@ -109,12 +108,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_tasklist(tasklist, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- path = 'users/@me/lists/{tasklist}'
- command = make_simple_command(:get, path, options)
+ command = make_simple_command(:get, 'users/@me/lists/{tasklist}', options)
command.response_representation = Google::Apis::TasksV1::TaskList::Representation
command.response_class = Google::Apis::TasksV1::TaskList
command.params['tasklist'] = tasklist unless tasklist.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -144,12 +142,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_tasklist(task_list_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- path = 'users/@me/lists'
- command = make_simple_command(:post, path, options)
+ command = make_simple_command(:post, 'users/@me/lists', options)
command.request_representation = Google::Apis::TasksV1::TaskList::Representation
command.request_object = task_list_object
command.response_representation = Google::Apis::TasksV1::TaskList::Representation
command.response_class = Google::Apis::TasksV1::TaskList
command.query['fields'] = fields unless fields.nil?
@@ -184,12 +181,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_tasklists(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- path = 'users/@me/lists'
- command = make_simple_command(:get, path, options)
+ command = make_simple_command(:get, 'users/@me/lists', options)
command.response_representation = Google::Apis::TasksV1::TaskLists::Representation
command.response_class = Google::Apis::TasksV1::TaskLists
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
@@ -223,12 +219,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_tasklist(tasklist, task_list_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- path = 'users/@me/lists/{tasklist}'
- command = make_simple_command(:patch, path, options)
+ command = make_simple_command(:patch, 'users/@me/lists/{tasklist}', options)
command.request_representation = Google::Apis::TasksV1::TaskList::Representation
command.request_object = task_list_object
command.response_representation = Google::Apis::TasksV1::TaskList::Representation
command.response_class = Google::Apis::TasksV1::TaskList
command.params['tasklist'] = tasklist unless tasklist.nil?
@@ -262,12 +257,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_tasklist(tasklist, task_list_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- path = 'users/@me/lists/{tasklist}'
- command = make_simple_command(:put, path, options)
+ command = make_simple_command(:put, 'users/@me/lists/{tasklist}', options)
command.request_representation = Google::Apis::TasksV1::TaskList::Representation
command.request_object = task_list_object
command.response_representation = Google::Apis::TasksV1::TaskList::Representation
command.response_class = Google::Apis::TasksV1::TaskList
command.params['tasklist'] = tasklist unless tasklist.nil?
@@ -302,12 +296,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def clear_task(tasklist, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- path = 'lists/{tasklist}/clear'
- command = make_simple_command(:post, path, options)
+ command = make_simple_command(:post, 'lists/{tasklist}/clear', options)
command.params['tasklist'] = tasklist unless tasklist.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
@@ -338,12 +331,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_task(tasklist, task, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- path = 'lists/{tasklist}/tasks/{task}'
- command = make_simple_command(:delete, path, options)
+ command = make_simple_command(:delete, 'lists/{tasklist}/tasks/{task}', options)
command.params['tasklist'] = tasklist unless tasklist.nil?
command.params['task'] = task unless task.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
@@ -375,12 +367,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_task(tasklist, task, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- path = 'lists/{tasklist}/tasks/{task}'
- command = make_simple_command(:get, path, options)
+ command = make_simple_command(:get, 'lists/{tasklist}/tasks/{task}', options)
command.response_representation = Google::Apis::TasksV1::Task::Representation
command.response_class = Google::Apis::TasksV1::Task
command.params['tasklist'] = tasklist unless tasklist.nil?
command.params['task'] = task unless task.nil?
command.query['fields'] = fields unless fields.nil?
@@ -419,12 +410,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_task(tasklist, task_object = nil, parent: nil, previous: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- path = 'lists/{tasklist}/tasks'
- command = make_simple_command(:post, path, options)
+ command = make_simple_command(:post, 'lists/{tasklist}/tasks', options)
command.request_representation = Google::Apis::TasksV1::Task::Representation
command.request_object = task_object
command.response_representation = Google::Apis::TasksV1::Task::Representation
command.response_class = Google::Apis::TasksV1::Task
command.params['tasklist'] = tasklist unless tasklist.nil?
@@ -488,12 +478,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_tasks(tasklist, completed_max: nil, completed_min: nil, due_max: nil, due_min: nil, max_results: nil, page_token: nil, show_completed: nil, show_deleted: nil, show_hidden: nil, updated_min: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- path = 'lists/{tasklist}/tasks'
- command = make_simple_command(:get, path, options)
+ command = make_simple_command(:get, 'lists/{tasklist}/tasks', options)
command.response_representation = Google::Apis::TasksV1::Tasks::Representation
command.response_class = Google::Apis::TasksV1::Tasks
command.params['tasklist'] = tasklist unless tasklist.nil?
command.query['completedMax'] = completed_max unless completed_max.nil?
command.query['completedMin'] = completed_min unless completed_min.nil?
@@ -544,12 +533,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def move_task(tasklist, task, parent: nil, previous: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- path = 'lists/{tasklist}/tasks/{task}/move'
- command = make_simple_command(:post, path, options)
+ command = make_simple_command(:post, 'lists/{tasklist}/tasks/{task}/move', options)
command.response_representation = Google::Apis::TasksV1::Task::Representation
command.response_class = Google::Apis::TasksV1::Task
command.params['tasklist'] = tasklist unless tasklist.nil?
command.params['task'] = task unless task.nil?
command.query['parent'] = parent unless parent.nil?
@@ -586,12 +574,11 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_task(tasklist, task, task_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- path = 'lists/{tasklist}/tasks/{task}'
- command = make_simple_command(:patch, path, options)
+ command = make_simple_command(:patch, 'lists/{tasklist}/tasks/{task}', options)
command.request_representation = Google::Apis::TasksV1::Task::Representation
command.request_object = task_object
command.response_representation = Google::Apis::TasksV1::Task::Representation
command.response_class = Google::Apis::TasksV1::Task
command.params['tasklist'] = tasklist unless tasklist.nil?
@@ -628,11 +615,10 @@
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_task(tasklist, task, task_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- path = 'lists/{tasklist}/tasks/{task}'
- command = make_simple_command(:put, path, options)
+ command = make_simple_command(:put, 'lists/{tasklist}/tasks/{task}', options)
command.request_representation = Google::Apis::TasksV1::Task::Representation
command.request_object = task_object
command.response_representation = Google::Apis::TasksV1::Task::Representation
command.response_class = Google::Apis::TasksV1::Task
command.params['tasklist'] = tasklist unless tasklist.nil?