From 9cc90a2207bd666bbaeae066e44677a34ce4c1de Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 21 Dec 2025 10:08:45 +0000 Subject: [PATCH] feat: Automated regeneration of workspaceevents v1 client --- api_names_out.yaml | 8 +++++ .../CHANGELOG.md | 4 +++ .../google/apis/workspaceevents_v1/classes.rb | 14 ++++++++ .../apis/workspaceevents_v1/gem_version.rb | 4 +-- .../workspaceevents_v1/representations.rb | 2 ++ .../google/apis/workspaceevents_v1/service.rb | 36 +++++++++++++++---- 6 files changed, 60 insertions(+), 8 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index a0423db1883..66a87fb85d0 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -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 @@ -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 @@ -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 diff --git a/generated/google-apis-workspaceevents_v1/CHANGELOG.md b/generated/google-apis-workspaceevents_v1/CHANGELOG.md index aa6b3ab96d9..821deb712cb 100644 --- a/generated/google-apis-workspaceevents_v1/CHANGELOG.md +++ b/generated/google-apis-workspaceevents_v1/CHANGELOG.md @@ -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 diff --git a/generated/google-apis-workspaceevents_v1/lib/google/apis/workspaceevents_v1/classes.rb b/generated/google-apis-workspaceevents_v1/lib/google/apis/workspaceevents_v1/classes.rb index 05052cf61f8..a83a03f9ca5 100644 --- a/generated/google-apis-workspaceevents_v1/lib/google/apis/workspaceevents_v1/classes.rb +++ b/generated/google-apis-workspaceevents_v1/lib/google/apis/workspaceevents_v1/classes.rb @@ -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 @@ -589,6 +596,12 @@ class SendMessageRequest # @return [Hash] 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 @@ -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 diff --git a/generated/google-apis-workspaceevents_v1/lib/google/apis/workspaceevents_v1/gem_version.rb b/generated/google-apis-workspaceevents_v1/lib/google/apis/workspaceevents_v1/gem_version.rb index c4faf0678a0..27bdb7f69aa 100644 --- a/generated/google-apis-workspaceevents_v1/lib/google/apis/workspaceevents_v1/gem_version.rb +++ b/generated/google-apis-workspaceevents_v1/lib/google/apis/workspaceevents_v1/gem_version.rb @@ -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 diff --git a/generated/google-apis-workspaceevents_v1/lib/google/apis/workspaceevents_v1/representations.rb b/generated/google-apis-workspaceevents_v1/lib/google/apis/workspaceevents_v1/representations.rb index ec0944da4c0..9cf113bfe5f 100644 --- a/generated/google-apis-workspaceevents_v1/lib/google/apis/workspaceevents_v1/representations.rb +++ b/generated/google-apis-workspaceevents_v1/lib/google/apis/workspaceevents_v1/representations.rb @@ -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 @@ -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 diff --git a/generated/google-apis-workspaceevents_v1/lib/google/apis/workspaceevents_v1/service.rb b/generated/google-apis-workspaceevents_v1/lib/google/apis/workspaceevents_v1/service.rb index 9223c25bd74..f4e51f3e860 100644 --- a/generated/google-apis-workspaceevents_v1/lib/google/apis/workspaceevents_v1/service.rb +++ b/generated/google-apis-workspaceevents_v1/lib/google/apis/workspaceevents_v1/service.rb @@ -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 @@ -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) @@ -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 @@ -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) @@ -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 @@ -525,7 +536,7 @@ 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 @@ -533,6 +544,7 @@ def create_task_push_notification_config(parent, task_push_notification_config_o 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) @@ -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 @@ -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) @@ -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 @@ -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) @@ -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 @@ -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)