google-cloud-gemini_data_analytics 1.0.0 → 1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 412447f1344e0bc3da2d17262909bd5899fc847c394d98018a1d62b9d98f4d37
4
- data.tar.gz: 91387c20ecdd84cab125c245a0dcd2523e81431c8adc20ca3c5f97c8bc811758
3
+ metadata.gz: 0df4bb4304aeb9bedcd4763bc4c780ea3e675a0314e6025e63202d783860bbac
4
+ data.tar.gz: 0a68dd13be90fa3bdb4d282c7f7ba8dc45dda15e43dca7a5dd21e2190842faa2
5
5
  SHA512:
6
- metadata.gz: e45ec00160c688a75bc5ee80a9e868cef750f6373c10b5a108a803d3c3579711be746dd374f4cd4063a9f26cd61d0f66bd24563a7108d59f2ab0863d84d6be62
7
- data.tar.gz: d39e4a26faeb2086cbc32a94319c3c7d4cbc74b066cad000aba8ec3933da050eb53fd661a122796464e5deec22e0845012f2949fb79b093cf1390b83d5b11dae
6
+ metadata.gz: 732ae412c7592f43e5e5833c7e5e6fbfba12cc6214155c7356cb6fcac7d46a95c45911850646f07bebbdedc0e213dd4c8e685bbb4940e4f8ac1c7f6dc8b9cffa
7
+ data.tar.gz: a4e435dd0123ee192f91b7b2310d7605020d3de9396072652825eaeaccd7dd57e23124a7835c17f20ef6758a2c2ebe34024b5b5a43d0c1eeda73ff1f695ce30c
data/AUTHENTICATION.md CHANGED
@@ -56,7 +56,7 @@ To configure a credentials file for an individual client initialization:
56
56
  ```ruby
57
57
  require "google/cloud/gemini_data_analytics"
58
58
 
59
- client = Google::Cloud::GeminiDataAnalytics.data_agent_service do |config|
59
+ client = Google::Cloud::GeminiDataAnalytics.data_a2_a_service do |config|
60
60
  config.credentials = "path/to/credentialfile.json"
61
61
  end
62
62
  ```
@@ -70,7 +70,7 @@ Google::Cloud::GeminiDataAnalytics.configure do |config|
70
70
  config.credentials = "path/to/credentialfile.json"
71
71
  end
72
72
 
73
- client = Google::Cloud::GeminiDataAnalytics.data_agent_service
73
+ client = Google::Cloud::GeminiDataAnalytics.data_a2_a_service
74
74
  ```
75
75
 
76
76
  ### Environment Variables
@@ -100,7 +100,7 @@ require "google/cloud/gemini_data_analytics"
100
100
 
101
101
  ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json"
102
102
 
103
- client = Google::Cloud::GeminiDataAnalytics.data_agent_service
103
+ client = Google::Cloud::GeminiDataAnalytics.data_a2_a_service
104
104
  ```
105
105
 
106
106
  ### Local ADC file
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
1
  # Ruby Client for the Data Analytics API with Gemini API
2
2
 
3
- The Gemini Data Analytics API enables developers to build intelligent data analytics applications. Leverage AI-powered chat interfaces to allow users to interact with and analyze structured data using natural language.
3
+ Developers can use the Conversational Analytics API, accessed through geminidataanalytics.googleapis.com, to build an artificial intelligence (AI)-powered chat interface, or data agent, that answers questions about structured data in BigQuery, Looker, and Looker Studio using natural language.
4
4
 
5
- The Gemini Data Analytics API enables developers to build intelligent data analytics applications. Leverage AI-powered chat interfaces to allow users to interact with and analyze structured data using natural language.
6
5
 
7
6
  Actual client classes for the various versions of this API are defined in
8
7
  _versioned_ client gems, with names of the form `google-cloud-gemini_data_analytics-v*`.
@@ -37,9 +36,9 @@ In order to use this library, you first need to go through the following steps:
37
36
  ```ruby
38
37
  require "google/cloud/gemini_data_analytics"
39
38
 
40
- client = Google::Cloud::GeminiDataAnalytics.data_agent_service
41
- request = ::Google::Cloud::GeminiDataAnalytics::V1beta::ListDataAgentsRequest.new # (request fields as keyword arguments...)
42
- response = client.list_data_agents request
39
+ client = Google::Cloud::GeminiDataAnalytics.data_a2_a_service
40
+ request = ::Google::Cloud::GeminiDataAnalytics::V1beta::SendMessageRequest.new # (request fields as keyword arguments...)
41
+ response = client.send_message request
43
42
  ```
44
43
 
45
44
  ## Debug Logging
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module GeminiDataAnalytics
23
- VERSION = "1.0.0"
23
+ VERSION = "1.1.0"
24
24
  end
25
25
  end
26
26
  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.
@@ -45,6 +45,77 @@ end
45
45
  module Google
46
46
  module Cloud
47
47
  module GeminiDataAnalytics
48
+ ##
49
+ # Create a new client object for DataA2AService.
50
+ #
51
+ # By default, this returns an instance of
52
+ # [Google::Cloud::GeminiDataAnalytics::V1beta::DataA2AService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-DataA2AService-Client)
53
+ # for a gRPC client for version V1beta of the API.
54
+ # However, you can specify a different API version by passing it in the
55
+ # `version` parameter. If the DataA2AService service is
56
+ # supported by that API version, and the corresponding gem is available, the
57
+ # appropriate versioned client will be returned.
58
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
59
+ # the `transport` parameter.
60
+ #
61
+ # Raises an exception if the currently installed versioned client gem for the
62
+ # given API version does not support the given transport of the DataA2AService service.
63
+ # You can determine whether the method will succeed by calling
64
+ # {Google::Cloud::GeminiDataAnalytics.data_a2_a_service_available?}.
65
+ #
66
+ # ## About DataA2AService
67
+ #
68
+ # DataA2AService defines the Agent-to-Agent (A2A) protocol service for Gemini
69
+ # Data Analytics.
70
+ #
71
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
72
+ # Defaults to `:v1beta`.
73
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
74
+ # @return [::Object] A client object for the specified version.
75
+ #
76
+ def self.data_a2_a_service version: :v1beta, transport: :grpc, &block
77
+ require "google/cloud/gemini_data_analytics/#{version.to_s.downcase}"
78
+
79
+ package_name = Google::Cloud::GeminiDataAnalytics
80
+ .constants
81
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
82
+ .first
83
+ service_module = Google::Cloud::GeminiDataAnalytics.const_get(package_name).const_get(:DataA2AService)
84
+ service_module = service_module.const_get(:Rest) if transport == :rest
85
+ service_module.const_get(:Client).new(&block)
86
+ end
87
+
88
+ ##
89
+ # Determines whether the DataA2AService service is supported by the current client.
90
+ # If true, you can retrieve a client object by calling {Google::Cloud::GeminiDataAnalytics.data_a2_a_service}.
91
+ # If false, that method will raise an exception. This could happen if the given
92
+ # API version does not exist or does not support the DataA2AService service,
93
+ # or if the versioned client gem needs an update to support the DataA2AService service.
94
+ #
95
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
96
+ # Defaults to `:v1beta`.
97
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
98
+ # @return [boolean] Whether the service is available.
99
+ #
100
+ def self.data_a2_a_service_available? version: :v1beta, transport: :grpc
101
+ require "google/cloud/gemini_data_analytics/#{version.to_s.downcase}"
102
+ package_name = Google::Cloud::GeminiDataAnalytics
103
+ .constants
104
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
105
+ .first
106
+ return false unless package_name
107
+ service_module = Google::Cloud::GeminiDataAnalytics.const_get package_name
108
+ return false unless service_module.const_defined? :DataA2AService
109
+ service_module = service_module.const_get :DataA2AService
110
+ if transport == :rest
111
+ return false unless service_module.const_defined? :Rest
112
+ service_module = service_module.const_get :Rest
113
+ end
114
+ service_module.const_defined? :Client
115
+ rescue ::LoadError
116
+ false
117
+ end
118
+
48
119
  ##
49
120
  # Create a new client object for DataAgentService.
50
121
  #
@@ -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.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-gemini_data_analytics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -43,9 +43,10 @@ dependencies:
43
43
  - - "<"
44
44
  - !ruby/object:Gem::Version
45
45
  version: 2.a
46
- description: The Gemini Data Analytics API enables developers to build intelligent
47
- data analytics applications. Leverage AI-powered chat interfaces to allow users
48
- to interact with and analyze structured data using natural language.
46
+ description: Developers can use the Conversational Analytics API, accessed through
47
+ geminidataanalytics.googleapis.com, to build an artificial intelligence (AI)-powered
48
+ chat interface, or data agent, that answers questions about structured data in BigQuery,
49
+ Looker, and Looker Studio using natural language.
49
50
  email: googleapis-packages@google.com
50
51
  executables: []
51
52
  extensions: []
@@ -78,7 +79,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
79
  requirements: []
79
80
  rubygems_version: 3.6.9
80
81
  specification_version: 4
81
- summary: The Gemini Data Analytics API enables developers to build intelligent data
82
- analytics applications. Leverage AI-powered chat interfaces to allow users to interact
83
- with and analyze structured data using natural language.
82
+ summary: Developers can use the Conversational Analytics API, accessed through geminidataanalytics.googleapis.com,
83
+ to build an artificial intelligence (AI)-powered chat interface, or data agent,
84
+ that answers questions about structured data in BigQuery, Looker, and Looker Studio
85
+ using natural language.
84
86
  test_files: []