google-apps-meet-v2beta 0.4.0 → 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.
- 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
@@ -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
|
-
#
|
272
|
-
#
|
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
|
-
#
|
351
|
-
#
|
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,
|
373
|
-
#
|
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,10 @@ module Google
|
|
431
462
|
end
|
432
463
|
|
433
464
|
##
|
434
|
-
#
|
435
|
-
#
|
465
|
+
# Ends an active conference (if there's one).
|
466
|
+
#
|
467
|
+
# For an example, see [End active
|
468
|
+
# conference](https://developers.google.com/meet/api/guides/meeting-spaces#end-active-conference).
|
436
469
|
#
|
437
470
|
# @overload end_active_conference(request, options = nil)
|
438
471
|
# Pass arguments to `end_active_conference` via a request object, either of type
|
@@ -451,6 +484,14 @@ module Google
|
|
451
484
|
#
|
452
485
|
# @param name [::String]
|
453
486
|
# Required. Resource name of the space.
|
487
|
+
#
|
488
|
+
# Format: `spaces/{space}`.
|
489
|
+
#
|
490
|
+
# `{space}` is the resource identifier for the space. It's a unique,
|
491
|
+
# server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
|
492
|
+
#
|
493
|
+
# For more information, see [How Meet identifies a meeting
|
494
|
+
# space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
|
454
495
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
455
496
|
# @yieldparam result [::Google::Protobuf::Empty]
|
456
497
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -509,6 +550,352 @@ module Google
|
|
509
550
|
raise ::Google::Cloud::Error.from_error(e)
|
510
551
|
end
|
511
552
|
|
553
|
+
##
|
554
|
+
# [Developer Preview](https://developers.google.com/workspace/preview):
|
555
|
+
# Create a member.
|
556
|
+
#
|
557
|
+
# This API supports the `fields` parameter in
|
558
|
+
# [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters).
|
559
|
+
# When the `fields` parameter is omitted, this API response will default to
|
560
|
+
# "name,email,role,user".
|
561
|
+
#
|
562
|
+
# @overload create_member(request, options = nil)
|
563
|
+
# Pass arguments to `create_member` via a request object, either of type
|
564
|
+
# {::Google::Apps::Meet::V2beta::CreateMemberRequest} or an equivalent Hash.
|
565
|
+
#
|
566
|
+
# @param request [::Google::Apps::Meet::V2beta::CreateMemberRequest, ::Hash]
|
567
|
+
# A request object representing the call parameters. Required. To specify no
|
568
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
569
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
570
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
571
|
+
#
|
572
|
+
# @overload create_member(parent: nil, member: nil)
|
573
|
+
# Pass arguments to `create_member` via keyword arguments. Note that at
|
574
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
575
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
576
|
+
#
|
577
|
+
# @param parent [::String]
|
578
|
+
# Required. Format: spaces/\\{space}
|
579
|
+
# @param member [::Google::Apps::Meet::V2beta::Member, ::Hash]
|
580
|
+
# Required. The member to be created.
|
581
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
582
|
+
# @yieldparam result [::Google::Apps::Meet::V2beta::Member]
|
583
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
584
|
+
#
|
585
|
+
# @return [::Google::Apps::Meet::V2beta::Member]
|
586
|
+
#
|
587
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
588
|
+
#
|
589
|
+
# @example Basic example
|
590
|
+
# require "google/apps/meet/v2beta"
|
591
|
+
#
|
592
|
+
# # Create a client object. The client can be reused for multiple calls.
|
593
|
+
# client = Google::Apps::Meet::V2beta::SpacesService::Rest::Client.new
|
594
|
+
#
|
595
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
596
|
+
# request = Google::Apps::Meet::V2beta::CreateMemberRequest.new
|
597
|
+
#
|
598
|
+
# # Call the create_member method.
|
599
|
+
# result = client.create_member request
|
600
|
+
#
|
601
|
+
# # The returned object is of type Google::Apps::Meet::V2beta::Member.
|
602
|
+
# p result
|
603
|
+
#
|
604
|
+
def create_member request, options = nil
|
605
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
606
|
+
|
607
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2beta::CreateMemberRequest
|
608
|
+
|
609
|
+
# Converts hash and nil to an options object
|
610
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
611
|
+
|
612
|
+
# Customize the options with defaults
|
613
|
+
call_metadata = @config.rpcs.create_member.metadata.to_h
|
614
|
+
|
615
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
616
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
617
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
618
|
+
gapic_version: ::Google::Apps::Meet::V2beta::VERSION,
|
619
|
+
transports_version_send: [:rest]
|
620
|
+
|
621
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
622
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
623
|
+
|
624
|
+
options.apply_defaults timeout: @config.rpcs.create_member.timeout,
|
625
|
+
metadata: call_metadata,
|
626
|
+
retry_policy: @config.rpcs.create_member.retry_policy
|
627
|
+
|
628
|
+
options.apply_defaults timeout: @config.timeout,
|
629
|
+
metadata: @config.metadata,
|
630
|
+
retry_policy: @config.retry_policy
|
631
|
+
|
632
|
+
@spaces_service_stub.create_member request, options do |result, operation|
|
633
|
+
yield result, operation if block_given?
|
634
|
+
end
|
635
|
+
rescue ::Gapic::Rest::Error => e
|
636
|
+
raise ::Google::Cloud::Error.from_error(e)
|
637
|
+
end
|
638
|
+
|
639
|
+
##
|
640
|
+
# [Developer Preview](https://developers.google.com/workspace/preview):
|
641
|
+
# Get a member.
|
642
|
+
#
|
643
|
+
# This API supports the `fields` parameter in
|
644
|
+
# [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters).
|
645
|
+
# When the `fields` parameter is omitted, this API response will default to
|
646
|
+
# "name,email,role,user".
|
647
|
+
#
|
648
|
+
# @overload get_member(request, options = nil)
|
649
|
+
# Pass arguments to `get_member` via a request object, either of type
|
650
|
+
# {::Google::Apps::Meet::V2beta::GetMemberRequest} or an equivalent Hash.
|
651
|
+
#
|
652
|
+
# @param request [::Google::Apps::Meet::V2beta::GetMemberRequest, ::Hash]
|
653
|
+
# A request object representing the call parameters. Required. To specify no
|
654
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
655
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
656
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
657
|
+
#
|
658
|
+
# @overload get_member(name: nil)
|
659
|
+
# Pass arguments to `get_member` via keyword arguments. Note that at
|
660
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
661
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
662
|
+
#
|
663
|
+
# @param name [::String]
|
664
|
+
# Required. Format: “spaces/\\{space}/members/\\{member}”
|
665
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
666
|
+
# @yieldparam result [::Google::Apps::Meet::V2beta::Member]
|
667
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
668
|
+
#
|
669
|
+
# @return [::Google::Apps::Meet::V2beta::Member]
|
670
|
+
#
|
671
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
672
|
+
#
|
673
|
+
# @example Basic example
|
674
|
+
# require "google/apps/meet/v2beta"
|
675
|
+
#
|
676
|
+
# # Create a client object. The client can be reused for multiple calls.
|
677
|
+
# client = Google::Apps::Meet::V2beta::SpacesService::Rest::Client.new
|
678
|
+
#
|
679
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
680
|
+
# request = Google::Apps::Meet::V2beta::GetMemberRequest.new
|
681
|
+
#
|
682
|
+
# # Call the get_member method.
|
683
|
+
# result = client.get_member request
|
684
|
+
#
|
685
|
+
# # The returned object is of type Google::Apps::Meet::V2beta::Member.
|
686
|
+
# p result
|
687
|
+
#
|
688
|
+
def get_member request, options = nil
|
689
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
690
|
+
|
691
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2beta::GetMemberRequest
|
692
|
+
|
693
|
+
# Converts hash and nil to an options object
|
694
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
695
|
+
|
696
|
+
# Customize the options with defaults
|
697
|
+
call_metadata = @config.rpcs.get_member.metadata.to_h
|
698
|
+
|
699
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
700
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
701
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
702
|
+
gapic_version: ::Google::Apps::Meet::V2beta::VERSION,
|
703
|
+
transports_version_send: [:rest]
|
704
|
+
|
705
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
706
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
707
|
+
|
708
|
+
options.apply_defaults timeout: @config.rpcs.get_member.timeout,
|
709
|
+
metadata: call_metadata,
|
710
|
+
retry_policy: @config.rpcs.get_member.retry_policy
|
711
|
+
|
712
|
+
options.apply_defaults timeout: @config.timeout,
|
713
|
+
metadata: @config.metadata,
|
714
|
+
retry_policy: @config.retry_policy
|
715
|
+
|
716
|
+
@spaces_service_stub.get_member request, options do |result, operation|
|
717
|
+
yield result, operation if block_given?
|
718
|
+
end
|
719
|
+
rescue ::Gapic::Rest::Error => e
|
720
|
+
raise ::Google::Cloud::Error.from_error(e)
|
721
|
+
end
|
722
|
+
|
723
|
+
##
|
724
|
+
# [Developer Preview](https://developers.google.com/workspace/preview):
|
725
|
+
# List members.
|
726
|
+
#
|
727
|
+
# This API supports the `fields` parameter in
|
728
|
+
# [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters).
|
729
|
+
# When the `fields` parameter is omitted this API response will default to
|
730
|
+
# "name,email,role,user".
|
731
|
+
#
|
732
|
+
# @overload list_members(request, options = nil)
|
733
|
+
# Pass arguments to `list_members` via a request object, either of type
|
734
|
+
# {::Google::Apps::Meet::V2beta::ListMembersRequest} or an equivalent Hash.
|
735
|
+
#
|
736
|
+
# @param request [::Google::Apps::Meet::V2beta::ListMembersRequest, ::Hash]
|
737
|
+
# A request object representing the call parameters. Required. To specify no
|
738
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
739
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
740
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
741
|
+
#
|
742
|
+
# @overload list_members(parent: nil, page_size: nil, page_token: nil)
|
743
|
+
# Pass arguments to `list_members` via keyword arguments. Note that at
|
744
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
745
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
746
|
+
#
|
747
|
+
# @param parent [::String]
|
748
|
+
# Required. Format: spaces/\\{space}
|
749
|
+
# @param page_size [::Integer]
|
750
|
+
# Optional. Maximum number of members to return. The service might return
|
751
|
+
# fewer than this value. If unspecified, at most 25 members are returned. The
|
752
|
+
# maximum value is 100; values above 100 are coerced to 100. Maximum might
|
753
|
+
# change in the future.
|
754
|
+
# @param page_token [::String]
|
755
|
+
# Optional. Page token returned from previous List Call.
|
756
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
757
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Apps::Meet::V2beta::Member>]
|
758
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
759
|
+
#
|
760
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Apps::Meet::V2beta::Member>]
|
761
|
+
#
|
762
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
763
|
+
#
|
764
|
+
# @example Basic example
|
765
|
+
# require "google/apps/meet/v2beta"
|
766
|
+
#
|
767
|
+
# # Create a client object. The client can be reused for multiple calls.
|
768
|
+
# client = Google::Apps::Meet::V2beta::SpacesService::Rest::Client.new
|
769
|
+
#
|
770
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
771
|
+
# request = Google::Apps::Meet::V2beta::ListMembersRequest.new
|
772
|
+
#
|
773
|
+
# # Call the list_members method.
|
774
|
+
# result = client.list_members request
|
775
|
+
#
|
776
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
777
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
778
|
+
# result.each do |item|
|
779
|
+
# # Each element is of type ::Google::Apps::Meet::V2beta::Member.
|
780
|
+
# p item
|
781
|
+
# end
|
782
|
+
#
|
783
|
+
def list_members request, options = nil
|
784
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
785
|
+
|
786
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2beta::ListMembersRequest
|
787
|
+
|
788
|
+
# Converts hash and nil to an options object
|
789
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
790
|
+
|
791
|
+
# Customize the options with defaults
|
792
|
+
call_metadata = @config.rpcs.list_members.metadata.to_h
|
793
|
+
|
794
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
795
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
796
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
797
|
+
gapic_version: ::Google::Apps::Meet::V2beta::VERSION,
|
798
|
+
transports_version_send: [:rest]
|
799
|
+
|
800
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
801
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
802
|
+
|
803
|
+
options.apply_defaults timeout: @config.rpcs.list_members.timeout,
|
804
|
+
metadata: call_metadata,
|
805
|
+
retry_policy: @config.rpcs.list_members.retry_policy
|
806
|
+
|
807
|
+
options.apply_defaults timeout: @config.timeout,
|
808
|
+
metadata: @config.metadata,
|
809
|
+
retry_policy: @config.retry_policy
|
810
|
+
|
811
|
+
@spaces_service_stub.list_members request, options do |result, operation|
|
812
|
+
result = ::Gapic::Rest::PagedEnumerable.new @spaces_service_stub, :list_members, "members", request, result, options
|
813
|
+
yield result, operation if block_given?
|
814
|
+
throw :response, result
|
815
|
+
end
|
816
|
+
rescue ::Gapic::Rest::Error => e
|
817
|
+
raise ::Google::Cloud::Error.from_error(e)
|
818
|
+
end
|
819
|
+
|
820
|
+
##
|
821
|
+
# [Developer Preview](https://developers.google.com/workspace/preview):
|
822
|
+
# Delete the member who was previously assigned roles in the space.
|
823
|
+
#
|
824
|
+
# @overload delete_member(request, options = nil)
|
825
|
+
# Pass arguments to `delete_member` via a request object, either of type
|
826
|
+
# {::Google::Apps::Meet::V2beta::DeleteMemberRequest} or an equivalent Hash.
|
827
|
+
#
|
828
|
+
# @param request [::Google::Apps::Meet::V2beta::DeleteMemberRequest, ::Hash]
|
829
|
+
# A request object representing the call parameters. Required. To specify no
|
830
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
831
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
832
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
833
|
+
#
|
834
|
+
# @overload delete_member(name: nil)
|
835
|
+
# Pass arguments to `delete_member` via keyword arguments. Note that at
|
836
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
837
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
838
|
+
#
|
839
|
+
# @param name [::String]
|
840
|
+
# Required. Format: “spaces/\\{space}/members/\\{member}”
|
841
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
842
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
843
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
844
|
+
#
|
845
|
+
# @return [::Google::Protobuf::Empty]
|
846
|
+
#
|
847
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
848
|
+
#
|
849
|
+
# @example Basic example
|
850
|
+
# require "google/apps/meet/v2beta"
|
851
|
+
#
|
852
|
+
# # Create a client object. The client can be reused for multiple calls.
|
853
|
+
# client = Google::Apps::Meet::V2beta::SpacesService::Rest::Client.new
|
854
|
+
#
|
855
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
856
|
+
# request = Google::Apps::Meet::V2beta::DeleteMemberRequest.new
|
857
|
+
#
|
858
|
+
# # Call the delete_member method.
|
859
|
+
# result = client.delete_member request
|
860
|
+
#
|
861
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
862
|
+
# p result
|
863
|
+
#
|
864
|
+
def delete_member request, options = nil
|
865
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
866
|
+
|
867
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2beta::DeleteMemberRequest
|
868
|
+
|
869
|
+
# Converts hash and nil to an options object
|
870
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
871
|
+
|
872
|
+
# Customize the options with defaults
|
873
|
+
call_metadata = @config.rpcs.delete_member.metadata.to_h
|
874
|
+
|
875
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
876
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
877
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
878
|
+
gapic_version: ::Google::Apps::Meet::V2beta::VERSION,
|
879
|
+
transports_version_send: [:rest]
|
880
|
+
|
881
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
882
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
883
|
+
|
884
|
+
options.apply_defaults timeout: @config.rpcs.delete_member.timeout,
|
885
|
+
metadata: call_metadata,
|
886
|
+
retry_policy: @config.rpcs.delete_member.retry_policy
|
887
|
+
|
888
|
+
options.apply_defaults timeout: @config.timeout,
|
889
|
+
metadata: @config.metadata,
|
890
|
+
retry_policy: @config.retry_policy
|
891
|
+
|
892
|
+
@spaces_service_stub.delete_member request, options do |result, operation|
|
893
|
+
yield result, operation if block_given?
|
894
|
+
end
|
895
|
+
rescue ::Gapic::Rest::Error => e
|
896
|
+
raise ::Google::Cloud::Error.from_error(e)
|
897
|
+
end
|
898
|
+
|
512
899
|
##
|
513
900
|
# Configuration class for the SpacesService REST API.
|
514
901
|
#
|
@@ -551,6 +938,13 @@ module Google
|
|
551
938
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
552
939
|
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
553
940
|
# * (`nil`) indicating no credentials
|
941
|
+
#
|
942
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
943
|
+
# external source for authentication to Google Cloud, you must validate it before
|
944
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
945
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
946
|
+
# For more information, refer to [Validate credential configurations from external
|
947
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
554
948
|
# @return [::Object]
|
555
949
|
# @!attribute [rw] scope
|
556
950
|
# The OAuth scopes
|
@@ -668,6 +1062,26 @@ module Google
|
|
668
1062
|
# @return [::Gapic::Config::Method]
|
669
1063
|
#
|
670
1064
|
attr_reader :end_active_conference
|
1065
|
+
##
|
1066
|
+
# RPC-specific configuration for `create_member`
|
1067
|
+
# @return [::Gapic::Config::Method]
|
1068
|
+
#
|
1069
|
+
attr_reader :create_member
|
1070
|
+
##
|
1071
|
+
# RPC-specific configuration for `get_member`
|
1072
|
+
# @return [::Gapic::Config::Method]
|
1073
|
+
#
|
1074
|
+
attr_reader :get_member
|
1075
|
+
##
|
1076
|
+
# RPC-specific configuration for `list_members`
|
1077
|
+
# @return [::Gapic::Config::Method]
|
1078
|
+
#
|
1079
|
+
attr_reader :list_members
|
1080
|
+
##
|
1081
|
+
# RPC-specific configuration for `delete_member`
|
1082
|
+
# @return [::Gapic::Config::Method]
|
1083
|
+
#
|
1084
|
+
attr_reader :delete_member
|
671
1085
|
|
672
1086
|
# @private
|
673
1087
|
def initialize parent_rpcs = nil
|
@@ -679,6 +1093,14 @@ module Google
|
|
679
1093
|
@update_space = ::Gapic::Config::Method.new update_space_config
|
680
1094
|
end_active_conference_config = parent_rpcs.end_active_conference if parent_rpcs.respond_to? :end_active_conference
|
681
1095
|
@end_active_conference = ::Gapic::Config::Method.new end_active_conference_config
|
1096
|
+
create_member_config = parent_rpcs.create_member if parent_rpcs.respond_to? :create_member
|
1097
|
+
@create_member = ::Gapic::Config::Method.new create_member_config
|
1098
|
+
get_member_config = parent_rpcs.get_member if parent_rpcs.respond_to? :get_member
|
1099
|
+
@get_member = ::Gapic::Config::Method.new get_member_config
|
1100
|
+
list_members_config = parent_rpcs.list_members if parent_rpcs.respond_to? :list_members
|
1101
|
+
@list_members = ::Gapic::Config::Method.new list_members_config
|
1102
|
+
delete_member_config = parent_rpcs.delete_member if parent_rpcs.respond_to? :delete_member
|
1103
|
+
@delete_member = ::Gapic::Config::Method.new delete_member_config
|
682
1104
|
|
683
1105
|
yield self if block_given?
|
684
1106
|
end
|