google-apps-meet-v2beta 0.a → 0.1.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/.yardopts +12 -0
- data/AUTHENTICATION.md +149 -0
- data/README.md +144 -8
- data/lib/google/apps/meet/v2beta/conference_records_service/client.rb +1595 -0
- data/lib/google/apps/meet/v2beta/conference_records_service/credentials.rb +44 -0
- data/lib/google/apps/meet/v2beta/conference_records_service/paths.rb +136 -0
- data/lib/google/apps/meet/v2beta/conference_records_service/rest/client.rb +1490 -0
- data/lib/google/apps/meet/v2beta/conference_records_service/rest/service_stub.rb +754 -0
- data/lib/google/apps/meet/v2beta/conference_records_service/rest.rb +52 -0
- data/lib/google/apps/meet/v2beta/conference_records_service.rb +55 -0
- data/lib/google/apps/meet/v2beta/resource_pb.rb +64 -0
- data/lib/google/apps/meet/v2beta/rest.rb +38 -0
- data/lib/google/apps/meet/v2beta/service_pb.rb +73 -0
- data/lib/google/apps/meet/v2beta/service_services_pb.rb +122 -0
- data/lib/google/apps/meet/v2beta/spaces_service/client.rb +687 -0
- data/lib/google/apps/meet/v2beta/spaces_service/credentials.rb +44 -0
- data/lib/google/apps/meet/v2beta/spaces_service/paths.rb +61 -0
- data/lib/google/apps/meet/v2beta/spaces_service/rest/client.rb +638 -0
- data/lib/google/apps/meet/v2beta/spaces_service/rest/service_stub.rb +285 -0
- data/lib/google/apps/meet/v2beta/spaces_service/rest.rb +52 -0
- data/lib/google/apps/meet/v2beta/spaces_service.rb +55 -0
- data/lib/google/apps/meet/v2beta/version.rb +7 -2
- data/lib/google/apps/meet/v2beta.rb +46 -0
- data/lib/google-apps-meet-v2beta.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +394 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/apps/meet/v2beta/resource.rb +375 -0
- data/proto_docs/google/apps/meet/v2beta/service.rb +350 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- metadata +190 -13
@@ -0,0 +1,1595 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/errors"
|
20
|
+
require "google/apps/meet/v2beta/service_pb"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Apps
|
24
|
+
module Meet
|
25
|
+
module V2beta
|
26
|
+
module ConferenceRecordsService
|
27
|
+
##
|
28
|
+
# Client for the ConferenceRecordsService service.
|
29
|
+
#
|
30
|
+
# REST API for services dealing with conference records.
|
31
|
+
#
|
32
|
+
class Client
|
33
|
+
include Paths
|
34
|
+
|
35
|
+
# @private
|
36
|
+
attr_reader :conference_records_service_stub
|
37
|
+
|
38
|
+
##
|
39
|
+
# Configure the ConferenceRecordsService Client class.
|
40
|
+
#
|
41
|
+
# See {::Google::Apps::Meet::V2beta::ConferenceRecordsService::Client::Configuration}
|
42
|
+
# for a description of the configuration fields.
|
43
|
+
#
|
44
|
+
# @example
|
45
|
+
#
|
46
|
+
# # Modify the configuration for all ConferenceRecordsService clients
|
47
|
+
# ::Google::Apps::Meet::V2beta::ConferenceRecordsService::Client.configure do |config|
|
48
|
+
# config.timeout = 10.0
|
49
|
+
# end
|
50
|
+
#
|
51
|
+
# @yield [config] Configure the Client client.
|
52
|
+
# @yieldparam config [Client::Configuration]
|
53
|
+
#
|
54
|
+
# @return [Client::Configuration]
|
55
|
+
#
|
56
|
+
def self.configure
|
57
|
+
@configure ||= begin
|
58
|
+
namespace = ["Google", "Apps", "Meet", "V2beta"]
|
59
|
+
parent_config = while namespace.any?
|
60
|
+
parent_name = namespace.join "::"
|
61
|
+
parent_const = const_get parent_name
|
62
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
63
|
+
namespace.pop
|
64
|
+
end
|
65
|
+
default_config = Client::Configuration.new parent_config
|
66
|
+
|
67
|
+
default_config.rpcs.get_conference_record.timeout = 60.0
|
68
|
+
default_config.rpcs.get_conference_record.retry_policy = {
|
69
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
70
|
+
}
|
71
|
+
|
72
|
+
default_config.rpcs.list_conference_records.timeout = 60.0
|
73
|
+
default_config.rpcs.list_conference_records.retry_policy = {
|
74
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
75
|
+
}
|
76
|
+
|
77
|
+
default_config.rpcs.get_participant.timeout = 60.0
|
78
|
+
default_config.rpcs.get_participant.retry_policy = {
|
79
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
80
|
+
}
|
81
|
+
|
82
|
+
default_config.rpcs.list_participants.timeout = 60.0
|
83
|
+
default_config.rpcs.list_participants.retry_policy = {
|
84
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
85
|
+
}
|
86
|
+
|
87
|
+
default_config.rpcs.get_participant_session.timeout = 60.0
|
88
|
+
default_config.rpcs.get_participant_session.retry_policy = {
|
89
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
90
|
+
}
|
91
|
+
|
92
|
+
default_config.rpcs.list_participant_sessions.timeout = 60.0
|
93
|
+
default_config.rpcs.list_participant_sessions.retry_policy = {
|
94
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
95
|
+
}
|
96
|
+
|
97
|
+
default_config.rpcs.get_recording.timeout = 60.0
|
98
|
+
default_config.rpcs.get_recording.retry_policy = {
|
99
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
100
|
+
}
|
101
|
+
|
102
|
+
default_config.rpcs.list_recordings.timeout = 60.0
|
103
|
+
default_config.rpcs.list_recordings.retry_policy = {
|
104
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
105
|
+
}
|
106
|
+
|
107
|
+
default_config.rpcs.get_transcript.timeout = 60.0
|
108
|
+
default_config.rpcs.get_transcript.retry_policy = {
|
109
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
110
|
+
}
|
111
|
+
|
112
|
+
default_config.rpcs.list_transcripts.timeout = 60.0
|
113
|
+
default_config.rpcs.list_transcripts.retry_policy = {
|
114
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
115
|
+
}
|
116
|
+
|
117
|
+
default_config.rpcs.get_transcript_entry.timeout = 60.0
|
118
|
+
default_config.rpcs.get_transcript_entry.retry_policy = {
|
119
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
120
|
+
}
|
121
|
+
|
122
|
+
default_config.rpcs.list_transcript_entries.timeout = 60.0
|
123
|
+
default_config.rpcs.list_transcript_entries.retry_policy = {
|
124
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
125
|
+
}
|
126
|
+
|
127
|
+
default_config
|
128
|
+
end
|
129
|
+
yield @configure if block_given?
|
130
|
+
@configure
|
131
|
+
end
|
132
|
+
|
133
|
+
##
|
134
|
+
# Configure the ConferenceRecordsService Client instance.
|
135
|
+
#
|
136
|
+
# The configuration is set to the derived mode, meaning that values can be changed,
|
137
|
+
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
138
|
+
# should be made on {Client.configure}.
|
139
|
+
#
|
140
|
+
# See {::Google::Apps::Meet::V2beta::ConferenceRecordsService::Client::Configuration}
|
141
|
+
# for a description of the configuration fields.
|
142
|
+
#
|
143
|
+
# @yield [config] Configure the Client client.
|
144
|
+
# @yieldparam config [Client::Configuration]
|
145
|
+
#
|
146
|
+
# @return [Client::Configuration]
|
147
|
+
#
|
148
|
+
def configure
|
149
|
+
yield @config if block_given?
|
150
|
+
@config
|
151
|
+
end
|
152
|
+
|
153
|
+
##
|
154
|
+
# Create a new ConferenceRecordsService client object.
|
155
|
+
#
|
156
|
+
# @example
|
157
|
+
#
|
158
|
+
# # Create a client using the default configuration
|
159
|
+
# client = ::Google::Apps::Meet::V2beta::ConferenceRecordsService::Client.new
|
160
|
+
#
|
161
|
+
# # Create a client using a custom configuration
|
162
|
+
# client = ::Google::Apps::Meet::V2beta::ConferenceRecordsService::Client.new do |config|
|
163
|
+
# config.timeout = 10.0
|
164
|
+
# end
|
165
|
+
#
|
166
|
+
# @yield [config] Configure the ConferenceRecordsService client.
|
167
|
+
# @yieldparam config [Client::Configuration]
|
168
|
+
#
|
169
|
+
def initialize
|
170
|
+
# These require statements are intentionally placed here to initialize
|
171
|
+
# the gRPC module only when it's required.
|
172
|
+
# See https://github.com/googleapis/toolkit/issues/446
|
173
|
+
require "gapic/grpc"
|
174
|
+
require "google/apps/meet/v2beta/service_services_pb"
|
175
|
+
|
176
|
+
# Create the configuration object
|
177
|
+
@config = Configuration.new Client.configure
|
178
|
+
|
179
|
+
# Yield the configuration if needed
|
180
|
+
yield @config if block_given?
|
181
|
+
|
182
|
+
# Create credentials
|
183
|
+
credentials = @config.credentials
|
184
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
185
|
+
# but only if the default endpoint does not have a region prefix.
|
186
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
187
|
+
!@config.endpoint.split(".").first.include?("-")
|
188
|
+
credentials ||= Credentials.default scope: @config.scope,
|
189
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
190
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
191
|
+
credentials = Credentials.new credentials, scope: @config.scope
|
192
|
+
end
|
193
|
+
@quota_project_id = @config.quota_project
|
194
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
195
|
+
|
196
|
+
@conference_records_service_stub = ::Gapic::ServiceStub.new(
|
197
|
+
::Google::Apps::Meet::V2beta::ConferenceRecordsService::Stub,
|
198
|
+
credentials: credentials,
|
199
|
+
endpoint: @config.endpoint,
|
200
|
+
channel_args: @config.channel_args,
|
201
|
+
interceptors: @config.interceptors,
|
202
|
+
channel_pool_config: @config.channel_pool
|
203
|
+
)
|
204
|
+
end
|
205
|
+
|
206
|
+
# Service calls
|
207
|
+
|
208
|
+
##
|
209
|
+
# [Developer Preview](https://developers.google.com/workspace/preview).
|
210
|
+
# Gets a conference record by conference ID.
|
211
|
+
#
|
212
|
+
# @overload get_conference_record(request, options = nil)
|
213
|
+
# Pass arguments to `get_conference_record` via a request object, either of type
|
214
|
+
# {::Google::Apps::Meet::V2beta::GetConferenceRecordRequest} or an equivalent Hash.
|
215
|
+
#
|
216
|
+
# @param request [::Google::Apps::Meet::V2beta::GetConferenceRecordRequest, ::Hash]
|
217
|
+
# A request object representing the call parameters. Required. To specify no
|
218
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
219
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
220
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
221
|
+
#
|
222
|
+
# @overload get_conference_record(name: nil)
|
223
|
+
# Pass arguments to `get_conference_record` via keyword arguments. Note that at
|
224
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
225
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
226
|
+
#
|
227
|
+
# @param name [::String]
|
228
|
+
# Required. Resource name of the conference.
|
229
|
+
#
|
230
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
231
|
+
# @yieldparam response [::Google::Apps::Meet::V2beta::ConferenceRecord]
|
232
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
233
|
+
#
|
234
|
+
# @return [::Google::Apps::Meet::V2beta::ConferenceRecord]
|
235
|
+
#
|
236
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
237
|
+
#
|
238
|
+
# @example Basic example
|
239
|
+
# require "google/apps/meet/v2beta"
|
240
|
+
#
|
241
|
+
# # Create a client object. The client can be reused for multiple calls.
|
242
|
+
# client = Google::Apps::Meet::V2beta::ConferenceRecordsService::Client.new
|
243
|
+
#
|
244
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
245
|
+
# request = Google::Apps::Meet::V2beta::GetConferenceRecordRequest.new
|
246
|
+
#
|
247
|
+
# # Call the get_conference_record method.
|
248
|
+
# result = client.get_conference_record request
|
249
|
+
#
|
250
|
+
# # The returned object is of type Google::Apps::Meet::V2beta::ConferenceRecord.
|
251
|
+
# p result
|
252
|
+
#
|
253
|
+
def get_conference_record request, options = nil
|
254
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
255
|
+
|
256
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2beta::GetConferenceRecordRequest
|
257
|
+
|
258
|
+
# Converts hash and nil to an options object
|
259
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
260
|
+
|
261
|
+
# Customize the options with defaults
|
262
|
+
metadata = @config.rpcs.get_conference_record.metadata.to_h
|
263
|
+
|
264
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
265
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
266
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
267
|
+
gapic_version: ::Google::Apps::Meet::V2beta::VERSION
|
268
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
269
|
+
|
270
|
+
header_params = {}
|
271
|
+
if request.name
|
272
|
+
header_params["name"] = request.name
|
273
|
+
end
|
274
|
+
|
275
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
276
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
277
|
+
|
278
|
+
options.apply_defaults timeout: @config.rpcs.get_conference_record.timeout,
|
279
|
+
metadata: metadata,
|
280
|
+
retry_policy: @config.rpcs.get_conference_record.retry_policy
|
281
|
+
|
282
|
+
options.apply_defaults timeout: @config.timeout,
|
283
|
+
metadata: @config.metadata,
|
284
|
+
retry_policy: @config.retry_policy
|
285
|
+
|
286
|
+
@conference_records_service_stub.call_rpc :get_conference_record, request, options: options do |response, operation|
|
287
|
+
yield response, operation if block_given?
|
288
|
+
return response
|
289
|
+
end
|
290
|
+
rescue ::GRPC::BadStatus => e
|
291
|
+
raise ::Google::Cloud::Error.from_error(e)
|
292
|
+
end
|
293
|
+
|
294
|
+
##
|
295
|
+
# [Developer Preview](https://developers.google.com/workspace/preview).
|
296
|
+
# Lists the conference records by start time and in descending order.
|
297
|
+
#
|
298
|
+
# @overload list_conference_records(request, options = nil)
|
299
|
+
# Pass arguments to `list_conference_records` via a request object, either of type
|
300
|
+
# {::Google::Apps::Meet::V2beta::ListConferenceRecordsRequest} or an equivalent Hash.
|
301
|
+
#
|
302
|
+
# @param request [::Google::Apps::Meet::V2beta::ListConferenceRecordsRequest, ::Hash]
|
303
|
+
# A request object representing the call parameters. Required. To specify no
|
304
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
305
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
306
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
307
|
+
#
|
308
|
+
# @overload list_conference_records(page_size: nil, page_token: nil, filter: nil)
|
309
|
+
# Pass arguments to `list_conference_records` via keyword arguments. Note that at
|
310
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
311
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
312
|
+
#
|
313
|
+
# @param page_size [::Integer]
|
314
|
+
# Optional. Maximum number of conference records to return. The service might
|
315
|
+
# return fewer than this value. If unspecified, at most 25 conference records
|
316
|
+
# are returned. The maximum value is 100; values above 100 are coerced to
|
317
|
+
# 100. Maximum might change in the future.
|
318
|
+
# @param page_token [::String]
|
319
|
+
# Optional. Page token returned from previous List Call.
|
320
|
+
# @param filter [::String]
|
321
|
+
# Optional. User specified filtering condition in EBNF format. The following
|
322
|
+
# are the filterable fields:
|
323
|
+
#
|
324
|
+
# * `space.meeting_code`
|
325
|
+
# * `space.name`
|
326
|
+
# * `start_time`
|
327
|
+
# * `end_time`
|
328
|
+
#
|
329
|
+
# For example, `space.meeting_code = "abc-mnop-xyz"`.
|
330
|
+
#
|
331
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
332
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2beta::ConferenceRecord>]
|
333
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
334
|
+
#
|
335
|
+
# @return [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2beta::ConferenceRecord>]
|
336
|
+
#
|
337
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
338
|
+
#
|
339
|
+
# @example Basic example
|
340
|
+
# require "google/apps/meet/v2beta"
|
341
|
+
#
|
342
|
+
# # Create a client object. The client can be reused for multiple calls.
|
343
|
+
# client = Google::Apps::Meet::V2beta::ConferenceRecordsService::Client.new
|
344
|
+
#
|
345
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
346
|
+
# request = Google::Apps::Meet::V2beta::ListConferenceRecordsRequest.new
|
347
|
+
#
|
348
|
+
# # Call the list_conference_records method.
|
349
|
+
# result = client.list_conference_records request
|
350
|
+
#
|
351
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
352
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
353
|
+
# result.each do |item|
|
354
|
+
# # Each element is of type ::Google::Apps::Meet::V2beta::ConferenceRecord.
|
355
|
+
# p item
|
356
|
+
# end
|
357
|
+
#
|
358
|
+
def list_conference_records request, options = nil
|
359
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
360
|
+
|
361
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2beta::ListConferenceRecordsRequest
|
362
|
+
|
363
|
+
# Converts hash and nil to an options object
|
364
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
365
|
+
|
366
|
+
# Customize the options with defaults
|
367
|
+
metadata = @config.rpcs.list_conference_records.metadata.to_h
|
368
|
+
|
369
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
370
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
371
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
372
|
+
gapic_version: ::Google::Apps::Meet::V2beta::VERSION
|
373
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
374
|
+
|
375
|
+
options.apply_defaults timeout: @config.rpcs.list_conference_records.timeout,
|
376
|
+
metadata: metadata,
|
377
|
+
retry_policy: @config.rpcs.list_conference_records.retry_policy
|
378
|
+
|
379
|
+
options.apply_defaults timeout: @config.timeout,
|
380
|
+
metadata: @config.metadata,
|
381
|
+
retry_policy: @config.retry_policy
|
382
|
+
|
383
|
+
@conference_records_service_stub.call_rpc :list_conference_records, request, options: options do |response, operation|
|
384
|
+
response = ::Gapic::PagedEnumerable.new @conference_records_service_stub, :list_conference_records, request, response, operation, options
|
385
|
+
yield response, operation if block_given?
|
386
|
+
return response
|
387
|
+
end
|
388
|
+
rescue ::GRPC::BadStatus => e
|
389
|
+
raise ::Google::Cloud::Error.from_error(e)
|
390
|
+
end
|
391
|
+
|
392
|
+
##
|
393
|
+
# [Developer Preview](https://developers.google.com/workspace/preview).
|
394
|
+
# Gets a participant by participant ID.
|
395
|
+
#
|
396
|
+
# @overload get_participant(request, options = nil)
|
397
|
+
# Pass arguments to `get_participant` via a request object, either of type
|
398
|
+
# {::Google::Apps::Meet::V2beta::GetParticipantRequest} or an equivalent Hash.
|
399
|
+
#
|
400
|
+
# @param request [::Google::Apps::Meet::V2beta::GetParticipantRequest, ::Hash]
|
401
|
+
# A request object representing the call parameters. Required. To specify no
|
402
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
403
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
404
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
405
|
+
#
|
406
|
+
# @overload get_participant(name: nil)
|
407
|
+
# Pass arguments to `get_participant` via keyword arguments. Note that at
|
408
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
409
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
410
|
+
#
|
411
|
+
# @param name [::String]
|
412
|
+
# Required. Resource name of the participant.
|
413
|
+
#
|
414
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
415
|
+
# @yieldparam response [::Google::Apps::Meet::V2beta::Participant]
|
416
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
417
|
+
#
|
418
|
+
# @return [::Google::Apps::Meet::V2beta::Participant]
|
419
|
+
#
|
420
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
421
|
+
#
|
422
|
+
# @example Basic example
|
423
|
+
# require "google/apps/meet/v2beta"
|
424
|
+
#
|
425
|
+
# # Create a client object. The client can be reused for multiple calls.
|
426
|
+
# client = Google::Apps::Meet::V2beta::ConferenceRecordsService::Client.new
|
427
|
+
#
|
428
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
429
|
+
# request = Google::Apps::Meet::V2beta::GetParticipantRequest.new
|
430
|
+
#
|
431
|
+
# # Call the get_participant method.
|
432
|
+
# result = client.get_participant request
|
433
|
+
#
|
434
|
+
# # The returned object is of type Google::Apps::Meet::V2beta::Participant.
|
435
|
+
# p result
|
436
|
+
#
|
437
|
+
def get_participant request, options = nil
|
438
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
439
|
+
|
440
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2beta::GetParticipantRequest
|
441
|
+
|
442
|
+
# Converts hash and nil to an options object
|
443
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
444
|
+
|
445
|
+
# Customize the options with defaults
|
446
|
+
metadata = @config.rpcs.get_participant.metadata.to_h
|
447
|
+
|
448
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
449
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
450
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
451
|
+
gapic_version: ::Google::Apps::Meet::V2beta::VERSION
|
452
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
453
|
+
|
454
|
+
header_params = {}
|
455
|
+
if request.name
|
456
|
+
header_params["name"] = request.name
|
457
|
+
end
|
458
|
+
|
459
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
460
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
461
|
+
|
462
|
+
options.apply_defaults timeout: @config.rpcs.get_participant.timeout,
|
463
|
+
metadata: metadata,
|
464
|
+
retry_policy: @config.rpcs.get_participant.retry_policy
|
465
|
+
|
466
|
+
options.apply_defaults timeout: @config.timeout,
|
467
|
+
metadata: @config.metadata,
|
468
|
+
retry_policy: @config.retry_policy
|
469
|
+
|
470
|
+
@conference_records_service_stub.call_rpc :get_participant, request, options: options do |response, operation|
|
471
|
+
yield response, operation if block_given?
|
472
|
+
return response
|
473
|
+
end
|
474
|
+
rescue ::GRPC::BadStatus => e
|
475
|
+
raise ::Google::Cloud::Error.from_error(e)
|
476
|
+
end
|
477
|
+
|
478
|
+
##
|
479
|
+
# [Developer Preview](https://developers.google.com/workspace/preview).
|
480
|
+
# Lists the participants in a conference record, by default ordered by join
|
481
|
+
# time and in descending order. This API supports `fields` as standard
|
482
|
+
# parameters like every other API. However, when the `fields` request
|
483
|
+
# parameter is omitted, this API defaults to `'participants/*,
|
484
|
+
# next_page_token'`.
|
485
|
+
#
|
486
|
+
# @overload list_participants(request, options = nil)
|
487
|
+
# Pass arguments to `list_participants` via a request object, either of type
|
488
|
+
# {::Google::Apps::Meet::V2beta::ListParticipantsRequest} or an equivalent Hash.
|
489
|
+
#
|
490
|
+
# @param request [::Google::Apps::Meet::V2beta::ListParticipantsRequest, ::Hash]
|
491
|
+
# A request object representing the call parameters. Required. To specify no
|
492
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
493
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
494
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
495
|
+
#
|
496
|
+
# @overload list_participants(parent: nil, page_size: nil, page_token: nil, filter: nil)
|
497
|
+
# Pass arguments to `list_participants` via keyword arguments. Note that at
|
498
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
499
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
500
|
+
#
|
501
|
+
# @param parent [::String]
|
502
|
+
# Required. Format: `conferenceRecords/{conference_record}`
|
503
|
+
# @param page_size [::Integer]
|
504
|
+
# Maximum number of participants to return. The service might return fewer
|
505
|
+
# than this value.
|
506
|
+
# If unspecified, at most 100 participants are returned.
|
507
|
+
# The maximum value is 250; values above 250 are coerced to 250.
|
508
|
+
# Maximum might change in the future.
|
509
|
+
# @param page_token [::String]
|
510
|
+
# Page token returned from previous List Call.
|
511
|
+
# @param filter [::String]
|
512
|
+
# Optional. User specified filtering condition in EBNF format. The following
|
513
|
+
# are the filterable fields:
|
514
|
+
#
|
515
|
+
# * `earliest_start_time`
|
516
|
+
# * `latest_end_time`
|
517
|
+
#
|
518
|
+
# For example, `latest_end_time IS NULL` returns active participants in
|
519
|
+
# the conference.
|
520
|
+
#
|
521
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
522
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2beta::Participant>]
|
523
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
524
|
+
#
|
525
|
+
# @return [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2beta::Participant>]
|
526
|
+
#
|
527
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
528
|
+
#
|
529
|
+
# @example Basic example
|
530
|
+
# require "google/apps/meet/v2beta"
|
531
|
+
#
|
532
|
+
# # Create a client object. The client can be reused for multiple calls.
|
533
|
+
# client = Google::Apps::Meet::V2beta::ConferenceRecordsService::Client.new
|
534
|
+
#
|
535
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
536
|
+
# request = Google::Apps::Meet::V2beta::ListParticipantsRequest.new
|
537
|
+
#
|
538
|
+
# # Call the list_participants method.
|
539
|
+
# result = client.list_participants request
|
540
|
+
#
|
541
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
542
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
543
|
+
# result.each do |item|
|
544
|
+
# # Each element is of type ::Google::Apps::Meet::V2beta::Participant.
|
545
|
+
# p item
|
546
|
+
# end
|
547
|
+
#
|
548
|
+
def list_participants request, options = nil
|
549
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
550
|
+
|
551
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2beta::ListParticipantsRequest
|
552
|
+
|
553
|
+
# Converts hash and nil to an options object
|
554
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
555
|
+
|
556
|
+
# Customize the options with defaults
|
557
|
+
metadata = @config.rpcs.list_participants.metadata.to_h
|
558
|
+
|
559
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
560
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
561
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
562
|
+
gapic_version: ::Google::Apps::Meet::V2beta::VERSION
|
563
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
564
|
+
|
565
|
+
header_params = {}
|
566
|
+
if request.parent
|
567
|
+
header_params["parent"] = request.parent
|
568
|
+
end
|
569
|
+
|
570
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
571
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
572
|
+
|
573
|
+
options.apply_defaults timeout: @config.rpcs.list_participants.timeout,
|
574
|
+
metadata: metadata,
|
575
|
+
retry_policy: @config.rpcs.list_participants.retry_policy
|
576
|
+
|
577
|
+
options.apply_defaults timeout: @config.timeout,
|
578
|
+
metadata: @config.metadata,
|
579
|
+
retry_policy: @config.retry_policy
|
580
|
+
|
581
|
+
@conference_records_service_stub.call_rpc :list_participants, request, options: options do |response, operation|
|
582
|
+
response = ::Gapic::PagedEnumerable.new @conference_records_service_stub, :list_participants, request, response, operation, options
|
583
|
+
yield response, operation if block_given?
|
584
|
+
return response
|
585
|
+
end
|
586
|
+
rescue ::GRPC::BadStatus => e
|
587
|
+
raise ::Google::Cloud::Error.from_error(e)
|
588
|
+
end
|
589
|
+
|
590
|
+
##
|
591
|
+
# [Developer Preview](https://developers.google.com/workspace/preview).
|
592
|
+
# Gets a participant session by participant session ID.
|
593
|
+
#
|
594
|
+
# @overload get_participant_session(request, options = nil)
|
595
|
+
# Pass arguments to `get_participant_session` via a request object, either of type
|
596
|
+
# {::Google::Apps::Meet::V2beta::GetParticipantSessionRequest} or an equivalent Hash.
|
597
|
+
#
|
598
|
+
# @param request [::Google::Apps::Meet::V2beta::GetParticipantSessionRequest, ::Hash]
|
599
|
+
# A request object representing the call parameters. Required. To specify no
|
600
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
601
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
602
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
603
|
+
#
|
604
|
+
# @overload get_participant_session(name: nil)
|
605
|
+
# Pass arguments to `get_participant_session` via keyword arguments. Note that at
|
606
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
607
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
608
|
+
#
|
609
|
+
# @param name [::String]
|
610
|
+
# Required. Resource name of the participant.
|
611
|
+
#
|
612
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
613
|
+
# @yieldparam response [::Google::Apps::Meet::V2beta::ParticipantSession]
|
614
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
615
|
+
#
|
616
|
+
# @return [::Google::Apps::Meet::V2beta::ParticipantSession]
|
617
|
+
#
|
618
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
619
|
+
#
|
620
|
+
# @example Basic example
|
621
|
+
# require "google/apps/meet/v2beta"
|
622
|
+
#
|
623
|
+
# # Create a client object. The client can be reused for multiple calls.
|
624
|
+
# client = Google::Apps::Meet::V2beta::ConferenceRecordsService::Client.new
|
625
|
+
#
|
626
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
627
|
+
# request = Google::Apps::Meet::V2beta::GetParticipantSessionRequest.new
|
628
|
+
#
|
629
|
+
# # Call the get_participant_session method.
|
630
|
+
# result = client.get_participant_session request
|
631
|
+
#
|
632
|
+
# # The returned object is of type Google::Apps::Meet::V2beta::ParticipantSession.
|
633
|
+
# p result
|
634
|
+
#
|
635
|
+
def get_participant_session request, options = nil
|
636
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
637
|
+
|
638
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2beta::GetParticipantSessionRequest
|
639
|
+
|
640
|
+
# Converts hash and nil to an options object
|
641
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
642
|
+
|
643
|
+
# Customize the options with defaults
|
644
|
+
metadata = @config.rpcs.get_participant_session.metadata.to_h
|
645
|
+
|
646
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
647
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
648
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
649
|
+
gapic_version: ::Google::Apps::Meet::V2beta::VERSION
|
650
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
651
|
+
|
652
|
+
header_params = {}
|
653
|
+
if request.name
|
654
|
+
header_params["name"] = request.name
|
655
|
+
end
|
656
|
+
|
657
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
658
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
659
|
+
|
660
|
+
options.apply_defaults timeout: @config.rpcs.get_participant_session.timeout,
|
661
|
+
metadata: metadata,
|
662
|
+
retry_policy: @config.rpcs.get_participant_session.retry_policy
|
663
|
+
|
664
|
+
options.apply_defaults timeout: @config.timeout,
|
665
|
+
metadata: @config.metadata,
|
666
|
+
retry_policy: @config.retry_policy
|
667
|
+
|
668
|
+
@conference_records_service_stub.call_rpc :get_participant_session, request, options: options do |response, operation|
|
669
|
+
yield response, operation if block_given?
|
670
|
+
return response
|
671
|
+
end
|
672
|
+
rescue ::GRPC::BadStatus => e
|
673
|
+
raise ::Google::Cloud::Error.from_error(e)
|
674
|
+
end
|
675
|
+
|
676
|
+
##
|
677
|
+
# [Developer Preview](https://developers.google.com/workspace/preview).
|
678
|
+
# Lists the participant sessions of a participant in a conference record, by
|
679
|
+
# default ordered by join time and in descending order. This API supports
|
680
|
+
# `fields` as standard parameters like every other API. However, when the
|
681
|
+
# `fields` request parameter is omitted this API defaults to
|
682
|
+
# `'participantsessions/*, next_page_token'`.
|
683
|
+
#
|
684
|
+
# @overload list_participant_sessions(request, options = nil)
|
685
|
+
# Pass arguments to `list_participant_sessions` via a request object, either of type
|
686
|
+
# {::Google::Apps::Meet::V2beta::ListParticipantSessionsRequest} or an equivalent Hash.
|
687
|
+
#
|
688
|
+
# @param request [::Google::Apps::Meet::V2beta::ListParticipantSessionsRequest, ::Hash]
|
689
|
+
# A request object representing the call parameters. Required. To specify no
|
690
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
691
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
692
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
693
|
+
#
|
694
|
+
# @overload list_participant_sessions(parent: nil, page_size: nil, page_token: nil, filter: nil)
|
695
|
+
# Pass arguments to `list_participant_sessions` via keyword arguments. Note that at
|
696
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
697
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
698
|
+
#
|
699
|
+
# @param parent [::String]
|
700
|
+
# Required. Format:
|
701
|
+
# `conferenceRecords/{conference_record}/participants/{participant}`
|
702
|
+
# @param page_size [::Integer]
|
703
|
+
# Optional. Maximum number of participant sessions to return. The service
|
704
|
+
# might return fewer than this value. If unspecified, at most 100
|
705
|
+
# participants are returned. The maximum value is 250; values above 250 are
|
706
|
+
# coerced to 250. Maximum might change in the future.
|
707
|
+
# @param page_token [::String]
|
708
|
+
# Optional. Page token returned from previous List Call.
|
709
|
+
# @param filter [::String]
|
710
|
+
# Optional. User specified filtering condition in EBNF format. The following
|
711
|
+
# are the filterable fields:
|
712
|
+
#
|
713
|
+
# * `start_time`
|
714
|
+
# * `end_time`
|
715
|
+
#
|
716
|
+
# For example, `end_time IS NULL` returns active participant sessions in
|
717
|
+
# the conference record.
|
718
|
+
#
|
719
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
720
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2beta::ParticipantSession>]
|
721
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
722
|
+
#
|
723
|
+
# @return [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2beta::ParticipantSession>]
|
724
|
+
#
|
725
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
726
|
+
#
|
727
|
+
# @example Basic example
|
728
|
+
# require "google/apps/meet/v2beta"
|
729
|
+
#
|
730
|
+
# # Create a client object. The client can be reused for multiple calls.
|
731
|
+
# client = Google::Apps::Meet::V2beta::ConferenceRecordsService::Client.new
|
732
|
+
#
|
733
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
734
|
+
# request = Google::Apps::Meet::V2beta::ListParticipantSessionsRequest.new
|
735
|
+
#
|
736
|
+
# # Call the list_participant_sessions method.
|
737
|
+
# result = client.list_participant_sessions request
|
738
|
+
#
|
739
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
740
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
741
|
+
# result.each do |item|
|
742
|
+
# # Each element is of type ::Google::Apps::Meet::V2beta::ParticipantSession.
|
743
|
+
# p item
|
744
|
+
# end
|
745
|
+
#
|
746
|
+
def list_participant_sessions request, options = nil
|
747
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
748
|
+
|
749
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2beta::ListParticipantSessionsRequest
|
750
|
+
|
751
|
+
# Converts hash and nil to an options object
|
752
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
753
|
+
|
754
|
+
# Customize the options with defaults
|
755
|
+
metadata = @config.rpcs.list_participant_sessions.metadata.to_h
|
756
|
+
|
757
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
758
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
759
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
760
|
+
gapic_version: ::Google::Apps::Meet::V2beta::VERSION
|
761
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
762
|
+
|
763
|
+
header_params = {}
|
764
|
+
if request.parent
|
765
|
+
header_params["parent"] = request.parent
|
766
|
+
end
|
767
|
+
|
768
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
769
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
770
|
+
|
771
|
+
options.apply_defaults timeout: @config.rpcs.list_participant_sessions.timeout,
|
772
|
+
metadata: metadata,
|
773
|
+
retry_policy: @config.rpcs.list_participant_sessions.retry_policy
|
774
|
+
|
775
|
+
options.apply_defaults timeout: @config.timeout,
|
776
|
+
metadata: @config.metadata,
|
777
|
+
retry_policy: @config.retry_policy
|
778
|
+
|
779
|
+
@conference_records_service_stub.call_rpc :list_participant_sessions, request, options: options do |response, operation|
|
780
|
+
response = ::Gapic::PagedEnumerable.new @conference_records_service_stub, :list_participant_sessions, request, response, operation, options
|
781
|
+
yield response, operation if block_given?
|
782
|
+
return response
|
783
|
+
end
|
784
|
+
rescue ::GRPC::BadStatus => e
|
785
|
+
raise ::Google::Cloud::Error.from_error(e)
|
786
|
+
end
|
787
|
+
|
788
|
+
##
|
789
|
+
# [Developer Preview](https://developers.google.com/workspace/preview).
|
790
|
+
# Gets a recording by recording ID.
|
791
|
+
#
|
792
|
+
# @overload get_recording(request, options = nil)
|
793
|
+
# Pass arguments to `get_recording` via a request object, either of type
|
794
|
+
# {::Google::Apps::Meet::V2beta::GetRecordingRequest} or an equivalent Hash.
|
795
|
+
#
|
796
|
+
# @param request [::Google::Apps::Meet::V2beta::GetRecordingRequest, ::Hash]
|
797
|
+
# A request object representing the call parameters. Required. To specify no
|
798
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
799
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
800
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
801
|
+
#
|
802
|
+
# @overload get_recording(name: nil)
|
803
|
+
# Pass arguments to `get_recording` via keyword arguments. Note that at
|
804
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
805
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
806
|
+
#
|
807
|
+
# @param name [::String]
|
808
|
+
# Required. Resource name of the recording.
|
809
|
+
#
|
810
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
811
|
+
# @yieldparam response [::Google::Apps::Meet::V2beta::Recording]
|
812
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
813
|
+
#
|
814
|
+
# @return [::Google::Apps::Meet::V2beta::Recording]
|
815
|
+
#
|
816
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
817
|
+
#
|
818
|
+
# @example Basic example
|
819
|
+
# require "google/apps/meet/v2beta"
|
820
|
+
#
|
821
|
+
# # Create a client object. The client can be reused for multiple calls.
|
822
|
+
# client = Google::Apps::Meet::V2beta::ConferenceRecordsService::Client.new
|
823
|
+
#
|
824
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
825
|
+
# request = Google::Apps::Meet::V2beta::GetRecordingRequest.new
|
826
|
+
#
|
827
|
+
# # Call the get_recording method.
|
828
|
+
# result = client.get_recording request
|
829
|
+
#
|
830
|
+
# # The returned object is of type Google::Apps::Meet::V2beta::Recording.
|
831
|
+
# p result
|
832
|
+
#
|
833
|
+
def get_recording request, options = nil
|
834
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
835
|
+
|
836
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2beta::GetRecordingRequest
|
837
|
+
|
838
|
+
# Converts hash and nil to an options object
|
839
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
840
|
+
|
841
|
+
# Customize the options with defaults
|
842
|
+
metadata = @config.rpcs.get_recording.metadata.to_h
|
843
|
+
|
844
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
845
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
846
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
847
|
+
gapic_version: ::Google::Apps::Meet::V2beta::VERSION
|
848
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
849
|
+
|
850
|
+
header_params = {}
|
851
|
+
if request.name
|
852
|
+
header_params["name"] = request.name
|
853
|
+
end
|
854
|
+
|
855
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
856
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
857
|
+
|
858
|
+
options.apply_defaults timeout: @config.rpcs.get_recording.timeout,
|
859
|
+
metadata: metadata,
|
860
|
+
retry_policy: @config.rpcs.get_recording.retry_policy
|
861
|
+
|
862
|
+
options.apply_defaults timeout: @config.timeout,
|
863
|
+
metadata: @config.metadata,
|
864
|
+
retry_policy: @config.retry_policy
|
865
|
+
|
866
|
+
@conference_records_service_stub.call_rpc :get_recording, request, options: options do |response, operation|
|
867
|
+
yield response, operation if block_given?
|
868
|
+
return response
|
869
|
+
end
|
870
|
+
rescue ::GRPC::BadStatus => e
|
871
|
+
raise ::Google::Cloud::Error.from_error(e)
|
872
|
+
end
|
873
|
+
|
874
|
+
##
|
875
|
+
# [Developer Preview](https://developers.google.com/workspace/preview).
|
876
|
+
# Lists the recording resources from the conference record.
|
877
|
+
#
|
878
|
+
# @overload list_recordings(request, options = nil)
|
879
|
+
# Pass arguments to `list_recordings` via a request object, either of type
|
880
|
+
# {::Google::Apps::Meet::V2beta::ListRecordingsRequest} or an equivalent Hash.
|
881
|
+
#
|
882
|
+
# @param request [::Google::Apps::Meet::V2beta::ListRecordingsRequest, ::Hash]
|
883
|
+
# A request object representing the call parameters. Required. To specify no
|
884
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
885
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
886
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
887
|
+
#
|
888
|
+
# @overload list_recordings(parent: nil, page_size: nil, page_token: nil)
|
889
|
+
# Pass arguments to `list_recordings` via keyword arguments. Note that at
|
890
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
891
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
892
|
+
#
|
893
|
+
# @param parent [::String]
|
894
|
+
# Required. Format: `conferenceRecords/{conference_record}`
|
895
|
+
# @param page_size [::Integer]
|
896
|
+
# Maximum number of recordings to return. The service might return fewer
|
897
|
+
# than this value.
|
898
|
+
# If unspecified, at most 10 recordings are returned.
|
899
|
+
# The maximum value is 100; values above 100 are coerced to 100.
|
900
|
+
# Maximum might change in the future.
|
901
|
+
# @param page_token [::String]
|
902
|
+
# Page token returned from previous List Call.
|
903
|
+
#
|
904
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
905
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2beta::Recording>]
|
906
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
907
|
+
#
|
908
|
+
# @return [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2beta::Recording>]
|
909
|
+
#
|
910
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
911
|
+
#
|
912
|
+
# @example Basic example
|
913
|
+
# require "google/apps/meet/v2beta"
|
914
|
+
#
|
915
|
+
# # Create a client object. The client can be reused for multiple calls.
|
916
|
+
# client = Google::Apps::Meet::V2beta::ConferenceRecordsService::Client.new
|
917
|
+
#
|
918
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
919
|
+
# request = Google::Apps::Meet::V2beta::ListRecordingsRequest.new
|
920
|
+
#
|
921
|
+
# # Call the list_recordings method.
|
922
|
+
# result = client.list_recordings request
|
923
|
+
#
|
924
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
925
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
926
|
+
# result.each do |item|
|
927
|
+
# # Each element is of type ::Google::Apps::Meet::V2beta::Recording.
|
928
|
+
# p item
|
929
|
+
# end
|
930
|
+
#
|
931
|
+
def list_recordings request, options = nil
|
932
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
933
|
+
|
934
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2beta::ListRecordingsRequest
|
935
|
+
|
936
|
+
# Converts hash and nil to an options object
|
937
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
938
|
+
|
939
|
+
# Customize the options with defaults
|
940
|
+
metadata = @config.rpcs.list_recordings.metadata.to_h
|
941
|
+
|
942
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
943
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
944
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
945
|
+
gapic_version: ::Google::Apps::Meet::V2beta::VERSION
|
946
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
947
|
+
|
948
|
+
header_params = {}
|
949
|
+
if request.parent
|
950
|
+
header_params["parent"] = request.parent
|
951
|
+
end
|
952
|
+
|
953
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
954
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
955
|
+
|
956
|
+
options.apply_defaults timeout: @config.rpcs.list_recordings.timeout,
|
957
|
+
metadata: metadata,
|
958
|
+
retry_policy: @config.rpcs.list_recordings.retry_policy
|
959
|
+
|
960
|
+
options.apply_defaults timeout: @config.timeout,
|
961
|
+
metadata: @config.metadata,
|
962
|
+
retry_policy: @config.retry_policy
|
963
|
+
|
964
|
+
@conference_records_service_stub.call_rpc :list_recordings, request, options: options do |response, operation|
|
965
|
+
response = ::Gapic::PagedEnumerable.new @conference_records_service_stub, :list_recordings, request, response, operation, options
|
966
|
+
yield response, operation if block_given?
|
967
|
+
return response
|
968
|
+
end
|
969
|
+
rescue ::GRPC::BadStatus => e
|
970
|
+
raise ::Google::Cloud::Error.from_error(e)
|
971
|
+
end
|
972
|
+
|
973
|
+
##
|
974
|
+
# [Developer Preview](https://developers.google.com/workspace/preview).
|
975
|
+
# Gets a transcript by transcript ID.
|
976
|
+
#
|
977
|
+
# @overload get_transcript(request, options = nil)
|
978
|
+
# Pass arguments to `get_transcript` via a request object, either of type
|
979
|
+
# {::Google::Apps::Meet::V2beta::GetTranscriptRequest} or an equivalent Hash.
|
980
|
+
#
|
981
|
+
# @param request [::Google::Apps::Meet::V2beta::GetTranscriptRequest, ::Hash]
|
982
|
+
# A request object representing the call parameters. Required. To specify no
|
983
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
984
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
985
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
986
|
+
#
|
987
|
+
# @overload get_transcript(name: nil)
|
988
|
+
# Pass arguments to `get_transcript` via keyword arguments. Note that at
|
989
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
990
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
991
|
+
#
|
992
|
+
# @param name [::String]
|
993
|
+
# Required. Resource name of the transcript.
|
994
|
+
#
|
995
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
996
|
+
# @yieldparam response [::Google::Apps::Meet::V2beta::Transcript]
|
997
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
998
|
+
#
|
999
|
+
# @return [::Google::Apps::Meet::V2beta::Transcript]
|
1000
|
+
#
|
1001
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1002
|
+
#
|
1003
|
+
# @example Basic example
|
1004
|
+
# require "google/apps/meet/v2beta"
|
1005
|
+
#
|
1006
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1007
|
+
# client = Google::Apps::Meet::V2beta::ConferenceRecordsService::Client.new
|
1008
|
+
#
|
1009
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1010
|
+
# request = Google::Apps::Meet::V2beta::GetTranscriptRequest.new
|
1011
|
+
#
|
1012
|
+
# # Call the get_transcript method.
|
1013
|
+
# result = client.get_transcript request
|
1014
|
+
#
|
1015
|
+
# # The returned object is of type Google::Apps::Meet::V2beta::Transcript.
|
1016
|
+
# p result
|
1017
|
+
#
|
1018
|
+
def get_transcript request, options = nil
|
1019
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1020
|
+
|
1021
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2beta::GetTranscriptRequest
|
1022
|
+
|
1023
|
+
# Converts hash and nil to an options object
|
1024
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1025
|
+
|
1026
|
+
# Customize the options with defaults
|
1027
|
+
metadata = @config.rpcs.get_transcript.metadata.to_h
|
1028
|
+
|
1029
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1030
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1031
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1032
|
+
gapic_version: ::Google::Apps::Meet::V2beta::VERSION
|
1033
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1034
|
+
|
1035
|
+
header_params = {}
|
1036
|
+
if request.name
|
1037
|
+
header_params["name"] = request.name
|
1038
|
+
end
|
1039
|
+
|
1040
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1041
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1042
|
+
|
1043
|
+
options.apply_defaults timeout: @config.rpcs.get_transcript.timeout,
|
1044
|
+
metadata: metadata,
|
1045
|
+
retry_policy: @config.rpcs.get_transcript.retry_policy
|
1046
|
+
|
1047
|
+
options.apply_defaults timeout: @config.timeout,
|
1048
|
+
metadata: @config.metadata,
|
1049
|
+
retry_policy: @config.retry_policy
|
1050
|
+
|
1051
|
+
@conference_records_service_stub.call_rpc :get_transcript, request, options: options do |response, operation|
|
1052
|
+
yield response, operation if block_given?
|
1053
|
+
return response
|
1054
|
+
end
|
1055
|
+
rescue ::GRPC::BadStatus => e
|
1056
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1057
|
+
end
|
1058
|
+
|
1059
|
+
##
|
1060
|
+
# [Developer Preview](https://developers.google.com/workspace/preview).
|
1061
|
+
# Lists the set of transcripts from the conference record.
|
1062
|
+
#
|
1063
|
+
# @overload list_transcripts(request, options = nil)
|
1064
|
+
# Pass arguments to `list_transcripts` via a request object, either of type
|
1065
|
+
# {::Google::Apps::Meet::V2beta::ListTranscriptsRequest} or an equivalent Hash.
|
1066
|
+
#
|
1067
|
+
# @param request [::Google::Apps::Meet::V2beta::ListTranscriptsRequest, ::Hash]
|
1068
|
+
# A request object representing the call parameters. Required. To specify no
|
1069
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1070
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1071
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1072
|
+
#
|
1073
|
+
# @overload list_transcripts(parent: nil, page_size: nil, page_token: nil)
|
1074
|
+
# Pass arguments to `list_transcripts` via keyword arguments. Note that at
|
1075
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1076
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1077
|
+
#
|
1078
|
+
# @param parent [::String]
|
1079
|
+
# Required. Format: `conferenceRecords/{conference_record}`
|
1080
|
+
# @param page_size [::Integer]
|
1081
|
+
# Maximum number of transcripts to return. The service might return fewer
|
1082
|
+
# than this value.
|
1083
|
+
# If unspecified, at most 10 transcripts are returned.
|
1084
|
+
# The maximum value is 100; values above 100 are coerced to 100.
|
1085
|
+
# Maximum might change in the future.
|
1086
|
+
# @param page_token [::String]
|
1087
|
+
# Page token returned from previous List Call.
|
1088
|
+
#
|
1089
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1090
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2beta::Transcript>]
|
1091
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1092
|
+
#
|
1093
|
+
# @return [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2beta::Transcript>]
|
1094
|
+
#
|
1095
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1096
|
+
#
|
1097
|
+
# @example Basic example
|
1098
|
+
# require "google/apps/meet/v2beta"
|
1099
|
+
#
|
1100
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1101
|
+
# client = Google::Apps::Meet::V2beta::ConferenceRecordsService::Client.new
|
1102
|
+
#
|
1103
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1104
|
+
# request = Google::Apps::Meet::V2beta::ListTranscriptsRequest.new
|
1105
|
+
#
|
1106
|
+
# # Call the list_transcripts method.
|
1107
|
+
# result = client.list_transcripts request
|
1108
|
+
#
|
1109
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1110
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1111
|
+
# result.each do |item|
|
1112
|
+
# # Each element is of type ::Google::Apps::Meet::V2beta::Transcript.
|
1113
|
+
# p item
|
1114
|
+
# end
|
1115
|
+
#
|
1116
|
+
def list_transcripts request, options = nil
|
1117
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1118
|
+
|
1119
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2beta::ListTranscriptsRequest
|
1120
|
+
|
1121
|
+
# Converts hash and nil to an options object
|
1122
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1123
|
+
|
1124
|
+
# Customize the options with defaults
|
1125
|
+
metadata = @config.rpcs.list_transcripts.metadata.to_h
|
1126
|
+
|
1127
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1128
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1129
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1130
|
+
gapic_version: ::Google::Apps::Meet::V2beta::VERSION
|
1131
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1132
|
+
|
1133
|
+
header_params = {}
|
1134
|
+
if request.parent
|
1135
|
+
header_params["parent"] = request.parent
|
1136
|
+
end
|
1137
|
+
|
1138
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1139
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1140
|
+
|
1141
|
+
options.apply_defaults timeout: @config.rpcs.list_transcripts.timeout,
|
1142
|
+
metadata: metadata,
|
1143
|
+
retry_policy: @config.rpcs.list_transcripts.retry_policy
|
1144
|
+
|
1145
|
+
options.apply_defaults timeout: @config.timeout,
|
1146
|
+
metadata: @config.metadata,
|
1147
|
+
retry_policy: @config.retry_policy
|
1148
|
+
|
1149
|
+
@conference_records_service_stub.call_rpc :list_transcripts, request, options: options do |response, operation|
|
1150
|
+
response = ::Gapic::PagedEnumerable.new @conference_records_service_stub, :list_transcripts, request, response, operation, options
|
1151
|
+
yield response, operation if block_given?
|
1152
|
+
return response
|
1153
|
+
end
|
1154
|
+
rescue ::GRPC::BadStatus => e
|
1155
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1156
|
+
end
|
1157
|
+
|
1158
|
+
##
|
1159
|
+
# [Developer Preview](https://developers.google.com/workspace/preview).
|
1160
|
+
# Gets a `TranscriptEntry` resource by entry ID.
|
1161
|
+
#
|
1162
|
+
# Note: The transcript entries returned by the Google Meet API might not
|
1163
|
+
# match the transcription found in the Google Docs transcript file. This can
|
1164
|
+
# occur when the Google Docs transcript file is modified after generation.
|
1165
|
+
#
|
1166
|
+
# @overload get_transcript_entry(request, options = nil)
|
1167
|
+
# Pass arguments to `get_transcript_entry` via a request object, either of type
|
1168
|
+
# {::Google::Apps::Meet::V2beta::GetTranscriptEntryRequest} or an equivalent Hash.
|
1169
|
+
#
|
1170
|
+
# @param request [::Google::Apps::Meet::V2beta::GetTranscriptEntryRequest, ::Hash]
|
1171
|
+
# A request object representing the call parameters. Required. To specify no
|
1172
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1173
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1174
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1175
|
+
#
|
1176
|
+
# @overload get_transcript_entry(name: nil)
|
1177
|
+
# Pass arguments to `get_transcript_entry` via keyword arguments. Note that at
|
1178
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1179
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1180
|
+
#
|
1181
|
+
# @param name [::String]
|
1182
|
+
# Required. Resource name of the `TranscriptEntry`.
|
1183
|
+
#
|
1184
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1185
|
+
# @yieldparam response [::Google::Apps::Meet::V2beta::TranscriptEntry]
|
1186
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1187
|
+
#
|
1188
|
+
# @return [::Google::Apps::Meet::V2beta::TranscriptEntry]
|
1189
|
+
#
|
1190
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1191
|
+
#
|
1192
|
+
# @example Basic example
|
1193
|
+
# require "google/apps/meet/v2beta"
|
1194
|
+
#
|
1195
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1196
|
+
# client = Google::Apps::Meet::V2beta::ConferenceRecordsService::Client.new
|
1197
|
+
#
|
1198
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1199
|
+
# request = Google::Apps::Meet::V2beta::GetTranscriptEntryRequest.new
|
1200
|
+
#
|
1201
|
+
# # Call the get_transcript_entry method.
|
1202
|
+
# result = client.get_transcript_entry request
|
1203
|
+
#
|
1204
|
+
# # The returned object is of type Google::Apps::Meet::V2beta::TranscriptEntry.
|
1205
|
+
# p result
|
1206
|
+
#
|
1207
|
+
def get_transcript_entry request, options = nil
|
1208
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1209
|
+
|
1210
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2beta::GetTranscriptEntryRequest
|
1211
|
+
|
1212
|
+
# Converts hash and nil to an options object
|
1213
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1214
|
+
|
1215
|
+
# Customize the options with defaults
|
1216
|
+
metadata = @config.rpcs.get_transcript_entry.metadata.to_h
|
1217
|
+
|
1218
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1219
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1220
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1221
|
+
gapic_version: ::Google::Apps::Meet::V2beta::VERSION
|
1222
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1223
|
+
|
1224
|
+
header_params = {}
|
1225
|
+
if request.name
|
1226
|
+
header_params["name"] = request.name
|
1227
|
+
end
|
1228
|
+
|
1229
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1230
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1231
|
+
|
1232
|
+
options.apply_defaults timeout: @config.rpcs.get_transcript_entry.timeout,
|
1233
|
+
metadata: metadata,
|
1234
|
+
retry_policy: @config.rpcs.get_transcript_entry.retry_policy
|
1235
|
+
|
1236
|
+
options.apply_defaults timeout: @config.timeout,
|
1237
|
+
metadata: @config.metadata,
|
1238
|
+
retry_policy: @config.retry_policy
|
1239
|
+
|
1240
|
+
@conference_records_service_stub.call_rpc :get_transcript_entry, request, options: options do |response, operation|
|
1241
|
+
yield response, operation if block_given?
|
1242
|
+
return response
|
1243
|
+
end
|
1244
|
+
rescue ::GRPC::BadStatus => e
|
1245
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1246
|
+
end
|
1247
|
+
|
1248
|
+
##
|
1249
|
+
# [Developer Preview](https://developers.google.com/workspace/preview).
|
1250
|
+
# Lists the structured transcript entries per transcript. By default, ordered
|
1251
|
+
# by start time and in ascending order.
|
1252
|
+
#
|
1253
|
+
# Note: The transcript entries returned by the Google Meet API might not
|
1254
|
+
# match the transcription found in the Google Docs transcript file. This can
|
1255
|
+
# occur when the Google Docs transcript file is modified after generation.
|
1256
|
+
#
|
1257
|
+
# @overload list_transcript_entries(request, options = nil)
|
1258
|
+
# Pass arguments to `list_transcript_entries` via a request object, either of type
|
1259
|
+
# {::Google::Apps::Meet::V2beta::ListTranscriptEntriesRequest} or an equivalent Hash.
|
1260
|
+
#
|
1261
|
+
# @param request [::Google::Apps::Meet::V2beta::ListTranscriptEntriesRequest, ::Hash]
|
1262
|
+
# A request object representing the call parameters. Required. To specify no
|
1263
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1264
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1265
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1266
|
+
#
|
1267
|
+
# @overload list_transcript_entries(parent: nil, page_size: nil, page_token: nil)
|
1268
|
+
# Pass arguments to `list_transcript_entries` via keyword arguments. Note that at
|
1269
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1270
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1271
|
+
#
|
1272
|
+
# @param parent [::String]
|
1273
|
+
# Required. Format:
|
1274
|
+
# `conferenceRecords/{conference_record}/transcripts/{transcript}`
|
1275
|
+
# @param page_size [::Integer]
|
1276
|
+
# Maximum number of entries to return. The service might return fewer than
|
1277
|
+
# this value.
|
1278
|
+
# If unspecified, at most 10 entries are returned.
|
1279
|
+
# The maximum value is 100; values above 100 are coerced to 100.
|
1280
|
+
# Maximum might change in the future.
|
1281
|
+
# @param page_token [::String]
|
1282
|
+
# Page token returned from previous List Call.
|
1283
|
+
#
|
1284
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1285
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2beta::TranscriptEntry>]
|
1286
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1287
|
+
#
|
1288
|
+
# @return [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2beta::TranscriptEntry>]
|
1289
|
+
#
|
1290
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1291
|
+
#
|
1292
|
+
# @example Basic example
|
1293
|
+
# require "google/apps/meet/v2beta"
|
1294
|
+
#
|
1295
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1296
|
+
# client = Google::Apps::Meet::V2beta::ConferenceRecordsService::Client.new
|
1297
|
+
#
|
1298
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1299
|
+
# request = Google::Apps::Meet::V2beta::ListTranscriptEntriesRequest.new
|
1300
|
+
#
|
1301
|
+
# # Call the list_transcript_entries method.
|
1302
|
+
# result = client.list_transcript_entries request
|
1303
|
+
#
|
1304
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1305
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1306
|
+
# result.each do |item|
|
1307
|
+
# # Each element is of type ::Google::Apps::Meet::V2beta::TranscriptEntry.
|
1308
|
+
# p item
|
1309
|
+
# end
|
1310
|
+
#
|
1311
|
+
def list_transcript_entries request, options = nil
|
1312
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1313
|
+
|
1314
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2beta::ListTranscriptEntriesRequest
|
1315
|
+
|
1316
|
+
# Converts hash and nil to an options object
|
1317
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1318
|
+
|
1319
|
+
# Customize the options with defaults
|
1320
|
+
metadata = @config.rpcs.list_transcript_entries.metadata.to_h
|
1321
|
+
|
1322
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1323
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1324
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1325
|
+
gapic_version: ::Google::Apps::Meet::V2beta::VERSION
|
1326
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1327
|
+
|
1328
|
+
header_params = {}
|
1329
|
+
if request.parent
|
1330
|
+
header_params["parent"] = request.parent
|
1331
|
+
end
|
1332
|
+
|
1333
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1334
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1335
|
+
|
1336
|
+
options.apply_defaults timeout: @config.rpcs.list_transcript_entries.timeout,
|
1337
|
+
metadata: metadata,
|
1338
|
+
retry_policy: @config.rpcs.list_transcript_entries.retry_policy
|
1339
|
+
|
1340
|
+
options.apply_defaults timeout: @config.timeout,
|
1341
|
+
metadata: @config.metadata,
|
1342
|
+
retry_policy: @config.retry_policy
|
1343
|
+
|
1344
|
+
@conference_records_service_stub.call_rpc :list_transcript_entries, request, options: options do |response, operation|
|
1345
|
+
response = ::Gapic::PagedEnumerable.new @conference_records_service_stub, :list_transcript_entries, request, response, operation, options
|
1346
|
+
yield response, operation if block_given?
|
1347
|
+
return response
|
1348
|
+
end
|
1349
|
+
rescue ::GRPC::BadStatus => e
|
1350
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1351
|
+
end
|
1352
|
+
|
1353
|
+
##
|
1354
|
+
# Configuration class for the ConferenceRecordsService API.
|
1355
|
+
#
|
1356
|
+
# This class represents the configuration for ConferenceRecordsService,
|
1357
|
+
# providing control over timeouts, retry behavior, logging, transport
|
1358
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
1359
|
+
# applied individually to specific RPCs. See
|
1360
|
+
# {::Google::Apps::Meet::V2beta::ConferenceRecordsService::Client::Configuration::Rpcs}
|
1361
|
+
# for a list of RPCs that can be configured independently.
|
1362
|
+
#
|
1363
|
+
# Configuration can be applied globally to all clients, or to a single client
|
1364
|
+
# on construction.
|
1365
|
+
#
|
1366
|
+
# @example
|
1367
|
+
#
|
1368
|
+
# # Modify the global config, setting the timeout for
|
1369
|
+
# # get_conference_record to 20 seconds,
|
1370
|
+
# # and all remaining timeouts to 10 seconds.
|
1371
|
+
# ::Google::Apps::Meet::V2beta::ConferenceRecordsService::Client.configure do |config|
|
1372
|
+
# config.timeout = 10.0
|
1373
|
+
# config.rpcs.get_conference_record.timeout = 20.0
|
1374
|
+
# end
|
1375
|
+
#
|
1376
|
+
# # Apply the above configuration only to a new client.
|
1377
|
+
# client = ::Google::Apps::Meet::V2beta::ConferenceRecordsService::Client.new do |config|
|
1378
|
+
# config.timeout = 10.0
|
1379
|
+
# config.rpcs.get_conference_record.timeout = 20.0
|
1380
|
+
# end
|
1381
|
+
#
|
1382
|
+
# @!attribute [rw] endpoint
|
1383
|
+
# The hostname or hostname:port of the service endpoint.
|
1384
|
+
# Defaults to `"meet.googleapis.com"`.
|
1385
|
+
# @return [::String]
|
1386
|
+
# @!attribute [rw] credentials
|
1387
|
+
# Credentials to send with calls. You may provide any of the following types:
|
1388
|
+
# * (`String`) The path to a service account key file in JSON format
|
1389
|
+
# * (`Hash`) A service account key as a Hash
|
1390
|
+
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1391
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1392
|
+
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1393
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1394
|
+
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1395
|
+
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1396
|
+
# * (`nil`) indicating no credentials
|
1397
|
+
# @return [::Object]
|
1398
|
+
# @!attribute [rw] scope
|
1399
|
+
# The OAuth scopes
|
1400
|
+
# @return [::Array<::String>]
|
1401
|
+
# @!attribute [rw] lib_name
|
1402
|
+
# The library name as recorded in instrumentation and logging
|
1403
|
+
# @return [::String]
|
1404
|
+
# @!attribute [rw] lib_version
|
1405
|
+
# The library version as recorded in instrumentation and logging
|
1406
|
+
# @return [::String]
|
1407
|
+
# @!attribute [rw] channel_args
|
1408
|
+
# Extra parameters passed to the gRPC channel. Note: this is ignored if a
|
1409
|
+
# `GRPC::Core::Channel` object is provided as the credential.
|
1410
|
+
# @return [::Hash]
|
1411
|
+
# @!attribute [rw] interceptors
|
1412
|
+
# An array of interceptors that are run before calls are executed.
|
1413
|
+
# @return [::Array<::GRPC::ClientInterceptor>]
|
1414
|
+
# @!attribute [rw] timeout
|
1415
|
+
# The call timeout in seconds.
|
1416
|
+
# @return [::Numeric]
|
1417
|
+
# @!attribute [rw] metadata
|
1418
|
+
# Additional gRPC headers to be sent with the call.
|
1419
|
+
# @return [::Hash{::Symbol=>::String}]
|
1420
|
+
# @!attribute [rw] retry_policy
|
1421
|
+
# The retry policy. The value is a hash with the following keys:
|
1422
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
1423
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
1424
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
1425
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
1426
|
+
# trigger a retry.
|
1427
|
+
# @return [::Hash]
|
1428
|
+
# @!attribute [rw] quota_project
|
1429
|
+
# A separate project against which to charge quota.
|
1430
|
+
# @return [::String]
|
1431
|
+
#
|
1432
|
+
class Configuration
|
1433
|
+
extend ::Gapic::Config
|
1434
|
+
|
1435
|
+
DEFAULT_ENDPOINT = "meet.googleapis.com"
|
1436
|
+
|
1437
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1438
|
+
config_attr :credentials, nil do |value|
|
1439
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1440
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
1441
|
+
allowed.any? { |klass| klass === value }
|
1442
|
+
end
|
1443
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
1444
|
+
config_attr :lib_name, nil, ::String, nil
|
1445
|
+
config_attr :lib_version, nil, ::String, nil
|
1446
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
1447
|
+
config_attr :interceptors, nil, ::Array, nil
|
1448
|
+
config_attr :timeout, nil, ::Numeric, nil
|
1449
|
+
config_attr :metadata, nil, ::Hash, nil
|
1450
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1451
|
+
config_attr :quota_project, nil, ::String, nil
|
1452
|
+
|
1453
|
+
# @private
|
1454
|
+
def initialize parent_config = nil
|
1455
|
+
@parent_config = parent_config unless parent_config.nil?
|
1456
|
+
|
1457
|
+
yield self if block_given?
|
1458
|
+
end
|
1459
|
+
|
1460
|
+
##
|
1461
|
+
# Configurations for individual RPCs
|
1462
|
+
# @return [Rpcs]
|
1463
|
+
#
|
1464
|
+
def rpcs
|
1465
|
+
@rpcs ||= begin
|
1466
|
+
parent_rpcs = nil
|
1467
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
1468
|
+
Rpcs.new parent_rpcs
|
1469
|
+
end
|
1470
|
+
end
|
1471
|
+
|
1472
|
+
##
|
1473
|
+
# Configuration for the channel pool
|
1474
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1475
|
+
#
|
1476
|
+
def channel_pool
|
1477
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1478
|
+
end
|
1479
|
+
|
1480
|
+
##
|
1481
|
+
# Configuration RPC class for the ConferenceRecordsService API.
|
1482
|
+
#
|
1483
|
+
# Includes fields providing the configuration for each RPC in this service.
|
1484
|
+
# Each configuration object is of type `Gapic::Config::Method` and includes
|
1485
|
+
# the following configuration fields:
|
1486
|
+
#
|
1487
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
1488
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
|
1489
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
1490
|
+
# include the following keys:
|
1491
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
1492
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
1493
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
1494
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
1495
|
+
# trigger a retry.
|
1496
|
+
#
|
1497
|
+
class Rpcs
|
1498
|
+
##
|
1499
|
+
# RPC-specific configuration for `get_conference_record`
|
1500
|
+
# @return [::Gapic::Config::Method]
|
1501
|
+
#
|
1502
|
+
attr_reader :get_conference_record
|
1503
|
+
##
|
1504
|
+
# RPC-specific configuration for `list_conference_records`
|
1505
|
+
# @return [::Gapic::Config::Method]
|
1506
|
+
#
|
1507
|
+
attr_reader :list_conference_records
|
1508
|
+
##
|
1509
|
+
# RPC-specific configuration for `get_participant`
|
1510
|
+
# @return [::Gapic::Config::Method]
|
1511
|
+
#
|
1512
|
+
attr_reader :get_participant
|
1513
|
+
##
|
1514
|
+
# RPC-specific configuration for `list_participants`
|
1515
|
+
# @return [::Gapic::Config::Method]
|
1516
|
+
#
|
1517
|
+
attr_reader :list_participants
|
1518
|
+
##
|
1519
|
+
# RPC-specific configuration for `get_participant_session`
|
1520
|
+
# @return [::Gapic::Config::Method]
|
1521
|
+
#
|
1522
|
+
attr_reader :get_participant_session
|
1523
|
+
##
|
1524
|
+
# RPC-specific configuration for `list_participant_sessions`
|
1525
|
+
# @return [::Gapic::Config::Method]
|
1526
|
+
#
|
1527
|
+
attr_reader :list_participant_sessions
|
1528
|
+
##
|
1529
|
+
# RPC-specific configuration for `get_recording`
|
1530
|
+
# @return [::Gapic::Config::Method]
|
1531
|
+
#
|
1532
|
+
attr_reader :get_recording
|
1533
|
+
##
|
1534
|
+
# RPC-specific configuration for `list_recordings`
|
1535
|
+
# @return [::Gapic::Config::Method]
|
1536
|
+
#
|
1537
|
+
attr_reader :list_recordings
|
1538
|
+
##
|
1539
|
+
# RPC-specific configuration for `get_transcript`
|
1540
|
+
# @return [::Gapic::Config::Method]
|
1541
|
+
#
|
1542
|
+
attr_reader :get_transcript
|
1543
|
+
##
|
1544
|
+
# RPC-specific configuration for `list_transcripts`
|
1545
|
+
# @return [::Gapic::Config::Method]
|
1546
|
+
#
|
1547
|
+
attr_reader :list_transcripts
|
1548
|
+
##
|
1549
|
+
# RPC-specific configuration for `get_transcript_entry`
|
1550
|
+
# @return [::Gapic::Config::Method]
|
1551
|
+
#
|
1552
|
+
attr_reader :get_transcript_entry
|
1553
|
+
##
|
1554
|
+
# RPC-specific configuration for `list_transcript_entries`
|
1555
|
+
# @return [::Gapic::Config::Method]
|
1556
|
+
#
|
1557
|
+
attr_reader :list_transcript_entries
|
1558
|
+
|
1559
|
+
# @private
|
1560
|
+
def initialize parent_rpcs = nil
|
1561
|
+
get_conference_record_config = parent_rpcs.get_conference_record if parent_rpcs.respond_to? :get_conference_record
|
1562
|
+
@get_conference_record = ::Gapic::Config::Method.new get_conference_record_config
|
1563
|
+
list_conference_records_config = parent_rpcs.list_conference_records if parent_rpcs.respond_to? :list_conference_records
|
1564
|
+
@list_conference_records = ::Gapic::Config::Method.new list_conference_records_config
|
1565
|
+
get_participant_config = parent_rpcs.get_participant if parent_rpcs.respond_to? :get_participant
|
1566
|
+
@get_participant = ::Gapic::Config::Method.new get_participant_config
|
1567
|
+
list_participants_config = parent_rpcs.list_participants if parent_rpcs.respond_to? :list_participants
|
1568
|
+
@list_participants = ::Gapic::Config::Method.new list_participants_config
|
1569
|
+
get_participant_session_config = parent_rpcs.get_participant_session if parent_rpcs.respond_to? :get_participant_session
|
1570
|
+
@get_participant_session = ::Gapic::Config::Method.new get_participant_session_config
|
1571
|
+
list_participant_sessions_config = parent_rpcs.list_participant_sessions if parent_rpcs.respond_to? :list_participant_sessions
|
1572
|
+
@list_participant_sessions = ::Gapic::Config::Method.new list_participant_sessions_config
|
1573
|
+
get_recording_config = parent_rpcs.get_recording if parent_rpcs.respond_to? :get_recording
|
1574
|
+
@get_recording = ::Gapic::Config::Method.new get_recording_config
|
1575
|
+
list_recordings_config = parent_rpcs.list_recordings if parent_rpcs.respond_to? :list_recordings
|
1576
|
+
@list_recordings = ::Gapic::Config::Method.new list_recordings_config
|
1577
|
+
get_transcript_config = parent_rpcs.get_transcript if parent_rpcs.respond_to? :get_transcript
|
1578
|
+
@get_transcript = ::Gapic::Config::Method.new get_transcript_config
|
1579
|
+
list_transcripts_config = parent_rpcs.list_transcripts if parent_rpcs.respond_to? :list_transcripts
|
1580
|
+
@list_transcripts = ::Gapic::Config::Method.new list_transcripts_config
|
1581
|
+
get_transcript_entry_config = parent_rpcs.get_transcript_entry if parent_rpcs.respond_to? :get_transcript_entry
|
1582
|
+
@get_transcript_entry = ::Gapic::Config::Method.new get_transcript_entry_config
|
1583
|
+
list_transcript_entries_config = parent_rpcs.list_transcript_entries if parent_rpcs.respond_to? :list_transcript_entries
|
1584
|
+
@list_transcript_entries = ::Gapic::Config::Method.new list_transcript_entries_config
|
1585
|
+
|
1586
|
+
yield self if block_given?
|
1587
|
+
end
|
1588
|
+
end
|
1589
|
+
end
|
1590
|
+
end
|
1591
|
+
end
|
1592
|
+
end
|
1593
|
+
end
|
1594
|
+
end
|
1595
|
+
end
|