google-apps-meet-v2 0.2.0 → 0.3.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.
@@ -32,6 +32,9 @@ module Google
32
32
  # REST API for services dealing with conference records.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "meet.$UNIVERSE_DOMAIN$"
37
40
 
@@ -207,8 +210,28 @@ module Google
207
210
  endpoint: @config.endpoint,
208
211
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
209
212
  universe_domain: @config.universe_domain,
210
- credentials: credentials
213
+ credentials: credentials,
214
+ logger: @config.logger
211
215
  )
216
+
217
+ @conference_records_service_stub.logger(stub: true)&.info do |entry|
218
+ entry.set_system_name
219
+ entry.set_service
220
+ entry.message = "Created client for #{entry.service}"
221
+ entry.set_credentials_fields credentials
222
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
223
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
224
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
225
+ end
226
+ end
227
+
228
+ ##
229
+ # The logger used for request/response debug logging.
230
+ #
231
+ # @return [Logger]
232
+ #
233
+ def logger
234
+ @conference_records_service_stub.logger
212
235
  end
213
236
 
214
237
  # Service calls
@@ -267,12 +290,13 @@ module Google
267
290
  # Customize the options with defaults
268
291
  call_metadata = @config.rpcs.get_conference_record.metadata.to_h
269
292
 
270
- # Set x-goog-api-client and x-goog-user-project headers
293
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
271
294
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
272
295
  lib_name: @config.lib_name, lib_version: @config.lib_version,
273
296
  gapic_version: ::Google::Apps::Meet::V2::VERSION,
274
297
  transports_version_send: [:rest]
275
298
 
299
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
276
300
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
277
301
 
278
302
  options.apply_defaults timeout: @config.rpcs.get_conference_record.timeout,
@@ -285,7 +309,6 @@ module Google
285
309
 
286
310
  @conference_records_service_stub.get_conference_record request, options do |result, operation|
287
311
  yield result, operation if block_given?
288
- return result
289
312
  end
290
313
  rescue ::Gapic::Rest::Error => e
291
314
  raise ::Google::Cloud::Error.from_error(e)
@@ -366,12 +389,13 @@ module Google
366
389
  # Customize the options with defaults
367
390
  call_metadata = @config.rpcs.list_conference_records.metadata.to_h
368
391
 
369
- # Set x-goog-api-client and x-goog-user-project headers
392
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
370
393
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
371
394
  lib_name: @config.lib_name, lib_version: @config.lib_version,
372
395
  gapic_version: ::Google::Apps::Meet::V2::VERSION,
373
396
  transports_version_send: [:rest]
374
397
 
398
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
375
399
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
376
400
 
377
401
  options.apply_defaults timeout: @config.rpcs.list_conference_records.timeout,
@@ -385,7 +409,7 @@ module Google
385
409
  @conference_records_service_stub.list_conference_records request, options do |result, operation|
386
410
  result = ::Gapic::Rest::PagedEnumerable.new @conference_records_service_stub, :list_conference_records, "conference_records", request, result, options
387
411
  yield result, operation if block_given?
388
- return result
412
+ throw :response, result
389
413
  end
390
414
  rescue ::Gapic::Rest::Error => e
391
415
  raise ::Google::Cloud::Error.from_error(e)
@@ -445,12 +469,13 @@ module Google
445
469
  # Customize the options with defaults
446
470
  call_metadata = @config.rpcs.get_participant.metadata.to_h
447
471
 
448
- # Set x-goog-api-client and x-goog-user-project headers
472
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
449
473
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
450
474
  lib_name: @config.lib_name, lib_version: @config.lib_version,
451
475
  gapic_version: ::Google::Apps::Meet::V2::VERSION,
452
476
  transports_version_send: [:rest]
453
477
 
478
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
454
479
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
455
480
 
456
481
  options.apply_defaults timeout: @config.rpcs.get_participant.timeout,
@@ -463,7 +488,6 @@ module Google
463
488
 
464
489
  @conference_records_service_stub.get_participant request, options do |result, operation|
465
490
  yield result, operation if block_given?
466
- return result
467
491
  end
468
492
  rescue ::Gapic::Rest::Error => e
469
493
  raise ::Google::Cloud::Error.from_error(e)
@@ -549,12 +573,13 @@ module Google
549
573
  # Customize the options with defaults
550
574
  call_metadata = @config.rpcs.list_participants.metadata.to_h
551
575
 
552
- # Set x-goog-api-client and x-goog-user-project headers
576
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
553
577
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
554
578
  lib_name: @config.lib_name, lib_version: @config.lib_version,
555
579
  gapic_version: ::Google::Apps::Meet::V2::VERSION,
556
580
  transports_version_send: [:rest]
557
581
 
582
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
558
583
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
559
584
 
560
585
  options.apply_defaults timeout: @config.rpcs.list_participants.timeout,
@@ -568,7 +593,7 @@ module Google
568
593
  @conference_records_service_stub.list_participants request, options do |result, operation|
569
594
  result = ::Gapic::Rest::PagedEnumerable.new @conference_records_service_stub, :list_participants, "participants", request, result, options
570
595
  yield result, operation if block_given?
571
- return result
596
+ throw :response, result
572
597
  end
573
598
  rescue ::Gapic::Rest::Error => e
574
599
  raise ::Google::Cloud::Error.from_error(e)
@@ -628,12 +653,13 @@ module Google
628
653
  # Customize the options with defaults
629
654
  call_metadata = @config.rpcs.get_participant_session.metadata.to_h
630
655
 
631
- # Set x-goog-api-client and x-goog-user-project headers
656
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
632
657
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
633
658
  lib_name: @config.lib_name, lib_version: @config.lib_version,
634
659
  gapic_version: ::Google::Apps::Meet::V2::VERSION,
635
660
  transports_version_send: [:rest]
636
661
 
662
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
637
663
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
638
664
 
639
665
  options.apply_defaults timeout: @config.rpcs.get_participant_session.timeout,
@@ -646,7 +672,6 @@ module Google
646
672
 
647
673
  @conference_records_service_stub.get_participant_session request, options do |result, operation|
648
674
  yield result, operation if block_given?
649
- return result
650
675
  end
651
676
  rescue ::Gapic::Rest::Error => e
652
677
  raise ::Google::Cloud::Error.from_error(e)
@@ -732,12 +757,13 @@ module Google
732
757
  # Customize the options with defaults
733
758
  call_metadata = @config.rpcs.list_participant_sessions.metadata.to_h
734
759
 
735
- # Set x-goog-api-client and x-goog-user-project headers
760
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
736
761
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
737
762
  lib_name: @config.lib_name, lib_version: @config.lib_version,
738
763
  gapic_version: ::Google::Apps::Meet::V2::VERSION,
739
764
  transports_version_send: [:rest]
740
765
 
766
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
741
767
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
742
768
 
743
769
  options.apply_defaults timeout: @config.rpcs.list_participant_sessions.timeout,
@@ -751,7 +777,7 @@ module Google
751
777
  @conference_records_service_stub.list_participant_sessions request, options do |result, operation|
752
778
  result = ::Gapic::Rest::PagedEnumerable.new @conference_records_service_stub, :list_participant_sessions, "participant_sessions", request, result, options
753
779
  yield result, operation if block_given?
754
- return result
780
+ throw :response, result
755
781
  end
756
782
  rescue ::Gapic::Rest::Error => e
757
783
  raise ::Google::Cloud::Error.from_error(e)
@@ -811,12 +837,13 @@ module Google
811
837
  # Customize the options with defaults
812
838
  call_metadata = @config.rpcs.get_recording.metadata.to_h
813
839
 
814
- # Set x-goog-api-client and x-goog-user-project headers
840
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
815
841
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
816
842
  lib_name: @config.lib_name, lib_version: @config.lib_version,
817
843
  gapic_version: ::Google::Apps::Meet::V2::VERSION,
818
844
  transports_version_send: [:rest]
819
845
 
846
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
820
847
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
821
848
 
822
849
  options.apply_defaults timeout: @config.rpcs.get_recording.timeout,
@@ -829,7 +856,6 @@ module Google
829
856
 
830
857
  @conference_records_service_stub.get_recording request, options do |result, operation|
831
858
  yield result, operation if block_given?
832
- return result
833
859
  end
834
860
  rescue ::Gapic::Rest::Error => e
835
861
  raise ::Google::Cloud::Error.from_error(e)
@@ -902,12 +928,13 @@ module Google
902
928
  # Customize the options with defaults
903
929
  call_metadata = @config.rpcs.list_recordings.metadata.to_h
904
930
 
905
- # Set x-goog-api-client and x-goog-user-project headers
931
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
906
932
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
907
933
  lib_name: @config.lib_name, lib_version: @config.lib_version,
908
934
  gapic_version: ::Google::Apps::Meet::V2::VERSION,
909
935
  transports_version_send: [:rest]
910
936
 
937
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
911
938
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
912
939
 
913
940
  options.apply_defaults timeout: @config.rpcs.list_recordings.timeout,
@@ -921,7 +948,7 @@ module Google
921
948
  @conference_records_service_stub.list_recordings request, options do |result, operation|
922
949
  result = ::Gapic::Rest::PagedEnumerable.new @conference_records_service_stub, :list_recordings, "recordings", request, result, options
923
950
  yield result, operation if block_given?
924
- return result
951
+ throw :response, result
925
952
  end
926
953
  rescue ::Gapic::Rest::Error => e
927
954
  raise ::Google::Cloud::Error.from_error(e)
@@ -981,12 +1008,13 @@ module Google
981
1008
  # Customize the options with defaults
982
1009
  call_metadata = @config.rpcs.get_transcript.metadata.to_h
983
1010
 
984
- # Set x-goog-api-client and x-goog-user-project headers
1011
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
985
1012
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
986
1013
  lib_name: @config.lib_name, lib_version: @config.lib_version,
987
1014
  gapic_version: ::Google::Apps::Meet::V2::VERSION,
988
1015
  transports_version_send: [:rest]
989
1016
 
1017
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
990
1018
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
991
1019
 
992
1020
  options.apply_defaults timeout: @config.rpcs.get_transcript.timeout,
@@ -999,7 +1027,6 @@ module Google
999
1027
 
1000
1028
  @conference_records_service_stub.get_transcript request, options do |result, operation|
1001
1029
  yield result, operation if block_given?
1002
- return result
1003
1030
  end
1004
1031
  rescue ::Gapic::Rest::Error => e
1005
1032
  raise ::Google::Cloud::Error.from_error(e)
@@ -1072,12 +1099,13 @@ module Google
1072
1099
  # Customize the options with defaults
1073
1100
  call_metadata = @config.rpcs.list_transcripts.metadata.to_h
1074
1101
 
1075
- # Set x-goog-api-client and x-goog-user-project headers
1102
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1076
1103
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1077
1104
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1078
1105
  gapic_version: ::Google::Apps::Meet::V2::VERSION,
1079
1106
  transports_version_send: [:rest]
1080
1107
 
1108
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1081
1109
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1082
1110
 
1083
1111
  options.apply_defaults timeout: @config.rpcs.list_transcripts.timeout,
@@ -1091,7 +1119,7 @@ module Google
1091
1119
  @conference_records_service_stub.list_transcripts request, options do |result, operation|
1092
1120
  result = ::Gapic::Rest::PagedEnumerable.new @conference_records_service_stub, :list_transcripts, "transcripts", request, result, options
1093
1121
  yield result, operation if block_given?
1094
- return result
1122
+ throw :response, result
1095
1123
  end
1096
1124
  rescue ::Gapic::Rest::Error => e
1097
1125
  raise ::Google::Cloud::Error.from_error(e)
@@ -1155,12 +1183,13 @@ module Google
1155
1183
  # Customize the options with defaults
1156
1184
  call_metadata = @config.rpcs.get_transcript_entry.metadata.to_h
1157
1185
 
1158
- # Set x-goog-api-client and x-goog-user-project headers
1186
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1159
1187
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1160
1188
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1161
1189
  gapic_version: ::Google::Apps::Meet::V2::VERSION,
1162
1190
  transports_version_send: [:rest]
1163
1191
 
1192
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1164
1193
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1165
1194
 
1166
1195
  options.apply_defaults timeout: @config.rpcs.get_transcript_entry.timeout,
@@ -1173,7 +1202,6 @@ module Google
1173
1202
 
1174
1203
  @conference_records_service_stub.get_transcript_entry request, options do |result, operation|
1175
1204
  yield result, operation if block_given?
1176
- return result
1177
1205
  end
1178
1206
  rescue ::Gapic::Rest::Error => e
1179
1207
  raise ::Google::Cloud::Error.from_error(e)
@@ -1251,12 +1279,13 @@ module Google
1251
1279
  # Customize the options with defaults
1252
1280
  call_metadata = @config.rpcs.list_transcript_entries.metadata.to_h
1253
1281
 
1254
- # Set x-goog-api-client and x-goog-user-project headers
1282
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1255
1283
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1256
1284
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1257
1285
  gapic_version: ::Google::Apps::Meet::V2::VERSION,
1258
1286
  transports_version_send: [:rest]
1259
1287
 
1288
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1260
1289
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1261
1290
 
1262
1291
  options.apply_defaults timeout: @config.rpcs.list_transcript_entries.timeout,
@@ -1270,7 +1299,7 @@ module Google
1270
1299
  @conference_records_service_stub.list_transcript_entries request, options do |result, operation|
1271
1300
  result = ::Gapic::Rest::PagedEnumerable.new @conference_records_service_stub, :list_transcript_entries, "transcript_entries", request, result, options
1272
1301
  yield result, operation if block_given?
1273
- return result
1302
+ throw :response, result
1274
1303
  end
1275
1304
  rescue ::Gapic::Rest::Error => e
1276
1305
  raise ::Google::Cloud::Error.from_error(e)
@@ -1350,6 +1379,11 @@ module Google
1350
1379
  # default endpoint URL. The default value of nil uses the environment
1351
1380
  # universe (usually the default "googleapis.com" universe).
1352
1381
  # @return [::String,nil]
1382
+ # @!attribute [rw] logger
1383
+ # A custom logger to use for request/response debug logging, or the value
1384
+ # `:default` (the default) to construct a default logger, or `nil` to
1385
+ # explicitly disable logging.
1386
+ # @return [::Logger,:default,nil]
1353
1387
  #
1354
1388
  class Configuration
1355
1389
  extend ::Gapic::Config
@@ -1371,6 +1405,7 @@ module Google
1371
1405
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1372
1406
  config_attr :quota_project, nil, ::String, nil
1373
1407
  config_attr :universe_domain, nil, ::String, nil
1408
+ config_attr :logger, :default, ::Logger, nil, :default
1374
1409
 
1375
1410
  # @private
1376
1411
  def initialize parent_config = nil
@@ -30,7 +30,8 @@ module Google
30
30
  # including transcoding, making the REST call, and deserialing the response.
31
31
  #
32
32
  class ServiceStub
33
- def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
33
+ # @private
34
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
34
35
  # These require statements are intentionally placed here to initialize
35
36
  # the REST modules only when it's required.
36
37
  require "gapic/rest"
@@ -40,7 +41,9 @@ module Google
40
41
  universe_domain: universe_domain,
41
42
  credentials: credentials,
42
43
  numeric_enums: true,
43
- raise_faraday_errors: false
44
+ service_name: self.class,
45
+ raise_faraday_errors: false,
46
+ logger: logger
44
47
  end
45
48
 
46
49
  ##
@@ -61,6 +64,15 @@ module Google
61
64
  @client_stub.endpoint
62
65
  end
63
66
 
67
+ ##
68
+ # The logger used for request/response debug logging.
69
+ #
70
+ # @return [Logger]
71
+ #
72
+ def logger stub: false
73
+ stub ? @client_stub.stub_logger : @client_stub.logger
74
+ end
75
+
64
76
  ##
65
77
  # Baseline implementation for the get_conference_record REST call
66
78
  #
@@ -87,16 +99,18 @@ module Google
87
99
 
88
100
  response = @client_stub.make_http_request(
89
101
  verb,
90
- uri: uri,
91
- body: body || "",
92
- params: query_string_params,
102
+ uri: uri,
103
+ body: body || "",
104
+ params: query_string_params,
105
+ method_name: "get_conference_record",
93
106
  options: options
94
107
  )
95
108
  operation = ::Gapic::Rest::TransportOperation.new response
96
109
  result = ::Google::Apps::Meet::V2::ConferenceRecord.decode_json response.body, ignore_unknown_fields: true
97
-
98
- yield result, operation if block_given?
99
- result
110
+ catch :response do
111
+ yield result, operation if block_given?
112
+ result
113
+ end
100
114
  end
101
115
 
102
116
  ##
@@ -125,16 +139,18 @@ module Google
125
139
 
126
140
  response = @client_stub.make_http_request(
127
141
  verb,
128
- uri: uri,
129
- body: body || "",
130
- params: query_string_params,
142
+ uri: uri,
143
+ body: body || "",
144
+ params: query_string_params,
145
+ method_name: "list_conference_records",
131
146
  options: options
132
147
  )
133
148
  operation = ::Gapic::Rest::TransportOperation.new response
134
149
  result = ::Google::Apps::Meet::V2::ListConferenceRecordsResponse.decode_json response.body, ignore_unknown_fields: true
135
-
136
- yield result, operation if block_given?
137
- result
150
+ catch :response do
151
+ yield result, operation if block_given?
152
+ result
153
+ end
138
154
  end
139
155
 
140
156
  ##
@@ -163,16 +179,18 @@ module Google
163
179
 
164
180
  response = @client_stub.make_http_request(
165
181
  verb,
166
- uri: uri,
167
- body: body || "",
168
- params: query_string_params,
182
+ uri: uri,
183
+ body: body || "",
184
+ params: query_string_params,
185
+ method_name: "get_participant",
169
186
  options: options
170
187
  )
171
188
  operation = ::Gapic::Rest::TransportOperation.new response
172
189
  result = ::Google::Apps::Meet::V2::Participant.decode_json response.body, ignore_unknown_fields: true
173
-
174
- yield result, operation if block_given?
175
- result
190
+ catch :response do
191
+ yield result, operation if block_given?
192
+ result
193
+ end
176
194
  end
177
195
 
178
196
  ##
@@ -201,16 +219,18 @@ module Google
201
219
 
202
220
  response = @client_stub.make_http_request(
203
221
  verb,
204
- uri: uri,
205
- body: body || "",
206
- params: query_string_params,
222
+ uri: uri,
223
+ body: body || "",
224
+ params: query_string_params,
225
+ method_name: "list_participants",
207
226
  options: options
208
227
  )
209
228
  operation = ::Gapic::Rest::TransportOperation.new response
210
229
  result = ::Google::Apps::Meet::V2::ListParticipantsResponse.decode_json response.body, ignore_unknown_fields: true
211
-
212
- yield result, operation if block_given?
213
- result
230
+ catch :response do
231
+ yield result, operation if block_given?
232
+ result
233
+ end
214
234
  end
215
235
 
216
236
  ##
@@ -239,16 +259,18 @@ module Google
239
259
 
240
260
  response = @client_stub.make_http_request(
241
261
  verb,
242
- uri: uri,
243
- body: body || "",
244
- params: query_string_params,
262
+ uri: uri,
263
+ body: body || "",
264
+ params: query_string_params,
265
+ method_name: "get_participant_session",
245
266
  options: options
246
267
  )
247
268
  operation = ::Gapic::Rest::TransportOperation.new response
248
269
  result = ::Google::Apps::Meet::V2::ParticipantSession.decode_json response.body, ignore_unknown_fields: true
249
-
250
- yield result, operation if block_given?
251
- result
270
+ catch :response do
271
+ yield result, operation if block_given?
272
+ result
273
+ end
252
274
  end
253
275
 
254
276
  ##
@@ -277,16 +299,18 @@ module Google
277
299
 
278
300
  response = @client_stub.make_http_request(
279
301
  verb,
280
- uri: uri,
281
- body: body || "",
282
- params: query_string_params,
302
+ uri: uri,
303
+ body: body || "",
304
+ params: query_string_params,
305
+ method_name: "list_participant_sessions",
283
306
  options: options
284
307
  )
285
308
  operation = ::Gapic::Rest::TransportOperation.new response
286
309
  result = ::Google::Apps::Meet::V2::ListParticipantSessionsResponse.decode_json response.body, ignore_unknown_fields: true
287
-
288
- yield result, operation if block_given?
289
- result
310
+ catch :response do
311
+ yield result, operation if block_given?
312
+ result
313
+ end
290
314
  end
291
315
 
292
316
  ##
@@ -315,16 +339,18 @@ module Google
315
339
 
316
340
  response = @client_stub.make_http_request(
317
341
  verb,
318
- uri: uri,
319
- body: body || "",
320
- params: query_string_params,
342
+ uri: uri,
343
+ body: body || "",
344
+ params: query_string_params,
345
+ method_name: "get_recording",
321
346
  options: options
322
347
  )
323
348
  operation = ::Gapic::Rest::TransportOperation.new response
324
349
  result = ::Google::Apps::Meet::V2::Recording.decode_json response.body, ignore_unknown_fields: true
325
-
326
- yield result, operation if block_given?
327
- result
350
+ catch :response do
351
+ yield result, operation if block_given?
352
+ result
353
+ end
328
354
  end
329
355
 
330
356
  ##
@@ -353,16 +379,18 @@ module Google
353
379
 
354
380
  response = @client_stub.make_http_request(
355
381
  verb,
356
- uri: uri,
357
- body: body || "",
358
- params: query_string_params,
382
+ uri: uri,
383
+ body: body || "",
384
+ params: query_string_params,
385
+ method_name: "list_recordings",
359
386
  options: options
360
387
  )
361
388
  operation = ::Gapic::Rest::TransportOperation.new response
362
389
  result = ::Google::Apps::Meet::V2::ListRecordingsResponse.decode_json response.body, ignore_unknown_fields: true
363
-
364
- yield result, operation if block_given?
365
- result
390
+ catch :response do
391
+ yield result, operation if block_given?
392
+ result
393
+ end
366
394
  end
367
395
 
368
396
  ##
@@ -391,16 +419,18 @@ module Google
391
419
 
392
420
  response = @client_stub.make_http_request(
393
421
  verb,
394
- uri: uri,
395
- body: body || "",
396
- params: query_string_params,
422
+ uri: uri,
423
+ body: body || "",
424
+ params: query_string_params,
425
+ method_name: "get_transcript",
397
426
  options: options
398
427
  )
399
428
  operation = ::Gapic::Rest::TransportOperation.new response
400
429
  result = ::Google::Apps::Meet::V2::Transcript.decode_json response.body, ignore_unknown_fields: true
401
-
402
- yield result, operation if block_given?
403
- result
430
+ catch :response do
431
+ yield result, operation if block_given?
432
+ result
433
+ end
404
434
  end
405
435
 
406
436
  ##
@@ -429,16 +459,18 @@ module Google
429
459
 
430
460
  response = @client_stub.make_http_request(
431
461
  verb,
432
- uri: uri,
433
- body: body || "",
434
- params: query_string_params,
462
+ uri: uri,
463
+ body: body || "",
464
+ params: query_string_params,
465
+ method_name: "list_transcripts",
435
466
  options: options
436
467
  )
437
468
  operation = ::Gapic::Rest::TransportOperation.new response
438
469
  result = ::Google::Apps::Meet::V2::ListTranscriptsResponse.decode_json response.body, ignore_unknown_fields: true
439
-
440
- yield result, operation if block_given?
441
- result
470
+ catch :response do
471
+ yield result, operation if block_given?
472
+ result
473
+ end
442
474
  end
443
475
 
444
476
  ##
@@ -467,16 +499,18 @@ module Google
467
499
 
468
500
  response = @client_stub.make_http_request(
469
501
  verb,
470
- uri: uri,
471
- body: body || "",
472
- params: query_string_params,
502
+ uri: uri,
503
+ body: body || "",
504
+ params: query_string_params,
505
+ method_name: "get_transcript_entry",
473
506
  options: options
474
507
  )
475
508
  operation = ::Gapic::Rest::TransportOperation.new response
476
509
  result = ::Google::Apps::Meet::V2::TranscriptEntry.decode_json response.body, ignore_unknown_fields: true
477
-
478
- yield result, operation if block_given?
479
- result
510
+ catch :response do
511
+ yield result, operation if block_given?
512
+ result
513
+ end
480
514
  end
481
515
 
482
516
  ##
@@ -505,16 +539,18 @@ module Google
505
539
 
506
540
  response = @client_stub.make_http_request(
507
541
  verb,
508
- uri: uri,
509
- body: body || "",
510
- params: query_string_params,
542
+ uri: uri,
543
+ body: body || "",
544
+ params: query_string_params,
545
+ method_name: "list_transcript_entries",
511
546
  options: options
512
547
  )
513
548
  operation = ::Gapic::Rest::TransportOperation.new response
514
549
  result = ::Google::Apps::Meet::V2::ListTranscriptEntriesResponse.decode_json response.body, ignore_unknown_fields: true
515
-
516
- yield result, operation if block_given?
517
- result
550
+ catch :response do
551
+ yield result, operation if block_given?
552
+ result
553
+ end
518
554
  end
519
555
 
520
556
  ##