google-apps-meet-v2beta 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/apps/meet/v2beta/conference_records_service/client.rb +32 -25
- data/lib/google/apps/meet/v2beta/conference_records_service/credentials.rb +4 -0
- data/lib/google/apps/meet/v2beta/conference_records_service/rest/client.rb +32 -25
- data/lib/google/apps/meet/v2beta/resource_pb.rb +13 -1
- data/lib/google/apps/meet/v2beta/service_pb.rb +6 -1
- data/lib/google/apps/meet/v2beta/service_services_pb.rb +48 -25
- data/lib/google/apps/meet/v2beta/spaces_service/client.rb +459 -9
- data/lib/google/apps/meet/v2beta/spaces_service/credentials.rb +5 -0
- data/lib/google/apps/meet/v2beta/spaces_service/paths.rb +17 -0
- data/lib/google/apps/meet/v2beta/spaces_service/rest/client.rb +431 -9
- data/lib/google/apps/meet/v2beta/spaces_service/rest/service_stub.rb +245 -0
- data/lib/google/apps/meet/v2beta/version.rb +1 -1
- data/proto_docs/google/apps/meet/v2beta/resource.rb +243 -37
- data/proto_docs/google/apps/meet/v2beta/service.rb +111 -13
- metadata +6 -9
@@ -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
|
-
#
|
278
|
-
#
|
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
|
-
#
|
364
|
-
#
|
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,
|
386
|
-
#
|
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,10 @@ module Google
|
|
451
482
|
end
|
452
483
|
|
453
484
|
##
|
454
|
-
#
|
455
|
-
#
|
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).
|
456
489
|
#
|
457
490
|
# @overload end_active_conference(request, options = nil)
|
458
491
|
# Pass arguments to `end_active_conference` via a request object, either of type
|
@@ -472,6 +505,14 @@ module Google
|
|
472
505
|
# @param name [::String]
|
473
506
|
# Required. Resource name of the space.
|
474
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
|
+
#
|
475
516
|
# @yield [response, operation] Access the result along with the RPC operation
|
476
517
|
# @yieldparam response [::Google::Protobuf::Empty]
|
477
518
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
@@ -536,6 +577,380 @@ module Google
|
|
536
577
|
raise ::Google::Cloud::Error.from_error(e)
|
537
578
|
end
|
538
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?
|
949
|
+
end
|
950
|
+
rescue ::GRPC::BadStatus => e
|
951
|
+
raise ::Google::Cloud::Error.from_error(e)
|
952
|
+
end
|
953
|
+
|
539
954
|
##
|
540
955
|
# Configuration class for the SpacesService API.
|
541
956
|
#
|
@@ -580,6 +995,13 @@ module Google
|
|
580
995
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
581
996
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
582
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).
|
583
1005
|
# @return [::Object]
|
584
1006
|
# @!attribute [rw] scope
|
585
1007
|
# The OAuth scopes
|
@@ -715,6 +1137,26 @@ module Google
|
|
715
1137
|
# @return [::Gapic::Config::Method]
|
716
1138
|
#
|
717
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
|
718
1160
|
|
719
1161
|
# @private
|
720
1162
|
def initialize parent_rpcs = nil
|
@@ -726,6 +1168,14 @@ module Google
|
|
726
1168
|
@update_space = ::Gapic::Config::Method.new update_space_config
|
727
1169
|
end_active_conference_config = parent_rpcs.end_active_conference if parent_rpcs.respond_to? :end_active_conference
|
728
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
|
729
1179
|
|
730
1180
|
yield self if block_given?
|
731
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
|
#
|