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.
@@ -81,6 +81,14 @@ module Google
81
81
 
82
82
  default_config.rpcs.end_active_conference.timeout = 60.0
83
83
 
84
+ default_config.rpcs.create_member.timeout = 60.0
85
+
86
+ default_config.rpcs.get_member.timeout = 60.0
87
+
88
+ default_config.rpcs.list_members.timeout = 60.0
89
+
90
+ default_config.rpcs.delete_member.timeout = 60.0
91
+
84
92
  default_config
85
93
  end
86
94
  yield @configure if block_given?
@@ -195,7 +203,6 @@ module Google
195
203
  # Service calls
196
204
 
197
205
  ##
198
- # [Developer Preview](https://developers.google.com/workspace/preview).
199
206
  # Creates a space.
200
207
  #
201
208
  # @overload create_space(request, options = nil)
@@ -274,8 +281,10 @@ module Google
274
281
  end
275
282
 
276
283
  ##
277
- # [Developer Preview](https://developers.google.com/workspace/preview).
278
- # Gets a space by `space_id` or `meeting_code`.
284
+ # Gets details about a meeting space.
285
+ #
286
+ # For an example, see [Get a meeting
287
+ # space](https://developers.google.com/meet/api/guides/meeting-spaces#get-meeting-space).
279
288
  #
280
289
  # @overload get_space(request, options = nil)
281
290
  # Pass arguments to `get_space` via a request object, either of type
@@ -295,6 +304,24 @@ module Google
295
304
  # @param name [::String]
296
305
  # Required. Resource name of the space.
297
306
  #
307
+ # Format: `spaces/{space}` or `spaces/{meetingCode}`.
308
+ #
309
+ # `{space}` is the resource identifier for the space. It's a unique,
310
+ # server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
311
+ #
312
+ # `{meetingCode}` is an alias for the space. It's a typeable, unique
313
+ # character string and is non-case sensitive. For example, `abc-mnop-xyz`.
314
+ # The maximum length is 128 characters.
315
+ #
316
+ # A `meetingCode` shouldn't be stored long term as it can become
317
+ # dissociated from a meeting space and can be reused for different meeting
318
+ # spaces in the future. Generally, a `meetingCode` expires 365 days after
319
+ # last use. For more information, see [Learn about meeting codes in Google
320
+ # Meet](https://support.google.com/meet/answer/10710509).
321
+ #
322
+ # For more information, see [How Meet identifies a meeting
323
+ # space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
324
+ #
298
325
  # @yield [response, operation] Access the result along with the RPC operation
299
326
  # @yieldparam response [::Google::Apps::Meet::V2beta::Space]
300
327
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
@@ -360,8 +387,10 @@ module Google
360
387
  end
361
388
 
362
389
  ##
363
- # [Developer Preview](https://developers.google.com/workspace/preview).
364
- # Updates a space.
390
+ # Updates details about a meeting space.
391
+ #
392
+ # For an example, see [Update a meeting
393
+ # space](https://developers.google.com/meet/api/guides/meeting-spaces#update-meeting-space).
365
394
  #
366
395
  # @overload update_space(request, options = nil)
367
396
  # Pass arguments to `update_space` via a request object, either of type
@@ -382,9 +411,11 @@ module Google
382
411
  # Required. Space to be updated.
383
412
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
384
413
  # Optional. Field mask used to specify the fields to be updated in the space.
385
- # If update_mask isn't provided, it defaults to '*' and updates all
386
- # fields provided in the request, including deleting fields not set in the
414
+ # If update_mask isn't provided(not set, set with empty paths, or only has ""
415
+ # as paths), it defaults to update all fields provided with values in the
387
416
  # request.
417
+ # Using "*" as update_mask will update all fields, including deleting fields
418
+ # not set in the request.
388
419
  #
389
420
  # @yield [response, operation] Access the result along with the RPC operation
390
421
  # @yieldparam response [::Google::Apps::Meet::V2beta::Space]
@@ -451,8 +482,113 @@ module Google
451
482
  end
452
483
 
453
484
  ##
454
- # [Developer Preview](https://developers.google.com/workspace/preview).
455
- # Ends an active conference (if there is one).
485
+ # [Developer Preview](https://developers.google.com/workspace/preview):
486
+ # Broker a WebRTC connection to the active conference of a space.
487
+ #
488
+ # On success, clients must use the resulting SDP (Session Description
489
+ # Protocol) answer to establish a WebRTC connection. Once connected,
490
+ # additional functionality is available across WebRTC data channels.
491
+ #
492
+ # See [Meet Media API
493
+ # overview](https://developers.google.com/meet/media-api/guides/overview) for
494
+ # more details about this connection.
495
+ #
496
+ # @overload connect_active_conference(request, options = nil)
497
+ # Pass arguments to `connect_active_conference` via a request object, either of type
498
+ # {::Google::Apps::Meet::V2beta::ConnectActiveConferenceRequest} or an equivalent Hash.
499
+ #
500
+ # @param request [::Google::Apps::Meet::V2beta::ConnectActiveConferenceRequest, ::Hash]
501
+ # A request object representing the call parameters. Required. To specify no
502
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
503
+ # @param options [::Gapic::CallOptions, ::Hash]
504
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
505
+ #
506
+ # @overload connect_active_conference(name: nil, offer: nil)
507
+ # Pass arguments to `connect_active_conference` via keyword arguments. Note that at
508
+ # least one keyword argument is required. To specify no parameters, or to keep all
509
+ # the default parameter values, pass an empty Hash as a request object (see above).
510
+ #
511
+ # @param name [::String]
512
+ # Required. Resource name of the space.
513
+ # Format: spaces/\\{spaceId}
514
+ # @param offer [::String]
515
+ # Required. WebRTC SDP (Session Description Protocol) offer from the client.
516
+ #
517
+ # The format is defined by [RFC
518
+ # 8866](https://www.rfc-editor.org/rfc/rfc8866) with mandatory keys defined
519
+ # by [RFC 8829](https://www.rfc-editor.org/rfc/rfc8829). This is the standard
520
+ # SDP format generated by a peer connection's createOffer() and
521
+ # createAnswer() methods.
522
+ #
523
+ # @yield [response, operation] Access the result along with the RPC operation
524
+ # @yieldparam response [::Google::Apps::Meet::V2beta::ConnectActiveConferenceResponse]
525
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
526
+ #
527
+ # @return [::Google::Apps::Meet::V2beta::ConnectActiveConferenceResponse]
528
+ #
529
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
530
+ #
531
+ # @example Basic example
532
+ # require "google/apps/meet/v2beta"
533
+ #
534
+ # # Create a client object. The client can be reused for multiple calls.
535
+ # client = Google::Apps::Meet::V2beta::SpacesService::Client.new
536
+ #
537
+ # # Create a request. To set request fields, pass in keyword arguments.
538
+ # request = Google::Apps::Meet::V2beta::ConnectActiveConferenceRequest.new
539
+ #
540
+ # # Call the connect_active_conference method.
541
+ # result = client.connect_active_conference request
542
+ #
543
+ # # The returned object is of type Google::Apps::Meet::V2beta::ConnectActiveConferenceResponse.
544
+ # p result
545
+ #
546
+ def connect_active_conference request, options = nil
547
+ raise ::ArgumentError, "request must be provided" if request.nil?
548
+
549
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2beta::ConnectActiveConferenceRequest
550
+
551
+ # Converts hash and nil to an options object
552
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
553
+
554
+ # Customize the options with defaults
555
+ metadata = @config.rpcs.connect_active_conference.metadata.to_h
556
+
557
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
558
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
559
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
560
+ gapic_version: ::Google::Apps::Meet::V2beta::VERSION
561
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
562
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
563
+
564
+ header_params = {}
565
+ if request.name
566
+ header_params["name"] = request.name
567
+ end
568
+
569
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
570
+ metadata[:"x-goog-request-params"] ||= request_params_header
571
+
572
+ options.apply_defaults timeout: @config.rpcs.connect_active_conference.timeout,
573
+ metadata: metadata,
574
+ retry_policy: @config.rpcs.connect_active_conference.retry_policy
575
+
576
+ options.apply_defaults timeout: @config.timeout,
577
+ metadata: @config.metadata,
578
+ retry_policy: @config.retry_policy
579
+
580
+ @spaces_service_stub.call_rpc :connect_active_conference, request, options: options do |response, operation|
581
+ yield response, operation if block_given?
582
+ end
583
+ rescue ::GRPC::BadStatus => e
584
+ raise ::Google::Cloud::Error.from_error(e)
585
+ end
586
+
587
+ ##
588
+ # Ends an active conference (if there's one).
589
+ #
590
+ # For an example, see [End active
591
+ # conference](https://developers.google.com/meet/api/guides/meeting-spaces#end-active-conference).
456
592
  #
457
593
  # @overload end_active_conference(request, options = nil)
458
594
  # Pass arguments to `end_active_conference` via a request object, either of type
@@ -472,6 +608,14 @@ module Google
472
608
  # @param name [::String]
473
609
  # Required. Resource name of the space.
474
610
  #
611
+ # Format: `spaces/{space}`.
612
+ #
613
+ # `{space}` is the resource identifier for the space. It's a unique,
614
+ # server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
615
+ #
616
+ # For more information, see [How Meet identifies a meeting
617
+ # space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
618
+ #
475
619
  # @yield [response, operation] Access the result along with the RPC operation
476
620
  # @yieldparam response [::Google::Protobuf::Empty]
477
621
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
@@ -536,6 +680,380 @@ module Google
536
680
  raise ::Google::Cloud::Error.from_error(e)
537
681
  end
538
682
 
683
+ ##
684
+ # [Developer Preview](https://developers.google.com/workspace/preview):
685
+ # Create a member.
686
+ #
687
+ # This API supports the `fields` parameter in
688
+ # [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters).
689
+ # When the `fields` parameter is omitted, this API response will default to
690
+ # "name,email,role,user".
691
+ #
692
+ # @overload create_member(request, options = nil)
693
+ # Pass arguments to `create_member` via a request object, either of type
694
+ # {::Google::Apps::Meet::V2beta::CreateMemberRequest} or an equivalent Hash.
695
+ #
696
+ # @param request [::Google::Apps::Meet::V2beta::CreateMemberRequest, ::Hash]
697
+ # A request object representing the call parameters. Required. To specify no
698
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
699
+ # @param options [::Gapic::CallOptions, ::Hash]
700
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
701
+ #
702
+ # @overload create_member(parent: nil, member: nil)
703
+ # Pass arguments to `create_member` via keyword arguments. Note that at
704
+ # least one keyword argument is required. To specify no parameters, or to keep all
705
+ # the default parameter values, pass an empty Hash as a request object (see above).
706
+ #
707
+ # @param parent [::String]
708
+ # Required. Format: spaces/\\{space}
709
+ # @param member [::Google::Apps::Meet::V2beta::Member, ::Hash]
710
+ # Required. The member to be created.
711
+ #
712
+ # @yield [response, operation] Access the result along with the RPC operation
713
+ # @yieldparam response [::Google::Apps::Meet::V2beta::Member]
714
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
715
+ #
716
+ # @return [::Google::Apps::Meet::V2beta::Member]
717
+ #
718
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
719
+ #
720
+ # @example Basic example
721
+ # require "google/apps/meet/v2beta"
722
+ #
723
+ # # Create a client object. The client can be reused for multiple calls.
724
+ # client = Google::Apps::Meet::V2beta::SpacesService::Client.new
725
+ #
726
+ # # Create a request. To set request fields, pass in keyword arguments.
727
+ # request = Google::Apps::Meet::V2beta::CreateMemberRequest.new
728
+ #
729
+ # # Call the create_member method.
730
+ # result = client.create_member request
731
+ #
732
+ # # The returned object is of type Google::Apps::Meet::V2beta::Member.
733
+ # p result
734
+ #
735
+ def create_member request, options = nil
736
+ raise ::ArgumentError, "request must be provided" if request.nil?
737
+
738
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2beta::CreateMemberRequest
739
+
740
+ # Converts hash and nil to an options object
741
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
742
+
743
+ # Customize the options with defaults
744
+ metadata = @config.rpcs.create_member.metadata.to_h
745
+
746
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
747
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
748
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
749
+ gapic_version: ::Google::Apps::Meet::V2beta::VERSION
750
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
751
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
752
+
753
+ header_params = {}
754
+ if request.parent
755
+ header_params["parent"] = request.parent
756
+ end
757
+
758
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
759
+ metadata[:"x-goog-request-params"] ||= request_params_header
760
+
761
+ options.apply_defaults timeout: @config.rpcs.create_member.timeout,
762
+ metadata: metadata,
763
+ retry_policy: @config.rpcs.create_member.retry_policy
764
+
765
+ options.apply_defaults timeout: @config.timeout,
766
+ metadata: @config.metadata,
767
+ retry_policy: @config.retry_policy
768
+
769
+ @spaces_service_stub.call_rpc :create_member, request, options: options do |response, operation|
770
+ yield response, operation if block_given?
771
+ end
772
+ rescue ::GRPC::BadStatus => e
773
+ raise ::Google::Cloud::Error.from_error(e)
774
+ end
775
+
776
+ ##
777
+ # [Developer Preview](https://developers.google.com/workspace/preview):
778
+ # Get a member.
779
+ #
780
+ # This API supports the `fields` parameter in
781
+ # [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters).
782
+ # When the `fields` parameter is omitted, this API response will default to
783
+ # "name,email,role,user".
784
+ #
785
+ # @overload get_member(request, options = nil)
786
+ # Pass arguments to `get_member` via a request object, either of type
787
+ # {::Google::Apps::Meet::V2beta::GetMemberRequest} or an equivalent Hash.
788
+ #
789
+ # @param request [::Google::Apps::Meet::V2beta::GetMemberRequest, ::Hash]
790
+ # A request object representing the call parameters. Required. To specify no
791
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
792
+ # @param options [::Gapic::CallOptions, ::Hash]
793
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
794
+ #
795
+ # @overload get_member(name: nil)
796
+ # Pass arguments to `get_member` via keyword arguments. Note that at
797
+ # least one keyword argument is required. To specify no parameters, or to keep all
798
+ # the default parameter values, pass an empty Hash as a request object (see above).
799
+ #
800
+ # @param name [::String]
801
+ # Required. Format: “spaces/\\{space}/members/\\{member}”
802
+ #
803
+ # @yield [response, operation] Access the result along with the RPC operation
804
+ # @yieldparam response [::Google::Apps::Meet::V2beta::Member]
805
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
806
+ #
807
+ # @return [::Google::Apps::Meet::V2beta::Member]
808
+ #
809
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
810
+ #
811
+ # @example Basic example
812
+ # require "google/apps/meet/v2beta"
813
+ #
814
+ # # Create a client object. The client can be reused for multiple calls.
815
+ # client = Google::Apps::Meet::V2beta::SpacesService::Client.new
816
+ #
817
+ # # Create a request. To set request fields, pass in keyword arguments.
818
+ # request = Google::Apps::Meet::V2beta::GetMemberRequest.new
819
+ #
820
+ # # Call the get_member method.
821
+ # result = client.get_member request
822
+ #
823
+ # # The returned object is of type Google::Apps::Meet::V2beta::Member.
824
+ # p result
825
+ #
826
+ def get_member request, options = nil
827
+ raise ::ArgumentError, "request must be provided" if request.nil?
828
+
829
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2beta::GetMemberRequest
830
+
831
+ # Converts hash and nil to an options object
832
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
833
+
834
+ # Customize the options with defaults
835
+ metadata = @config.rpcs.get_member.metadata.to_h
836
+
837
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
838
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
839
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
840
+ gapic_version: ::Google::Apps::Meet::V2beta::VERSION
841
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
842
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
843
+
844
+ header_params = {}
845
+ if request.name
846
+ header_params["name"] = request.name
847
+ end
848
+
849
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
850
+ metadata[:"x-goog-request-params"] ||= request_params_header
851
+
852
+ options.apply_defaults timeout: @config.rpcs.get_member.timeout,
853
+ metadata: metadata,
854
+ retry_policy: @config.rpcs.get_member.retry_policy
855
+
856
+ options.apply_defaults timeout: @config.timeout,
857
+ metadata: @config.metadata,
858
+ retry_policy: @config.retry_policy
859
+
860
+ @spaces_service_stub.call_rpc :get_member, request, options: options do |response, operation|
861
+ yield response, operation if block_given?
862
+ end
863
+ rescue ::GRPC::BadStatus => e
864
+ raise ::Google::Cloud::Error.from_error(e)
865
+ end
866
+
867
+ ##
868
+ # [Developer Preview](https://developers.google.com/workspace/preview):
869
+ # List members.
870
+ #
871
+ # This API supports the `fields` parameter in
872
+ # [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters).
873
+ # When the `fields` parameter is omitted this API response will default to
874
+ # "name,email,role,user".
875
+ #
876
+ # @overload list_members(request, options = nil)
877
+ # Pass arguments to `list_members` via a request object, either of type
878
+ # {::Google::Apps::Meet::V2beta::ListMembersRequest} or an equivalent Hash.
879
+ #
880
+ # @param request [::Google::Apps::Meet::V2beta::ListMembersRequest, ::Hash]
881
+ # A request object representing the call parameters. Required. To specify no
882
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
883
+ # @param options [::Gapic::CallOptions, ::Hash]
884
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
885
+ #
886
+ # @overload list_members(parent: nil, page_size: nil, page_token: nil)
887
+ # Pass arguments to `list_members` via keyword arguments. Note that at
888
+ # least one keyword argument is required. To specify no parameters, or to keep all
889
+ # the default parameter values, pass an empty Hash as a request object (see above).
890
+ #
891
+ # @param parent [::String]
892
+ # Required. Format: spaces/\\{space}
893
+ # @param page_size [::Integer]
894
+ # Optional. Maximum number of members to return. The service might return
895
+ # fewer than this value. If unspecified, at most 25 members are returned. The
896
+ # maximum value is 100; values above 100 are coerced to 100. Maximum might
897
+ # change in the future.
898
+ # @param page_token [::String]
899
+ # Optional. Page token returned from previous List Call.
900
+ #
901
+ # @yield [response, operation] Access the result along with the RPC operation
902
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2beta::Member>]
903
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
904
+ #
905
+ # @return [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2beta::Member>]
906
+ #
907
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
908
+ #
909
+ # @example Basic example
910
+ # require "google/apps/meet/v2beta"
911
+ #
912
+ # # Create a client object. The client can be reused for multiple calls.
913
+ # client = Google::Apps::Meet::V2beta::SpacesService::Client.new
914
+ #
915
+ # # Create a request. To set request fields, pass in keyword arguments.
916
+ # request = Google::Apps::Meet::V2beta::ListMembersRequest.new
917
+ #
918
+ # # Call the list_members method.
919
+ # result = client.list_members request
920
+ #
921
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
922
+ # # over elements, and API calls will be issued to fetch pages as needed.
923
+ # result.each do |item|
924
+ # # Each element is of type ::Google::Apps::Meet::V2beta::Member.
925
+ # p item
926
+ # end
927
+ #
928
+ def list_members request, options = nil
929
+ raise ::ArgumentError, "request must be provided" if request.nil?
930
+
931
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2beta::ListMembersRequest
932
+
933
+ # Converts hash and nil to an options object
934
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
935
+
936
+ # Customize the options with defaults
937
+ metadata = @config.rpcs.list_members.metadata.to_h
938
+
939
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
940
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
941
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
942
+ gapic_version: ::Google::Apps::Meet::V2beta::VERSION
943
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
944
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
945
+
946
+ header_params = {}
947
+ if request.parent
948
+ header_params["parent"] = request.parent
949
+ end
950
+
951
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
952
+ metadata[:"x-goog-request-params"] ||= request_params_header
953
+
954
+ options.apply_defaults timeout: @config.rpcs.list_members.timeout,
955
+ metadata: metadata,
956
+ retry_policy: @config.rpcs.list_members.retry_policy
957
+
958
+ options.apply_defaults timeout: @config.timeout,
959
+ metadata: @config.metadata,
960
+ retry_policy: @config.retry_policy
961
+
962
+ @spaces_service_stub.call_rpc :list_members, request, options: options do |response, operation|
963
+ response = ::Gapic::PagedEnumerable.new @spaces_service_stub, :list_members, request, response, operation, options
964
+ yield response, operation if block_given?
965
+ throw :response, response
966
+ end
967
+ rescue ::GRPC::BadStatus => e
968
+ raise ::Google::Cloud::Error.from_error(e)
969
+ end
970
+
971
+ ##
972
+ # [Developer Preview](https://developers.google.com/workspace/preview):
973
+ # Delete the member who was previously assigned roles in the space.
974
+ #
975
+ # @overload delete_member(request, options = nil)
976
+ # Pass arguments to `delete_member` via a request object, either of type
977
+ # {::Google::Apps::Meet::V2beta::DeleteMemberRequest} or an equivalent Hash.
978
+ #
979
+ # @param request [::Google::Apps::Meet::V2beta::DeleteMemberRequest, ::Hash]
980
+ # A request object representing the call parameters. Required. To specify no
981
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
982
+ # @param options [::Gapic::CallOptions, ::Hash]
983
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
984
+ #
985
+ # @overload delete_member(name: nil)
986
+ # Pass arguments to `delete_member` via keyword arguments. Note that at
987
+ # least one keyword argument is required. To specify no parameters, or to keep all
988
+ # the default parameter values, pass an empty Hash as a request object (see above).
989
+ #
990
+ # @param name [::String]
991
+ # Required. Format: “spaces/\\{space}/members/\\{member}”
992
+ #
993
+ # @yield [response, operation] Access the result along with the RPC operation
994
+ # @yieldparam response [::Google::Protobuf::Empty]
995
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
996
+ #
997
+ # @return [::Google::Protobuf::Empty]
998
+ #
999
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1000
+ #
1001
+ # @example Basic example
1002
+ # require "google/apps/meet/v2beta"
1003
+ #
1004
+ # # Create a client object. The client can be reused for multiple calls.
1005
+ # client = Google::Apps::Meet::V2beta::SpacesService::Client.new
1006
+ #
1007
+ # # Create a request. To set request fields, pass in keyword arguments.
1008
+ # request = Google::Apps::Meet::V2beta::DeleteMemberRequest.new
1009
+ #
1010
+ # # Call the delete_member method.
1011
+ # result = client.delete_member request
1012
+ #
1013
+ # # The returned object is of type Google::Protobuf::Empty.
1014
+ # p result
1015
+ #
1016
+ def delete_member request, options = nil
1017
+ raise ::ArgumentError, "request must be provided" if request.nil?
1018
+
1019
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2beta::DeleteMemberRequest
1020
+
1021
+ # Converts hash and nil to an options object
1022
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1023
+
1024
+ # Customize the options with defaults
1025
+ metadata = @config.rpcs.delete_member.metadata.to_h
1026
+
1027
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1028
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1029
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1030
+ gapic_version: ::Google::Apps::Meet::V2beta::VERSION
1031
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1032
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1033
+
1034
+ header_params = {}
1035
+ if request.name
1036
+ header_params["name"] = request.name
1037
+ end
1038
+
1039
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1040
+ metadata[:"x-goog-request-params"] ||= request_params_header
1041
+
1042
+ options.apply_defaults timeout: @config.rpcs.delete_member.timeout,
1043
+ metadata: metadata,
1044
+ retry_policy: @config.rpcs.delete_member.retry_policy
1045
+
1046
+ options.apply_defaults timeout: @config.timeout,
1047
+ metadata: @config.metadata,
1048
+ retry_policy: @config.retry_policy
1049
+
1050
+ @spaces_service_stub.call_rpc :delete_member, request, options: options do |response, operation|
1051
+ yield response, operation if block_given?
1052
+ end
1053
+ rescue ::GRPC::BadStatus => e
1054
+ raise ::Google::Cloud::Error.from_error(e)
1055
+ end
1056
+
539
1057
  ##
540
1058
  # Configuration class for the SpacesService API.
541
1059
  #
@@ -580,6 +1098,13 @@ module Google
580
1098
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
581
1099
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
582
1100
  # * (`nil`) indicating no credentials
1101
+ #
1102
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
1103
+ # external source for authentication to Google Cloud, you must validate it before
1104
+ # providing it to a Google API client library. Providing an unvalidated credential
1105
+ # configuration to Google APIs can compromise the security of your systems and data.
1106
+ # For more information, refer to [Validate credential configurations from external
1107
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
583
1108
  # @return [::Object]
584
1109
  # @!attribute [rw] scope
585
1110
  # The OAuth scopes
@@ -711,10 +1236,35 @@ module Google
711
1236
  #
712
1237
  attr_reader :update_space
713
1238
  ##
1239
+ # RPC-specific configuration for `connect_active_conference`
1240
+ # @return [::Gapic::Config::Method]
1241
+ #
1242
+ attr_reader :connect_active_conference
1243
+ ##
714
1244
  # RPC-specific configuration for `end_active_conference`
715
1245
  # @return [::Gapic::Config::Method]
716
1246
  #
717
1247
  attr_reader :end_active_conference
1248
+ ##
1249
+ # RPC-specific configuration for `create_member`
1250
+ # @return [::Gapic::Config::Method]
1251
+ #
1252
+ attr_reader :create_member
1253
+ ##
1254
+ # RPC-specific configuration for `get_member`
1255
+ # @return [::Gapic::Config::Method]
1256
+ #
1257
+ attr_reader :get_member
1258
+ ##
1259
+ # RPC-specific configuration for `list_members`
1260
+ # @return [::Gapic::Config::Method]
1261
+ #
1262
+ attr_reader :list_members
1263
+ ##
1264
+ # RPC-specific configuration for `delete_member`
1265
+ # @return [::Gapic::Config::Method]
1266
+ #
1267
+ attr_reader :delete_member
718
1268
 
719
1269
  # @private
720
1270
  def initialize parent_rpcs = nil
@@ -724,8 +1274,18 @@ module Google
724
1274
  @get_space = ::Gapic::Config::Method.new get_space_config
725
1275
  update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space
726
1276
  @update_space = ::Gapic::Config::Method.new update_space_config
1277
+ connect_active_conference_config = parent_rpcs.connect_active_conference if parent_rpcs.respond_to? :connect_active_conference
1278
+ @connect_active_conference = ::Gapic::Config::Method.new connect_active_conference_config
727
1279
  end_active_conference_config = parent_rpcs.end_active_conference if parent_rpcs.respond_to? :end_active_conference
728
1280
  @end_active_conference = ::Gapic::Config::Method.new end_active_conference_config
1281
+ create_member_config = parent_rpcs.create_member if parent_rpcs.respond_to? :create_member
1282
+ @create_member = ::Gapic::Config::Method.new create_member_config
1283
+ get_member_config = parent_rpcs.get_member if parent_rpcs.respond_to? :get_member
1284
+ @get_member = ::Gapic::Config::Method.new get_member_config
1285
+ list_members_config = parent_rpcs.list_members if parent_rpcs.respond_to? :list_members
1286
+ @list_members = ::Gapic::Config::Method.new list_members_config
1287
+ delete_member_config = parent_rpcs.delete_member if parent_rpcs.respond_to? :delete_member
1288
+ @delete_member = ::Gapic::Config::Method.new delete_member_config
729
1289
 
730
1290
  yield self if block_given?
731
1291
  end