google-apis-connectors_v2 0.30.0 → 0.31.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: 4f076d5f1dd02b7dba38da683aa84dbf87446bde067333216b1705304d752e0f
4
- data.tar.gz: b04f7b9d9cfc8784ade0ed63f2f098a8067a50bca55388fbab7c436c3fc4521c
3
+ metadata.gz: 8081fba9c413f2ddeb0d247b70e2f9d19d397b70d215159a0dcc05f16f214f9f
4
+ data.tar.gz: a07bbba7344afd851f85d7026390041c40debf31252c717c2d92632f5762ff33
5
5
  SHA512:
6
- metadata.gz: 1896c22331121bf3b7bef10bd8995307798f31c67e42b0ba72c4afcdccad94f4e8fb1ed3433a742eaba607e31df536102fefd039e47c14b5c1547f9f303d2ac5
7
- data.tar.gz: e970d10c1c28ae620214f901b16a700657a97a8ae73e439fe12766d8bdc6023f470812b2b4555a10c3a295bce81b2cf48493a4ae9918934ab9e24b7b0b9eef06
6
+ metadata.gz: cb1276a9b4f67aa69e6b6a5800e8c0ace1a820f62600763f3585ac8589a13db3b1e2cb4856cc776b0e73e97871852c518469bf72e5597b1904f8fd6cf9a7cd68
7
+ data.tar.gz: 34ec7b805bc8443a06dcff0e59a08ddaddd4fc9c019f0c9edcc643671d34481f2dd73095f7c4bad7cef1630669aa1380cbb3fcecfc07ec9fa0cf6038dad378c0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-connectors_v2
2
2
 
3
+ ### v0.31.0 (2026-02-15)
4
+
5
+ * Regenerated from discovery document revision 20260128
6
+
3
7
  ### v0.30.0 (2026-01-18)
4
8
 
5
9
  * Regenerated from discovery document revision 20251216
@@ -730,6 +730,45 @@ module Google
730
730
  end
731
731
  end
732
732
 
733
+ #
734
+ class GenerateCustomToolspecRequest
735
+ include Google::Apis::Core::Hashable
736
+
737
+ # list of tools to be generated.
738
+ # Corresponds to the JSON property `toolNames`
739
+ # @return [Array<Google::Apis::ConnectorsV2::ToolName>]
740
+ attr_accessor :tool_names
741
+
742
+ def initialize(**args)
743
+ update!(**args)
744
+ end
745
+
746
+ # Update properties of this object
747
+ def update!(**args)
748
+ @tool_names = args[:tool_names] if args.key?(:tool_names)
749
+ end
750
+ end
751
+
752
+ #
753
+ class GenerateCustomToolspecResponse
754
+ include Google::Apis::Core::Hashable
755
+
756
+ # tool spec that has tool_defitions array containing the tools for all sted
757
+ # tool_names.
758
+ # Corresponds to the JSON property `toolSpec`
759
+ # @return [Google::Apis::ConnectorsV2::ToolSpec]
760
+ attr_accessor :tool_spec
761
+
762
+ def initialize(**args)
763
+ update!(**args)
764
+ end
765
+
766
+ # Update properties of this object
767
+ def update!(**args)
768
+ @tool_spec = args[:tool_spec] if args.key?(:tool_spec)
769
+ end
770
+ end
771
+
733
772
  # Request message for ConnectorAgentService.GetResourcePost
734
773
  class GetResourcePostRequest
735
774
  include Google::Apis::Core::Hashable
@@ -1137,6 +1176,25 @@ module Google
1137
1176
  end
1138
1177
  end
1139
1178
 
1179
+ #
1180
+ class ListCustomToolNamesResponse
1181
+ include Google::Apis::Core::Hashable
1182
+
1183
+ # List of custom tools.
1184
+ # Corresponds to the JSON property `toolNames`
1185
+ # @return [Array<Google::Apis::ConnectorsV2::ToolName>]
1186
+ attr_accessor :tool_names
1187
+
1188
+ def initialize(**args)
1189
+ update!(**args)
1190
+ end
1191
+
1192
+ # Update properties of this object
1193
+ def update!(**args)
1194
+ @tool_names = args[:tool_names] if args.key?(:tool_names)
1195
+ end
1196
+ end
1197
+
1140
1198
  # Response message for EntityService.ListEntities
1141
1199
  class ListEntitiesResponse
1142
1200
  include Google::Apis::Core::Hashable
@@ -2119,6 +2177,37 @@ module Google
2119
2177
  end
2120
2178
  end
2121
2179
 
2180
+ #
2181
+ class ToolName
2182
+ include Google::Apis::Core::Hashable
2183
+
2184
+ # Entity name for which the tool was generated.
2185
+ # Corresponds to the JSON property `entityName`
2186
+ # @return [String]
2187
+ attr_accessor :entity_name
2188
+
2189
+ # Tool name that was generated in the list tools call.
2190
+ # Corresponds to the JSON property `name`
2191
+ # @return [String]
2192
+ attr_accessor :name
2193
+
2194
+ # Operation for which the tool was generated.
2195
+ # Corresponds to the JSON property `operation`
2196
+ # @return [String]
2197
+ attr_accessor :operation
2198
+
2199
+ def initialize(**args)
2200
+ update!(**args)
2201
+ end
2202
+
2203
+ # Update properties of this object
2204
+ def update!(**args)
2205
+ @entity_name = args[:entity_name] if args.key?(:entity_name)
2206
+ @name = args[:name] if args.key?(:name)
2207
+ @operation = args[:operation] if args.key?(:operation)
2208
+ end
2209
+ end
2210
+
2122
2211
  #
2123
2212
  class ToolSpec
2124
2213
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ConnectorsV2
18
18
  # Version of the google-apis-connectors_v2 gem
19
- GEM_VERSION = "0.30.0"
19
+ GEM_VERSION = "0.31.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20251216"
25
+ REVISION = "20260128"
26
26
  end
27
27
  end
28
28
  end
@@ -148,6 +148,18 @@ module Google
148
148
  include Google::Apis::Core::JsonObjectSupport
149
149
  end
150
150
 
151
+ class GenerateCustomToolspecRequest
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class GenerateCustomToolspecResponse
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
151
163
  class GetResourcePostRequest
152
164
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
165
 
@@ -184,6 +196,12 @@ module Google
184
196
  include Google::Apis::Core::JsonObjectSupport
185
197
  end
186
198
 
199
+ class ListCustomToolNamesResponse
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
187
205
  class ListEntitiesResponse
188
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
207
 
@@ -346,6 +364,12 @@ module Google
346
364
  include Google::Apis::Core::JsonObjectSupport
347
365
  end
348
366
 
367
+ class ToolName
368
+ class Representation < Google::Apis::Core::JsonRepresentation; end
369
+
370
+ include Google::Apis::Core::JsonObjectSupport
371
+ end
372
+
349
373
  class ToolSpec
350
374
  class Representation < Google::Apis::Core::JsonRepresentation; end
351
375
 
@@ -577,6 +601,22 @@ module Google
577
601
  end
578
602
  end
579
603
 
604
+ class GenerateCustomToolspecRequest
605
+ # @private
606
+ class Representation < Google::Apis::Core::JsonRepresentation
607
+ collection :tool_names, as: 'toolNames', class: Google::Apis::ConnectorsV2::ToolName, decorator: Google::Apis::ConnectorsV2::ToolName::Representation
608
+
609
+ end
610
+ end
611
+
612
+ class GenerateCustomToolspecResponse
613
+ # @private
614
+ class Representation < Google::Apis::Core::JsonRepresentation
615
+ property :tool_spec, as: 'toolSpec', class: Google::Apis::ConnectorsV2::ToolSpec, decorator: Google::Apis::ConnectorsV2::ToolSpec::Representation
616
+
617
+ end
618
+ end
619
+
580
620
  class GetResourcePostRequest
581
621
  # @private
582
622
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -668,6 +708,14 @@ module Google
668
708
  end
669
709
  end
670
710
 
711
+ class ListCustomToolNamesResponse
712
+ # @private
713
+ class Representation < Google::Apis::Core::JsonRepresentation
714
+ collection :tool_names, as: 'toolNames', class: Google::Apis::ConnectorsV2::ToolName, decorator: Google::Apis::ConnectorsV2::ToolName::Representation
715
+
716
+ end
717
+ end
718
+
671
719
  class ListEntitiesResponse
672
720
  # @private
673
721
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -944,6 +992,15 @@ module Google
944
992
  end
945
993
  end
946
994
 
995
+ class ToolName
996
+ # @private
997
+ class Representation < Google::Apis::Core::JsonRepresentation
998
+ property :entity_name, as: 'entityName'
999
+ property :name, as: 'name'
1000
+ property :operation, as: 'operation'
1001
+ end
1002
+ end
1003
+
947
1004
  class ToolSpec
948
1005
  # @private
949
1006
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -189,6 +189,71 @@ module Google
189
189
  execute_or_queue_command(command, &block)
190
190
  end
191
191
 
192
+ # Generate toolspec override for the given list of toolNames.
193
+ # @param [String] name
194
+ # Required. Resource name of the Connection. Format: projects/`project`/
195
+ # locations/`location`/connections/`connection`
196
+ # @param [Google::Apis::ConnectorsV2::GenerateCustomToolspecRequest] generate_custom_toolspec_request_object
197
+ # @param [String] fields
198
+ # Selector specifying which fields to include in a partial response.
199
+ # @param [String] quota_user
200
+ # Available to use for quota purposes for server-side applications. Can be any
201
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
202
+ # @param [Google::Apis::RequestOptions] options
203
+ # Request-specific options
204
+ #
205
+ # @yield [result, err] Result & error if block supplied
206
+ # @yieldparam result [Google::Apis::ConnectorsV2::GenerateCustomToolspecResponse] parsed result object
207
+ # @yieldparam err [StandardError] error object if request failed
208
+ #
209
+ # @return [Google::Apis::ConnectorsV2::GenerateCustomToolspecResponse]
210
+ #
211
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
212
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
213
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
214
+ def generate_project_location_connection_connection_toolspec_override(name, generate_custom_toolspec_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
215
+ command = make_simple_command(:post, 'v2/{+name}:generateConnectionToolspecOverride', options)
216
+ command.request_representation = Google::Apis::ConnectorsV2::GenerateCustomToolspecRequest::Representation
217
+ command.request_object = generate_custom_toolspec_request_object
218
+ command.response_representation = Google::Apis::ConnectorsV2::GenerateCustomToolspecResponse::Representation
219
+ command.response_class = Google::Apis::ConnectorsV2::GenerateCustomToolspecResponse
220
+ command.params['name'] = name unless name.nil?
221
+ command.query['fields'] = fields unless fields.nil?
222
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
223
+ execute_or_queue_command(command, &block)
224
+ end
225
+
226
+ # Lists custom tool names.
227
+ # @param [String] name
228
+ # Required. Resource name of the Connection. Format: projects/`project`/
229
+ # locations/`location`/connections/`connection`
230
+ # @param [String] fields
231
+ # Selector specifying which fields to include in a partial response.
232
+ # @param [String] quota_user
233
+ # Available to use for quota purposes for server-side applications. Can be any
234
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
235
+ # @param [Google::Apis::RequestOptions] options
236
+ # Request-specific options
237
+ #
238
+ # @yield [result, err] Result & error if block supplied
239
+ # @yieldparam result [Google::Apis::ConnectorsV2::ListCustomToolNamesResponse] parsed result object
240
+ # @yieldparam err [StandardError] error object if request failed
241
+ #
242
+ # @return [Google::Apis::ConnectorsV2::ListCustomToolNamesResponse]
243
+ #
244
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
245
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
246
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
247
+ def list_project_location_connection_custom_tool_names(name, fields: nil, quota_user: nil, options: nil, &block)
248
+ command = make_simple_command(:get, 'v2/{+name}:listCustomToolNames', options)
249
+ command.response_representation = Google::Apis::ConnectorsV2::ListCustomToolNamesResponse::Representation
250
+ command.response_class = Google::Apis::ConnectorsV2::ListCustomToolNamesResponse
251
+ command.params['name'] = name unless name.nil?
252
+ command.query['fields'] = fields unless fields.nil?
253
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
254
+ execute_or_queue_command(command, &block)
255
+ end
256
+
192
257
  # RefreshAccessToken exchanges the OAuth refresh token (and other necessary data)
193
258
  # for a new access token (and new associated credentials).
194
259
  # @param [String] name
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-connectors_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.30.0
4
+ version: 0.31.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-connectors_v2/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-connectors_v2/v0.30.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-connectors_v2/v0.31.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-connectors_v2
62
62
  rdoc_options: []
63
63
  require_paths: