google-apis-meet_v2 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,641 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module MeetV2
23
+ # Google Meet API
24
+ #
25
+ # Create and manage meetings in Google Meet.
26
+ #
27
+ # @example
28
+ # require 'google/apis/meet_v2'
29
+ #
30
+ # Meet = Google::Apis::MeetV2 # Alias the module
31
+ # service = Meet::MeetService.new
32
+ #
33
+ # @see https://developers.google.com/meet/api
34
+ class MeetService < Google::Apis::Core::BaseService
35
+ DEFAULT_ENDPOINT_TEMPLATE = "https://meet.$UNIVERSE_DOMAIN$/"
36
+
37
+ # @return [String]
38
+ # API key. Your API key identifies your project and provides you with API access,
39
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
40
+ attr_accessor :key
41
+
42
+ # @return [String]
43
+ # Available to use for quota purposes for server-side applications. Can be any
44
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
45
+ attr_accessor :quota_user
46
+
47
+ def initialize
48
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
49
+ client_name: 'google-apis-meet_v2',
50
+ client_version: Google::Apis::MeetV2::GEM_VERSION)
51
+ @batch_path = 'batch'
52
+ end
53
+
54
+ # Gets a conference record by conference ID.
55
+ # @param [String] name
56
+ # Required. Resource name of the conference.
57
+ # @param [String] fields
58
+ # Selector specifying which fields to include in a partial response.
59
+ # @param [String] quota_user
60
+ # Available to use for quota purposes for server-side applications. Can be any
61
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
62
+ # @param [Google::Apis::RequestOptions] options
63
+ # Request-specific options
64
+ #
65
+ # @yield [result, err] Result & error if block supplied
66
+ # @yieldparam result [Google::Apis::MeetV2::ConferenceRecord] parsed result object
67
+ # @yieldparam err [StandardError] error object if request failed
68
+ #
69
+ # @return [Google::Apis::MeetV2::ConferenceRecord]
70
+ #
71
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
72
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
73
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
74
+ def get_conference_record(name, fields: nil, quota_user: nil, options: nil, &block)
75
+ command = make_simple_command(:get, 'v2/{+name}', options)
76
+ command.response_representation = Google::Apis::MeetV2::ConferenceRecord::Representation
77
+ command.response_class = Google::Apis::MeetV2::ConferenceRecord
78
+ command.params['name'] = name unless name.nil?
79
+ command.query['fields'] = fields unless fields.nil?
80
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
81
+ execute_or_queue_command(command, &block)
82
+ end
83
+
84
+ # Lists the conference records. By default, ordered by start time and in
85
+ # descending order.
86
+ # @param [String] filter
87
+ # Optional. User specified filtering condition in [EBNF format](https://en.
88
+ # wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form). The following are the
89
+ # filterable fields: * `space.meeting_code` * `space.name` * `start_time` * `
90
+ # end_time` For example, `space.meeting_code = "abc-mnop-xyz"`.
91
+ # @param [Fixnum] page_size
92
+ # Optional. Maximum number of conference records to return. The service might
93
+ # return fewer than this value. If unspecified, at most 25 conference records
94
+ # are returned. The maximum value is 100; values above 100 are coerced to 100.
95
+ # Maximum might change in the future.
96
+ # @param [String] page_token
97
+ # Optional. Page token returned from previous List Call.
98
+ # @param [String] fields
99
+ # Selector specifying which fields to include in a partial response.
100
+ # @param [String] quota_user
101
+ # Available to use for quota purposes for server-side applications. Can be any
102
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
103
+ # @param [Google::Apis::RequestOptions] options
104
+ # Request-specific options
105
+ #
106
+ # @yield [result, err] Result & error if block supplied
107
+ # @yieldparam result [Google::Apis::MeetV2::ListConferenceRecordsResponse] parsed result object
108
+ # @yieldparam err [StandardError] error object if request failed
109
+ #
110
+ # @return [Google::Apis::MeetV2::ListConferenceRecordsResponse]
111
+ #
112
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
113
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
114
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
115
+ def list_conference_records(filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
116
+ command = make_simple_command(:get, 'v2/conferenceRecords', options)
117
+ command.response_representation = Google::Apis::MeetV2::ListConferenceRecordsResponse::Representation
118
+ command.response_class = Google::Apis::MeetV2::ListConferenceRecordsResponse
119
+ command.query['filter'] = filter unless filter.nil?
120
+ command.query['pageSize'] = page_size unless page_size.nil?
121
+ command.query['pageToken'] = page_token unless page_token.nil?
122
+ command.query['fields'] = fields unless fields.nil?
123
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
124
+ execute_or_queue_command(command, &block)
125
+ end
126
+
127
+ # Gets a participant by participant ID.
128
+ # @param [String] name
129
+ # Required. Resource name of the participant.
130
+ # @param [String] fields
131
+ # Selector specifying which fields to include in a partial response.
132
+ # @param [String] quota_user
133
+ # Available to use for quota purposes for server-side applications. Can be any
134
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
135
+ # @param [Google::Apis::RequestOptions] options
136
+ # Request-specific options
137
+ #
138
+ # @yield [result, err] Result & error if block supplied
139
+ # @yieldparam result [Google::Apis::MeetV2::Participant] parsed result object
140
+ # @yieldparam err [StandardError] error object if request failed
141
+ #
142
+ # @return [Google::Apis::MeetV2::Participant]
143
+ #
144
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
145
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
146
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
147
+ def get_conference_record_participant(name, fields: nil, quota_user: nil, options: nil, &block)
148
+ command = make_simple_command(:get, 'v2/{+name}', options)
149
+ command.response_representation = Google::Apis::MeetV2::Participant::Representation
150
+ command.response_class = Google::Apis::MeetV2::Participant
151
+ command.params['name'] = name unless name.nil?
152
+ command.query['fields'] = fields unless fields.nil?
153
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
154
+ execute_or_queue_command(command, &block)
155
+ end
156
+
157
+ # Lists the participants in a conference record. By default, ordered by join
158
+ # time and in descending order. This API supports `fields` as standard
159
+ # parameters like every other API. However, when the `fields` request parameter
160
+ # is omitted, this API defaults to `'participants/*, next_page_token'`.
161
+ # @param [String] parent
162
+ # Required. Format: `conferenceRecords/`conference_record``
163
+ # @param [String] filter
164
+ # Optional. User specified filtering condition in [EBNF format](https://en.
165
+ # wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form). The following are the
166
+ # filterable fields: * `earliest_start_time` * `latest_end_time` For example, `
167
+ # latest_end_time IS NULL` returns active participants in the conference.
168
+ # @param [Fixnum] page_size
169
+ # Maximum number of participants to return. The service might return fewer than
170
+ # this value. If unspecified, at most 100 participants are returned. The maximum
171
+ # value is 250; values above 250 are coerced to 250. Maximum might change in the
172
+ # future.
173
+ # @param [String] page_token
174
+ # Page token returned from previous List Call.
175
+ # @param [String] fields
176
+ # Selector specifying which fields to include in a partial response.
177
+ # @param [String] quota_user
178
+ # Available to use for quota purposes for server-side applications. Can be any
179
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
180
+ # @param [Google::Apis::RequestOptions] options
181
+ # Request-specific options
182
+ #
183
+ # @yield [result, err] Result & error if block supplied
184
+ # @yieldparam result [Google::Apis::MeetV2::ListParticipantsResponse] parsed result object
185
+ # @yieldparam err [StandardError] error object if request failed
186
+ #
187
+ # @return [Google::Apis::MeetV2::ListParticipantsResponse]
188
+ #
189
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
190
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
191
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
192
+ def list_conference_record_participants(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
193
+ command = make_simple_command(:get, 'v2/{+parent}/participants', options)
194
+ command.response_representation = Google::Apis::MeetV2::ListParticipantsResponse::Representation
195
+ command.response_class = Google::Apis::MeetV2::ListParticipantsResponse
196
+ command.params['parent'] = parent unless parent.nil?
197
+ command.query['filter'] = filter unless filter.nil?
198
+ command.query['pageSize'] = page_size unless page_size.nil?
199
+ command.query['pageToken'] = page_token unless page_token.nil?
200
+ command.query['fields'] = fields unless fields.nil?
201
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
202
+ execute_or_queue_command(command, &block)
203
+ end
204
+
205
+ # Gets a participant session by participant session ID.
206
+ # @param [String] name
207
+ # Required. Resource name of the participant.
208
+ # @param [String] fields
209
+ # Selector specifying which fields to include in a partial response.
210
+ # @param [String] quota_user
211
+ # Available to use for quota purposes for server-side applications. Can be any
212
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
213
+ # @param [Google::Apis::RequestOptions] options
214
+ # Request-specific options
215
+ #
216
+ # @yield [result, err] Result & error if block supplied
217
+ # @yieldparam result [Google::Apis::MeetV2::ParticipantSession] parsed result object
218
+ # @yieldparam err [StandardError] error object if request failed
219
+ #
220
+ # @return [Google::Apis::MeetV2::ParticipantSession]
221
+ #
222
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
223
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
224
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
225
+ def get_conference_record_participant_participant_session(name, fields: nil, quota_user: nil, options: nil, &block)
226
+ command = make_simple_command(:get, 'v2/{+name}', options)
227
+ command.response_representation = Google::Apis::MeetV2::ParticipantSession::Representation
228
+ command.response_class = Google::Apis::MeetV2::ParticipantSession
229
+ command.params['name'] = name unless name.nil?
230
+ command.query['fields'] = fields unless fields.nil?
231
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
232
+ execute_or_queue_command(command, &block)
233
+ end
234
+
235
+ # Lists the participant sessions of a participant in a conference record. By
236
+ # default, ordered by join time and in descending order. This API supports `
237
+ # fields` as standard parameters like every other API. However, when the `fields`
238
+ # request parameter is omitted this API defaults to `'participantsessions/*,
239
+ # next_page_token'`.
240
+ # @param [String] parent
241
+ # Required. Format: `conferenceRecords/`conference_record`/participants/`
242
+ # participant``
243
+ # @param [String] filter
244
+ # Optional. User specified filtering condition in [EBNF format](https://en.
245
+ # wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form). The following are the
246
+ # filterable fields: * `start_time` * `end_time` For example, `end_time IS NULL`
247
+ # returns active participant sessions in the conference record.
248
+ # @param [Fixnum] page_size
249
+ # Optional. Maximum number of participant sessions to return. The service might
250
+ # return fewer than this value. If unspecified, at most 100 participants are
251
+ # returned. The maximum value is 250; values above 250 are coerced to 250.
252
+ # Maximum might change in the future.
253
+ # @param [String] page_token
254
+ # Optional. Page token returned from previous List Call.
255
+ # @param [String] fields
256
+ # Selector specifying which fields to include in a partial response.
257
+ # @param [String] quota_user
258
+ # Available to use for quota purposes for server-side applications. Can be any
259
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
260
+ # @param [Google::Apis::RequestOptions] options
261
+ # Request-specific options
262
+ #
263
+ # @yield [result, err] Result & error if block supplied
264
+ # @yieldparam result [Google::Apis::MeetV2::ListParticipantSessionsResponse] parsed result object
265
+ # @yieldparam err [StandardError] error object if request failed
266
+ #
267
+ # @return [Google::Apis::MeetV2::ListParticipantSessionsResponse]
268
+ #
269
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
270
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
271
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
272
+ def list_conference_record_participant_participant_sessions(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
273
+ command = make_simple_command(:get, 'v2/{+parent}/participantSessions', options)
274
+ command.response_representation = Google::Apis::MeetV2::ListParticipantSessionsResponse::Representation
275
+ command.response_class = Google::Apis::MeetV2::ListParticipantSessionsResponse
276
+ command.params['parent'] = parent unless parent.nil?
277
+ command.query['filter'] = filter unless filter.nil?
278
+ command.query['pageSize'] = page_size unless page_size.nil?
279
+ command.query['pageToken'] = page_token unless page_token.nil?
280
+ command.query['fields'] = fields unless fields.nil?
281
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
282
+ execute_or_queue_command(command, &block)
283
+ end
284
+
285
+ # Gets a recording by recording ID.
286
+ # @param [String] name
287
+ # Required. Resource name of the recording.
288
+ # @param [String] fields
289
+ # Selector specifying which fields to include in a partial response.
290
+ # @param [String] quota_user
291
+ # Available to use for quota purposes for server-side applications. Can be any
292
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
293
+ # @param [Google::Apis::RequestOptions] options
294
+ # Request-specific options
295
+ #
296
+ # @yield [result, err] Result & error if block supplied
297
+ # @yieldparam result [Google::Apis::MeetV2::Recording] parsed result object
298
+ # @yieldparam err [StandardError] error object if request failed
299
+ #
300
+ # @return [Google::Apis::MeetV2::Recording]
301
+ #
302
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
303
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
304
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
305
+ def get_conference_record_recording(name, fields: nil, quota_user: nil, options: nil, &block)
306
+ command = make_simple_command(:get, 'v2/{+name}', options)
307
+ command.response_representation = Google::Apis::MeetV2::Recording::Representation
308
+ command.response_class = Google::Apis::MeetV2::Recording
309
+ command.params['name'] = name unless name.nil?
310
+ command.query['fields'] = fields unless fields.nil?
311
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
312
+ execute_or_queue_command(command, &block)
313
+ end
314
+
315
+ # Lists the recording resources from the conference record. By default, ordered
316
+ # by start time and in ascending order.
317
+ # @param [String] parent
318
+ # Required. Format: `conferenceRecords/`conference_record``
319
+ # @param [Fixnum] page_size
320
+ # Maximum number of recordings to return. The service might return fewer than
321
+ # this value. If unspecified, at most 10 recordings are returned. The maximum
322
+ # value is 100; values above 100 are coerced to 100. Maximum might change in the
323
+ # future.
324
+ # @param [String] page_token
325
+ # Page token returned from previous List Call.
326
+ # @param [String] fields
327
+ # Selector specifying which fields to include in a partial response.
328
+ # @param [String] quota_user
329
+ # Available to use for quota purposes for server-side applications. Can be any
330
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
331
+ # @param [Google::Apis::RequestOptions] options
332
+ # Request-specific options
333
+ #
334
+ # @yield [result, err] Result & error if block supplied
335
+ # @yieldparam result [Google::Apis::MeetV2::ListRecordingsResponse] parsed result object
336
+ # @yieldparam err [StandardError] error object if request failed
337
+ #
338
+ # @return [Google::Apis::MeetV2::ListRecordingsResponse]
339
+ #
340
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
341
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
342
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
343
+ def list_conference_record_recordings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
344
+ command = make_simple_command(:get, 'v2/{+parent}/recordings', options)
345
+ command.response_representation = Google::Apis::MeetV2::ListRecordingsResponse::Representation
346
+ command.response_class = Google::Apis::MeetV2::ListRecordingsResponse
347
+ command.params['parent'] = parent unless parent.nil?
348
+ command.query['pageSize'] = page_size unless page_size.nil?
349
+ command.query['pageToken'] = page_token unless page_token.nil?
350
+ command.query['fields'] = fields unless fields.nil?
351
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
352
+ execute_or_queue_command(command, &block)
353
+ end
354
+
355
+ # Gets a transcript by transcript ID.
356
+ # @param [String] name
357
+ # Required. Resource name of the transcript.
358
+ # @param [String] fields
359
+ # Selector specifying which fields to include in a partial response.
360
+ # @param [String] quota_user
361
+ # Available to use for quota purposes for server-side applications. Can be any
362
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
363
+ # @param [Google::Apis::RequestOptions] options
364
+ # Request-specific options
365
+ #
366
+ # @yield [result, err] Result & error if block supplied
367
+ # @yieldparam result [Google::Apis::MeetV2::Transcript] parsed result object
368
+ # @yieldparam err [StandardError] error object if request failed
369
+ #
370
+ # @return [Google::Apis::MeetV2::Transcript]
371
+ #
372
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
373
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
374
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
375
+ def get_conference_record_transcript(name, fields: nil, quota_user: nil, options: nil, &block)
376
+ command = make_simple_command(:get, 'v2/{+name}', options)
377
+ command.response_representation = Google::Apis::MeetV2::Transcript::Representation
378
+ command.response_class = Google::Apis::MeetV2::Transcript
379
+ command.params['name'] = name unless name.nil?
380
+ command.query['fields'] = fields unless fields.nil?
381
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
382
+ execute_or_queue_command(command, &block)
383
+ end
384
+
385
+ # Lists the set of transcripts from the conference record. By default, ordered
386
+ # by start time and in ascending order.
387
+ # @param [String] parent
388
+ # Required. Format: `conferenceRecords/`conference_record``
389
+ # @param [Fixnum] page_size
390
+ # Maximum number of transcripts to return. The service might return fewer than
391
+ # this value. If unspecified, at most 10 transcripts are returned. The maximum
392
+ # value is 100; values above 100 are coerced to 100. Maximum might change in the
393
+ # future.
394
+ # @param [String] page_token
395
+ # Page token returned from previous List Call.
396
+ # @param [String] fields
397
+ # Selector specifying which fields to include in a partial response.
398
+ # @param [String] quota_user
399
+ # Available to use for quota purposes for server-side applications. Can be any
400
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
401
+ # @param [Google::Apis::RequestOptions] options
402
+ # Request-specific options
403
+ #
404
+ # @yield [result, err] Result & error if block supplied
405
+ # @yieldparam result [Google::Apis::MeetV2::ListTranscriptsResponse] parsed result object
406
+ # @yieldparam err [StandardError] error object if request failed
407
+ #
408
+ # @return [Google::Apis::MeetV2::ListTranscriptsResponse]
409
+ #
410
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
411
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
412
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
413
+ def list_conference_record_transcripts(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
414
+ command = make_simple_command(:get, 'v2/{+parent}/transcripts', options)
415
+ command.response_representation = Google::Apis::MeetV2::ListTranscriptsResponse::Representation
416
+ command.response_class = Google::Apis::MeetV2::ListTranscriptsResponse
417
+ command.params['parent'] = parent unless parent.nil?
418
+ command.query['pageSize'] = page_size unless page_size.nil?
419
+ command.query['pageToken'] = page_token unless page_token.nil?
420
+ command.query['fields'] = fields unless fields.nil?
421
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
422
+ execute_or_queue_command(command, &block)
423
+ end
424
+
425
+ # Gets a `TranscriptEntry` resource by entry ID. Note: The transcript entries
426
+ # returned by the Google Meet API might not match the transcription found in the
427
+ # Google Docs transcript file. This can occur when the Google Docs transcript
428
+ # file is modified after generation.
429
+ # @param [String] name
430
+ # Required. Resource name of the `TranscriptEntry`.
431
+ # @param [String] fields
432
+ # Selector specifying which fields to include in a partial response.
433
+ # @param [String] quota_user
434
+ # Available to use for quota purposes for server-side applications. Can be any
435
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
436
+ # @param [Google::Apis::RequestOptions] options
437
+ # Request-specific options
438
+ #
439
+ # @yield [result, err] Result & error if block supplied
440
+ # @yieldparam result [Google::Apis::MeetV2::TranscriptEntry] parsed result object
441
+ # @yieldparam err [StandardError] error object if request failed
442
+ #
443
+ # @return [Google::Apis::MeetV2::TranscriptEntry]
444
+ #
445
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
446
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
447
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
448
+ def get_conference_record_transcript_entry(name, fields: nil, quota_user: nil, options: nil, &block)
449
+ command = make_simple_command(:get, 'v2/{+name}', options)
450
+ command.response_representation = Google::Apis::MeetV2::TranscriptEntry::Representation
451
+ command.response_class = Google::Apis::MeetV2::TranscriptEntry
452
+ command.params['name'] = name unless name.nil?
453
+ command.query['fields'] = fields unless fields.nil?
454
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
455
+ execute_or_queue_command(command, &block)
456
+ end
457
+
458
+ # Lists the structured transcript entries per transcript. By default, ordered by
459
+ # start time and in ascending order. Note: The transcript entries returned by
460
+ # the Google Meet API might not match the transcription found in the Google Docs
461
+ # transcript file. This can occur when the Google Docs transcript file is
462
+ # modified after generation.
463
+ # @param [String] parent
464
+ # Required. Format: `conferenceRecords/`conference_record`/transcripts/`
465
+ # transcript``
466
+ # @param [Fixnum] page_size
467
+ # Maximum number of entries to return. The service might return fewer than this
468
+ # value. If unspecified, at most 10 entries are returned. The maximum value is
469
+ # 100; values above 100 are coerced to 100. Maximum might change in the future.
470
+ # @param [String] page_token
471
+ # Page token returned from previous List Call.
472
+ # @param [String] fields
473
+ # Selector specifying which fields to include in a partial response.
474
+ # @param [String] quota_user
475
+ # Available to use for quota purposes for server-side applications. Can be any
476
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
477
+ # @param [Google::Apis::RequestOptions] options
478
+ # Request-specific options
479
+ #
480
+ # @yield [result, err] Result & error if block supplied
481
+ # @yieldparam result [Google::Apis::MeetV2::ListTranscriptEntriesResponse] parsed result object
482
+ # @yieldparam err [StandardError] error object if request failed
483
+ #
484
+ # @return [Google::Apis::MeetV2::ListTranscriptEntriesResponse]
485
+ #
486
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
487
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
488
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
489
+ def list_conference_record_transcript_entries(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
490
+ command = make_simple_command(:get, 'v2/{+parent}/entries', options)
491
+ command.response_representation = Google::Apis::MeetV2::ListTranscriptEntriesResponse::Representation
492
+ command.response_class = Google::Apis::MeetV2::ListTranscriptEntriesResponse
493
+ command.params['parent'] = parent unless parent.nil?
494
+ command.query['pageSize'] = page_size unless page_size.nil?
495
+ command.query['pageToken'] = page_token unless page_token.nil?
496
+ command.query['fields'] = fields unless fields.nil?
497
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
498
+ execute_or_queue_command(command, &block)
499
+ end
500
+
501
+ # Creates a space.
502
+ # @param [Google::Apis::MeetV2::Space] space_object
503
+ # @param [String] fields
504
+ # Selector specifying which fields to include in a partial response.
505
+ # @param [String] quota_user
506
+ # Available to use for quota purposes for server-side applications. Can be any
507
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
508
+ # @param [Google::Apis::RequestOptions] options
509
+ # Request-specific options
510
+ #
511
+ # @yield [result, err] Result & error if block supplied
512
+ # @yieldparam result [Google::Apis::MeetV2::Space] parsed result object
513
+ # @yieldparam err [StandardError] error object if request failed
514
+ #
515
+ # @return [Google::Apis::MeetV2::Space]
516
+ #
517
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
518
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
519
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
520
+ def create_space(space_object = nil, fields: nil, quota_user: nil, options: nil, &block)
521
+ command = make_simple_command(:post, 'v2/spaces', options)
522
+ command.request_representation = Google::Apis::MeetV2::Space::Representation
523
+ command.request_object = space_object
524
+ command.response_representation = Google::Apis::MeetV2::Space::Representation
525
+ command.response_class = Google::Apis::MeetV2::Space
526
+ command.query['fields'] = fields unless fields.nil?
527
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
528
+ execute_or_queue_command(command, &block)
529
+ end
530
+
531
+ # Ends an active conference (if there's one).
532
+ # @param [String] name
533
+ # Required. Resource name of the space.
534
+ # @param [Google::Apis::MeetV2::EndActiveConferenceRequest] end_active_conference_request_object
535
+ # @param [String] fields
536
+ # Selector specifying which fields to include in a partial response.
537
+ # @param [String] quota_user
538
+ # Available to use for quota purposes for server-side applications. Can be any
539
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
540
+ # @param [Google::Apis::RequestOptions] options
541
+ # Request-specific options
542
+ #
543
+ # @yield [result, err] Result & error if block supplied
544
+ # @yieldparam result [Google::Apis::MeetV2::Empty] parsed result object
545
+ # @yieldparam err [StandardError] error object if request failed
546
+ #
547
+ # @return [Google::Apis::MeetV2::Empty]
548
+ #
549
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
550
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
551
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
552
+ def end_space_active_conference(name, end_active_conference_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
553
+ command = make_simple_command(:post, 'v2/{+name}:endActiveConference', options)
554
+ command.request_representation = Google::Apis::MeetV2::EndActiveConferenceRequest::Representation
555
+ command.request_object = end_active_conference_request_object
556
+ command.response_representation = Google::Apis::MeetV2::Empty::Representation
557
+ command.response_class = Google::Apis::MeetV2::Empty
558
+ command.params['name'] = name unless name.nil?
559
+ command.query['fields'] = fields unless fields.nil?
560
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
561
+ execute_or_queue_command(command, &block)
562
+ end
563
+
564
+ # Gets a space by `space_id` or `meeting_code`.
565
+ # @param [String] name
566
+ # Required. Resource name of the space.
567
+ # @param [String] fields
568
+ # Selector specifying which fields to include in a partial response.
569
+ # @param [String] quota_user
570
+ # Available to use for quota purposes for server-side applications. Can be any
571
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
572
+ # @param [Google::Apis::RequestOptions] options
573
+ # Request-specific options
574
+ #
575
+ # @yield [result, err] Result & error if block supplied
576
+ # @yieldparam result [Google::Apis::MeetV2::Space] parsed result object
577
+ # @yieldparam err [StandardError] error object if request failed
578
+ #
579
+ # @return [Google::Apis::MeetV2::Space]
580
+ #
581
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
582
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
583
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
584
+ def get_space(name, fields: nil, quota_user: nil, options: nil, &block)
585
+ command = make_simple_command(:get, 'v2/{+name}', options)
586
+ command.response_representation = Google::Apis::MeetV2::Space::Representation
587
+ command.response_class = Google::Apis::MeetV2::Space
588
+ command.params['name'] = name unless name.nil?
589
+ command.query['fields'] = fields unless fields.nil?
590
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
591
+ execute_or_queue_command(command, &block)
592
+ end
593
+
594
+ # Updates a space.
595
+ # @param [String] name
596
+ # Immutable. Resource name of the space. Format: `spaces/`space``
597
+ # @param [Google::Apis::MeetV2::Space] space_object
598
+ # @param [String] update_mask
599
+ # Optional. Field mask used to specify the fields to be updated in the space. If
600
+ # update_mask isn't provided, it defaults to '*' and updates all fields provided
601
+ # in the request, including deleting fields not set in the request.
602
+ # @param [String] fields
603
+ # Selector specifying which fields to include in a partial response.
604
+ # @param [String] quota_user
605
+ # Available to use for quota purposes for server-side applications. Can be any
606
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
607
+ # @param [Google::Apis::RequestOptions] options
608
+ # Request-specific options
609
+ #
610
+ # @yield [result, err] Result & error if block supplied
611
+ # @yieldparam result [Google::Apis::MeetV2::Space] parsed result object
612
+ # @yieldparam err [StandardError] error object if request failed
613
+ #
614
+ # @return [Google::Apis::MeetV2::Space]
615
+ #
616
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
617
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
618
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
619
+ def patch_space(name, space_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
620
+ command = make_simple_command(:patch, 'v2/{+name}', options)
621
+ command.request_representation = Google::Apis::MeetV2::Space::Representation
622
+ command.request_object = space_object
623
+ command.response_representation = Google::Apis::MeetV2::Space::Representation
624
+ command.response_class = Google::Apis::MeetV2::Space
625
+ command.params['name'] = name unless name.nil?
626
+ command.query['updateMask'] = update_mask unless update_mask.nil?
627
+ command.query['fields'] = fields unless fields.nil?
628
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
629
+ execute_or_queue_command(command, &block)
630
+ end
631
+
632
+ protected
633
+
634
+ def apply_command_defaults(command)
635
+ command.query['key'] = key unless key.nil?
636
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
637
+ end
638
+ end
639
+ end
640
+ end
641
+ end