google-apps-meet-v2beta 0.4.0 → 0.6.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.
@@ -25,6 +25,14 @@ module Google
25
25
  module SpacesService
26
26
  # Credentials for the SpacesService API.
27
27
  class Credentials < ::Google::Auth::Credentials
28
+ self.scope = [
29
+ "https://www.googleapis.com/auth/meetings.conference.media.audio.readonly",
30
+ "https://www.googleapis.com/auth/meetings.conference.media.readonly",
31
+ "https://www.googleapis.com/auth/meetings.conference.media.video.readonly",
32
+ "https://www.googleapis.com/auth/meetings.space.created",
33
+ "https://www.googleapis.com/auth/meetings.space.readonly",
34
+ "https://www.googleapis.com/auth/meetings.space.settings"
35
+ ]
28
36
  self.env_vars = [
29
37
  "GOOGLE_CLOUD_CREDENTIALS",
30
38
  "GOOGLE_CLOUD_KEYFILE",
@@ -38,6 +38,23 @@ module Google
38
38
  "conferenceRecords/#{conference_record}"
39
39
  end
40
40
 
41
+ ##
42
+ # Create a fully-qualified Member resource string.
43
+ #
44
+ # The resource will be in the following format:
45
+ #
46
+ # `spaces/{space}/members/{member}`
47
+ #
48
+ # @param space [String]
49
+ # @param member [String]
50
+ #
51
+ # @return [::String]
52
+ def member_path space:, member:
53
+ raise ::ArgumentError, "space cannot contain /" if space.to_s.include? "/"
54
+
55
+ "spaces/#{space}/members/#{member}"
56
+ end
57
+
41
58
  ##
42
59
  # Create a fully-qualified Space resource string.
43
60
  #
@@ -83,6 +83,14 @@ module Google
83
83
 
84
84
  default_config.rpcs.end_active_conference.timeout = 60.0
85
85
 
86
+ default_config.rpcs.create_member.timeout = 60.0
87
+
88
+ default_config.rpcs.get_member.timeout = 60.0
89
+
90
+ default_config.rpcs.list_members.timeout = 60.0
91
+
92
+ default_config.rpcs.delete_member.timeout = 60.0
93
+
86
94
  default_config
87
95
  end
88
96
  yield @configure if block_given?
@@ -188,7 +196,6 @@ module Google
188
196
  # Service calls
189
197
 
190
198
  ##
191
- # [Developer Preview](https://developers.google.com/workspace/preview).
192
199
  # Creates a space.
193
200
  #
194
201
  # @overload create_space(request, options = nil)
@@ -268,8 +275,10 @@ module Google
268
275
  end
269
276
 
270
277
  ##
271
- # [Developer Preview](https://developers.google.com/workspace/preview).
272
- # Gets a space by `space_id` or `meeting_code`.
278
+ # Gets details about a meeting space.
279
+ #
280
+ # For an example, see [Get a meeting
281
+ # space](https://developers.google.com/meet/api/guides/meeting-spaces#get-meeting-space).
273
282
  #
274
283
  # @overload get_space(request, options = nil)
275
284
  # Pass arguments to `get_space` via a request object, either of type
@@ -288,6 +297,24 @@ module Google
288
297
  #
289
298
  # @param name [::String]
290
299
  # Required. Resource name of the space.
300
+ #
301
+ # Format: `spaces/{space}` or `spaces/{meetingCode}`.
302
+ #
303
+ # `{space}` is the resource identifier for the space. It's a unique,
304
+ # server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
305
+ #
306
+ # `{meetingCode}` is an alias for the space. It's a typeable, unique
307
+ # character string and is non-case sensitive. For example, `abc-mnop-xyz`.
308
+ # The maximum length is 128 characters.
309
+ #
310
+ # A `meetingCode` shouldn't be stored long term as it can become
311
+ # dissociated from a meeting space and can be reused for different meeting
312
+ # spaces in the future. Generally, a `meetingCode` expires 365 days after
313
+ # last use. For more information, see [Learn about meeting codes in Google
314
+ # Meet](https://support.google.com/meet/answer/10710509).
315
+ #
316
+ # For more information, see [How Meet identifies a meeting
317
+ # space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
291
318
  # @yield [result, operation] Access the result along with the TransportOperation object
292
319
  # @yieldparam result [::Google::Apps::Meet::V2beta::Space]
293
320
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -347,8 +374,10 @@ module Google
347
374
  end
348
375
 
349
376
  ##
350
- # [Developer Preview](https://developers.google.com/workspace/preview).
351
- # Updates a space.
377
+ # Updates details about a meeting space.
378
+ #
379
+ # For an example, see [Update a meeting
380
+ # space](https://developers.google.com/meet/api/guides/meeting-spaces#update-meeting-space).
352
381
  #
353
382
  # @overload update_space(request, options = nil)
354
383
  # Pass arguments to `update_space` via a request object, either of type
@@ -369,9 +398,11 @@ module Google
369
398
  # Required. Space to be updated.
370
399
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
371
400
  # Optional. Field mask used to specify the fields to be updated in the space.
372
- # If update_mask isn't provided, it defaults to '*' and updates all
373
- # fields provided in the request, including deleting fields not set in the
401
+ # If update_mask isn't provided(not set, set with empty paths, or only has ""
402
+ # as paths), it defaults to update all fields provided with values in the
374
403
  # request.
404
+ # Using "*" as update_mask will update all fields, including deleting fields
405
+ # not set in the request.
375
406
  # @yield [result, operation] Access the result along with the TransportOperation object
376
407
  # @yieldparam result [::Google::Apps::Meet::V2beta::Space]
377
408
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -431,8 +462,106 @@ module Google
431
462
  end
432
463
 
433
464
  ##
434
- # [Developer Preview](https://developers.google.com/workspace/preview).
435
- # Ends an active conference (if there is one).
465
+ # [Developer Preview](https://developers.google.com/workspace/preview):
466
+ # Broker a WebRTC connection to the active conference of a space.
467
+ #
468
+ # On success, clients must use the resulting SDP (Session Description
469
+ # Protocol) answer to establish a WebRTC connection. Once connected,
470
+ # additional functionality is available across WebRTC data channels.
471
+ #
472
+ # See [Meet Media API
473
+ # overview](https://developers.google.com/meet/media-api/guides/overview) for
474
+ # more details about this connection.
475
+ #
476
+ # @overload connect_active_conference(request, options = nil)
477
+ # Pass arguments to `connect_active_conference` via a request object, either of type
478
+ # {::Google::Apps::Meet::V2beta::ConnectActiveConferenceRequest} or an equivalent Hash.
479
+ #
480
+ # @param request [::Google::Apps::Meet::V2beta::ConnectActiveConferenceRequest, ::Hash]
481
+ # A request object representing the call parameters. Required. To specify no
482
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
483
+ # @param options [::Gapic::CallOptions, ::Hash]
484
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
485
+ #
486
+ # @overload connect_active_conference(name: nil, offer: nil)
487
+ # Pass arguments to `connect_active_conference` via keyword arguments. Note that at
488
+ # least one keyword argument is required. To specify no parameters, or to keep all
489
+ # the default parameter values, pass an empty Hash as a request object (see above).
490
+ #
491
+ # @param name [::String]
492
+ # Required. Resource name of the space.
493
+ # Format: spaces/\\{spaceId}
494
+ # @param offer [::String]
495
+ # Required. WebRTC SDP (Session Description Protocol) offer from the client.
496
+ #
497
+ # The format is defined by [RFC
498
+ # 8866](https://www.rfc-editor.org/rfc/rfc8866) with mandatory keys defined
499
+ # by [RFC 8829](https://www.rfc-editor.org/rfc/rfc8829). This is the standard
500
+ # SDP format generated by a peer connection's createOffer() and
501
+ # createAnswer() methods.
502
+ # @yield [result, operation] Access the result along with the TransportOperation object
503
+ # @yieldparam result [::Google::Apps::Meet::V2beta::ConnectActiveConferenceResponse]
504
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
505
+ #
506
+ # @return [::Google::Apps::Meet::V2beta::ConnectActiveConferenceResponse]
507
+ #
508
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
509
+ #
510
+ # @example Basic example
511
+ # require "google/apps/meet/v2beta"
512
+ #
513
+ # # Create a client object. The client can be reused for multiple calls.
514
+ # client = Google::Apps::Meet::V2beta::SpacesService::Rest::Client.new
515
+ #
516
+ # # Create a request. To set request fields, pass in keyword arguments.
517
+ # request = Google::Apps::Meet::V2beta::ConnectActiveConferenceRequest.new
518
+ #
519
+ # # Call the connect_active_conference method.
520
+ # result = client.connect_active_conference request
521
+ #
522
+ # # The returned object is of type Google::Apps::Meet::V2beta::ConnectActiveConferenceResponse.
523
+ # p result
524
+ #
525
+ def connect_active_conference request, options = nil
526
+ raise ::ArgumentError, "request must be provided" if request.nil?
527
+
528
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2beta::ConnectActiveConferenceRequest
529
+
530
+ # Converts hash and nil to an options object
531
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
532
+
533
+ # Customize the options with defaults
534
+ call_metadata = @config.rpcs.connect_active_conference.metadata.to_h
535
+
536
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
537
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
538
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
539
+ gapic_version: ::Google::Apps::Meet::V2beta::VERSION,
540
+ transports_version_send: [:rest]
541
+
542
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
543
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
544
+
545
+ options.apply_defaults timeout: @config.rpcs.connect_active_conference.timeout,
546
+ metadata: call_metadata,
547
+ retry_policy: @config.rpcs.connect_active_conference.retry_policy
548
+
549
+ options.apply_defaults timeout: @config.timeout,
550
+ metadata: @config.metadata,
551
+ retry_policy: @config.retry_policy
552
+
553
+ @spaces_service_stub.connect_active_conference request, options do |result, operation|
554
+ yield result, operation if block_given?
555
+ end
556
+ rescue ::Gapic::Rest::Error => e
557
+ raise ::Google::Cloud::Error.from_error(e)
558
+ end
559
+
560
+ ##
561
+ # Ends an active conference (if there's one).
562
+ #
563
+ # For an example, see [End active
564
+ # conference](https://developers.google.com/meet/api/guides/meeting-spaces#end-active-conference).
436
565
  #
437
566
  # @overload end_active_conference(request, options = nil)
438
567
  # Pass arguments to `end_active_conference` via a request object, either of type
@@ -451,6 +580,14 @@ module Google
451
580
  #
452
581
  # @param name [::String]
453
582
  # Required. Resource name of the space.
583
+ #
584
+ # Format: `spaces/{space}`.
585
+ #
586
+ # `{space}` is the resource identifier for the space. It's a unique,
587
+ # server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
588
+ #
589
+ # For more information, see [How Meet identifies a meeting
590
+ # space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
454
591
  # @yield [result, operation] Access the result along with the TransportOperation object
455
592
  # @yieldparam result [::Google::Protobuf::Empty]
456
593
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -509,6 +646,352 @@ module Google
509
646
  raise ::Google::Cloud::Error.from_error(e)
510
647
  end
511
648
 
649
+ ##
650
+ # [Developer Preview](https://developers.google.com/workspace/preview):
651
+ # Create a member.
652
+ #
653
+ # This API supports the `fields` parameter in
654
+ # [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters).
655
+ # When the `fields` parameter is omitted, this API response will default to
656
+ # "name,email,role,user".
657
+ #
658
+ # @overload create_member(request, options = nil)
659
+ # Pass arguments to `create_member` via a request object, either of type
660
+ # {::Google::Apps::Meet::V2beta::CreateMemberRequest} or an equivalent Hash.
661
+ #
662
+ # @param request [::Google::Apps::Meet::V2beta::CreateMemberRequest, ::Hash]
663
+ # A request object representing the call parameters. Required. To specify no
664
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
665
+ # @param options [::Gapic::CallOptions, ::Hash]
666
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
667
+ #
668
+ # @overload create_member(parent: nil, member: nil)
669
+ # Pass arguments to `create_member` via keyword arguments. Note that at
670
+ # least one keyword argument is required. To specify no parameters, or to keep all
671
+ # the default parameter values, pass an empty Hash as a request object (see above).
672
+ #
673
+ # @param parent [::String]
674
+ # Required. Format: spaces/\\{space}
675
+ # @param member [::Google::Apps::Meet::V2beta::Member, ::Hash]
676
+ # Required. The member to be created.
677
+ # @yield [result, operation] Access the result along with the TransportOperation object
678
+ # @yieldparam result [::Google::Apps::Meet::V2beta::Member]
679
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
680
+ #
681
+ # @return [::Google::Apps::Meet::V2beta::Member]
682
+ #
683
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
684
+ #
685
+ # @example Basic example
686
+ # require "google/apps/meet/v2beta"
687
+ #
688
+ # # Create a client object. The client can be reused for multiple calls.
689
+ # client = Google::Apps::Meet::V2beta::SpacesService::Rest::Client.new
690
+ #
691
+ # # Create a request. To set request fields, pass in keyword arguments.
692
+ # request = Google::Apps::Meet::V2beta::CreateMemberRequest.new
693
+ #
694
+ # # Call the create_member method.
695
+ # result = client.create_member request
696
+ #
697
+ # # The returned object is of type Google::Apps::Meet::V2beta::Member.
698
+ # p result
699
+ #
700
+ def create_member request, options = nil
701
+ raise ::ArgumentError, "request must be provided" if request.nil?
702
+
703
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2beta::CreateMemberRequest
704
+
705
+ # Converts hash and nil to an options object
706
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
707
+
708
+ # Customize the options with defaults
709
+ call_metadata = @config.rpcs.create_member.metadata.to_h
710
+
711
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
712
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
713
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
714
+ gapic_version: ::Google::Apps::Meet::V2beta::VERSION,
715
+ transports_version_send: [:rest]
716
+
717
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
718
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
719
+
720
+ options.apply_defaults timeout: @config.rpcs.create_member.timeout,
721
+ metadata: call_metadata,
722
+ retry_policy: @config.rpcs.create_member.retry_policy
723
+
724
+ options.apply_defaults timeout: @config.timeout,
725
+ metadata: @config.metadata,
726
+ retry_policy: @config.retry_policy
727
+
728
+ @spaces_service_stub.create_member request, options do |result, operation|
729
+ yield result, operation if block_given?
730
+ end
731
+ rescue ::Gapic::Rest::Error => e
732
+ raise ::Google::Cloud::Error.from_error(e)
733
+ end
734
+
735
+ ##
736
+ # [Developer Preview](https://developers.google.com/workspace/preview):
737
+ # Get a member.
738
+ #
739
+ # This API supports the `fields` parameter in
740
+ # [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters).
741
+ # When the `fields` parameter is omitted, this API response will default to
742
+ # "name,email,role,user".
743
+ #
744
+ # @overload get_member(request, options = nil)
745
+ # Pass arguments to `get_member` via a request object, either of type
746
+ # {::Google::Apps::Meet::V2beta::GetMemberRequest} or an equivalent Hash.
747
+ #
748
+ # @param request [::Google::Apps::Meet::V2beta::GetMemberRequest, ::Hash]
749
+ # A request object representing the call parameters. Required. To specify no
750
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
751
+ # @param options [::Gapic::CallOptions, ::Hash]
752
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
753
+ #
754
+ # @overload get_member(name: nil)
755
+ # Pass arguments to `get_member` via keyword arguments. Note that at
756
+ # least one keyword argument is required. To specify no parameters, or to keep all
757
+ # the default parameter values, pass an empty Hash as a request object (see above).
758
+ #
759
+ # @param name [::String]
760
+ # Required. Format: “spaces/\\{space}/members/\\{member}”
761
+ # @yield [result, operation] Access the result along with the TransportOperation object
762
+ # @yieldparam result [::Google::Apps::Meet::V2beta::Member]
763
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
764
+ #
765
+ # @return [::Google::Apps::Meet::V2beta::Member]
766
+ #
767
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
768
+ #
769
+ # @example Basic example
770
+ # require "google/apps/meet/v2beta"
771
+ #
772
+ # # Create a client object. The client can be reused for multiple calls.
773
+ # client = Google::Apps::Meet::V2beta::SpacesService::Rest::Client.new
774
+ #
775
+ # # Create a request. To set request fields, pass in keyword arguments.
776
+ # request = Google::Apps::Meet::V2beta::GetMemberRequest.new
777
+ #
778
+ # # Call the get_member method.
779
+ # result = client.get_member request
780
+ #
781
+ # # The returned object is of type Google::Apps::Meet::V2beta::Member.
782
+ # p result
783
+ #
784
+ def get_member request, options = nil
785
+ raise ::ArgumentError, "request must be provided" if request.nil?
786
+
787
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2beta::GetMemberRequest
788
+
789
+ # Converts hash and nil to an options object
790
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
791
+
792
+ # Customize the options with defaults
793
+ call_metadata = @config.rpcs.get_member.metadata.to_h
794
+
795
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
796
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
797
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
798
+ gapic_version: ::Google::Apps::Meet::V2beta::VERSION,
799
+ transports_version_send: [:rest]
800
+
801
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
802
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
803
+
804
+ options.apply_defaults timeout: @config.rpcs.get_member.timeout,
805
+ metadata: call_metadata,
806
+ retry_policy: @config.rpcs.get_member.retry_policy
807
+
808
+ options.apply_defaults timeout: @config.timeout,
809
+ metadata: @config.metadata,
810
+ retry_policy: @config.retry_policy
811
+
812
+ @spaces_service_stub.get_member request, options do |result, operation|
813
+ yield result, operation if block_given?
814
+ end
815
+ rescue ::Gapic::Rest::Error => e
816
+ raise ::Google::Cloud::Error.from_error(e)
817
+ end
818
+
819
+ ##
820
+ # [Developer Preview](https://developers.google.com/workspace/preview):
821
+ # List members.
822
+ #
823
+ # This API supports the `fields` parameter in
824
+ # [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters).
825
+ # When the `fields` parameter is omitted this API response will default to
826
+ # "name,email,role,user".
827
+ #
828
+ # @overload list_members(request, options = nil)
829
+ # Pass arguments to `list_members` via a request object, either of type
830
+ # {::Google::Apps::Meet::V2beta::ListMembersRequest} or an equivalent Hash.
831
+ #
832
+ # @param request [::Google::Apps::Meet::V2beta::ListMembersRequest, ::Hash]
833
+ # A request object representing the call parameters. Required. To specify no
834
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
835
+ # @param options [::Gapic::CallOptions, ::Hash]
836
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
837
+ #
838
+ # @overload list_members(parent: nil, page_size: nil, page_token: nil)
839
+ # Pass arguments to `list_members` via keyword arguments. Note that at
840
+ # least one keyword argument is required. To specify no parameters, or to keep all
841
+ # the default parameter values, pass an empty Hash as a request object (see above).
842
+ #
843
+ # @param parent [::String]
844
+ # Required. Format: spaces/\\{space}
845
+ # @param page_size [::Integer]
846
+ # Optional. Maximum number of members to return. The service might return
847
+ # fewer than this value. If unspecified, at most 25 members are returned. The
848
+ # maximum value is 100; values above 100 are coerced to 100. Maximum might
849
+ # change in the future.
850
+ # @param page_token [::String]
851
+ # Optional. Page token returned from previous List Call.
852
+ # @yield [result, operation] Access the result along with the TransportOperation object
853
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Apps::Meet::V2beta::Member>]
854
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
855
+ #
856
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Apps::Meet::V2beta::Member>]
857
+ #
858
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
859
+ #
860
+ # @example Basic example
861
+ # require "google/apps/meet/v2beta"
862
+ #
863
+ # # Create a client object. The client can be reused for multiple calls.
864
+ # client = Google::Apps::Meet::V2beta::SpacesService::Rest::Client.new
865
+ #
866
+ # # Create a request. To set request fields, pass in keyword arguments.
867
+ # request = Google::Apps::Meet::V2beta::ListMembersRequest.new
868
+ #
869
+ # # Call the list_members method.
870
+ # result = client.list_members request
871
+ #
872
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
873
+ # # over elements, and API calls will be issued to fetch pages as needed.
874
+ # result.each do |item|
875
+ # # Each element is of type ::Google::Apps::Meet::V2beta::Member.
876
+ # p item
877
+ # end
878
+ #
879
+ def list_members request, options = nil
880
+ raise ::ArgumentError, "request must be provided" if request.nil?
881
+
882
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2beta::ListMembersRequest
883
+
884
+ # Converts hash and nil to an options object
885
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
886
+
887
+ # Customize the options with defaults
888
+ call_metadata = @config.rpcs.list_members.metadata.to_h
889
+
890
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
891
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
892
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
893
+ gapic_version: ::Google::Apps::Meet::V2beta::VERSION,
894
+ transports_version_send: [:rest]
895
+
896
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
897
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
898
+
899
+ options.apply_defaults timeout: @config.rpcs.list_members.timeout,
900
+ metadata: call_metadata,
901
+ retry_policy: @config.rpcs.list_members.retry_policy
902
+
903
+ options.apply_defaults timeout: @config.timeout,
904
+ metadata: @config.metadata,
905
+ retry_policy: @config.retry_policy
906
+
907
+ @spaces_service_stub.list_members request, options do |result, operation|
908
+ result = ::Gapic::Rest::PagedEnumerable.new @spaces_service_stub, :list_members, "members", request, result, options
909
+ yield result, operation if block_given?
910
+ throw :response, result
911
+ end
912
+ rescue ::Gapic::Rest::Error => e
913
+ raise ::Google::Cloud::Error.from_error(e)
914
+ end
915
+
916
+ ##
917
+ # [Developer Preview](https://developers.google.com/workspace/preview):
918
+ # Delete the member who was previously assigned roles in the space.
919
+ #
920
+ # @overload delete_member(request, options = nil)
921
+ # Pass arguments to `delete_member` via a request object, either of type
922
+ # {::Google::Apps::Meet::V2beta::DeleteMemberRequest} or an equivalent Hash.
923
+ #
924
+ # @param request [::Google::Apps::Meet::V2beta::DeleteMemberRequest, ::Hash]
925
+ # A request object representing the call parameters. Required. To specify no
926
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
927
+ # @param options [::Gapic::CallOptions, ::Hash]
928
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
929
+ #
930
+ # @overload delete_member(name: nil)
931
+ # Pass arguments to `delete_member` via keyword arguments. Note that at
932
+ # least one keyword argument is required. To specify no parameters, or to keep all
933
+ # the default parameter values, pass an empty Hash as a request object (see above).
934
+ #
935
+ # @param name [::String]
936
+ # Required. Format: “spaces/\\{space}/members/\\{member}”
937
+ # @yield [result, operation] Access the result along with the TransportOperation object
938
+ # @yieldparam result [::Google::Protobuf::Empty]
939
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
940
+ #
941
+ # @return [::Google::Protobuf::Empty]
942
+ #
943
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
944
+ #
945
+ # @example Basic example
946
+ # require "google/apps/meet/v2beta"
947
+ #
948
+ # # Create a client object. The client can be reused for multiple calls.
949
+ # client = Google::Apps::Meet::V2beta::SpacesService::Rest::Client.new
950
+ #
951
+ # # Create a request. To set request fields, pass in keyword arguments.
952
+ # request = Google::Apps::Meet::V2beta::DeleteMemberRequest.new
953
+ #
954
+ # # Call the delete_member method.
955
+ # result = client.delete_member request
956
+ #
957
+ # # The returned object is of type Google::Protobuf::Empty.
958
+ # p result
959
+ #
960
+ def delete_member request, options = nil
961
+ raise ::ArgumentError, "request must be provided" if request.nil?
962
+
963
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2beta::DeleteMemberRequest
964
+
965
+ # Converts hash and nil to an options object
966
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
967
+
968
+ # Customize the options with defaults
969
+ call_metadata = @config.rpcs.delete_member.metadata.to_h
970
+
971
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
972
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
973
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
974
+ gapic_version: ::Google::Apps::Meet::V2beta::VERSION,
975
+ transports_version_send: [:rest]
976
+
977
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
978
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
979
+
980
+ options.apply_defaults timeout: @config.rpcs.delete_member.timeout,
981
+ metadata: call_metadata,
982
+ retry_policy: @config.rpcs.delete_member.retry_policy
983
+
984
+ options.apply_defaults timeout: @config.timeout,
985
+ metadata: @config.metadata,
986
+ retry_policy: @config.retry_policy
987
+
988
+ @spaces_service_stub.delete_member request, options do |result, operation|
989
+ yield result, operation if block_given?
990
+ end
991
+ rescue ::Gapic::Rest::Error => e
992
+ raise ::Google::Cloud::Error.from_error(e)
993
+ end
994
+
512
995
  ##
513
996
  # Configuration class for the SpacesService REST API.
514
997
  #
@@ -551,6 +1034,13 @@ module Google
551
1034
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
552
1035
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
553
1036
  # * (`nil`) indicating no credentials
1037
+ #
1038
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
1039
+ # external source for authentication to Google Cloud, you must validate it before
1040
+ # providing it to a Google API client library. Providing an unvalidated credential
1041
+ # configuration to Google APIs can compromise the security of your systems and data.
1042
+ # For more information, refer to [Validate credential configurations from external
1043
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
554
1044
  # @return [::Object]
555
1045
  # @!attribute [rw] scope
556
1046
  # The OAuth scopes
@@ -664,10 +1154,35 @@ module Google
664
1154
  #
665
1155
  attr_reader :update_space
666
1156
  ##
1157
+ # RPC-specific configuration for `connect_active_conference`
1158
+ # @return [::Gapic::Config::Method]
1159
+ #
1160
+ attr_reader :connect_active_conference
1161
+ ##
667
1162
  # RPC-specific configuration for `end_active_conference`
668
1163
  # @return [::Gapic::Config::Method]
669
1164
  #
670
1165
  attr_reader :end_active_conference
1166
+ ##
1167
+ # RPC-specific configuration for `create_member`
1168
+ # @return [::Gapic::Config::Method]
1169
+ #
1170
+ attr_reader :create_member
1171
+ ##
1172
+ # RPC-specific configuration for `get_member`
1173
+ # @return [::Gapic::Config::Method]
1174
+ #
1175
+ attr_reader :get_member
1176
+ ##
1177
+ # RPC-specific configuration for `list_members`
1178
+ # @return [::Gapic::Config::Method]
1179
+ #
1180
+ attr_reader :list_members
1181
+ ##
1182
+ # RPC-specific configuration for `delete_member`
1183
+ # @return [::Gapic::Config::Method]
1184
+ #
1185
+ attr_reader :delete_member
671
1186
 
672
1187
  # @private
673
1188
  def initialize parent_rpcs = nil
@@ -677,8 +1192,18 @@ module Google
677
1192
  @get_space = ::Gapic::Config::Method.new get_space_config
678
1193
  update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space
679
1194
  @update_space = ::Gapic::Config::Method.new update_space_config
1195
+ connect_active_conference_config = parent_rpcs.connect_active_conference if parent_rpcs.respond_to? :connect_active_conference
1196
+ @connect_active_conference = ::Gapic::Config::Method.new connect_active_conference_config
680
1197
  end_active_conference_config = parent_rpcs.end_active_conference if parent_rpcs.respond_to? :end_active_conference
681
1198
  @end_active_conference = ::Gapic::Config::Method.new end_active_conference_config
1199
+ create_member_config = parent_rpcs.create_member if parent_rpcs.respond_to? :create_member
1200
+ @create_member = ::Gapic::Config::Method.new create_member_config
1201
+ get_member_config = parent_rpcs.get_member if parent_rpcs.respond_to? :get_member
1202
+ @get_member = ::Gapic::Config::Method.new get_member_config
1203
+ list_members_config = parent_rpcs.list_members if parent_rpcs.respond_to? :list_members
1204
+ @list_members = ::Gapic::Config::Method.new list_members_config
1205
+ delete_member_config = parent_rpcs.delete_member if parent_rpcs.respond_to? :delete_member
1206
+ @delete_member = ::Gapic::Config::Method.new delete_member_config
682
1207
 
683
1208
  yield self if block_given?
684
1209
  end