google-apps-meet-v2beta 0.3.2 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c77ed68097f06b5f74fdef641cf723b403809f334433da90c1c528ffb080d9ee
4
- data.tar.gz: baf1ddc568d5b49ad97c41ab53bd484b8a3fab3806fd6436af99b2fb623bd375
3
+ metadata.gz: d4e1fd4497630774c182a916d76b249b113e438dffaa296bfbc23a1742a7612f
4
+ data.tar.gz: a99423b3da8ad1861d3e831eff7f2587f25eaa7fada359117f0308dbd96e7637
5
5
  SHA512:
6
- metadata.gz: 7ba8c0654afa11c737052c42788311db6f6c4128acafd9d023eaf8ccba91454fe2d85a7ed2a8e822d3a07b334051bc58a6e877e3445257d5c773271e84d8c2ed
7
- data.tar.gz: 913ba078d8ea52050a01ef2708f0cb617ee32c71e97df7c70f43b8cacf990fe0ab29cc1b98239326d7a62bc427212b226f815feb24635d06657f9b10dc8f4723
6
+ metadata.gz: 0e96180eb0e0380a33cfecd8e55f391113c1afa6e867df09828d4a5c0648b548b04434cd9524318c0ac825a30ad23f0f4bc3456cbd545b77af55577c219e8f22
7
+ data.tar.gz: 6ba6e16b2b2f2afbd80bd27b64f2a8a17a2d4441ab44d11436556b01833934614d1dd6235b6175b4ec0319a8102e5781d1ebfd96bb46f61d1e5d37f66b8b05b5
data/README.md CHANGED
@@ -42,40 +42,50 @@ for class and method documentation.
42
42
  See also the [Product Documentation](https://developers.google.com/meet/api/guides/overview)
43
43
  for general usage information.
44
44
 
45
- ## Enabling Logging
46
-
47
- To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
48
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
49
- or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
50
- that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
51
- and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
52
-
53
- Configuring a Ruby stdlib logger:
45
+ ## Debug Logging
46
+
47
+ This library comes with opt-in Debug Logging that can help you troubleshoot
48
+ your application's integration with the API. When logging is activated, key
49
+ events such as requests and responses, along with data payloads and metadata
50
+ such as headers and client configuration, are logged to the standard error
51
+ stream.
52
+
53
+ **WARNING:** Client Library Debug Logging includes your data payloads in
54
+ plaintext, which could include sensitive data such as PII for yourself or your
55
+ customers, private keys, or other security data that could be compromising if
56
+ leaked. Always practice good data hygiene with your application logs, and follow
57
+ the principle of least access. Google also recommends that Client Library Debug
58
+ Logging be enabled only temporarily during active debugging, and not used
59
+ permanently in production.
60
+
61
+ To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
62
+ to the value `all`. Alternatively, you can set the value to a comma-delimited
63
+ list of client library gem names. This will select the default logging behavior,
64
+ which writes logs to the standard error stream. On a local workstation, this may
65
+ result in logs appearing on the console. When running on a Google Cloud hosting
66
+ service such as [Google Cloud Run](https://cloud.google.com/run), this generally
67
+ results in logs appearing alongside your application logs in the
68
+ [Google Cloud Logging](https://cloud.google.com/logging/) service.
69
+
70
+ You can customize logging by modifying the `logger` configuration when
71
+ constructing a client object. For example:
54
72
 
55
73
  ```ruby
74
+ require "google/apps/meet/v2beta"
56
75
  require "logger"
57
76
 
58
- module MyLogger
59
- LOGGER = Logger.new $stderr, level: Logger::WARN
60
- def logger
61
- LOGGER
62
- end
63
- end
64
-
65
- # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
66
- module GRPC
67
- extend MyLogger
77
+ client = ::Google::Apps::Meet::V2beta::SpacesService::Client.new do |config|
78
+ config.logger = Logger.new "my-app.log"
68
79
  end
69
80
  ```
70
81
 
71
-
72
82
  ## Google Cloud Samples
73
83
 
74
84
  To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
75
85
 
76
86
  ## Supported Ruby Versions
77
87
 
78
- This library is supported on Ruby 2.7+.
88
+ This library is supported on Ruby 3.0+.
79
89
 
80
90
  Google provides official support for Ruby versions that are actively supported
81
91
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -217,14 +217,33 @@ module Google
217
217
  universe_domain: @config.universe_domain,
218
218
  channel_args: @config.channel_args,
219
219
  interceptors: @config.interceptors,
220
- channel_pool_config: @config.channel_pool
220
+ channel_pool_config: @config.channel_pool,
221
+ logger: @config.logger
221
222
  )
223
+
224
+ @conference_records_service_stub.stub_logger&.info do |entry|
225
+ entry.set_system_name
226
+ entry.set_service
227
+ entry.message = "Created client for #{entry.service}"
228
+ entry.set_credentials_fields credentials
229
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
230
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
231
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
232
+ end
233
+ end
234
+
235
+ ##
236
+ # The logger used for request/response debug logging.
237
+ #
238
+ # @return [Logger]
239
+ #
240
+ def logger
241
+ @conference_records_service_stub.logger
222
242
  end
223
243
 
224
244
  # Service calls
225
245
 
226
246
  ##
227
- # [Developer Preview](https://developers.google.com/workspace/preview).
228
247
  # Gets a conference record by conference ID.
229
248
  #
230
249
  # @overload get_conference_record(request, options = nil)
@@ -304,15 +323,14 @@ module Google
304
323
 
305
324
  @conference_records_service_stub.call_rpc :get_conference_record, request, options: options do |response, operation|
306
325
  yield response, operation if block_given?
307
- return response
308
326
  end
309
327
  rescue ::GRPC::BadStatus => e
310
328
  raise ::Google::Cloud::Error.from_error(e)
311
329
  end
312
330
 
313
331
  ##
314
- # [Developer Preview](https://developers.google.com/workspace/preview).
315
- # Lists the conference records by start time and in descending order.
332
+ # Lists the conference records. By default, ordered by start time and in
333
+ # descending order.
316
334
  #
317
335
  # @overload list_conference_records(request, options = nil)
318
336
  # Pass arguments to `list_conference_records` via a request object, either of type
@@ -337,15 +355,22 @@ module Google
337
355
  # @param page_token [::String]
338
356
  # Optional. Page token returned from previous List Call.
339
357
  # @param filter [::String]
340
- # Optional. User specified filtering condition in EBNF format. The following
341
- # are the filterable fields:
358
+ # Optional. User specified filtering condition in [EBNF
359
+ # format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
360
+ # The following are the filterable fields:
342
361
  #
343
362
  # * `space.meeting_code`
344
363
  # * `space.name`
345
364
  # * `start_time`
346
365
  # * `end_time`
347
366
  #
348
- # For example, `space.meeting_code = "abc-mnop-xyz"`.
367
+ # For example, consider the following filters:
368
+ #
369
+ # * `space.name = "spaces/NAME"`
370
+ # * `space.meeting_code = "abc-mnop-xyz"`
371
+ # * `start_time>="2024-01-01T00:00:00.000Z" AND
372
+ # start_time<="2024-01-02T00:00:00.000Z"`
373
+ # * `end_time IS NULL`
349
374
  #
350
375
  # @yield [response, operation] Access the result along with the RPC operation
351
376
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2beta::ConferenceRecord>]
@@ -403,14 +428,13 @@ module Google
403
428
  @conference_records_service_stub.call_rpc :list_conference_records, request, options: options do |response, operation|
404
429
  response = ::Gapic::PagedEnumerable.new @conference_records_service_stub, :list_conference_records, request, response, operation, options
405
430
  yield response, operation if block_given?
406
- return response
431
+ throw :response, response
407
432
  end
408
433
  rescue ::GRPC::BadStatus => e
409
434
  raise ::Google::Cloud::Error.from_error(e)
410
435
  end
411
436
 
412
437
  ##
413
- # [Developer Preview](https://developers.google.com/workspace/preview).
414
438
  # Gets a participant by participant ID.
415
439
  #
416
440
  # @overload get_participant(request, options = nil)
@@ -490,15 +514,13 @@ module Google
490
514
 
491
515
  @conference_records_service_stub.call_rpc :get_participant, request, options: options do |response, operation|
492
516
  yield response, operation if block_given?
493
- return response
494
517
  end
495
518
  rescue ::GRPC::BadStatus => e
496
519
  raise ::Google::Cloud::Error.from_error(e)
497
520
  end
498
521
 
499
522
  ##
500
- # [Developer Preview](https://developers.google.com/workspace/preview).
501
- # Lists the participants in a conference record, by default ordered by join
523
+ # Lists the participants in a conference record. By default, ordered by join
502
524
  # time and in descending order. This API supports `fields` as standard
503
525
  # parameters like every other API. However, when the `fields` request
504
526
  # parameter is omitted, this API defaults to `'participants/*,
@@ -530,8 +552,9 @@ module Google
530
552
  # @param page_token [::String]
531
553
  # Page token returned from previous List Call.
532
554
  # @param filter [::String]
533
- # Optional. User specified filtering condition in EBNF format. The following
534
- # are the filterable fields:
555
+ # Optional. User specified filtering condition in [EBNF
556
+ # format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
557
+ # The following are the filterable fields:
535
558
  #
536
559
  # * `earliest_start_time`
537
560
  # * `latest_end_time`
@@ -603,14 +626,13 @@ module Google
603
626
  @conference_records_service_stub.call_rpc :list_participants, request, options: options do |response, operation|
604
627
  response = ::Gapic::PagedEnumerable.new @conference_records_service_stub, :list_participants, request, response, operation, options
605
628
  yield response, operation if block_given?
606
- return response
629
+ throw :response, response
607
630
  end
608
631
  rescue ::GRPC::BadStatus => e
609
632
  raise ::Google::Cloud::Error.from_error(e)
610
633
  end
611
634
 
612
635
  ##
613
- # [Developer Preview](https://developers.google.com/workspace/preview).
614
636
  # Gets a participant session by participant session ID.
615
637
  #
616
638
  # @overload get_participant_session(request, options = nil)
@@ -690,16 +712,14 @@ module Google
690
712
 
691
713
  @conference_records_service_stub.call_rpc :get_participant_session, request, options: options do |response, operation|
692
714
  yield response, operation if block_given?
693
- return response
694
715
  end
695
716
  rescue ::GRPC::BadStatus => e
696
717
  raise ::Google::Cloud::Error.from_error(e)
697
718
  end
698
719
 
699
720
  ##
700
- # [Developer Preview](https://developers.google.com/workspace/preview).
701
- # Lists the participant sessions of a participant in a conference record, by
702
- # default ordered by join time and in descending order. This API supports
721
+ # Lists the participant sessions of a participant in a conference record. By
722
+ # default, ordered by join time and in descending order. This API supports
703
723
  # `fields` as standard parameters like every other API. However, when the
704
724
  # `fields` request parameter is omitted this API defaults to
705
725
  # `'participantsessions/*, next_page_token'`.
@@ -730,8 +750,9 @@ module Google
730
750
  # @param page_token [::String]
731
751
  # Optional. Page token returned from previous List Call.
732
752
  # @param filter [::String]
733
- # Optional. User specified filtering condition in EBNF format. The following
734
- # are the filterable fields:
753
+ # Optional. User specified filtering condition in [EBNF
754
+ # format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
755
+ # The following are the filterable fields:
735
756
  #
736
757
  # * `start_time`
737
758
  # * `end_time`
@@ -803,14 +824,13 @@ module Google
803
824
  @conference_records_service_stub.call_rpc :list_participant_sessions, request, options: options do |response, operation|
804
825
  response = ::Gapic::PagedEnumerable.new @conference_records_service_stub, :list_participant_sessions, request, response, operation, options
805
826
  yield response, operation if block_given?
806
- return response
827
+ throw :response, response
807
828
  end
808
829
  rescue ::GRPC::BadStatus => e
809
830
  raise ::Google::Cloud::Error.from_error(e)
810
831
  end
811
832
 
812
833
  ##
813
- # [Developer Preview](https://developers.google.com/workspace/preview).
814
834
  # Gets a recording by recording ID.
815
835
  #
816
836
  # @overload get_recording(request, options = nil)
@@ -890,15 +910,14 @@ module Google
890
910
 
891
911
  @conference_records_service_stub.call_rpc :get_recording, request, options: options do |response, operation|
892
912
  yield response, operation if block_given?
893
- return response
894
913
  end
895
914
  rescue ::GRPC::BadStatus => e
896
915
  raise ::Google::Cloud::Error.from_error(e)
897
916
  end
898
917
 
899
918
  ##
900
- # [Developer Preview](https://developers.google.com/workspace/preview).
901
- # Lists the recording resources from the conference record.
919
+ # Lists the recording resources from the conference record. By default,
920
+ # ordered by start time and in ascending order.
902
921
  #
903
922
  # @overload list_recordings(request, options = nil)
904
923
  # Pass arguments to `list_recordings` via a request object, either of type
@@ -990,14 +1009,13 @@ module Google
990
1009
  @conference_records_service_stub.call_rpc :list_recordings, request, options: options do |response, operation|
991
1010
  response = ::Gapic::PagedEnumerable.new @conference_records_service_stub, :list_recordings, request, response, operation, options
992
1011
  yield response, operation if block_given?
993
- return response
1012
+ throw :response, response
994
1013
  end
995
1014
  rescue ::GRPC::BadStatus => e
996
1015
  raise ::Google::Cloud::Error.from_error(e)
997
1016
  end
998
1017
 
999
1018
  ##
1000
- # [Developer Preview](https://developers.google.com/workspace/preview).
1001
1019
  # Gets a transcript by transcript ID.
1002
1020
  #
1003
1021
  # @overload get_transcript(request, options = nil)
@@ -1077,15 +1095,14 @@ module Google
1077
1095
 
1078
1096
  @conference_records_service_stub.call_rpc :get_transcript, request, options: options do |response, operation|
1079
1097
  yield response, operation if block_given?
1080
- return response
1081
1098
  end
1082
1099
  rescue ::GRPC::BadStatus => e
1083
1100
  raise ::Google::Cloud::Error.from_error(e)
1084
1101
  end
1085
1102
 
1086
1103
  ##
1087
- # [Developer Preview](https://developers.google.com/workspace/preview).
1088
- # Lists the set of transcripts from the conference record.
1104
+ # Lists the set of transcripts from the conference record. By default,
1105
+ # ordered by start time and in ascending order.
1089
1106
  #
1090
1107
  # @overload list_transcripts(request, options = nil)
1091
1108
  # Pass arguments to `list_transcripts` via a request object, either of type
@@ -1177,14 +1194,13 @@ module Google
1177
1194
  @conference_records_service_stub.call_rpc :list_transcripts, request, options: options do |response, operation|
1178
1195
  response = ::Gapic::PagedEnumerable.new @conference_records_service_stub, :list_transcripts, request, response, operation, options
1179
1196
  yield response, operation if block_given?
1180
- return response
1197
+ throw :response, response
1181
1198
  end
1182
1199
  rescue ::GRPC::BadStatus => e
1183
1200
  raise ::Google::Cloud::Error.from_error(e)
1184
1201
  end
1185
1202
 
1186
1203
  ##
1187
- # [Developer Preview](https://developers.google.com/workspace/preview).
1188
1204
  # Gets a `TranscriptEntry` resource by entry ID.
1189
1205
  #
1190
1206
  # Note: The transcript entries returned by the Google Meet API might not
@@ -1268,14 +1284,12 @@ module Google
1268
1284
 
1269
1285
  @conference_records_service_stub.call_rpc :get_transcript_entry, request, options: options do |response, operation|
1270
1286
  yield response, operation if block_given?
1271
- return response
1272
1287
  end
1273
1288
  rescue ::GRPC::BadStatus => e
1274
1289
  raise ::Google::Cloud::Error.from_error(e)
1275
1290
  end
1276
1291
 
1277
1292
  ##
1278
- # [Developer Preview](https://developers.google.com/workspace/preview).
1279
1293
  # Lists the structured transcript entries per transcript. By default, ordered
1280
1294
  # by start time and in ascending order.
1281
1295
  #
@@ -1374,7 +1388,7 @@ module Google
1374
1388
  @conference_records_service_stub.call_rpc :list_transcript_entries, request, options: options do |response, operation|
1375
1389
  response = ::Gapic::PagedEnumerable.new @conference_records_service_stub, :list_transcript_entries, request, response, operation, options
1376
1390
  yield response, operation if block_given?
1377
- return response
1391
+ throw :response, response
1378
1392
  end
1379
1393
  rescue ::GRPC::BadStatus => e
1380
1394
  raise ::Google::Cloud::Error.from_error(e)
@@ -1424,6 +1438,13 @@ module Google
1424
1438
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1425
1439
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1426
1440
  # * (`nil`) indicating no credentials
1441
+ #
1442
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
1443
+ # external source for authentication to Google Cloud, you must validate it before
1444
+ # providing it to a Google API client library. Providing an unvalidated credential
1445
+ # configuration to Google APIs can compromise the security of your systems and data.
1446
+ # For more information, refer to [Validate credential configurations from external
1447
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
1427
1448
  # @return [::Object]
1428
1449
  # @!attribute [rw] scope
1429
1450
  # The OAuth scopes
@@ -1463,6 +1484,11 @@ module Google
1463
1484
  # default endpoint URL. The default value of nil uses the environment
1464
1485
  # universe (usually the default "googleapis.com" universe).
1465
1486
  # @return [::String,nil]
1487
+ # @!attribute [rw] logger
1488
+ # A custom logger to use for request/response debug logging, or the value
1489
+ # `:default` (the default) to construct a default logger, or `nil` to
1490
+ # explicitly disable logging.
1491
+ # @return [::Logger,:default,nil]
1466
1492
  #
1467
1493
  class Configuration
1468
1494
  extend ::Gapic::Config
@@ -1487,6 +1513,7 @@ module Google
1487
1513
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1488
1514
  config_attr :quota_project, nil, ::String, nil
1489
1515
  config_attr :universe_domain, nil, ::String, nil
1516
+ config_attr :logger, :default, ::Logger, nil, :default
1490
1517
 
1491
1518
  # @private
1492
1519
  def initialize parent_config = nil
@@ -25,6 +25,10 @@ module Google
25
25
  module ConferenceRecordsService
26
26
  # Credentials for the ConferenceRecordsService 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
+ ]
28
32
  self.env_vars = [
29
33
  "GOOGLE_CLOUD_CREDENTIALS",
30
34
  "GOOGLE_CLOUD_KEYFILE",