google-cloud-gemini_data_analytics 1.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0df4bb4304aeb9bedcd4763bc4c780ea3e675a0314e6025e63202d783860bbac
4
- data.tar.gz: 0a68dd13be90fa3bdb4d282c7f7ba8dc45dda15e43dca7a5dd21e2190842faa2
3
+ metadata.gz: a4d21ffa4b368d715bb061e9f0d891d10c1b826255655a4202708998e8df46bd
4
+ data.tar.gz: a1951bd101cff24b7cb26aca29fa815eb11ecec83ca735f716cac32c69d0830f
5
5
  SHA512:
6
- metadata.gz: 732ae412c7592f43e5e5833c7e5e6fbfba12cc6214155c7356cb6fcac7d46a95c45911850646f07bebbdedc0e213dd4c8e685bbb4940e4f8ac1c7f6dc8b9cffa
7
- data.tar.gz: a4e435dd0123ee192f91b7b2310d7605020d3de9396072652825eaeaccd7dd57e23124a7835c17f20ef6758a2c2ebe34024b5b5a43d0c1eeda73ff1f695ce30c
6
+ metadata.gz: ae786eadaae90773a9339c21ef9dbf4c09001b084311901e893abd298083bbd2e87abae74fbb2316b97e403ec8a63612e587bbf5ab29cf86080cfbab80d5a59b
7
+ data.tar.gz: f80dca987197e05d608024839c9be05ff1073d7854a249a402c7f441c53dd75911dcda1aaae1454df523f28c0b2140881c0d16e5560e7479947e9f8b1712cfa3
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_a2_a_service do |config|
59
+ client = Google::Cloud::GeminiDataAnalytics.data_agent_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_a2_a_service
73
+ client = Google::Cloud::GeminiDataAnalytics.data_agent_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_a2_a_service
103
+ client = Google::Cloud::GeminiDataAnalytics.data_agent_service
104
104
  ```
105
105
 
106
106
  ### Local ADC file
data/README.md CHANGED
@@ -36,9 +36,9 @@ In order to use this library, you first need to go through the following steps:
36
36
  ```ruby
37
37
  require "google/cloud/gemini_data_analytics"
38
38
 
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
39
+ client = Google::Cloud::GeminiDataAnalytics.data_agent_service
40
+ request = ::Google::Cloud::GeminiDataAnalytics::V1beta::ListDataAgentsRequest.new # (request fields as keyword arguments...)
41
+ response = client.list_data_agents request
42
42
  ```
43
43
 
44
44
  ## Debug Logging
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module GeminiDataAnalytics
23
- VERSION = "1.1.0"
23
+ VERSION = "1.2.0"
24
24
  end
25
25
  end
26
26
  end
@@ -45,77 +45,6 @@ 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
-
119
48
  ##
120
49
  # Create a new client object for DataAgentService.
121
50
  #
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.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC