google-apps-meet-v2 0.8.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/google/apps/meet/v2/conference_records_service/client.rb +216 -3
- data/lib/google/apps/meet/v2/conference_records_service/credentials.rb +1 -1
- data/lib/google/apps/meet/v2/conference_records_service/paths.rb +18 -1
- data/lib/google/apps/meet/v2/conference_records_service/rest/client.rb +202 -3
- data/lib/google/apps/meet/v2/conference_records_service/rest/service_stub.rb +123 -1
- data/lib/google/apps/meet/v2/conference_records_service/rest.rb +1 -1
- data/lib/google/apps/meet/v2/conference_records_service.rb +1 -1
- data/lib/google/apps/meet/v2/resource_pb.rb +18 -1
- data/lib/google/apps/meet/v2/rest.rb +1 -1
- data/lib/google/apps/meet/v2/service_pb.rb +12 -1
- data/lib/google/apps/meet/v2/service_services_pb.rb +40 -6
- data/lib/google/apps/meet/v2/spaces_service/client.rb +629 -6
- data/lib/google/apps/meet/v2/spaces_service/credentials.rb +1 -1
- data/lib/google/apps/meet/v2/spaces_service/paths.rb +18 -1
- data/lib/google/apps/meet/v2/spaces_service/rest/client.rb +587 -6
- data/lib/google/apps/meet/v2/spaces_service/rest/service_stub.rb +370 -1
- data/lib/google/apps/meet/v2/spaces_service/rest.rb +1 -1
- data/lib/google/apps/meet/v2/spaces_service.rb +1 -1
- data/lib/google/apps/meet/v2/version.rb +1 -1
- data/lib/google/apps/meet/v2.rb +1 -1
- data/lib/google-apps-meet-v2.rb +1 -1
- data/proto_docs/google/api/client.rb +5 -1
- data/proto_docs/google/api/field_behavior.rb +1 -1
- data/proto_docs/google/api/field_info.rb +88 -0
- data/proto_docs/google/api/launch_stage.rb +1 -1
- data/proto_docs/google/api/resource.rb +1 -1
- data/proto_docs/google/apps/meet/v2/resource.rb +286 -3
- data/proto_docs/google/apps/meet/v2/service.rb +162 -3
- data/proto_docs/google/protobuf/duration.rb +1 -1
- data/proto_docs/google/protobuf/empty.rb +1 -1
- data/proto_docs/google/protobuf/field_mask.rb +1 -1
- data/proto_docs/google/protobuf/timestamp.rb +8 -7
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2d9bc53efa3900f11c44d0826969b8af6c8fa6f6f5838b39fff74c14214562d9
|
|
4
|
+
data.tar.gz: 724621864ffbf5830a2b9abb37040d31d7c5f3d2f817bf869edf2ab1e66195a0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1c1a52df970935c340c9aa25084900604d2d7269b87bcae472cb5a165c46666d97076d8cd0971f0771fd48262f2f0ee16463f4873572b26a8aad19aa21d98990
|
|
7
|
+
data.tar.gz: 3241e138b728bb663db4d3318eea59dcd8173bdc8d75ca8f8eaf5b6ea2eedb7b320c38cea715a47e352f2322e9ec3c01b9545091bcb123f0e988e3ddde51a366
|
data/README.md
CHANGED
|
@@ -39,7 +39,7 @@ response = client.create_space request
|
|
|
39
39
|
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-apps-meet-v2/latest)
|
|
40
40
|
for class and method documentation.
|
|
41
41
|
|
|
42
|
-
See also the [Product Documentation](https://developers.google.com/meet/api/guides/overview)
|
|
42
|
+
See also the [Product Documentation](https://developers.google.com/workspace/meet/api/guides/overview)
|
|
43
43
|
for general usage information.
|
|
44
44
|
|
|
45
45
|
## Debug Logging
|
|
@@ -85,7 +85,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
|
85
85
|
|
|
86
86
|
## Supported Ruby Versions
|
|
87
87
|
|
|
88
|
-
This library is supported on Ruby 3.
|
|
88
|
+
This library is supported on Ruby 3.2+.
|
|
89
89
|
|
|
90
90
|
Google provides official support for Ruby versions that are actively supported
|
|
91
91
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -130,6 +130,16 @@ module Google
|
|
|
130
130
|
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
+
default_config.rpcs.get_smart_note.timeout = 60.0
|
|
134
|
+
default_config.rpcs.get_smart_note.retry_policy = {
|
|
135
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
default_config.rpcs.list_smart_notes.timeout = 60.0
|
|
139
|
+
default_config.rpcs.list_smart_notes.retry_policy = {
|
|
140
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
141
|
+
}
|
|
142
|
+
|
|
133
143
|
default_config
|
|
134
144
|
end
|
|
135
145
|
yield @configure if block_given?
|
|
@@ -1205,7 +1215,8 @@ module Google
|
|
|
1205
1215
|
#
|
|
1206
1216
|
# Note: The transcript entries returned by the Google Meet API might not
|
|
1207
1217
|
# match the transcription found in the Google Docs transcript file. This can
|
|
1208
|
-
# occur when
|
|
1218
|
+
# occur when 1) we have interleaved speakers within milliseconds, or
|
|
1219
|
+
# 2) the Google Docs transcript file is modified after generation.
|
|
1209
1220
|
#
|
|
1210
1221
|
# @overload get_transcript_entry(request, options = nil)
|
|
1211
1222
|
# Pass arguments to `get_transcript_entry` via a request object, either of type
|
|
@@ -1295,7 +1306,8 @@ module Google
|
|
|
1295
1306
|
#
|
|
1296
1307
|
# Note: The transcript entries returned by the Google Meet API might not
|
|
1297
1308
|
# match the transcription found in the Google Docs transcript file. This can
|
|
1298
|
-
# occur when
|
|
1309
|
+
# occur when 1) we have interleaved speakers within milliseconds, or
|
|
1310
|
+
# 2) the Google Docs transcript file is modified after generation.
|
|
1299
1311
|
#
|
|
1300
1312
|
# @overload list_transcript_entries(request, options = nil)
|
|
1301
1313
|
# Pass arguments to `list_transcript_entries` via a request object, either of type
|
|
@@ -1394,6 +1406,191 @@ module Google
|
|
|
1394
1406
|
raise ::Google::Cloud::Error.from_error(e)
|
|
1395
1407
|
end
|
|
1396
1408
|
|
|
1409
|
+
##
|
|
1410
|
+
# Gets smart notes by smart note ID.
|
|
1411
|
+
#
|
|
1412
|
+
# @overload get_smart_note(request, options = nil)
|
|
1413
|
+
# Pass arguments to `get_smart_note` via a request object, either of type
|
|
1414
|
+
# {::Google::Apps::Meet::V2::GetSmartNoteRequest} or an equivalent Hash.
|
|
1415
|
+
#
|
|
1416
|
+
# @param request [::Google::Apps::Meet::V2::GetSmartNoteRequest, ::Hash]
|
|
1417
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1418
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1419
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1420
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1421
|
+
#
|
|
1422
|
+
# @overload get_smart_note(name: nil)
|
|
1423
|
+
# Pass arguments to `get_smart_note` via keyword arguments. Note that at
|
|
1424
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1425
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1426
|
+
#
|
|
1427
|
+
# @param name [::String]
|
|
1428
|
+
# Required. Resource name of the smart note.
|
|
1429
|
+
# Format: conferenceRecords/\\{conference_record}/smartNotes/\\{smart_note}
|
|
1430
|
+
#
|
|
1431
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
1432
|
+
# @yieldparam response [::Google::Apps::Meet::V2::SmartNote]
|
|
1433
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
1434
|
+
#
|
|
1435
|
+
# @return [::Google::Apps::Meet::V2::SmartNote]
|
|
1436
|
+
#
|
|
1437
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1438
|
+
#
|
|
1439
|
+
# @example Basic example
|
|
1440
|
+
# require "google/apps/meet/v2"
|
|
1441
|
+
#
|
|
1442
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1443
|
+
# client = Google::Apps::Meet::V2::ConferenceRecordsService::Client.new
|
|
1444
|
+
#
|
|
1445
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1446
|
+
# request = Google::Apps::Meet::V2::GetSmartNoteRequest.new
|
|
1447
|
+
#
|
|
1448
|
+
# # Call the get_smart_note method.
|
|
1449
|
+
# result = client.get_smart_note request
|
|
1450
|
+
#
|
|
1451
|
+
# # The returned object is of type Google::Apps::Meet::V2::SmartNote.
|
|
1452
|
+
# p result
|
|
1453
|
+
#
|
|
1454
|
+
def get_smart_note request, options = nil
|
|
1455
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1456
|
+
|
|
1457
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2::GetSmartNoteRequest
|
|
1458
|
+
|
|
1459
|
+
# Converts hash and nil to an options object
|
|
1460
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1461
|
+
|
|
1462
|
+
# Customize the options with defaults
|
|
1463
|
+
metadata = @config.rpcs.get_smart_note.metadata.to_h
|
|
1464
|
+
|
|
1465
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1466
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1467
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1468
|
+
gapic_version: ::Google::Apps::Meet::V2::VERSION
|
|
1469
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1470
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1471
|
+
|
|
1472
|
+
header_params = {}
|
|
1473
|
+
if request.name
|
|
1474
|
+
header_params["name"] = request.name
|
|
1475
|
+
end
|
|
1476
|
+
|
|
1477
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1478
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1479
|
+
|
|
1480
|
+
options.apply_defaults timeout: @config.rpcs.get_smart_note.timeout,
|
|
1481
|
+
metadata: metadata,
|
|
1482
|
+
retry_policy: @config.rpcs.get_smart_note.retry_policy
|
|
1483
|
+
|
|
1484
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1485
|
+
metadata: @config.metadata,
|
|
1486
|
+
retry_policy: @config.retry_policy
|
|
1487
|
+
|
|
1488
|
+
@conference_records_service_stub.call_rpc :get_smart_note, request, options: options do |response, operation|
|
|
1489
|
+
yield response, operation if block_given?
|
|
1490
|
+
end
|
|
1491
|
+
rescue ::GRPC::BadStatus => e
|
|
1492
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1493
|
+
end
|
|
1494
|
+
|
|
1495
|
+
##
|
|
1496
|
+
# Lists the set of smart notes from the conference record. By default,
|
|
1497
|
+
# ordered by start time and in ascending order.
|
|
1498
|
+
#
|
|
1499
|
+
# @overload list_smart_notes(request, options = nil)
|
|
1500
|
+
# Pass arguments to `list_smart_notes` via a request object, either of type
|
|
1501
|
+
# {::Google::Apps::Meet::V2::ListSmartNotesRequest} or an equivalent Hash.
|
|
1502
|
+
#
|
|
1503
|
+
# @param request [::Google::Apps::Meet::V2::ListSmartNotesRequest, ::Hash]
|
|
1504
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1505
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1506
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1507
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1508
|
+
#
|
|
1509
|
+
# @overload list_smart_notes(parent: nil, page_size: nil, page_token: nil)
|
|
1510
|
+
# Pass arguments to `list_smart_notes` via keyword arguments. Note that at
|
|
1511
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1512
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1513
|
+
#
|
|
1514
|
+
# @param parent [::String]
|
|
1515
|
+
# Required. Format: `conferenceRecords/{conference_record}`
|
|
1516
|
+
# @param page_size [::Integer]
|
|
1517
|
+
# Optional. Maximum number of smart notes to return. The service might return
|
|
1518
|
+
# fewer than this value. If unspecified, at most 10 smart notes are returned.
|
|
1519
|
+
# The maximum value is 100; values above 100 are coerced to 100.
|
|
1520
|
+
# Maximum might change in the future.
|
|
1521
|
+
# @param page_token [::String]
|
|
1522
|
+
# Optional. Page token returned from previous List Call.
|
|
1523
|
+
#
|
|
1524
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
1525
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2::SmartNote>]
|
|
1526
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
1527
|
+
#
|
|
1528
|
+
# @return [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2::SmartNote>]
|
|
1529
|
+
#
|
|
1530
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1531
|
+
#
|
|
1532
|
+
# @example Basic example
|
|
1533
|
+
# require "google/apps/meet/v2"
|
|
1534
|
+
#
|
|
1535
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1536
|
+
# client = Google::Apps::Meet::V2::ConferenceRecordsService::Client.new
|
|
1537
|
+
#
|
|
1538
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1539
|
+
# request = Google::Apps::Meet::V2::ListSmartNotesRequest.new
|
|
1540
|
+
#
|
|
1541
|
+
# # Call the list_smart_notes method.
|
|
1542
|
+
# result = client.list_smart_notes request
|
|
1543
|
+
#
|
|
1544
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
1545
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
1546
|
+
# result.each do |item|
|
|
1547
|
+
# # Each element is of type ::Google::Apps::Meet::V2::SmartNote.
|
|
1548
|
+
# p item
|
|
1549
|
+
# end
|
|
1550
|
+
#
|
|
1551
|
+
def list_smart_notes request, options = nil
|
|
1552
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1553
|
+
|
|
1554
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2::ListSmartNotesRequest
|
|
1555
|
+
|
|
1556
|
+
# Converts hash and nil to an options object
|
|
1557
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1558
|
+
|
|
1559
|
+
# Customize the options with defaults
|
|
1560
|
+
metadata = @config.rpcs.list_smart_notes.metadata.to_h
|
|
1561
|
+
|
|
1562
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1563
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1564
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1565
|
+
gapic_version: ::Google::Apps::Meet::V2::VERSION
|
|
1566
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1567
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1568
|
+
|
|
1569
|
+
header_params = {}
|
|
1570
|
+
if request.parent
|
|
1571
|
+
header_params["parent"] = request.parent
|
|
1572
|
+
end
|
|
1573
|
+
|
|
1574
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1575
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1576
|
+
|
|
1577
|
+
options.apply_defaults timeout: @config.rpcs.list_smart_notes.timeout,
|
|
1578
|
+
metadata: metadata,
|
|
1579
|
+
retry_policy: @config.rpcs.list_smart_notes.retry_policy
|
|
1580
|
+
|
|
1581
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1582
|
+
metadata: @config.metadata,
|
|
1583
|
+
retry_policy: @config.retry_policy
|
|
1584
|
+
|
|
1585
|
+
@conference_records_service_stub.call_rpc :list_smart_notes, request, options: options do |response, operation|
|
|
1586
|
+
response = ::Gapic::PagedEnumerable.new @conference_records_service_stub, :list_smart_notes, request, response, operation, options
|
|
1587
|
+
yield response, operation if block_given?
|
|
1588
|
+
throw :response, response
|
|
1589
|
+
end
|
|
1590
|
+
rescue ::GRPC::BadStatus => e
|
|
1591
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1592
|
+
end
|
|
1593
|
+
|
|
1397
1594
|
##
|
|
1398
1595
|
# Configuration class for the ConferenceRecordsService API.
|
|
1399
1596
|
#
|
|
@@ -1490,6 +1687,7 @@ module Google
|
|
|
1490
1687
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
1491
1688
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
1492
1689
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1690
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
1493
1691
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
1494
1692
|
# trigger a retry.
|
|
1495
1693
|
# @return [::Hash]
|
|
@@ -1573,6 +1771,7 @@ module Google
|
|
|
1573
1771
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
1574
1772
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
1575
1773
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1774
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
1576
1775
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
1577
1776
|
# trigger a retry.
|
|
1578
1777
|
#
|
|
@@ -1637,6 +1836,16 @@ module Google
|
|
|
1637
1836
|
# @return [::Gapic::Config::Method]
|
|
1638
1837
|
#
|
|
1639
1838
|
attr_reader :list_transcript_entries
|
|
1839
|
+
##
|
|
1840
|
+
# RPC-specific configuration for `get_smart_note`
|
|
1841
|
+
# @return [::Gapic::Config::Method]
|
|
1842
|
+
#
|
|
1843
|
+
attr_reader :get_smart_note
|
|
1844
|
+
##
|
|
1845
|
+
# RPC-specific configuration for `list_smart_notes`
|
|
1846
|
+
# @return [::Gapic::Config::Method]
|
|
1847
|
+
#
|
|
1848
|
+
attr_reader :list_smart_notes
|
|
1640
1849
|
|
|
1641
1850
|
# @private
|
|
1642
1851
|
def initialize parent_rpcs = nil
|
|
@@ -1664,6 +1873,10 @@ module Google
|
|
|
1664
1873
|
@get_transcript_entry = ::Gapic::Config::Method.new get_transcript_entry_config
|
|
1665
1874
|
list_transcript_entries_config = parent_rpcs.list_transcript_entries if parent_rpcs.respond_to? :list_transcript_entries
|
|
1666
1875
|
@list_transcript_entries = ::Gapic::Config::Method.new list_transcript_entries_config
|
|
1876
|
+
get_smart_note_config = parent_rpcs.get_smart_note if parent_rpcs.respond_to? :get_smart_note
|
|
1877
|
+
@get_smart_note = ::Gapic::Config::Method.new get_smart_note_config
|
|
1878
|
+
list_smart_notes_config = parent_rpcs.list_smart_notes if parent_rpcs.respond_to? :list_smart_notes
|
|
1879
|
+
@list_smart_notes = ::Gapic::Config::Method.new list_smart_notes_config
|
|
1667
1880
|
|
|
1668
1881
|
yield self if block_given?
|
|
1669
1882
|
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -91,6 +91,23 @@ module Google
|
|
|
91
91
|
"conferenceRecords/#{conference_record}/recordings/#{recording}"
|
|
92
92
|
end
|
|
93
93
|
|
|
94
|
+
##
|
|
95
|
+
# Create a fully-qualified SmartNote resource string.
|
|
96
|
+
#
|
|
97
|
+
# The resource will be in the following format:
|
|
98
|
+
#
|
|
99
|
+
# `conferenceRecords/{conference_record}/smartNotes/{smart_note}`
|
|
100
|
+
#
|
|
101
|
+
# @param conference_record [String]
|
|
102
|
+
# @param smart_note [String]
|
|
103
|
+
#
|
|
104
|
+
# @return [::String]
|
|
105
|
+
def smart_note_path conference_record:, smart_note:
|
|
106
|
+
raise ::ArgumentError, "conference_record cannot contain /" if conference_record.to_s.include? "/"
|
|
107
|
+
|
|
108
|
+
"conferenceRecords/#{conference_record}/smartNotes/#{smart_note}"
|
|
109
|
+
end
|
|
110
|
+
|
|
94
111
|
##
|
|
95
112
|
# Create a fully-qualified Transcript resource string.
|
|
96
113
|
#
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -132,6 +132,16 @@ module Google
|
|
|
132
132
|
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
+
default_config.rpcs.get_smart_note.timeout = 60.0
|
|
136
|
+
default_config.rpcs.get_smart_note.retry_policy = {
|
|
137
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
default_config.rpcs.list_smart_notes.timeout = 60.0
|
|
141
|
+
default_config.rpcs.list_smart_notes.retry_policy = {
|
|
142
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
143
|
+
}
|
|
144
|
+
|
|
135
145
|
default_config
|
|
136
146
|
end
|
|
137
147
|
yield @configure if block_given?
|
|
@@ -1136,7 +1146,8 @@ module Google
|
|
|
1136
1146
|
#
|
|
1137
1147
|
# Note: The transcript entries returned by the Google Meet API might not
|
|
1138
1148
|
# match the transcription found in the Google Docs transcript file. This can
|
|
1139
|
-
# occur when
|
|
1149
|
+
# occur when 1) we have interleaved speakers within milliseconds, or
|
|
1150
|
+
# 2) the Google Docs transcript file is modified after generation.
|
|
1140
1151
|
#
|
|
1141
1152
|
# @overload get_transcript_entry(request, options = nil)
|
|
1142
1153
|
# Pass arguments to `get_transcript_entry` via a request object, either of type
|
|
@@ -1219,7 +1230,8 @@ module Google
|
|
|
1219
1230
|
#
|
|
1220
1231
|
# Note: The transcript entries returned by the Google Meet API might not
|
|
1221
1232
|
# match the transcription found in the Google Docs transcript file. This can
|
|
1222
|
-
# occur when
|
|
1233
|
+
# occur when 1) we have interleaved speakers within milliseconds, or
|
|
1234
|
+
# 2) the Google Docs transcript file is modified after generation.
|
|
1223
1235
|
#
|
|
1224
1236
|
# @overload list_transcript_entries(request, options = nil)
|
|
1225
1237
|
# Pass arguments to `list_transcript_entries` via a request object, either of type
|
|
@@ -1311,6 +1323,177 @@ module Google
|
|
|
1311
1323
|
raise ::Google::Cloud::Error.from_error(e)
|
|
1312
1324
|
end
|
|
1313
1325
|
|
|
1326
|
+
##
|
|
1327
|
+
# Gets smart notes by smart note ID.
|
|
1328
|
+
#
|
|
1329
|
+
# @overload get_smart_note(request, options = nil)
|
|
1330
|
+
# Pass arguments to `get_smart_note` via a request object, either of type
|
|
1331
|
+
# {::Google::Apps::Meet::V2::GetSmartNoteRequest} or an equivalent Hash.
|
|
1332
|
+
#
|
|
1333
|
+
# @param request [::Google::Apps::Meet::V2::GetSmartNoteRequest, ::Hash]
|
|
1334
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1335
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1336
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1337
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1338
|
+
#
|
|
1339
|
+
# @overload get_smart_note(name: nil)
|
|
1340
|
+
# Pass arguments to `get_smart_note` via keyword arguments. Note that at
|
|
1341
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1342
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1343
|
+
#
|
|
1344
|
+
# @param name [::String]
|
|
1345
|
+
# Required. Resource name of the smart note.
|
|
1346
|
+
# Format: conferenceRecords/\\{conference_record}/smartNotes/\\{smart_note}
|
|
1347
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1348
|
+
# @yieldparam result [::Google::Apps::Meet::V2::SmartNote]
|
|
1349
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1350
|
+
#
|
|
1351
|
+
# @return [::Google::Apps::Meet::V2::SmartNote]
|
|
1352
|
+
#
|
|
1353
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1354
|
+
#
|
|
1355
|
+
# @example Basic example
|
|
1356
|
+
# require "google/apps/meet/v2"
|
|
1357
|
+
#
|
|
1358
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1359
|
+
# client = Google::Apps::Meet::V2::ConferenceRecordsService::Rest::Client.new
|
|
1360
|
+
#
|
|
1361
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1362
|
+
# request = Google::Apps::Meet::V2::GetSmartNoteRequest.new
|
|
1363
|
+
#
|
|
1364
|
+
# # Call the get_smart_note method.
|
|
1365
|
+
# result = client.get_smart_note request
|
|
1366
|
+
#
|
|
1367
|
+
# # The returned object is of type Google::Apps::Meet::V2::SmartNote.
|
|
1368
|
+
# p result
|
|
1369
|
+
#
|
|
1370
|
+
def get_smart_note request, options = nil
|
|
1371
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1372
|
+
|
|
1373
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2::GetSmartNoteRequest
|
|
1374
|
+
|
|
1375
|
+
# Converts hash and nil to an options object
|
|
1376
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1377
|
+
|
|
1378
|
+
# Customize the options with defaults
|
|
1379
|
+
call_metadata = @config.rpcs.get_smart_note.metadata.to_h
|
|
1380
|
+
|
|
1381
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1382
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1383
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1384
|
+
gapic_version: ::Google::Apps::Meet::V2::VERSION,
|
|
1385
|
+
transports_version_send: [:rest]
|
|
1386
|
+
|
|
1387
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1388
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1389
|
+
|
|
1390
|
+
options.apply_defaults timeout: @config.rpcs.get_smart_note.timeout,
|
|
1391
|
+
metadata: call_metadata,
|
|
1392
|
+
retry_policy: @config.rpcs.get_smart_note.retry_policy
|
|
1393
|
+
|
|
1394
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1395
|
+
metadata: @config.metadata,
|
|
1396
|
+
retry_policy: @config.retry_policy
|
|
1397
|
+
|
|
1398
|
+
@conference_records_service_stub.get_smart_note request, options do |result, operation|
|
|
1399
|
+
yield result, operation if block_given?
|
|
1400
|
+
end
|
|
1401
|
+
rescue ::Gapic::Rest::Error => e
|
|
1402
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1403
|
+
end
|
|
1404
|
+
|
|
1405
|
+
##
|
|
1406
|
+
# Lists the set of smart notes from the conference record. By default,
|
|
1407
|
+
# ordered by start time and in ascending order.
|
|
1408
|
+
#
|
|
1409
|
+
# @overload list_smart_notes(request, options = nil)
|
|
1410
|
+
# Pass arguments to `list_smart_notes` via a request object, either of type
|
|
1411
|
+
# {::Google::Apps::Meet::V2::ListSmartNotesRequest} or an equivalent Hash.
|
|
1412
|
+
#
|
|
1413
|
+
# @param request [::Google::Apps::Meet::V2::ListSmartNotesRequest, ::Hash]
|
|
1414
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1415
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1416
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1417
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1418
|
+
#
|
|
1419
|
+
# @overload list_smart_notes(parent: nil, page_size: nil, page_token: nil)
|
|
1420
|
+
# Pass arguments to `list_smart_notes` via keyword arguments. Note that at
|
|
1421
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1422
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1423
|
+
#
|
|
1424
|
+
# @param parent [::String]
|
|
1425
|
+
# Required. Format: `conferenceRecords/{conference_record}`
|
|
1426
|
+
# @param page_size [::Integer]
|
|
1427
|
+
# Optional. Maximum number of smart notes to return. The service might return
|
|
1428
|
+
# fewer than this value. If unspecified, at most 10 smart notes are returned.
|
|
1429
|
+
# The maximum value is 100; values above 100 are coerced to 100.
|
|
1430
|
+
# Maximum might change in the future.
|
|
1431
|
+
# @param page_token [::String]
|
|
1432
|
+
# Optional. Page token returned from previous List Call.
|
|
1433
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1434
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Apps::Meet::V2::SmartNote>]
|
|
1435
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1436
|
+
#
|
|
1437
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Apps::Meet::V2::SmartNote>]
|
|
1438
|
+
#
|
|
1439
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1440
|
+
#
|
|
1441
|
+
# @example Basic example
|
|
1442
|
+
# require "google/apps/meet/v2"
|
|
1443
|
+
#
|
|
1444
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1445
|
+
# client = Google::Apps::Meet::V2::ConferenceRecordsService::Rest::Client.new
|
|
1446
|
+
#
|
|
1447
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1448
|
+
# request = Google::Apps::Meet::V2::ListSmartNotesRequest.new
|
|
1449
|
+
#
|
|
1450
|
+
# # Call the list_smart_notes method.
|
|
1451
|
+
# result = client.list_smart_notes request
|
|
1452
|
+
#
|
|
1453
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
1454
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
1455
|
+
# result.each do |item|
|
|
1456
|
+
# # Each element is of type ::Google::Apps::Meet::V2::SmartNote.
|
|
1457
|
+
# p item
|
|
1458
|
+
# end
|
|
1459
|
+
#
|
|
1460
|
+
def list_smart_notes request, options = nil
|
|
1461
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1462
|
+
|
|
1463
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2::ListSmartNotesRequest
|
|
1464
|
+
|
|
1465
|
+
# Converts hash and nil to an options object
|
|
1466
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1467
|
+
|
|
1468
|
+
# Customize the options with defaults
|
|
1469
|
+
call_metadata = @config.rpcs.list_smart_notes.metadata.to_h
|
|
1470
|
+
|
|
1471
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1472
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1473
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1474
|
+
gapic_version: ::Google::Apps::Meet::V2::VERSION,
|
|
1475
|
+
transports_version_send: [:rest]
|
|
1476
|
+
|
|
1477
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1478
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1479
|
+
|
|
1480
|
+
options.apply_defaults timeout: @config.rpcs.list_smart_notes.timeout,
|
|
1481
|
+
metadata: call_metadata,
|
|
1482
|
+
retry_policy: @config.rpcs.list_smart_notes.retry_policy
|
|
1483
|
+
|
|
1484
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1485
|
+
metadata: @config.metadata,
|
|
1486
|
+
retry_policy: @config.retry_policy
|
|
1487
|
+
|
|
1488
|
+
@conference_records_service_stub.list_smart_notes request, options do |result, operation|
|
|
1489
|
+
result = ::Gapic::Rest::PagedEnumerable.new @conference_records_service_stub, :list_smart_notes, "smart_notes", request, result, options
|
|
1490
|
+
yield result, operation if block_given?
|
|
1491
|
+
throw :response, result
|
|
1492
|
+
end
|
|
1493
|
+
rescue ::Gapic::Rest::Error => e
|
|
1494
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1495
|
+
end
|
|
1496
|
+
|
|
1314
1497
|
##
|
|
1315
1498
|
# Configuration class for the ConferenceRecordsService REST API.
|
|
1316
1499
|
#
|
|
@@ -1381,6 +1564,7 @@ module Google
|
|
|
1381
1564
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
1382
1565
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
1383
1566
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1567
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
1384
1568
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
1385
1569
|
# trigger a retry.
|
|
1386
1570
|
# @return [::Hash]
|
|
@@ -1453,6 +1637,7 @@ module Google
|
|
|
1453
1637
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
1454
1638
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
1455
1639
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1640
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
1456
1641
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
1457
1642
|
# trigger a retry.
|
|
1458
1643
|
#
|
|
@@ -1517,6 +1702,16 @@ module Google
|
|
|
1517
1702
|
# @return [::Gapic::Config::Method]
|
|
1518
1703
|
#
|
|
1519
1704
|
attr_reader :list_transcript_entries
|
|
1705
|
+
##
|
|
1706
|
+
# RPC-specific configuration for `get_smart_note`
|
|
1707
|
+
# @return [::Gapic::Config::Method]
|
|
1708
|
+
#
|
|
1709
|
+
attr_reader :get_smart_note
|
|
1710
|
+
##
|
|
1711
|
+
# RPC-specific configuration for `list_smart_notes`
|
|
1712
|
+
# @return [::Gapic::Config::Method]
|
|
1713
|
+
#
|
|
1714
|
+
attr_reader :list_smart_notes
|
|
1520
1715
|
|
|
1521
1716
|
# @private
|
|
1522
1717
|
def initialize parent_rpcs = nil
|
|
@@ -1544,6 +1739,10 @@ module Google
|
|
|
1544
1739
|
@get_transcript_entry = ::Gapic::Config::Method.new get_transcript_entry_config
|
|
1545
1740
|
list_transcript_entries_config = parent_rpcs.list_transcript_entries if parent_rpcs.respond_to? :list_transcript_entries
|
|
1546
1741
|
@list_transcript_entries = ::Gapic::Config::Method.new list_transcript_entries_config
|
|
1742
|
+
get_smart_note_config = parent_rpcs.get_smart_note if parent_rpcs.respond_to? :get_smart_note
|
|
1743
|
+
@get_smart_note = ::Gapic::Config::Method.new get_smart_note_config
|
|
1744
|
+
list_smart_notes_config = parent_rpcs.list_smart_notes if parent_rpcs.respond_to? :list_smart_notes
|
|
1745
|
+
@list_smart_notes = ::Gapic::Config::Method.new list_smart_notes_config
|
|
1547
1746
|
|
|
1548
1747
|
yield self if block_given?
|
|
1549
1748
|
end
|