google-apps-meet-v2beta 0.3.2 → 0.5.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?
@@ -168,14 +176,33 @@ module Google
168
176
  universe_domain: @config.universe_domain,
169
177
  channel_args: @config.channel_args,
170
178
  interceptors: @config.interceptors,
171
- channel_pool_config: @config.channel_pool
179
+ channel_pool_config: @config.channel_pool,
180
+ logger: @config.logger
172
181
  )
182
+
183
+ @spaces_service_stub.stub_logger&.info do |entry|
184
+ entry.set_system_name
185
+ entry.set_service
186
+ entry.message = "Created client for #{entry.service}"
187
+ entry.set_credentials_fields credentials
188
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
189
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
190
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
191
+ end
192
+ end
193
+
194
+ ##
195
+ # The logger used for request/response debug logging.
196
+ #
197
+ # @return [Logger]
198
+ #
199
+ def logger
200
+ @spaces_service_stub.logger
173
201
  end
174
202
 
175
203
  # Service calls
176
204
 
177
205
  ##
178
- # [Developer Preview](https://developers.google.com/workspace/preview).
179
206
  # Creates a space.
180
207
  #
181
208
  # @overload create_space(request, options = nil)
@@ -248,15 +275,16 @@ module Google
248
275
 
249
276
  @spaces_service_stub.call_rpc :create_space, request, options: options do |response, operation|
250
277
  yield response, operation if block_given?
251
- return response
252
278
  end
253
279
  rescue ::GRPC::BadStatus => e
254
280
  raise ::Google::Cloud::Error.from_error(e)
255
281
  end
256
282
 
257
283
  ##
258
- # [Developer Preview](https://developers.google.com/workspace/preview).
259
- # 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).
260
288
  #
261
289
  # @overload get_space(request, options = nil)
262
290
  # Pass arguments to `get_space` via a request object, either of type
@@ -276,6 +304,24 @@ module Google
276
304
  # @param name [::String]
277
305
  # Required. Resource name of the space.
278
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
+ #
279
325
  # @yield [response, operation] Access the result along with the RPC operation
280
326
  # @yieldparam response [::Google::Apps::Meet::V2beta::Space]
281
327
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
@@ -335,15 +381,16 @@ module Google
335
381
 
336
382
  @spaces_service_stub.call_rpc :get_space, request, options: options do |response, operation|
337
383
  yield response, operation if block_given?
338
- return response
339
384
  end
340
385
  rescue ::GRPC::BadStatus => e
341
386
  raise ::Google::Cloud::Error.from_error(e)
342
387
  end
343
388
 
344
389
  ##
345
- # [Developer Preview](https://developers.google.com/workspace/preview).
346
- # 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).
347
394
  #
348
395
  # @overload update_space(request, options = nil)
349
396
  # Pass arguments to `update_space` via a request object, either of type
@@ -364,9 +411,11 @@ module Google
364
411
  # Required. Space to be updated.
365
412
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
366
413
  # Optional. Field mask used to specify the fields to be updated in the space.
367
- # If update_mask isn't provided, it defaults to '*' and updates all
368
- # 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
369
416
  # request.
417
+ # Using "*" as update_mask will update all fields, including deleting fields
418
+ # not set in the request.
370
419
  #
371
420
  # @yield [response, operation] Access the result along with the RPC operation
372
421
  # @yieldparam response [::Google::Apps::Meet::V2beta::Space]
@@ -427,15 +476,16 @@ module Google
427
476
 
428
477
  @spaces_service_stub.call_rpc :update_space, request, options: options do |response, operation|
429
478
  yield response, operation if block_given?
430
- return response
431
479
  end
432
480
  rescue ::GRPC::BadStatus => e
433
481
  raise ::Google::Cloud::Error.from_error(e)
434
482
  end
435
483
 
436
484
  ##
437
- # [Developer Preview](https://developers.google.com/workspace/preview).
438
- # Ends an active conference (if there is one).
485
+ # Ends an active conference (if there's one).
486
+ #
487
+ # For an example, see [End active
488
+ # conference](https://developers.google.com/meet/api/guides/meeting-spaces#end-active-conference).
439
489
  #
440
490
  # @overload end_active_conference(request, options = nil)
441
491
  # Pass arguments to `end_active_conference` via a request object, either of type
@@ -455,6 +505,14 @@ module Google
455
505
  # @param name [::String]
456
506
  # Required. Resource name of the space.
457
507
  #
508
+ # Format: `spaces/{space}`.
509
+ #
510
+ # `{space}` is the resource identifier for the space. It's a unique,
511
+ # server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
512
+ #
513
+ # For more information, see [How Meet identifies a meeting
514
+ # space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
515
+ #
458
516
  # @yield [response, operation] Access the result along with the RPC operation
459
517
  # @yieldparam response [::Google::Protobuf::Empty]
460
518
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
@@ -514,7 +572,380 @@ module Google
514
572
 
515
573
  @spaces_service_stub.call_rpc :end_active_conference, request, options: options do |response, operation|
516
574
  yield response, operation if block_given?
517
- return response
575
+ end
576
+ rescue ::GRPC::BadStatus => e
577
+ raise ::Google::Cloud::Error.from_error(e)
578
+ end
579
+
580
+ ##
581
+ # [Developer Preview](https://developers.google.com/workspace/preview):
582
+ # Create a member.
583
+ #
584
+ # This API supports the `fields` parameter in
585
+ # [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters).
586
+ # When the `fields` parameter is omitted, this API response will default to
587
+ # "name,email,role,user".
588
+ #
589
+ # @overload create_member(request, options = nil)
590
+ # Pass arguments to `create_member` via a request object, either of type
591
+ # {::Google::Apps::Meet::V2beta::CreateMemberRequest} or an equivalent Hash.
592
+ #
593
+ # @param request [::Google::Apps::Meet::V2beta::CreateMemberRequest, ::Hash]
594
+ # A request object representing the call parameters. Required. To specify no
595
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
596
+ # @param options [::Gapic::CallOptions, ::Hash]
597
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
598
+ #
599
+ # @overload create_member(parent: nil, member: nil)
600
+ # Pass arguments to `create_member` via keyword arguments. Note that at
601
+ # least one keyword argument is required. To specify no parameters, or to keep all
602
+ # the default parameter values, pass an empty Hash as a request object (see above).
603
+ #
604
+ # @param parent [::String]
605
+ # Required. Format: spaces/\\{space}
606
+ # @param member [::Google::Apps::Meet::V2beta::Member, ::Hash]
607
+ # Required. The member to be created.
608
+ #
609
+ # @yield [response, operation] Access the result along with the RPC operation
610
+ # @yieldparam response [::Google::Apps::Meet::V2beta::Member]
611
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
612
+ #
613
+ # @return [::Google::Apps::Meet::V2beta::Member]
614
+ #
615
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
616
+ #
617
+ # @example Basic example
618
+ # require "google/apps/meet/v2beta"
619
+ #
620
+ # # Create a client object. The client can be reused for multiple calls.
621
+ # client = Google::Apps::Meet::V2beta::SpacesService::Client.new
622
+ #
623
+ # # Create a request. To set request fields, pass in keyword arguments.
624
+ # request = Google::Apps::Meet::V2beta::CreateMemberRequest.new
625
+ #
626
+ # # Call the create_member method.
627
+ # result = client.create_member request
628
+ #
629
+ # # The returned object is of type Google::Apps::Meet::V2beta::Member.
630
+ # p result
631
+ #
632
+ def create_member request, options = nil
633
+ raise ::ArgumentError, "request must be provided" if request.nil?
634
+
635
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2beta::CreateMemberRequest
636
+
637
+ # Converts hash and nil to an options object
638
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
639
+
640
+ # Customize the options with defaults
641
+ metadata = @config.rpcs.create_member.metadata.to_h
642
+
643
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
644
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
645
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
646
+ gapic_version: ::Google::Apps::Meet::V2beta::VERSION
647
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
648
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
649
+
650
+ header_params = {}
651
+ if request.parent
652
+ header_params["parent"] = request.parent
653
+ end
654
+
655
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
656
+ metadata[:"x-goog-request-params"] ||= request_params_header
657
+
658
+ options.apply_defaults timeout: @config.rpcs.create_member.timeout,
659
+ metadata: metadata,
660
+ retry_policy: @config.rpcs.create_member.retry_policy
661
+
662
+ options.apply_defaults timeout: @config.timeout,
663
+ metadata: @config.metadata,
664
+ retry_policy: @config.retry_policy
665
+
666
+ @spaces_service_stub.call_rpc :create_member, request, options: options do |response, operation|
667
+ yield response, operation if block_given?
668
+ end
669
+ rescue ::GRPC::BadStatus => e
670
+ raise ::Google::Cloud::Error.from_error(e)
671
+ end
672
+
673
+ ##
674
+ # [Developer Preview](https://developers.google.com/workspace/preview):
675
+ # Get a member.
676
+ #
677
+ # This API supports the `fields` parameter in
678
+ # [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters).
679
+ # When the `fields` parameter is omitted, this API response will default to
680
+ # "name,email,role,user".
681
+ #
682
+ # @overload get_member(request, options = nil)
683
+ # Pass arguments to `get_member` via a request object, either of type
684
+ # {::Google::Apps::Meet::V2beta::GetMemberRequest} or an equivalent Hash.
685
+ #
686
+ # @param request [::Google::Apps::Meet::V2beta::GetMemberRequest, ::Hash]
687
+ # A request object representing the call parameters. Required. To specify no
688
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
689
+ # @param options [::Gapic::CallOptions, ::Hash]
690
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
691
+ #
692
+ # @overload get_member(name: nil)
693
+ # Pass arguments to `get_member` via keyword arguments. Note that at
694
+ # least one keyword argument is required. To specify no parameters, or to keep all
695
+ # the default parameter values, pass an empty Hash as a request object (see above).
696
+ #
697
+ # @param name [::String]
698
+ # Required. Format: “spaces/\\{space}/members/\\{member}”
699
+ #
700
+ # @yield [response, operation] Access the result along with the RPC operation
701
+ # @yieldparam response [::Google::Apps::Meet::V2beta::Member]
702
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
703
+ #
704
+ # @return [::Google::Apps::Meet::V2beta::Member]
705
+ #
706
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
707
+ #
708
+ # @example Basic example
709
+ # require "google/apps/meet/v2beta"
710
+ #
711
+ # # Create a client object. The client can be reused for multiple calls.
712
+ # client = Google::Apps::Meet::V2beta::SpacesService::Client.new
713
+ #
714
+ # # Create a request. To set request fields, pass in keyword arguments.
715
+ # request = Google::Apps::Meet::V2beta::GetMemberRequest.new
716
+ #
717
+ # # Call the get_member method.
718
+ # result = client.get_member request
719
+ #
720
+ # # The returned object is of type Google::Apps::Meet::V2beta::Member.
721
+ # p result
722
+ #
723
+ def get_member request, options = nil
724
+ raise ::ArgumentError, "request must be provided" if request.nil?
725
+
726
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2beta::GetMemberRequest
727
+
728
+ # Converts hash and nil to an options object
729
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
730
+
731
+ # Customize the options with defaults
732
+ metadata = @config.rpcs.get_member.metadata.to_h
733
+
734
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
735
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
736
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
737
+ gapic_version: ::Google::Apps::Meet::V2beta::VERSION
738
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
739
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
740
+
741
+ header_params = {}
742
+ if request.name
743
+ header_params["name"] = request.name
744
+ end
745
+
746
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
747
+ metadata[:"x-goog-request-params"] ||= request_params_header
748
+
749
+ options.apply_defaults timeout: @config.rpcs.get_member.timeout,
750
+ metadata: metadata,
751
+ retry_policy: @config.rpcs.get_member.retry_policy
752
+
753
+ options.apply_defaults timeout: @config.timeout,
754
+ metadata: @config.metadata,
755
+ retry_policy: @config.retry_policy
756
+
757
+ @spaces_service_stub.call_rpc :get_member, request, options: options do |response, operation|
758
+ yield response, operation if block_given?
759
+ end
760
+ rescue ::GRPC::BadStatus => e
761
+ raise ::Google::Cloud::Error.from_error(e)
762
+ end
763
+
764
+ ##
765
+ # [Developer Preview](https://developers.google.com/workspace/preview):
766
+ # List members.
767
+ #
768
+ # This API supports the `fields` parameter in
769
+ # [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters).
770
+ # When the `fields` parameter is omitted this API response will default to
771
+ # "name,email,role,user".
772
+ #
773
+ # @overload list_members(request, options = nil)
774
+ # Pass arguments to `list_members` via a request object, either of type
775
+ # {::Google::Apps::Meet::V2beta::ListMembersRequest} or an equivalent Hash.
776
+ #
777
+ # @param request [::Google::Apps::Meet::V2beta::ListMembersRequest, ::Hash]
778
+ # A request object representing the call parameters. Required. To specify no
779
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
780
+ # @param options [::Gapic::CallOptions, ::Hash]
781
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
782
+ #
783
+ # @overload list_members(parent: nil, page_size: nil, page_token: nil)
784
+ # Pass arguments to `list_members` via keyword arguments. Note that at
785
+ # least one keyword argument is required. To specify no parameters, or to keep all
786
+ # the default parameter values, pass an empty Hash as a request object (see above).
787
+ #
788
+ # @param parent [::String]
789
+ # Required. Format: spaces/\\{space}
790
+ # @param page_size [::Integer]
791
+ # Optional. Maximum number of members to return. The service might return
792
+ # fewer than this value. If unspecified, at most 25 members are returned. The
793
+ # maximum value is 100; values above 100 are coerced to 100. Maximum might
794
+ # change in the future.
795
+ # @param page_token [::String]
796
+ # Optional. Page token returned from previous List Call.
797
+ #
798
+ # @yield [response, operation] Access the result along with the RPC operation
799
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2beta::Member>]
800
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
801
+ #
802
+ # @return [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2beta::Member>]
803
+ #
804
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
805
+ #
806
+ # @example Basic example
807
+ # require "google/apps/meet/v2beta"
808
+ #
809
+ # # Create a client object. The client can be reused for multiple calls.
810
+ # client = Google::Apps::Meet::V2beta::SpacesService::Client.new
811
+ #
812
+ # # Create a request. To set request fields, pass in keyword arguments.
813
+ # request = Google::Apps::Meet::V2beta::ListMembersRequest.new
814
+ #
815
+ # # Call the list_members method.
816
+ # result = client.list_members request
817
+ #
818
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
819
+ # # over elements, and API calls will be issued to fetch pages as needed.
820
+ # result.each do |item|
821
+ # # Each element is of type ::Google::Apps::Meet::V2beta::Member.
822
+ # p item
823
+ # end
824
+ #
825
+ def list_members request, options = nil
826
+ raise ::ArgumentError, "request must be provided" if request.nil?
827
+
828
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2beta::ListMembersRequest
829
+
830
+ # Converts hash and nil to an options object
831
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
832
+
833
+ # Customize the options with defaults
834
+ metadata = @config.rpcs.list_members.metadata.to_h
835
+
836
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
837
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
838
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
839
+ gapic_version: ::Google::Apps::Meet::V2beta::VERSION
840
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
841
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
842
+
843
+ header_params = {}
844
+ if request.parent
845
+ header_params["parent"] = request.parent
846
+ end
847
+
848
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
849
+ metadata[:"x-goog-request-params"] ||= request_params_header
850
+
851
+ options.apply_defaults timeout: @config.rpcs.list_members.timeout,
852
+ metadata: metadata,
853
+ retry_policy: @config.rpcs.list_members.retry_policy
854
+
855
+ options.apply_defaults timeout: @config.timeout,
856
+ metadata: @config.metadata,
857
+ retry_policy: @config.retry_policy
858
+
859
+ @spaces_service_stub.call_rpc :list_members, request, options: options do |response, operation|
860
+ response = ::Gapic::PagedEnumerable.new @spaces_service_stub, :list_members, request, response, operation, options
861
+ yield response, operation if block_given?
862
+ throw :response, response
863
+ end
864
+ rescue ::GRPC::BadStatus => e
865
+ raise ::Google::Cloud::Error.from_error(e)
866
+ end
867
+
868
+ ##
869
+ # [Developer Preview](https://developers.google.com/workspace/preview):
870
+ # Delete the member who was previously assigned roles in the space.
871
+ #
872
+ # @overload delete_member(request, options = nil)
873
+ # Pass arguments to `delete_member` via a request object, either of type
874
+ # {::Google::Apps::Meet::V2beta::DeleteMemberRequest} or an equivalent Hash.
875
+ #
876
+ # @param request [::Google::Apps::Meet::V2beta::DeleteMemberRequest, ::Hash]
877
+ # A request object representing the call parameters. Required. To specify no
878
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
879
+ # @param options [::Gapic::CallOptions, ::Hash]
880
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
881
+ #
882
+ # @overload delete_member(name: nil)
883
+ # Pass arguments to `delete_member` via keyword arguments. Note that at
884
+ # least one keyword argument is required. To specify no parameters, or to keep all
885
+ # the default parameter values, pass an empty Hash as a request object (see above).
886
+ #
887
+ # @param name [::String]
888
+ # Required. Format: “spaces/\\{space}/members/\\{member}”
889
+ #
890
+ # @yield [response, operation] Access the result along with the RPC operation
891
+ # @yieldparam response [::Google::Protobuf::Empty]
892
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
893
+ #
894
+ # @return [::Google::Protobuf::Empty]
895
+ #
896
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
897
+ #
898
+ # @example Basic example
899
+ # require "google/apps/meet/v2beta"
900
+ #
901
+ # # Create a client object. The client can be reused for multiple calls.
902
+ # client = Google::Apps::Meet::V2beta::SpacesService::Client.new
903
+ #
904
+ # # Create a request. To set request fields, pass in keyword arguments.
905
+ # request = Google::Apps::Meet::V2beta::DeleteMemberRequest.new
906
+ #
907
+ # # Call the delete_member method.
908
+ # result = client.delete_member request
909
+ #
910
+ # # The returned object is of type Google::Protobuf::Empty.
911
+ # p result
912
+ #
913
+ def delete_member request, options = nil
914
+ raise ::ArgumentError, "request must be provided" if request.nil?
915
+
916
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2beta::DeleteMemberRequest
917
+
918
+ # Converts hash and nil to an options object
919
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
920
+
921
+ # Customize the options with defaults
922
+ metadata = @config.rpcs.delete_member.metadata.to_h
923
+
924
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
925
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
926
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
927
+ gapic_version: ::Google::Apps::Meet::V2beta::VERSION
928
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
929
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
930
+
931
+ header_params = {}
932
+ if request.name
933
+ header_params["name"] = request.name
934
+ end
935
+
936
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
937
+ metadata[:"x-goog-request-params"] ||= request_params_header
938
+
939
+ options.apply_defaults timeout: @config.rpcs.delete_member.timeout,
940
+ metadata: metadata,
941
+ retry_policy: @config.rpcs.delete_member.retry_policy
942
+
943
+ options.apply_defaults timeout: @config.timeout,
944
+ metadata: @config.metadata,
945
+ retry_policy: @config.retry_policy
946
+
947
+ @spaces_service_stub.call_rpc :delete_member, request, options: options do |response, operation|
948
+ yield response, operation if block_given?
518
949
  end
519
950
  rescue ::GRPC::BadStatus => e
520
951
  raise ::Google::Cloud::Error.from_error(e)
@@ -564,6 +995,13 @@ module Google
564
995
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
565
996
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
566
997
  # * (`nil`) indicating no credentials
998
+ #
999
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
1000
+ # external source for authentication to Google Cloud, you must validate it before
1001
+ # providing it to a Google API client library. Providing an unvalidated credential
1002
+ # configuration to Google APIs can compromise the security of your systems and data.
1003
+ # For more information, refer to [Validate credential configurations from external
1004
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
567
1005
  # @return [::Object]
568
1006
  # @!attribute [rw] scope
569
1007
  # The OAuth scopes
@@ -603,6 +1041,11 @@ module Google
603
1041
  # default endpoint URL. The default value of nil uses the environment
604
1042
  # universe (usually the default "googleapis.com" universe).
605
1043
  # @return [::String,nil]
1044
+ # @!attribute [rw] logger
1045
+ # A custom logger to use for request/response debug logging, or the value
1046
+ # `:default` (the default) to construct a default logger, or `nil` to
1047
+ # explicitly disable logging.
1048
+ # @return [::Logger,:default,nil]
606
1049
  #
607
1050
  class Configuration
608
1051
  extend ::Gapic::Config
@@ -627,6 +1070,7 @@ module Google
627
1070
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
628
1071
  config_attr :quota_project, nil, ::String, nil
629
1072
  config_attr :universe_domain, nil, ::String, nil
1073
+ config_attr :logger, :default, ::Logger, nil, :default
630
1074
 
631
1075
  # @private
632
1076
  def initialize parent_config = nil
@@ -693,6 +1137,26 @@ module Google
693
1137
  # @return [::Gapic::Config::Method]
694
1138
  #
695
1139
  attr_reader :end_active_conference
1140
+ ##
1141
+ # RPC-specific configuration for `create_member`
1142
+ # @return [::Gapic::Config::Method]
1143
+ #
1144
+ attr_reader :create_member
1145
+ ##
1146
+ # RPC-specific configuration for `get_member`
1147
+ # @return [::Gapic::Config::Method]
1148
+ #
1149
+ attr_reader :get_member
1150
+ ##
1151
+ # RPC-specific configuration for `list_members`
1152
+ # @return [::Gapic::Config::Method]
1153
+ #
1154
+ attr_reader :list_members
1155
+ ##
1156
+ # RPC-specific configuration for `delete_member`
1157
+ # @return [::Gapic::Config::Method]
1158
+ #
1159
+ attr_reader :delete_member
696
1160
 
697
1161
  # @private
698
1162
  def initialize parent_rpcs = nil
@@ -704,6 +1168,14 @@ module Google
704
1168
  @update_space = ::Gapic::Config::Method.new update_space_config
705
1169
  end_active_conference_config = parent_rpcs.end_active_conference if parent_rpcs.respond_to? :end_active_conference
706
1170
  @end_active_conference = ::Gapic::Config::Method.new end_active_conference_config
1171
+ create_member_config = parent_rpcs.create_member if parent_rpcs.respond_to? :create_member
1172
+ @create_member = ::Gapic::Config::Method.new create_member_config
1173
+ get_member_config = parent_rpcs.get_member if parent_rpcs.respond_to? :get_member
1174
+ @get_member = ::Gapic::Config::Method.new get_member_config
1175
+ list_members_config = parent_rpcs.list_members if parent_rpcs.respond_to? :list_members
1176
+ @list_members = ::Gapic::Config::Method.new list_members_config
1177
+ delete_member_config = parent_rpcs.delete_member if parent_rpcs.respond_to? :delete_member
1178
+ @delete_member = ::Gapic::Config::Method.new delete_member_config
707
1179
 
708
1180
  yield self if block_given?
709
1181
  end
@@ -25,6 +25,11 @@ 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.space.created",
30
+ "https://www.googleapis.com/auth/meetings.space.readonly",
31
+ "https://www.googleapis.com/auth/meetings.space.settings"
32
+ ]
28
33
  self.env_vars = [
29
34
  "GOOGLE_CLOUD_CREDENTIALS",
30
35
  "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
  #