Skip to content

Commit 6a9dbe9

Browse files
feat: Automated regeneration of workspaceevents v1 client (googleapis#25292)
Auto-created at 2025-12-21 10:08:45 +0000 using the toys pull request generator.
1 parent e1de3a7 commit 6a9dbe9

6 files changed

Lines changed: 60 additions & 8 deletions

File tree

api_names_out.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401013,6 +401013,7 @@
401013401013
"/workspaceevents:v1/AuthorizationCodeOAuthFlow/scopes/scope": scope
401014401014
"/workspaceevents:v1/AuthorizationCodeOAuthFlow/tokenUrl": token_url
401015401015
"/workspaceevents:v1/CancelTaskRequest": cancel_task_request
401016+
"/workspaceevents:v1/CancelTaskRequest/tenant": tenant
401016401017
"/workspaceevents:v1/ClientCredentialsOAuthFlow": client_credentials_o_auth_flow
401017401018
"/workspaceevents:v1/ClientCredentialsOAuthFlow/refreshUrl": refresh_url
401018401019
"/workspaceevents:v1/ClientCredentialsOAuthFlow/scopes": scopes
@@ -401119,6 +401120,7 @@
401119401120
"/workspaceevents:v1/SendMessageRequest/message": message
401120401121
"/workspaceevents:v1/SendMessageRequest/metadata": metadata
401121401122
"/workspaceevents:v1/SendMessageRequest/metadata/metadatum": metadatum
401123+
"/workspaceevents:v1/SendMessageRequest/tenant": tenant
401122401124
"/workspaceevents:v1/Status": status
401123401125
"/workspaceevents:v1/Status/code": code
401124401126
"/workspaceevents:v1/Status/details": details
@@ -401212,19 +401214,25 @@
401212401214
"/workspaceevents:v1/workspaceevents.tasks.get": get_task
401213401215
"/workspaceevents:v1/workspaceevents.tasks.get/historyLength": history_length
401214401216
"/workspaceevents:v1/workspaceevents.tasks.get/name": name
401217+
"/workspaceevents:v1/workspaceevents.tasks.get/tenant": tenant
401215401218
"/workspaceevents:v1/workspaceevents.tasks.pushNotificationConfigs.create": create_task_push_notification_config
401216401219
"/workspaceevents:v1/workspaceevents.tasks.pushNotificationConfigs.create/configId": config_id
401217401220
"/workspaceevents:v1/workspaceevents.tasks.pushNotificationConfigs.create/parent": parent
401221+
"/workspaceevents:v1/workspaceevents.tasks.pushNotificationConfigs.create/tenant": tenant
401218401222
"/workspaceevents:v1/workspaceevents.tasks.pushNotificationConfigs.delete": delete_task_push_notification_config
401219401223
"/workspaceevents:v1/workspaceevents.tasks.pushNotificationConfigs.delete/name": name
401224+
"/workspaceevents:v1/workspaceevents.tasks.pushNotificationConfigs.delete/tenant": tenant
401220401225
"/workspaceevents:v1/workspaceevents.tasks.pushNotificationConfigs.get": get_task_push_notification_config
401221401226
"/workspaceevents:v1/workspaceevents.tasks.pushNotificationConfigs.get/name": name
401227+
"/workspaceevents:v1/workspaceevents.tasks.pushNotificationConfigs.get/tenant": tenant
401222401228
"/workspaceevents:v1/workspaceevents.tasks.pushNotificationConfigs.list": list_task_push_notification_configs
401223401229
"/workspaceevents:v1/workspaceevents.tasks.pushNotificationConfigs.list/pageSize": page_size
401224401230
"/workspaceevents:v1/workspaceevents.tasks.pushNotificationConfigs.list/pageToken": page_token
401225401231
"/workspaceevents:v1/workspaceevents.tasks.pushNotificationConfigs.list/parent": parent
401232+
"/workspaceevents:v1/workspaceevents.tasks.pushNotificationConfigs.list/tenant": tenant
401226401233
"/workspaceevents:v1/workspaceevents.tasks.subscribe": subscribe_task
401227401234
"/workspaceevents:v1/workspaceevents.tasks.subscribe/name": name
401235+
"/workspaceevents:v1/workspaceevents.tasks.subscribe/tenant": tenant
401228401236
"/workstations:v1/Accelerator": accelerator
401229401237
"/workstations:v1/Accelerator/count": count
401230401238
"/workstations:v1/Accelerator/type": type

generated/google-apis-workspaceevents_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-workspaceevents_v1
22

3+
### v0.21.0 (2025-12-21)
4+
5+
* Regenerated from discovery document revision 20251216
6+
37
### v0.20.0 (2025-11-23)
48

59
* Regenerated from discovery document revision 20251118

generated/google-apis-workspaceevents_v1/lib/google/apis/workspaceevents_v1/classes.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,19 @@ def update!(**args)
103103
class CancelTaskRequest
104104
include Google::Apis::Core::Hashable
105105

106+
# Optional tenant, provided as a path parameter. Experimental, might still
107+
# change for 1.0 release.
108+
# Corresponds to the JSON property `tenant`
109+
# @return [String]
110+
attr_accessor :tenant
111+
106112
def initialize(**args)
107113
update!(**args)
108114
end
109115

110116
# Update properties of this object
111117
def update!(**args)
118+
@tenant = args[:tenant] if args.key?(:tenant)
112119
end
113120
end
114121

@@ -589,6 +596,12 @@ class SendMessageRequest
589596
# @return [Hash<String,Object>]
590597
attr_accessor :metadata
591598

599+
# Optional tenant, provided as a path parameter. Experimental, might still
600+
# change for 1.0 release.
601+
# Corresponds to the JSON property `tenant`
602+
# @return [String]
603+
attr_accessor :tenant
604+
592605
def initialize(**args)
593606
update!(**args)
594607
end
@@ -598,6 +611,7 @@ def update!(**args)
598611
@configuration = args[:configuration] if args.key?(:configuration)
599612
@message = args[:message] if args.key?(:message)
600613
@metadata = args[:metadata] if args.key?(:metadata)
614+
@tenant = args[:tenant] if args.key?(:tenant)
601615
end
602616
end
603617

generated/google-apis-workspaceevents_v1/lib/google/apis/workspaceevents_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module WorkspaceeventsV1
1818
# Version of the google-apis-workspaceevents_v1 gem
19-
GEM_VERSION = "0.20.0"
19+
GEM_VERSION = "0.21.0"
2020

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

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20251118"
25+
REVISION = "20251216"
2626
end
2727
end
2828
end

generated/google-apis-workspaceevents_v1/lib/google/apis/workspaceevents_v1/representations.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
196196
class CancelTaskRequest
197197
# @private
198198
class Representation < Google::Apis::Core::JsonRepresentation
199+
property :tenant, as: 'tenant'
199200
end
200201
end
201202

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

331332
hash :metadata, as: 'metadata'
333+
property :tenant, as: 'tenant'
332334
end
333335
end
334336

generated/google-apis-workspaceevents_v1/lib/google/apis/workspaceevents_v1/service.rb

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,9 @@ def cancel_task(name, cancel_task_request_object = nil, fields: nil, quota_user:
441441
# Required. The resource name of the task. Format: tasks/`task_id`
442442
# @param [Fixnum] history_length
443443
# The number of most recent messages from the task's history to retrieve.
444+
# @param [String] tenant
445+
# Optional tenant, provided as a path parameter. Experimental, might still
446+
# change for 1.0 release.
444447
# @param [String] fields
445448
# Selector specifying which fields to include in a partial response.
446449
# @param [String] quota_user
@@ -458,12 +461,13 @@ def cancel_task(name, cancel_task_request_object = nil, fields: nil, quota_user:
458461
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
459462
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
460463
# @raise [Google::Apis::AuthorizationError] Authorization is required
461-
def get_task(name, history_length: nil, fields: nil, quota_user: nil, options: nil, &block)
464+
def get_task(name, history_length: nil, tenant: nil, fields: nil, quota_user: nil, options: nil, &block)
462465
command = make_simple_command(:get, 'v1/{+name}', options)
463466
command.response_representation = Google::Apis::WorkspaceeventsV1::Task::Representation
464467
command.response_class = Google::Apis::WorkspaceeventsV1::Task
465468
command.params['name'] = name unless name.nil?
466469
command.query['historyLength'] = history_length unless history_length.nil?
470+
command.query['tenant'] = tenant unless tenant.nil?
467471
command.query['fields'] = fields unless fields.nil?
468472
command.query['quotaUser'] = quota_user unless quota_user.nil?
469473
execute_or_queue_command(command, &block)
@@ -475,6 +479,9 @@ def get_task(name, history_length: nil, fields: nil, quota_user: nil, options: n
475479
# the stream.
476480
# @param [String] name
477481
# The resource name of the task to subscribe to. Format: tasks/`task_id`
482+
# @param [String] tenant
483+
# Optional tenant, provided as a path parameter. Experimental, might still
484+
# change for 1.0 release.
478485
# @param [String] fields
479486
# Selector specifying which fields to include in a partial response.
480487
# @param [String] quota_user
@@ -492,11 +499,12 @@ def get_task(name, history_length: nil, fields: nil, quota_user: nil, options: n
492499
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
493500
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
494501
# @raise [Google::Apis::AuthorizationError] Authorization is required
495-
def subscribe_task(name, fields: nil, quota_user: nil, options: nil, &block)
502+
def subscribe_task(name, tenant: nil, fields: nil, quota_user: nil, options: nil, &block)
496503
command = make_simple_command(:get, 'v1/{+name}:subscribe', options)
497504
command.response_representation = Google::Apis::WorkspaceeventsV1::StreamResponse::Representation
498505
command.response_class = Google::Apis::WorkspaceeventsV1::StreamResponse
499506
command.params['name'] = name unless name.nil?
507+
command.query['tenant'] = tenant unless tenant.nil?
500508
command.query['fields'] = fields unless fields.nil?
501509
command.query['quotaUser'] = quota_user unless quota_user.nil?
502510
execute_or_queue_command(command, &block)
@@ -508,6 +516,9 @@ def subscribe_task(name, fields: nil, quota_user: nil, options: nil, &block)
508516
# @param [Google::Apis::WorkspaceeventsV1::TaskPushNotificationConfig] task_push_notification_config_object
509517
# @param [String] config_id
510518
# Required. The ID for the new config.
519+
# @param [String] tenant
520+
# Optional tenant, provided as a path parameter. Experimental, might still
521+
# change for 1.0 release.
511522
# @param [String] fields
512523
# Selector specifying which fields to include in a partial response.
513524
# @param [String] quota_user
@@ -525,14 +536,15 @@ def subscribe_task(name, fields: nil, quota_user: nil, options: nil, &block)
525536
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
526537
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
527538
# @raise [Google::Apis::AuthorizationError] Authorization is required
528-
def create_task_push_notification_config(parent, task_push_notification_config_object = nil, config_id: nil, fields: nil, quota_user: nil, options: nil, &block)
539+
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)
529540
command = make_simple_command(:post, 'v1/{+parent}', options)
530541
command.request_representation = Google::Apis::WorkspaceeventsV1::TaskPushNotificationConfig::Representation
531542
command.request_object = task_push_notification_config_object
532543
command.response_representation = Google::Apis::WorkspaceeventsV1::TaskPushNotificationConfig::Representation
533544
command.response_class = Google::Apis::WorkspaceeventsV1::TaskPushNotificationConfig
534545
command.params['parent'] = parent unless parent.nil?
535546
command.query['configId'] = config_id unless config_id.nil?
547+
command.query['tenant'] = tenant unless tenant.nil?
536548
command.query['fields'] = fields unless fields.nil?
537549
command.query['quotaUser'] = quota_user unless quota_user.nil?
538550
execute_or_queue_command(command, &block)
@@ -542,6 +554,9 @@ def create_task_push_notification_config(parent, task_push_notification_config_o
542554
# @param [String] name
543555
# The resource name of the config to delete. Format: tasks/`task_id`/
544556
# pushNotificationConfigs/`config_id`
557+
# @param [String] tenant
558+
# Optional tenant, provided as a path parameter. Experimental, might still
559+
# change for 1.0 release.
545560
# @param [String] fields
546561
# Selector specifying which fields to include in a partial response.
547562
# @param [String] quota_user
@@ -559,11 +574,12 @@ def create_task_push_notification_config(parent, task_push_notification_config_o
559574
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
560575
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
561576
# @raise [Google::Apis::AuthorizationError] Authorization is required
562-
def delete_task_push_notification_config(name, fields: nil, quota_user: nil, options: nil, &block)
577+
def delete_task_push_notification_config(name, tenant: nil, fields: nil, quota_user: nil, options: nil, &block)
563578
command = make_simple_command(:delete, 'v1/{+name}', options)
564579
command.response_representation = Google::Apis::WorkspaceeventsV1::Empty::Representation
565580
command.response_class = Google::Apis::WorkspaceeventsV1::Empty
566581
command.params['name'] = name unless name.nil?
582+
command.query['tenant'] = tenant unless tenant.nil?
567583
command.query['fields'] = fields unless fields.nil?
568584
command.query['quotaUser'] = quota_user unless quota_user.nil?
569585
execute_or_queue_command(command, &block)
@@ -573,6 +589,9 @@ def delete_task_push_notification_config(name, fields: nil, quota_user: nil, opt
573589
# @param [String] name
574590
# The resource name of the config to retrieve. Format: tasks/`task_id`/
575591
# pushNotificationConfigs/`config_id`
592+
# @param [String] tenant
593+
# Optional tenant, provided as a path parameter. Experimental, might still
594+
# change for 1.0 release.
576595
# @param [String] fields
577596
# Selector specifying which fields to include in a partial response.
578597
# @param [String] quota_user
@@ -590,11 +609,12 @@ def delete_task_push_notification_config(name, fields: nil, quota_user: nil, opt
590609
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
591610
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
592611
# @raise [Google::Apis::AuthorizationError] Authorization is required
593-
def get_task_push_notification_config(name, fields: nil, quota_user: nil, options: nil, &block)
612+
def get_task_push_notification_config(name, tenant: nil, fields: nil, quota_user: nil, options: nil, &block)
594613
command = make_simple_command(:get, 'v1/{+name}', options)
595614
command.response_representation = Google::Apis::WorkspaceeventsV1::TaskPushNotificationConfig::Representation
596615
command.response_class = Google::Apis::WorkspaceeventsV1::TaskPushNotificationConfig
597616
command.params['name'] = name unless name.nil?
617+
command.query['tenant'] = tenant unless tenant.nil?
598618
command.query['fields'] = fields unless fields.nil?
599619
command.query['quotaUser'] = quota_user unless quota_user.nil?
600620
execute_or_queue_command(command, &block)
@@ -612,6 +632,9 @@ def get_task_push_notification_config(name, fields: nil, quota_user: nil, option
612632
# call. Provide this to retrieve the subsequent page. When paginating, all other
613633
# parameters provided to `ListTaskPushNotificationConfigRequest` must match the
614634
# call that provided the page token.
635+
# @param [String] tenant
636+
# Optional tenant, provided as a path parameter. Experimental, might still
637+
# change for 1.0 release.
615638
# @param [String] fields
616639
# Selector specifying which fields to include in a partial response.
617640
# @param [String] quota_user
@@ -629,13 +652,14 @@ def get_task_push_notification_config(name, fields: nil, quota_user: nil, option
629652
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
630653
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
631654
# @raise [Google::Apis::AuthorizationError] Authorization is required
632-
def list_task_push_notification_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
655+
def list_task_push_notification_configs(parent, page_size: nil, page_token: nil, tenant: nil, fields: nil, quota_user: nil, options: nil, &block)
633656
command = make_simple_command(:get, 'v1/{+parent}/pushNotificationConfigs', options)
634657
command.response_representation = Google::Apis::WorkspaceeventsV1::ListTaskPushNotificationConfigResponse::Representation
635658
command.response_class = Google::Apis::WorkspaceeventsV1::ListTaskPushNotificationConfigResponse
636659
command.params['parent'] = parent unless parent.nil?
637660
command.query['pageSize'] = page_size unless page_size.nil?
638661
command.query['pageToken'] = page_token unless page_token.nil?
662+
command.query['tenant'] = tenant unless tenant.nil?
639663
command.query['fields'] = fields unless fields.nil?
640664
command.query['quotaUser'] = quota_user unless quota_user.nil?
641665
execute_or_queue_command(command, &block)

0 commit comments

Comments
 (0)