Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -400519,6 +400519,7 @@
"/workspaceevents:v1/AuthorizationCodeOAuthFlow/scopes/scope": scope
"/workspaceevents:v1/AuthorizationCodeOAuthFlow/tokenUrl": token_url
"/workspaceevents:v1/CancelTaskRequest": cancel_task_request
"/workspaceevents:v1/CancelTaskRequest/tenant": tenant
"/workspaceevents:v1/ClientCredentialsOAuthFlow": client_credentials_o_auth_flow
"/workspaceevents:v1/ClientCredentialsOAuthFlow/refreshUrl": refresh_url
"/workspaceevents:v1/ClientCredentialsOAuthFlow/scopes": scopes
Expand Down Expand Up @@ -400625,6 +400626,7 @@
"/workspaceevents:v1/SendMessageRequest/message": message
"/workspaceevents:v1/SendMessageRequest/metadata": metadata
"/workspaceevents:v1/SendMessageRequest/metadata/metadatum": metadatum
"/workspaceevents:v1/SendMessageRequest/tenant": tenant
"/workspaceevents:v1/Status": status
"/workspaceevents:v1/Status/code": code
"/workspaceevents:v1/Status/details": details
Expand Down Expand Up @@ -400718,19 +400720,25 @@
"/workspaceevents:v1/workspaceevents.tasks.get": get_task
"/workspaceevents:v1/workspaceevents.tasks.get/historyLength": history_length
"/workspaceevents:v1/workspaceevents.tasks.get/name": name
"/workspaceevents:v1/workspaceevents.tasks.get/tenant": tenant
"/workspaceevents:v1/workspaceevents.tasks.pushNotificationConfigs.create": create_task_push_notification_config
"/workspaceevents:v1/workspaceevents.tasks.pushNotificationConfigs.create/configId": config_id
"/workspaceevents:v1/workspaceevents.tasks.pushNotificationConfigs.create/parent": parent
"/workspaceevents:v1/workspaceevents.tasks.pushNotificationConfigs.create/tenant": tenant
"/workspaceevents:v1/workspaceevents.tasks.pushNotificationConfigs.delete": delete_task_push_notification_config
"/workspaceevents:v1/workspaceevents.tasks.pushNotificationConfigs.delete/name": name
"/workspaceevents:v1/workspaceevents.tasks.pushNotificationConfigs.delete/tenant": tenant
"/workspaceevents:v1/workspaceevents.tasks.pushNotificationConfigs.get": get_task_push_notification_config
"/workspaceevents:v1/workspaceevents.tasks.pushNotificationConfigs.get/name": name
"/workspaceevents:v1/workspaceevents.tasks.pushNotificationConfigs.get/tenant": tenant
"/workspaceevents:v1/workspaceevents.tasks.pushNotificationConfigs.list": list_task_push_notification_configs
"/workspaceevents:v1/workspaceevents.tasks.pushNotificationConfigs.list/pageSize": page_size
"/workspaceevents:v1/workspaceevents.tasks.pushNotificationConfigs.list/pageToken": page_token
"/workspaceevents:v1/workspaceevents.tasks.pushNotificationConfigs.list/parent": parent
"/workspaceevents:v1/workspaceevents.tasks.pushNotificationConfigs.list/tenant": tenant
"/workspaceevents:v1/workspaceevents.tasks.subscribe": subscribe_task
"/workspaceevents:v1/workspaceevents.tasks.subscribe/name": name
"/workspaceevents:v1/workspaceevents.tasks.subscribe/tenant": tenant
"/workstations:v1/Accelerator": accelerator
"/workstations:v1/Accelerator/count": count
"/workstations:v1/Accelerator/type": type
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-workspaceevents_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-workspaceevents_v1

### v0.21.0 (2025-12-21)

* Regenerated from discovery document revision 20251216

### v0.20.0 (2025-11-23)

* Regenerated from discovery document revision 20251118
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,19 @@ def update!(**args)
class CancelTaskRequest
include Google::Apis::Core::Hashable

# Optional tenant, provided as a path parameter. Experimental, might still
# change for 1.0 release.
# Corresponds to the JSON property `tenant`
# @return [String]
attr_accessor :tenant

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

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

Expand Down Expand Up @@ -589,6 +596,12 @@ class SendMessageRequest
# @return [Hash<String,Object>]
attr_accessor :metadata

# Optional tenant, provided as a path parameter. Experimental, might still
# change for 1.0 release.
# Corresponds to the JSON property `tenant`
# @return [String]
attr_accessor :tenant

def initialize(**args)
update!(**args)
end
Expand All @@ -598,6 +611,7 @@ def update!(**args)
@configuration = args[:configuration] if args.key?(:configuration)
@message = args[:message] if args.key?(:message)
@metadata = args[:metadata] if args.key?(:metadata)
@tenant = args[:tenant] if args.key?(:tenant)
end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module WorkspaceeventsV1
# Version of the google-apis-workspaceevents_v1 gem
GEM_VERSION = "0.20.0"
GEM_VERSION = "0.21.0"

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

# Revision of the discovery document this client was generated from
REVISION = "20251118"
REVISION = "20251216"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
class CancelTaskRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :tenant, as: 'tenant'
end
end

Expand Down Expand Up @@ -329,6 +330,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :message, as: 'message', class: Google::Apis::WorkspaceeventsV1::Message, decorator: Google::Apis::WorkspaceeventsV1::Message::Representation

hash :metadata, as: 'metadata'
property :tenant, as: 'tenant'
end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,9 @@ def cancel_task(name, cancel_task_request_object = nil, fields: nil, quota_user:
# Required. The resource name of the task. Format: tasks/`task_id`
# @param [Fixnum] history_length
# The number of most recent messages from the task's history to retrieve.
# @param [String] tenant
# Optional tenant, provided as a path parameter. Experimental, might still
# change for 1.0 release.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
Expand All @@ -458,12 +461,13 @@ def cancel_task(name, cancel_task_request_object = nil, fields: nil, quota_user:
# @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(name, history_length: nil, fields: nil, quota_user: nil, options: nil, &block)
def get_task(name, history_length: nil, tenant: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::WorkspaceeventsV1::Task::Representation
command.response_class = Google::Apis::WorkspaceeventsV1::Task
command.params['name'] = name unless name.nil?
command.query['historyLength'] = history_length unless history_length.nil?
command.query['tenant'] = tenant unless tenant.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
Expand All @@ -475,6 +479,9 @@ def get_task(name, history_length: nil, fields: nil, quota_user: nil, options: n
# the stream.
# @param [String] name
# The resource name of the task to subscribe to. Format: tasks/`task_id`
# @param [String] tenant
# Optional tenant, provided as a path parameter. Experimental, might still
# change for 1.0 release.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
Expand All @@ -492,11 +499,12 @@ def get_task(name, history_length: nil, fields: nil, quota_user: nil, options: n
# @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 subscribe_task(name, fields: nil, quota_user: nil, options: nil, &block)
def subscribe_task(name, tenant: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}:subscribe', options)
command.response_representation = Google::Apis::WorkspaceeventsV1::StreamResponse::Representation
command.response_class = Google::Apis::WorkspaceeventsV1::StreamResponse
command.params['name'] = name unless name.nil?
command.query['tenant'] = tenant unless tenant.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
Expand All @@ -508,6 +516,9 @@ def subscribe_task(name, fields: nil, quota_user: nil, options: nil, &block)
# @param [Google::Apis::WorkspaceeventsV1::TaskPushNotificationConfig] task_push_notification_config_object
# @param [String] config_id
# Required. The ID for the new config.
# @param [String] tenant
# Optional tenant, provided as a path parameter. Experimental, might still
# change for 1.0 release.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
Expand All @@ -525,14 +536,15 @@ def subscribe_task(name, fields: nil, quota_user: nil, options: nil, &block)
# @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 create_task_push_notification_config(parent, task_push_notification_config_object = nil, config_id: nil, fields: nil, quota_user: nil, options: nil, &block)
def create_task_push_notification_config(parent, task_push_notification_config_object = nil, config_id: nil, tenant: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}', options)
command.request_representation = Google::Apis::WorkspaceeventsV1::TaskPushNotificationConfig::Representation
command.request_object = task_push_notification_config_object
command.response_representation = Google::Apis::WorkspaceeventsV1::TaskPushNotificationConfig::Representation
command.response_class = Google::Apis::WorkspaceeventsV1::TaskPushNotificationConfig
command.params['parent'] = parent unless parent.nil?
command.query['configId'] = config_id unless config_id.nil?
command.query['tenant'] = tenant unless tenant.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
Expand All @@ -542,6 +554,9 @@ def create_task_push_notification_config(parent, task_push_notification_config_o
# @param [String] name
# The resource name of the config to delete. Format: tasks/`task_id`/
# pushNotificationConfigs/`config_id`
# @param [String] tenant
# Optional tenant, provided as a path parameter. Experimental, might still
# change for 1.0 release.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
Expand All @@ -559,11 +574,12 @@ def create_task_push_notification_config(parent, task_push_notification_config_o
# @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_push_notification_config(name, fields: nil, quota_user: nil, options: nil, &block)
def delete_task_push_notification_config(name, tenant: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::WorkspaceeventsV1::Empty::Representation
command.response_class = Google::Apis::WorkspaceeventsV1::Empty
command.params['name'] = name unless name.nil?
command.query['tenant'] = tenant unless tenant.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
Expand All @@ -573,6 +589,9 @@ def delete_task_push_notification_config(name, fields: nil, quota_user: nil, opt
# @param [String] name
# The resource name of the config to retrieve. Format: tasks/`task_id`/
# pushNotificationConfigs/`config_id`
# @param [String] tenant
# Optional tenant, provided as a path parameter. Experimental, might still
# change for 1.0 release.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
Expand All @@ -590,11 +609,12 @@ def delete_task_push_notification_config(name, fields: nil, quota_user: nil, opt
# @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_push_notification_config(name, fields: nil, quota_user: nil, options: nil, &block)
def get_task_push_notification_config(name, tenant: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::WorkspaceeventsV1::TaskPushNotificationConfig::Representation
command.response_class = Google::Apis::WorkspaceeventsV1::TaskPushNotificationConfig
command.params['name'] = name unless name.nil?
command.query['tenant'] = tenant unless tenant.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
Expand All @@ -612,6 +632,9 @@ def get_task_push_notification_config(name, fields: nil, quota_user: nil, option
# call. Provide this to retrieve the subsequent page. When paginating, all other
# parameters provided to `ListTaskPushNotificationConfigRequest` must match the
# call that provided the page token.
# @param [String] tenant
# Optional tenant, provided as a path parameter. Experimental, might still
# change for 1.0 release.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
Expand All @@ -629,13 +652,14 @@ def get_task_push_notification_config(name, fields: nil, quota_user: nil, option
# @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_task_push_notification_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
def list_task_push_notification_configs(parent, page_size: nil, page_token: nil, tenant: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/pushNotificationConfigs', options)
command.response_representation = Google::Apis::WorkspaceeventsV1::ListTaskPushNotificationConfigResponse::Representation
command.response_class = Google::Apis::WorkspaceeventsV1::ListTaskPushNotificationConfigResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['tenant'] = tenant unless tenant.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
Expand Down