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.
- checksums.yaml +4 -4
- data/README.md +31 -21
- data/lib/google/apps/meet/v2beta/conference_records_service/client.rb +65 -38
- 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 +65 -38
- data/lib/google/apps/meet/v2beta/conference_records_service/rest/service_stub.rb +110 -74
- 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 +486 -14
- 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 +458 -14
- data/lib/google/apps/meet/v2beta/spaces_service/rest/service_stub.rb +290 -25
- data/lib/google/apps/meet/v2beta/version.rb +1 -1
- data/proto_docs/google/api/client.rb +39 -0
- 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?
|
@@ -161,14 +169,33 @@ module Google
|
|
161
169
|
endpoint: @config.endpoint,
|
162
170
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
163
171
|
universe_domain: @config.universe_domain,
|
164
|
-
credentials: credentials
|
172
|
+
credentials: credentials,
|
173
|
+
logger: @config.logger
|
165
174
|
)
|
175
|
+
|
176
|
+
@spaces_service_stub.logger(stub: true)&.info do |entry|
|
177
|
+
entry.set_system_name
|
178
|
+
entry.set_service
|
179
|
+
entry.message = "Created client for #{entry.service}"
|
180
|
+
entry.set_credentials_fields credentials
|
181
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
182
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
183
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
187
|
+
##
|
188
|
+
# The logger used for request/response debug logging.
|
189
|
+
#
|
190
|
+
# @return [Logger]
|
191
|
+
#
|
192
|
+
def logger
|
193
|
+
@spaces_service_stub.logger
|
166
194
|
end
|
167
195
|
|
168
196
|
# Service calls
|
169
197
|
|
170
198
|
##
|
171
|
-
# [Developer Preview](https://developers.google.com/workspace/preview).
|
172
199
|
# Creates a space.
|
173
200
|
#
|
174
201
|
# @overload create_space(request, options = nil)
|
@@ -242,15 +269,16 @@ module Google
|
|
242
269
|
|
243
270
|
@spaces_service_stub.create_space request, options do |result, operation|
|
244
271
|
yield result, operation if block_given?
|
245
|
-
return result
|
246
272
|
end
|
247
273
|
rescue ::Gapic::Rest::Error => e
|
248
274
|
raise ::Google::Cloud::Error.from_error(e)
|
249
275
|
end
|
250
276
|
|
251
277
|
##
|
252
|
-
#
|
253
|
-
#
|
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).
|
254
282
|
#
|
255
283
|
# @overload get_space(request, options = nil)
|
256
284
|
# Pass arguments to `get_space` via a request object, either of type
|
@@ -269,6 +297,24 @@ module Google
|
|
269
297
|
#
|
270
298
|
# @param name [::String]
|
271
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).
|
272
318
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
273
319
|
# @yieldparam result [::Google::Apps::Meet::V2beta::Space]
|
274
320
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -322,15 +368,16 @@ module Google
|
|
322
368
|
|
323
369
|
@spaces_service_stub.get_space request, options do |result, operation|
|
324
370
|
yield result, operation if block_given?
|
325
|
-
return result
|
326
371
|
end
|
327
372
|
rescue ::Gapic::Rest::Error => e
|
328
373
|
raise ::Google::Cloud::Error.from_error(e)
|
329
374
|
end
|
330
375
|
|
331
376
|
##
|
332
|
-
#
|
333
|
-
#
|
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).
|
334
381
|
#
|
335
382
|
# @overload update_space(request, options = nil)
|
336
383
|
# Pass arguments to `update_space` via a request object, either of type
|
@@ -351,9 +398,11 @@ module Google
|
|
351
398
|
# Required. Space to be updated.
|
352
399
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
353
400
|
# Optional. Field mask used to specify the fields to be updated in the space.
|
354
|
-
# If update_mask isn't provided,
|
355
|
-
#
|
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
|
356
403
|
# request.
|
404
|
+
# Using "*" as update_mask will update all fields, including deleting fields
|
405
|
+
# not set in the request.
|
357
406
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
358
407
|
# @yieldparam result [::Google::Apps::Meet::V2beta::Space]
|
359
408
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -407,15 +456,16 @@ module Google
|
|
407
456
|
|
408
457
|
@spaces_service_stub.update_space request, options do |result, operation|
|
409
458
|
yield result, operation if block_given?
|
410
|
-
return result
|
411
459
|
end
|
412
460
|
rescue ::Gapic::Rest::Error => e
|
413
461
|
raise ::Google::Cloud::Error.from_error(e)
|
414
462
|
end
|
415
463
|
|
416
464
|
##
|
417
|
-
#
|
418
|
-
#
|
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).
|
419
469
|
#
|
420
470
|
# @overload end_active_conference(request, options = nil)
|
421
471
|
# Pass arguments to `end_active_conference` via a request object, either of type
|
@@ -434,6 +484,14 @@ module Google
|
|
434
484
|
#
|
435
485
|
# @param name [::String]
|
436
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).
|
437
495
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
438
496
|
# @yieldparam result [::Google::Protobuf::Empty]
|
439
497
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -487,7 +545,352 @@ module Google
|
|
487
545
|
|
488
546
|
@spaces_service_stub.end_active_conference request, options do |result, operation|
|
489
547
|
yield result, operation if block_given?
|
490
|
-
|
548
|
+
end
|
549
|
+
rescue ::Gapic::Rest::Error => e
|
550
|
+
raise ::Google::Cloud::Error.from_error(e)
|
551
|
+
end
|
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?
|
491
894
|
end
|
492
895
|
rescue ::Gapic::Rest::Error => e
|
493
896
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -535,6 +938,13 @@ module Google
|
|
535
938
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
536
939
|
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
537
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).
|
538
948
|
# @return [::Object]
|
539
949
|
# @!attribute [rw] scope
|
540
950
|
# The OAuth scopes
|
@@ -567,6 +977,11 @@ module Google
|
|
567
977
|
# default endpoint URL. The default value of nil uses the environment
|
568
978
|
# universe (usually the default "googleapis.com" universe).
|
569
979
|
# @return [::String,nil]
|
980
|
+
# @!attribute [rw] logger
|
981
|
+
# A custom logger to use for request/response debug logging, or the value
|
982
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
983
|
+
# explicitly disable logging.
|
984
|
+
# @return [::Logger,:default,nil]
|
570
985
|
#
|
571
986
|
class Configuration
|
572
987
|
extend ::Gapic::Config
|
@@ -588,6 +1003,7 @@ module Google
|
|
588
1003
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
589
1004
|
config_attr :quota_project, nil, ::String, nil
|
590
1005
|
config_attr :universe_domain, nil, ::String, nil
|
1006
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
591
1007
|
|
592
1008
|
# @private
|
593
1009
|
def initialize parent_config = nil
|
@@ -646,6 +1062,26 @@ module Google
|
|
646
1062
|
# @return [::Gapic::Config::Method]
|
647
1063
|
#
|
648
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
|
649
1085
|
|
650
1086
|
# @private
|
651
1087
|
def initialize parent_rpcs = nil
|
@@ -657,6 +1093,14 @@ module Google
|
|
657
1093
|
@update_space = ::Gapic::Config::Method.new update_space_config
|
658
1094
|
end_active_conference_config = parent_rpcs.end_active_conference if parent_rpcs.respond_to? :end_active_conference
|
659
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
|
660
1104
|
|
661
1105
|
yield self if block_given?
|
662
1106
|
end
|