google-apis-workspaceevents_v1 0.18.0 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -52,6 +52,37 @@ module Google
52
52
  @batch_path = 'batch'
53
53
  end
54
54
 
55
+ # SendStreamingMessage is a streaming call that will return a stream of task
56
+ # update events until the Task is in an interrupted or terminal state.
57
+ # @param [Google::Apis::WorkspaceeventsV1::SendMessageRequest] send_message_request_object
58
+ # @param [String] fields
59
+ # Selector specifying which fields to include in a partial response.
60
+ # @param [String] quota_user
61
+ # Available to use for quota purposes for server-side applications. Can be any
62
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
63
+ # @param [Google::Apis::RequestOptions] options
64
+ # Request-specific options
65
+ #
66
+ # @yield [result, err] Result & error if block supplied
67
+ # @yieldparam result [Google::Apis::WorkspaceeventsV1::StreamResponse] parsed result object
68
+ # @yieldparam err [StandardError] error object if request failed
69
+ #
70
+ # @return [Google::Apis::WorkspaceeventsV1::StreamResponse]
71
+ #
72
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
73
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
74
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
75
+ def stream_message(send_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
76
+ command = make_simple_command(:post, 'v1/message:stream', options)
77
+ command.request_representation = Google::Apis::WorkspaceeventsV1::SendMessageRequest::Representation
78
+ command.request_object = send_message_request_object
79
+ command.response_representation = Google::Apis::WorkspaceeventsV1::StreamResponse::Representation
80
+ command.response_class = Google::Apis::WorkspaceeventsV1::StreamResponse
81
+ command.query['fields'] = fields unless fields.nil?
82
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
83
+ execute_or_queue_command(command, &block)
84
+ end
85
+
55
86
  # Gets the latest state of a long-running operation. Clients can use this method
56
87
  # to poll the operation result at intervals as recommended by the API service.
57
88
  # @param [String] name
@@ -370,6 +401,272 @@ module Google
370
401
  command.query['quotaUser'] = quota_user unless quota_user.nil?
371
402
  execute_or_queue_command(command, &block)
372
403
  end
404
+
405
+ # Cancel a task from the agent. If supported one should expect no more task
406
+ # updates for the task.
407
+ # @param [String] name
408
+ # The resource name of the task to cancel. Format: tasks/`task_id`
409
+ # @param [Google::Apis::WorkspaceeventsV1::CancelTaskRequest] cancel_task_request_object
410
+ # @param [String] fields
411
+ # Selector specifying which fields to include in a partial response.
412
+ # @param [String] quota_user
413
+ # Available to use for quota purposes for server-side applications. Can be any
414
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
415
+ # @param [Google::Apis::RequestOptions] options
416
+ # Request-specific options
417
+ #
418
+ # @yield [result, err] Result & error if block supplied
419
+ # @yieldparam result [Google::Apis::WorkspaceeventsV1::Task] parsed result object
420
+ # @yieldparam err [StandardError] error object if request failed
421
+ #
422
+ # @return [Google::Apis::WorkspaceeventsV1::Task]
423
+ #
424
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
425
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
426
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
427
+ def cancel_task(name, cancel_task_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
428
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
429
+ command.request_representation = Google::Apis::WorkspaceeventsV1::CancelTaskRequest::Representation
430
+ command.request_object = cancel_task_request_object
431
+ command.response_representation = Google::Apis::WorkspaceeventsV1::Task::Representation
432
+ command.response_class = Google::Apis::WorkspaceeventsV1::Task
433
+ command.params['name'] = name unless name.nil?
434
+ command.query['fields'] = fields unless fields.nil?
435
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
436
+ execute_or_queue_command(command, &block)
437
+ end
438
+
439
+ # Get the current state of a task from the agent.
440
+ # @param [String] name
441
+ # Required. The resource name of the task. Format: tasks/`task_id`
442
+ # @param [Fixnum] history_length
443
+ # The number of most recent messages from the task's history to retrieve.
444
+ # @param [String] fields
445
+ # Selector specifying which fields to include in a partial response.
446
+ # @param [String] quota_user
447
+ # Available to use for quota purposes for server-side applications. Can be any
448
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
449
+ # @param [Google::Apis::RequestOptions] options
450
+ # Request-specific options
451
+ #
452
+ # @yield [result, err] Result & error if block supplied
453
+ # @yieldparam result [Google::Apis::WorkspaceeventsV1::Task] parsed result object
454
+ # @yieldparam err [StandardError] error object if request failed
455
+ #
456
+ # @return [Google::Apis::WorkspaceeventsV1::Task]
457
+ #
458
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
459
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
460
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
461
+ def get_task(name, history_length: nil, fields: nil, quota_user: nil, options: nil, &block)
462
+ command = make_simple_command(:get, 'v1/{+name}', options)
463
+ command.response_representation = Google::Apis::WorkspaceeventsV1::Task::Representation
464
+ command.response_class = Google::Apis::WorkspaceeventsV1::Task
465
+ command.params['name'] = name unless name.nil?
466
+ command.query['historyLength'] = history_length unless history_length.nil?
467
+ command.query['fields'] = fields unless fields.nil?
468
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
469
+ execute_or_queue_command(command, &block)
470
+ end
471
+
472
+ # TaskSubscription is a streaming call that will return a stream of task update
473
+ # events. This attaches the stream to an existing in process task. If the task
474
+ # is complete the stream will return the completed task (like GetTask) and close
475
+ # the stream.
476
+ # @param [String] name
477
+ # The resource name of the task to subscribe to. Format: tasks/`task_id`
478
+ # @param [String] fields
479
+ # Selector specifying which fields to include in a partial response.
480
+ # @param [String] quota_user
481
+ # Available to use for quota purposes for server-side applications. Can be any
482
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
483
+ # @param [Google::Apis::RequestOptions] options
484
+ # Request-specific options
485
+ #
486
+ # @yield [result, err] Result & error if block supplied
487
+ # @yieldparam result [Google::Apis::WorkspaceeventsV1::StreamResponse] parsed result object
488
+ # @yieldparam err [StandardError] error object if request failed
489
+ #
490
+ # @return [Google::Apis::WorkspaceeventsV1::StreamResponse]
491
+ #
492
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
493
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
494
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
495
+ def subscribe_task(name, fields: nil, quota_user: nil, options: nil, &block)
496
+ command = make_simple_command(:get, 'v1/{+name}:subscribe', options)
497
+ command.response_representation = Google::Apis::WorkspaceeventsV1::StreamResponse::Representation
498
+ command.response_class = Google::Apis::WorkspaceeventsV1::StreamResponse
499
+ command.params['name'] = name unless name.nil?
500
+ command.query['fields'] = fields unless fields.nil?
501
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
502
+ execute_or_queue_command(command, &block)
503
+ end
504
+
505
+ # Set a push notification config for a task.
506
+ # @param [String] parent
507
+ # Required. The parent task resource for this config. Format: tasks/`task_id`
508
+ # @param [Google::Apis::WorkspaceeventsV1::TaskPushNotificationConfig] task_push_notification_config_object
509
+ # @param [String] config_id
510
+ # Required. The ID for the new config.
511
+ # @param [String] fields
512
+ # Selector specifying which fields to include in a partial response.
513
+ # @param [String] quota_user
514
+ # Available to use for quota purposes for server-side applications. Can be any
515
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
516
+ # @param [Google::Apis::RequestOptions] options
517
+ # Request-specific options
518
+ #
519
+ # @yield [result, err] Result & error if block supplied
520
+ # @yieldparam result [Google::Apis::WorkspaceeventsV1::TaskPushNotificationConfig] parsed result object
521
+ # @yieldparam err [StandardError] error object if request failed
522
+ #
523
+ # @return [Google::Apis::WorkspaceeventsV1::TaskPushNotificationConfig]
524
+ #
525
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
526
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
527
+ # @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)
529
+ command = make_simple_command(:post, 'v1/{+parent}', options)
530
+ command.request_representation = Google::Apis::WorkspaceeventsV1::TaskPushNotificationConfig::Representation
531
+ command.request_object = task_push_notification_config_object
532
+ command.response_representation = Google::Apis::WorkspaceeventsV1::TaskPushNotificationConfig::Representation
533
+ command.response_class = Google::Apis::WorkspaceeventsV1::TaskPushNotificationConfig
534
+ command.params['parent'] = parent unless parent.nil?
535
+ command.query['configId'] = config_id unless config_id.nil?
536
+ command.query['fields'] = fields unless fields.nil?
537
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
538
+ execute_or_queue_command(command, &block)
539
+ end
540
+
541
+ # Delete a push notification config for a task.
542
+ # @param [String] name
543
+ # The resource name of the config to delete. Format: tasks/`task_id`/
544
+ # pushNotificationConfigs/`config_id`
545
+ # @param [String] fields
546
+ # Selector specifying which fields to include in a partial response.
547
+ # @param [String] quota_user
548
+ # Available to use for quota purposes for server-side applications. Can be any
549
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
550
+ # @param [Google::Apis::RequestOptions] options
551
+ # Request-specific options
552
+ #
553
+ # @yield [result, err] Result & error if block supplied
554
+ # @yieldparam result [Google::Apis::WorkspaceeventsV1::Empty] parsed result object
555
+ # @yieldparam err [StandardError] error object if request failed
556
+ #
557
+ # @return [Google::Apis::WorkspaceeventsV1::Empty]
558
+ #
559
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
560
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
561
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
562
+ def delete_task_push_notification_config(name, fields: nil, quota_user: nil, options: nil, &block)
563
+ command = make_simple_command(:delete, 'v1/{+name}', options)
564
+ command.response_representation = Google::Apis::WorkspaceeventsV1::Empty::Representation
565
+ command.response_class = Google::Apis::WorkspaceeventsV1::Empty
566
+ command.params['name'] = name unless name.nil?
567
+ command.query['fields'] = fields unless fields.nil?
568
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
569
+ execute_or_queue_command(command, &block)
570
+ end
571
+
572
+ # Get a push notification config for a task.
573
+ # @param [String] name
574
+ # The resource name of the config to retrieve. Format: tasks/`task_id`/
575
+ # pushNotificationConfigs/`config_id`
576
+ # @param [String] fields
577
+ # Selector specifying which fields to include in a partial response.
578
+ # @param [String] quota_user
579
+ # Available to use for quota purposes for server-side applications. Can be any
580
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
581
+ # @param [Google::Apis::RequestOptions] options
582
+ # Request-specific options
583
+ #
584
+ # @yield [result, err] Result & error if block supplied
585
+ # @yieldparam result [Google::Apis::WorkspaceeventsV1::TaskPushNotificationConfig] parsed result object
586
+ # @yieldparam err [StandardError] error object if request failed
587
+ #
588
+ # @return [Google::Apis::WorkspaceeventsV1::TaskPushNotificationConfig]
589
+ #
590
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
591
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
592
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
593
+ def get_task_push_notification_config(name, fields: nil, quota_user: nil, options: nil, &block)
594
+ command = make_simple_command(:get, 'v1/{+name}', options)
595
+ command.response_representation = Google::Apis::WorkspaceeventsV1::TaskPushNotificationConfig::Representation
596
+ command.response_class = Google::Apis::WorkspaceeventsV1::TaskPushNotificationConfig
597
+ command.params['name'] = name unless name.nil?
598
+ command.query['fields'] = fields unless fields.nil?
599
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
600
+ execute_or_queue_command(command, &block)
601
+ end
602
+
603
+ # Get a list of push notifications configured for a task.
604
+ # @param [String] parent
605
+ # The parent task resource. Format: tasks/`task_id`
606
+ # @param [Fixnum] page_size
607
+ # For AIP-158 these fields are present. Usually not used/needed. The maximum
608
+ # number of configurations to return. If unspecified, all configs will be
609
+ # returned.
610
+ # @param [String] page_token
611
+ # A page token received from a previous ListTaskPushNotificationConfigRequest
612
+ # call. Provide this to retrieve the subsequent page. When paginating, all other
613
+ # parameters provided to `ListTaskPushNotificationConfigRequest` must match the
614
+ # call that provided the page token.
615
+ # @param [String] fields
616
+ # Selector specifying which fields to include in a partial response.
617
+ # @param [String] quota_user
618
+ # Available to use for quota purposes for server-side applications. Can be any
619
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
620
+ # @param [Google::Apis::RequestOptions] options
621
+ # Request-specific options
622
+ #
623
+ # @yield [result, err] Result & error if block supplied
624
+ # @yieldparam result [Google::Apis::WorkspaceeventsV1::ListTaskPushNotificationConfigResponse] parsed result object
625
+ # @yieldparam err [StandardError] error object if request failed
626
+ #
627
+ # @return [Google::Apis::WorkspaceeventsV1::ListTaskPushNotificationConfigResponse]
628
+ #
629
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
630
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
631
+ # @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)
633
+ command = make_simple_command(:get, 'v1/{+parent}/pushNotificationConfigs', options)
634
+ command.response_representation = Google::Apis::WorkspaceeventsV1::ListTaskPushNotificationConfigResponse::Representation
635
+ command.response_class = Google::Apis::WorkspaceeventsV1::ListTaskPushNotificationConfigResponse
636
+ command.params['parent'] = parent unless parent.nil?
637
+ command.query['pageSize'] = page_size unless page_size.nil?
638
+ command.query['pageToken'] = page_token unless page_token.nil?
639
+ command.query['fields'] = fields unless fields.nil?
640
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
641
+ execute_or_queue_command(command, &block)
642
+ end
643
+
644
+ # GetAgentCard returns the agent card for the agent.
645
+ # @param [String] fields
646
+ # Selector specifying which fields to include in a partial response.
647
+ # @param [String] quota_user
648
+ # Available to use for quota purposes for server-side applications. Can be any
649
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
650
+ # @param [Google::Apis::RequestOptions] options
651
+ # Request-specific options
652
+ #
653
+ # @yield [result, err] Result & error if block supplied
654
+ # @yieldparam result [Google::Apis::WorkspaceeventsV1::AgentCard] parsed result object
655
+ # @yieldparam err [StandardError] error object if request failed
656
+ #
657
+ # @return [Google::Apis::WorkspaceeventsV1::AgentCard]
658
+ #
659
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
660
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
661
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
662
+ def get_card(fields: nil, quota_user: nil, options: nil, &block)
663
+ command = make_simple_command(:get, 'v1/card', options)
664
+ command.response_representation = Google::Apis::WorkspaceeventsV1::AgentCard::Representation
665
+ command.response_class = Google::Apis::WorkspaceeventsV1::AgentCard
666
+ command.query['fields'] = fields unless fields.nil?
667
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
668
+ execute_or_queue_command(command, &block)
669
+ end
373
670
 
374
671
  protected
375
672
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-workspaceevents_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-workspaceevents_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-workspaceevents_v1/v0.18.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-workspaceevents_v1/v0.19.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-workspaceevents_v1
62
62
  rdoc_options: []
63
63
  require_paths: