google-cloud-gemini_data_analytics-v1beta 1.0.0 → 1.2.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.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +4 -4
  3. data/README.md +5 -6
  4. data/lib/google/cloud/gemini_data_analytics/v1beta/bindings_override.rb +2 -2
  5. data/lib/google/cloud/gemini_data_analytics/v1beta/data_a2_a_service/client.rb +697 -0
  6. data/lib/google/cloud/gemini_data_analytics/v1beta/data_a2_a_service/credentials.rb +47 -0
  7. data/lib/google/cloud/gemini_data_analytics/v1beta/data_a2_a_service/rest/client.rb +643 -0
  8. data/lib/google/cloud/gemini_data_analytics/v1beta/data_a2_a_service/rest/service_stub.rb +283 -0
  9. data/lib/google/cloud/gemini_data_analytics/v1beta/data_a2_a_service/rest.rb +53 -0
  10. data/lib/google/cloud/gemini_data_analytics/v1beta/data_a2_a_service.rb +55 -0
  11. data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/client.rb +237 -2
  12. data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/credentials.rb +1 -1
  13. data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/operations.rb +1 -1
  14. data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/paths.rb +1 -1
  15. data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/rest/client.rb +223 -2
  16. data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/rest/operations.rb +1 -1
  17. data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/rest/service_stub.rb +124 -1
  18. data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/rest.rb +1 -1
  19. data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service.rb +1 -1
  20. data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/client.rb +106 -1
  21. data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/credentials.rb +1 -1
  22. data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/paths.rb +1 -1
  23. data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/rest/client.rb +99 -1
  24. data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/rest/service_stub.rb +63 -1
  25. data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/rest.rb +1 -1
  26. data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service.rb +1 -1
  27. data/lib/google/cloud/gemini_data_analytics/v1beta/rest.rb +3 -2
  28. data/lib/google/cloud/gemini_data_analytics/v1beta/version.rb +1 -1
  29. data/lib/google/cloud/gemini_data_analytics/v1beta.rb +4 -3
  30. data/lib/google/cloud/geminidataanalytics/v1beta/context_pb.rb +2 -1
  31. data/lib/google/cloud/geminidataanalytics/v1beta/conversation_pb.rb +3 -1
  32. data/lib/google/cloud/geminidataanalytics/v1beta/data_a2a_service_pb.rb +64 -0
  33. data/lib/google/cloud/geminidataanalytics/v1beta/data_a2a_service_services_pb.rb +52 -0
  34. data/lib/google/cloud/geminidataanalytics/v1beta/data_agent_pb.rb +2 -1
  35. data/lib/google/cloud/geminidataanalytics/v1beta/data_agent_service_pb.rb +6 -1
  36. data/lib/google/cloud/geminidataanalytics/v1beta/data_agent_service_services_pb.rb +7 -1
  37. data/lib/google/cloud/geminidataanalytics/v1beta/data_chat_service_pb.rb +2 -1
  38. data/lib/google/cloud/geminidataanalytics/v1beta/data_chat_service_services_pb.rb +3 -1
  39. data/lib/google/cloud/geminidataanalytics/v1beta/datasource_pb.rb +5 -1
  40. data/lib/google/cloud/geminidataanalytics/v1beta/usage_pb.rb +21 -0
  41. data/lib/google-cloud-gemini_data_analytics-v1beta.rb +1 -1
  42. data/proto_docs/google/api/client.rb +1 -1
  43. data/proto_docs/google/api/field_behavior.rb +1 -1
  44. data/proto_docs/google/api/field_info.rb +1 -1
  45. data/proto_docs/google/api/launch_stage.rb +1 -1
  46. data/proto_docs/google/api/resource.rb +1 -1
  47. data/proto_docs/google/cloud/geminidataanalytics/v1beta/agent_context.rb +1 -1
  48. data/proto_docs/google/cloud/geminidataanalytics/v1beta/context.rb +83 -2
  49. data/proto_docs/google/cloud/geminidataanalytics/v1beta/conversation.rb +28 -4
  50. data/proto_docs/google/cloud/geminidataanalytics/v1beta/credentials.rb +1 -1
  51. data/proto_docs/google/cloud/geminidataanalytics/v1beta/data_a2a_service.rb +825 -0
  52. data/proto_docs/google/cloud/geminidataanalytics/v1beta/data_agent.rb +52 -1
  53. data/proto_docs/google/cloud/geminidataanalytics/v1beta/data_agent_service.rb +101 -1
  54. data/proto_docs/google/cloud/geminidataanalytics/v1beta/data_analytics_agent.rb +1 -1
  55. data/proto_docs/google/cloud/geminidataanalytics/v1beta/data_chat_service.rb +23 -4
  56. data/proto_docs/google/cloud/geminidataanalytics/v1beta/datasource.rb +108 -18
  57. data/proto_docs/google/cloud/geminidataanalytics/v1beta/usage.rb +38 -0
  58. data/proto_docs/google/iam/v1/iam_policy.rb +1 -1
  59. data/proto_docs/google/iam/v1/options.rb +1 -1
  60. data/proto_docs/google/iam/v1/policy.rb +1 -1
  61. data/proto_docs/google/longrunning/operations.rb +1 -1
  62. data/proto_docs/google/protobuf/any.rb +1 -1
  63. data/proto_docs/google/protobuf/duration.rb +1 -1
  64. data/proto_docs/google/protobuf/empty.rb +1 -1
  65. data/proto_docs/google/protobuf/field_mask.rb +1 -1
  66. data/proto_docs/google/protobuf/struct.rb +1 -1
  67. data/proto_docs/google/protobuf/timestamp.rb +8 -7
  68. data/proto_docs/google/protobuf/wrappers.rb +1 -1
  69. data/proto_docs/google/rpc/status.rb +1 -1
  70. data/proto_docs/google/type/expr.rb +1 -1
  71. metadata +20 -7
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
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.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
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.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
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.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
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.
@@ -225,7 +225,7 @@ module Google
225
225
  # @param options [::Gapic::CallOptions, ::Hash]
226
226
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
227
227
  #
228
- # @overload list_data_agents(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil, show_deleted: nil)
228
+ # @overload list_data_agents(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil, show_deleted: nil, creator_filter: nil)
229
229
  # Pass arguments to `list_data_agents` via keyword arguments. Note that at
230
230
  # least one keyword argument is required. To specify no parameters, or to keep all
231
231
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -250,6 +250,8 @@ module Google
250
250
  # @param show_deleted [::Boolean]
251
251
  # Optional. If true, the list results will include soft-deleted DataAgents.
252
252
  # Defaults to false.
253
+ # @param creator_filter [::Google::Cloud::GeminiDataAnalytics::V1beta::ListAccessibleDataAgentsRequest::CreatorFilter]
254
+ # Optional. Filter for the creator of the agent.
253
255
  # @yield [result, operation] Access the result along with the TransportOperation object
254
256
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent>]
255
257
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1276,6 +1278,211 @@ module Google
1276
1278
  raise ::Google::Cloud::Error.from_error(e)
1277
1279
  end
1278
1280
 
1281
+ ##
1282
+ # Enables/Disables required GCP services and configures AgentOps
1283
+ # observability settings calling the Admin Settings executable node to
1284
+ # update the AgentOps Observability feature.
1285
+ #
1286
+ # @overload set_agent_ops_observability(request, options = nil)
1287
+ # Pass arguments to `set_agent_ops_observability` via a request object, either of type
1288
+ # {::Google::Cloud::GeminiDataAnalytics::V1beta::SetAgentOpsObservabilityRequest} or an equivalent Hash.
1289
+ #
1290
+ # @param request [::Google::Cloud::GeminiDataAnalytics::V1beta::SetAgentOpsObservabilityRequest, ::Hash]
1291
+ # A request object representing the call parameters. Required. To specify no
1292
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1293
+ # @param options [::Gapic::CallOptions, ::Hash]
1294
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1295
+ #
1296
+ # @overload set_agent_ops_observability(parent: nil, telemetry_enabled: nil, data_source_type: nil, bqaa_enabled: nil, update_mask: nil)
1297
+ # Pass arguments to `set_agent_ops_observability` via keyword arguments. Note that at
1298
+ # least one keyword argument is required. To specify no parameters, or to keep all
1299
+ # the default parameter values, pass an empty Hash as a request object (see above).
1300
+ #
1301
+ # @param parent [::String]
1302
+ # Required. Parent value for SetAgentOpsObservabilityRequest.
1303
+ # Format: projects/\\{project}/locations/\\{location}
1304
+ # @param telemetry_enabled [::Boolean]
1305
+ # Optional. Whether to enable or disable AgentOps observability.
1306
+ # When update_mask is provided, this field is ignored unless specified in the
1307
+ # mask.
1308
+ # @param data_source_type [::String]
1309
+ # Required. The data source type for which to set observability settings.
1310
+ # Examples: "bigquery", "looker"
1311
+ # @param bqaa_enabled [::Boolean]
1312
+ # Optional. Whether BigQuery Agent Analytics is enabled.
1313
+ # Note: An explicit `update_mask` containing "bqaa_enabled" is required to
1314
+ # modify this field. If `update_mask` is omitted, this field is ignored and
1315
+ # an existing enabled setting cannot be disabled.
1316
+ #
1317
+ # This is a project-level setting and does not by itself enable trace
1318
+ # logging for any individual agent. Per-agent trace logging is controlled
1319
+ # by `DataAgent.bigquery_agent_analytics_enabled` together with
1320
+ # `DataAgent.bigquery_agent_analytics_table`; an agent does not inherit
1321
+ # this setting.
1322
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1323
+ # Optional. Field mask is used to specify the fields to be overwritten by the
1324
+ # update. The fields specified in the update_mask are relative to the
1325
+ # resource. A field will be overwritten if it is in the mask.
1326
+ #
1327
+ # If the user does not provide a mask, only `telemetry_enabled` will be
1328
+ # updated (for backward compatibility with legacy callers). Note that
1329
+ # disabling BigQuery Agent Analytics (`bqaa_enabled = false`) requires
1330
+ # providing an explicit `update_mask` containing "bqaa_enabled".
1331
+ #
1332
+ # Per AIP-161:
1333
+ # - The special wildcard value '*' is supported to update all fields.
1334
+ # - Field paths should use snake_case, though camelCase equivalents
1335
+ # (`telemetryEnabled`, `bqaaEnabled`) are accepted for REST/JSON
1336
+ # transcoding compatibility.
1337
+ # @yield [result, operation] Access the result along with the TransportOperation object
1338
+ # @yieldparam result [::Gapic::Operation]
1339
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1340
+ #
1341
+ # @return [::Gapic::Operation]
1342
+ #
1343
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1344
+ #
1345
+ # @example Basic example
1346
+ # require "google/cloud/gemini_data_analytics/v1beta"
1347
+ #
1348
+ # # Create a client object. The client can be reused for multiple calls.
1349
+ # client = Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Rest::Client.new
1350
+ #
1351
+ # # Create a request. To set request fields, pass in keyword arguments.
1352
+ # request = Google::Cloud::GeminiDataAnalytics::V1beta::SetAgentOpsObservabilityRequest.new
1353
+ #
1354
+ # # Call the set_agent_ops_observability method.
1355
+ # result = client.set_agent_ops_observability request
1356
+ #
1357
+ # # The returned object is of type Gapic::Operation. You can use it to
1358
+ # # check the status of an operation, cancel it, or wait for results.
1359
+ # # Here is how to wait for a response.
1360
+ # result.wait_until_done! timeout: 60
1361
+ # if result.response?
1362
+ # p result.response
1363
+ # else
1364
+ # puts "No response received."
1365
+ # end
1366
+ #
1367
+ def set_agent_ops_observability request, options = nil
1368
+ raise ::ArgumentError, "request must be provided" if request.nil?
1369
+
1370
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::GeminiDataAnalytics::V1beta::SetAgentOpsObservabilityRequest
1371
+
1372
+ # Converts hash and nil to an options object
1373
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1374
+
1375
+ # Customize the options with defaults
1376
+ call_metadata = @config.rpcs.set_agent_ops_observability.metadata.to_h
1377
+
1378
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1379
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1380
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1381
+ gapic_version: ::Google::Cloud::GeminiDataAnalytics::V1beta::VERSION,
1382
+ transports_version_send: [:rest]
1383
+
1384
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1385
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1386
+
1387
+ options.apply_defaults timeout: @config.rpcs.set_agent_ops_observability.timeout,
1388
+ metadata: call_metadata,
1389
+ retry_policy: @config.rpcs.set_agent_ops_observability.retry_policy
1390
+
1391
+ options.apply_defaults timeout: @config.timeout,
1392
+ metadata: @config.metadata,
1393
+ retry_policy: @config.retry_policy
1394
+
1395
+ @data_agent_service_stub.set_agent_ops_observability request, options do |result, operation|
1396
+ result = ::Gapic::Operation.new result, @operations_client, options: options
1397
+ yield result, operation if block_given?
1398
+ throw :response, result
1399
+ end
1400
+ rescue ::Gapic::Rest::Error => e
1401
+ raise ::Google::Cloud::Error.from_error(e)
1402
+ end
1403
+
1404
+ ##
1405
+ # Gets AgentOps observability settings and status of required services.
1406
+ #
1407
+ # @overload retrieve_agent_ops_observability(request, options = nil)
1408
+ # Pass arguments to `retrieve_agent_ops_observability` via a request object, either of type
1409
+ # {::Google::Cloud::GeminiDataAnalytics::V1beta::RetrieveAgentOpsObservabilityRequest} or an equivalent Hash.
1410
+ #
1411
+ # @param request [::Google::Cloud::GeminiDataAnalytics::V1beta::RetrieveAgentOpsObservabilityRequest, ::Hash]
1412
+ # A request object representing the call parameters. Required. To specify no
1413
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1414
+ # @param options [::Gapic::CallOptions, ::Hash]
1415
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1416
+ #
1417
+ # @overload retrieve_agent_ops_observability(parent: nil, data_source_type: nil)
1418
+ # Pass arguments to `retrieve_agent_ops_observability` via keyword arguments. Note that at
1419
+ # least one keyword argument is required. To specify no parameters, or to keep all
1420
+ # the default parameter values, pass an empty Hash as a request object (see above).
1421
+ #
1422
+ # @param parent [::String]
1423
+ # Required. Parent value for RetrieveAgentOpsObservabilityRequest.
1424
+ # Format: projects/\\{project}/locations/\\{location}
1425
+ # @param data_source_type [::String]
1426
+ # Required. The data source type for which to retrieve observability
1427
+ # settings. Examples: "bigquery", "looker"
1428
+ # @yield [result, operation] Access the result along with the TransportOperation object
1429
+ # @yieldparam result [::Google::Cloud::GeminiDataAnalytics::V1beta::RetrieveAgentOpsObservabilityResponse]
1430
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1431
+ #
1432
+ # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::RetrieveAgentOpsObservabilityResponse]
1433
+ #
1434
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1435
+ #
1436
+ # @example Basic example
1437
+ # require "google/cloud/gemini_data_analytics/v1beta"
1438
+ #
1439
+ # # Create a client object. The client can be reused for multiple calls.
1440
+ # client = Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Rest::Client.new
1441
+ #
1442
+ # # Create a request. To set request fields, pass in keyword arguments.
1443
+ # request = Google::Cloud::GeminiDataAnalytics::V1beta::RetrieveAgentOpsObservabilityRequest.new
1444
+ #
1445
+ # # Call the retrieve_agent_ops_observability method.
1446
+ # result = client.retrieve_agent_ops_observability request
1447
+ #
1448
+ # # The returned object is of type Google::Cloud::GeminiDataAnalytics::V1beta::RetrieveAgentOpsObservabilityResponse.
1449
+ # p result
1450
+ #
1451
+ def retrieve_agent_ops_observability request, options = nil
1452
+ raise ::ArgumentError, "request must be provided" if request.nil?
1453
+
1454
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::GeminiDataAnalytics::V1beta::RetrieveAgentOpsObservabilityRequest
1455
+
1456
+ # Converts hash and nil to an options object
1457
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1458
+
1459
+ # Customize the options with defaults
1460
+ call_metadata = @config.rpcs.retrieve_agent_ops_observability.metadata.to_h
1461
+
1462
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1463
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1464
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1465
+ gapic_version: ::Google::Cloud::GeminiDataAnalytics::V1beta::VERSION,
1466
+ transports_version_send: [:rest]
1467
+
1468
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1469
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1470
+
1471
+ options.apply_defaults timeout: @config.rpcs.retrieve_agent_ops_observability.timeout,
1472
+ metadata: call_metadata,
1473
+ retry_policy: @config.rpcs.retrieve_agent_ops_observability.retry_policy
1474
+
1475
+ options.apply_defaults timeout: @config.timeout,
1476
+ metadata: @config.metadata,
1477
+ retry_policy: @config.retry_policy
1478
+
1479
+ @data_agent_service_stub.retrieve_agent_ops_observability request, options do |result, operation|
1480
+ yield result, operation if block_given?
1481
+ end
1482
+ rescue ::Gapic::Rest::Error => e
1483
+ raise ::Google::Cloud::Error.from_error(e)
1484
+ end
1485
+
1279
1486
  ##
1280
1487
  # Configuration class for the DataAgentService REST API.
1281
1488
  #
@@ -1486,6 +1693,16 @@ module Google
1486
1693
  # @return [::Gapic::Config::Method]
1487
1694
  #
1488
1695
  attr_reader :set_iam_policy
1696
+ ##
1697
+ # RPC-specific configuration for `set_agent_ops_observability`
1698
+ # @return [::Gapic::Config::Method]
1699
+ #
1700
+ attr_reader :set_agent_ops_observability
1701
+ ##
1702
+ # RPC-specific configuration for `retrieve_agent_ops_observability`
1703
+ # @return [::Gapic::Config::Method]
1704
+ #
1705
+ attr_reader :retrieve_agent_ops_observability
1489
1706
 
1490
1707
  # @private
1491
1708
  def initialize parent_rpcs = nil
@@ -1511,6 +1728,10 @@ module Google
1511
1728
  @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
1512
1729
  set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
1513
1730
  @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
1731
+ set_agent_ops_observability_config = parent_rpcs.set_agent_ops_observability if parent_rpcs.respond_to? :set_agent_ops_observability
1732
+ @set_agent_ops_observability = ::Gapic::Config::Method.new set_agent_ops_observability_config
1733
+ retrieve_agent_ops_observability_config = parent_rpcs.retrieve_agent_ops_observability if parent_rpcs.respond_to? :retrieve_agent_ops_observability
1734
+ @retrieve_agent_ops_observability = ::Gapic::Config::Method.new retrieve_agent_ops_observability_config
1514
1735
 
1515
1736
  yield self if block_given?
1516
1737
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
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.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
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.
@@ -513,6 +513,86 @@ module Google
513
513
  end
514
514
  end
515
515
 
516
+ ##
517
+ # Baseline implementation for the set_agent_ops_observability REST call
518
+ #
519
+ # @param request_pb [::Google::Cloud::GeminiDataAnalytics::V1beta::SetAgentOpsObservabilityRequest]
520
+ # A request object representing the call parameters. Required.
521
+ # @param options [::Gapic::CallOptions]
522
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
523
+ #
524
+ # @yield [result, operation] Access the result along with the TransportOperation object
525
+ # @yieldparam result [::Google::Longrunning::Operation]
526
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
527
+ #
528
+ # @return [::Google::Longrunning::Operation]
529
+ # A result object deserialized from the server's reply
530
+ def set_agent_ops_observability request_pb, options = nil
531
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
532
+
533
+ verb, uri, query_string_params, body = ServiceStub.transcode_set_agent_ops_observability_request request_pb
534
+ query_string_params = if query_string_params.any?
535
+ query_string_params.to_h { |p| p.split "=", 2 }
536
+ else
537
+ {}
538
+ end
539
+
540
+ response = @client_stub.make_http_request(
541
+ verb,
542
+ uri: uri,
543
+ body: body || "",
544
+ params: query_string_params,
545
+ method_name: "set_agent_ops_observability",
546
+ options: options
547
+ )
548
+ operation = ::Gapic::Rest::TransportOperation.new response
549
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
550
+ catch :response do
551
+ yield result, operation if block_given?
552
+ result
553
+ end
554
+ end
555
+
556
+ ##
557
+ # Baseline implementation for the retrieve_agent_ops_observability REST call
558
+ #
559
+ # @param request_pb [::Google::Cloud::GeminiDataAnalytics::V1beta::RetrieveAgentOpsObservabilityRequest]
560
+ # A request object representing the call parameters. Required.
561
+ # @param options [::Gapic::CallOptions]
562
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
563
+ #
564
+ # @yield [result, operation] Access the result along with the TransportOperation object
565
+ # @yieldparam result [::Google::Cloud::GeminiDataAnalytics::V1beta::RetrieveAgentOpsObservabilityResponse]
566
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
567
+ #
568
+ # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::RetrieveAgentOpsObservabilityResponse]
569
+ # A result object deserialized from the server's reply
570
+ def retrieve_agent_ops_observability request_pb, options = nil
571
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
572
+
573
+ verb, uri, query_string_params, body = ServiceStub.transcode_retrieve_agent_ops_observability_request request_pb
574
+ query_string_params = if query_string_params.any?
575
+ query_string_params.to_h { |p| p.split "=", 2 }
576
+ else
577
+ {}
578
+ end
579
+
580
+ response = @client_stub.make_http_request(
581
+ verb,
582
+ uri: uri,
583
+ body: body || "",
584
+ params: query_string_params,
585
+ method_name: "retrieve_agent_ops_observability",
586
+ options: options
587
+ )
588
+ operation = ::Gapic::Rest::TransportOperation.new response
589
+ result = ::Google::Cloud::GeminiDataAnalytics::V1beta::RetrieveAgentOpsObservabilityResponse.decode_json response.body, ignore_unknown_fields: true
590
+ catch :response do
591
+ yield result, operation if block_given?
592
+ result
593
+ end
594
+ end
595
+
516
596
  ##
517
597
  # @private
518
598
  #
@@ -749,6 +829,49 @@ module Google
749
829
  )
750
830
  transcoder.transcode request_pb
751
831
  end
832
+
833
+ ##
834
+ # @private
835
+ #
836
+ # GRPC transcoding helper method for the set_agent_ops_observability REST call
837
+ #
838
+ # @param request_pb [::Google::Cloud::GeminiDataAnalytics::V1beta::SetAgentOpsObservabilityRequest]
839
+ # A request object representing the call parameters. Required.
840
+ # @return [Array(String, [String, nil], Hash{String => String})]
841
+ # Uri, Body, Query string parameters
842
+ def self.transcode_set_agent_ops_observability_request request_pb
843
+ transcoder = Gapic::Rest::GrpcTranscoder.new
844
+ .with_bindings(
845
+ uri_method: :post,
846
+ uri_template: "/v1beta/{parent}/observabilitySettings:setAgentOpsObservability",
847
+ body: "*",
848
+ matches: [
849
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
850
+ ]
851
+ )
852
+ transcoder.transcode request_pb
853
+ end
854
+
855
+ ##
856
+ # @private
857
+ #
858
+ # GRPC transcoding helper method for the retrieve_agent_ops_observability REST call
859
+ #
860
+ # @param request_pb [::Google::Cloud::GeminiDataAnalytics::V1beta::RetrieveAgentOpsObservabilityRequest]
861
+ # A request object representing the call parameters. Required.
862
+ # @return [Array(String, [String, nil], Hash{String => String})]
863
+ # Uri, Body, Query string parameters
864
+ def self.transcode_retrieve_agent_ops_observability_request request_pb
865
+ transcoder = Gapic::Rest::GrpcTranscoder.new
866
+ .with_bindings(
867
+ uri_method: :get,
868
+ uri_template: "/v1beta/{parent}:retrieveAgentOpsObservability",
869
+ matches: [
870
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
871
+ ]
872
+ )
873
+ transcoder.transcode request_pb
874
+ end
752
875
  end
753
876
  end
754
877
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
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.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
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.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
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.
@@ -527,6 +527,104 @@ module Google
527
527
  raise ::Google::Cloud::Error.from_error(e)
528
528
  end
529
529
 
530
+ ##
531
+ # Updates a conversation.
532
+ #
533
+ # @overload update_conversation(request, options = nil)
534
+ # Pass arguments to `update_conversation` via a request object, either of type
535
+ # {::Google::Cloud::GeminiDataAnalytics::V1beta::UpdateConversationRequest} or an equivalent Hash.
536
+ #
537
+ # @param request [::Google::Cloud::GeminiDataAnalytics::V1beta::UpdateConversationRequest, ::Hash]
538
+ # A request object representing the call parameters. Required. To specify no
539
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
540
+ # @param options [::Gapic::CallOptions, ::Hash]
541
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
542
+ #
543
+ # @overload update_conversation(conversation: nil, update_mask: nil, request_id: nil)
544
+ # Pass arguments to `update_conversation` via keyword arguments. Note that at
545
+ # least one keyword argument is required. To specify no parameters, or to keep all
546
+ # the default parameter values, pass an empty Hash as a request object (see above).
547
+ #
548
+ # @param conversation [::Google::Cloud::GeminiDataAnalytics::V1beta::Conversation, ::Hash]
549
+ # Required. The resource being updated.
550
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
551
+ # Optional. Field mask is used to specify the fields to be overwritten in the
552
+ # Conversation resource by the update.
553
+ # The fields specified in the update_mask are relative to the resource, not
554
+ # the full request. A field will be overwritten if it is in the mask. If the
555
+ # user does not provide a mask then all fields with non-default values
556
+ # present in the request will be overwritten. If a wildcard mask is provided,
557
+ # all fields will be overwritten.
558
+ # @param request_id [::String]
559
+ # Optional. An optional request ID to identify requests. Specify a unique
560
+ # request ID so that if you must retry your request, the server will know to
561
+ # ignore the request if it has already been completed. The server will
562
+ # guarantee that for at least 60 minutes since the first request.
563
+ #
564
+ # @yield [response, operation] Access the result along with the RPC operation
565
+ # @yieldparam response [::Google::Cloud::GeminiDataAnalytics::V1beta::Conversation]
566
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
567
+ #
568
+ # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::Conversation]
569
+ #
570
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
571
+ #
572
+ # @example Basic example
573
+ # require "google/cloud/gemini_data_analytics/v1beta"
574
+ #
575
+ # # Create a client object. The client can be reused for multiple calls.
576
+ # client = Google::Cloud::GeminiDataAnalytics::V1beta::DataChatService::Client.new
577
+ #
578
+ # # Create a request. To set request fields, pass in keyword arguments.
579
+ # request = Google::Cloud::GeminiDataAnalytics::V1beta::UpdateConversationRequest.new
580
+ #
581
+ # # Call the update_conversation method.
582
+ # result = client.update_conversation request
583
+ #
584
+ # # The returned object is of type Google::Cloud::GeminiDataAnalytics::V1beta::Conversation.
585
+ # p result
586
+ #
587
+ def update_conversation request, options = nil
588
+ raise ::ArgumentError, "request must be provided" if request.nil?
589
+
590
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::GeminiDataAnalytics::V1beta::UpdateConversationRequest
591
+
592
+ # Converts hash and nil to an options object
593
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
594
+
595
+ # Customize the options with defaults
596
+ metadata = @config.rpcs.update_conversation.metadata.to_h
597
+
598
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
599
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
600
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
601
+ gapic_version: ::Google::Cloud::GeminiDataAnalytics::V1beta::VERSION
602
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
603
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
604
+
605
+ header_params = {}
606
+ if request.conversation&.name
607
+ header_params["conversation.name"] = request.conversation.name
608
+ end
609
+
610
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
611
+ metadata[:"x-goog-request-params"] ||= request_params_header
612
+
613
+ options.apply_defaults timeout: @config.rpcs.update_conversation.timeout,
614
+ metadata: metadata,
615
+ retry_policy: @config.rpcs.update_conversation.retry_policy
616
+
617
+ options.apply_defaults timeout: @config.timeout,
618
+ metadata: @config.metadata,
619
+ retry_policy: @config.retry_policy
620
+
621
+ @data_chat_service_stub.call_rpc :update_conversation, request, options: options do |response, operation|
622
+ yield response, operation if block_given?
623
+ end
624
+ rescue ::GRPC::BadStatus => e
625
+ raise ::Google::Cloud::Error.from_error(e)
626
+ end
627
+
530
628
  ##
531
629
  # Gets details of a single conversation by using conversation id and parent.
532
630
  #
@@ -1120,6 +1218,11 @@ module Google
1120
1218
  #
1121
1219
  attr_reader :delete_conversation
1122
1220
  ##
1221
+ # RPC-specific configuration for `update_conversation`
1222
+ # @return [::Gapic::Config::Method]
1223
+ #
1224
+ attr_reader :update_conversation
1225
+ ##
1123
1226
  # RPC-specific configuration for `get_conversation`
1124
1227
  # @return [::Gapic::Config::Method]
1125
1228
  #
@@ -1148,6 +1251,8 @@ module Google
1148
1251
  @create_conversation = ::Gapic::Config::Method.new create_conversation_config
1149
1252
  delete_conversation_config = parent_rpcs.delete_conversation if parent_rpcs.respond_to? :delete_conversation
1150
1253
  @delete_conversation = ::Gapic::Config::Method.new delete_conversation_config
1254
+ update_conversation_config = parent_rpcs.update_conversation if parent_rpcs.respond_to? :update_conversation
1255
+ @update_conversation = ::Gapic::Config::Method.new update_conversation_config
1151
1256
  get_conversation_config = parent_rpcs.get_conversation if parent_rpcs.respond_to? :get_conversation
1152
1257
  @get_conversation = ::Gapic::Config::Method.new get_conversation_config
1153
1258
  list_conversations_config = parent_rpcs.list_conversations if parent_rpcs.respond_to? :list_conversations
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
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.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
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.