google-apis-connectors_v2 0.27.0 → 0.29.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: f3257402f462f66cfd3672a3c3e5de7f06c1b3cebbee37bfc047554518dfa261
4
- data.tar.gz: 455cfb87565d4e670e616f110afdf59736222ae95adc9b8d5280917eecfa0ed3
3
+ metadata.gz: fe7d26f7c74fa57ae4811c6c3b60d85ebc5714932d5602910bc18ae8f17aa30f
4
+ data.tar.gz: 476e87b328171769bc9688ae2533a1bccaca9536b02f16876522db26d080d6cf
5
5
  SHA512:
6
- metadata.gz: 6404a9627938cbf44ce5b7b86a6a3305df6c35178ac548b1e3af53aac48f600b87c8d1f1057828fe9514dae6f092da920cbb5878b399fd1b02f5e8f585350f85
7
- data.tar.gz: e66fb2e752c6ceb36e9d61bb143a17f3bbe02a1f317f5d533261de0326cfb7c31d9a8ce2828d1d8fe887abf94352159dc352dc48922898600879b2521891b8b4
6
+ metadata.gz: ebe4aa5c5a8d3751f15ece81386ba4024523bb41db9b4703c538750d69062567711c8c8a7a1798426d941e9e6a47d40253ad5f2bf5dcd480fed4d296d818be99
7
+ data.tar.gz: 8760f12c3d620b20770efcb453f5135a064f8238e781608e0e431293af106596d7114ab74f6da669ba4e1865e6435c0f208462cf738b3efaa84023890d75b244
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-connectors_v2
2
2
 
3
+ ### v0.29.0 (2025-10-12)
4
+
5
+ * Regenerated from discovery document revision 20250930
6
+
7
+ ### v0.28.0 (2025-09-28)
8
+
9
+ * Regenerated from discovery document revision 20250917
10
+
3
11
  ### v0.27.0 (2025-09-07)
4
12
 
5
13
  * Regenerated from discovery document revision 20250826
@@ -585,6 +585,11 @@ module Google
585
585
  class ExecuteToolResponse
586
586
  include Google::Apis::Core::Hashable
587
587
 
588
+ # Metadata like service latency, etc.
589
+ # Corresponds to the JSON property `metadata`
590
+ # @return [Hash<String,Hash<String,Object>>]
591
+ attr_accessor :metadata
592
+
588
593
  # Output from the tool execution.
589
594
  # Corresponds to the JSON property `result`
590
595
  # @return [Hash<String,Object>]
@@ -596,6 +601,7 @@ module Google
596
601
 
597
602
  # Update properties of this object
598
603
  def update!(**args)
604
+ @metadata = args[:metadata] if args.key?(:metadata)
599
605
  @result = args[:result] if args.key?(:result)
600
606
  end
601
607
  end
@@ -673,6 +679,38 @@ module Google
673
679
  end
674
680
  end
675
681
 
682
+ #
683
+ class GetResourceResponse
684
+ include Google::Apis::Core::Hashable
685
+
686
+ # The content of the resource.
687
+ # Corresponds to the JSON property `data`
688
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
689
+ # @return [String]
690
+ attr_accessor :data
691
+
692
+ # Metadata like service latency, etc.
693
+ # Corresponds to the JSON property `metadata`
694
+ # @return [Hash<String,Hash<String,Object>>]
695
+ attr_accessor :metadata
696
+
697
+ # The MIME type of the resource.
698
+ # Corresponds to the JSON property `mimeType`
699
+ # @return [String]
700
+ attr_accessor :mime_type
701
+
702
+ def initialize(**args)
703
+ update!(**args)
704
+ end
705
+
706
+ # Update properties of this object
707
+ def update!(**args)
708
+ @data = args[:data] if args.key?(:data)
709
+ @metadata = args[:metadata] if args.key?(:metadata)
710
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
711
+ end
712
+ end
713
+
676
714
  # Input Parameter message contains metadata about the parameters required for
677
715
  # executing an Action.
678
716
  class InputParameter
@@ -1092,10 +1130,46 @@ module Google
1092
1130
  end
1093
1131
  end
1094
1132
 
1133
+ #
1134
+ class ListResourcesResponse
1135
+ include Google::Apis::Core::Hashable
1136
+
1137
+ # Metadata like service latency, etc.
1138
+ # Corresponds to the JSON property `metadata`
1139
+ # @return [Hash<String,Hash<String,Object>>]
1140
+ attr_accessor :metadata
1141
+
1142
+ # Next page token if more resources available.
1143
+ # Corresponds to the JSON property `nextPageToken`
1144
+ # @return [String]
1145
+ attr_accessor :next_page_token
1146
+
1147
+ # List of available resources.
1148
+ # Corresponds to the JSON property `resources`
1149
+ # @return [Array<Google::Apis::ConnectorsV2::Resource>]
1150
+ attr_accessor :resources
1151
+
1152
+ def initialize(**args)
1153
+ update!(**args)
1154
+ end
1155
+
1156
+ # Update properties of this object
1157
+ def update!(**args)
1158
+ @metadata = args[:metadata] if args.key?(:metadata)
1159
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1160
+ @resources = args[:resources] if args.key?(:resources)
1161
+ end
1162
+ end
1163
+
1095
1164
  # Response message for ConnectorAgentService.ListTools
1096
1165
  class ListToolsResponse
1097
1166
  include Google::Apis::Core::Hashable
1098
1167
 
1168
+ # Metadata like service latency, etc.
1169
+ # Corresponds to the JSON property `metadata`
1170
+ # @return [Hash<String,Hash<String,Object>>]
1171
+ attr_accessor :metadata
1172
+
1099
1173
  # Next page token.
1100
1174
  # Corresponds to the JSON property `nextPageToken`
1101
1175
  # @return [String]
@@ -1112,6 +1186,7 @@ module Google
1112
1186
 
1113
1187
  # Update properties of this object
1114
1188
  def update!(**args)
1189
+ @metadata = args[:metadata] if args.key?(:metadata)
1115
1190
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1116
1191
  @tools = args[:tools] if args.key?(:tools)
1117
1192
  end
@@ -1547,6 +1622,49 @@ module Google
1547
1622
  end
1548
1623
  end
1549
1624
 
1625
+ #
1626
+ class Resource
1627
+ include Google::Apis::Core::Hashable
1628
+
1629
+ # A description of what this resource represents.
1630
+ # Corresponds to the JSON property `description`
1631
+ # @return [String]
1632
+ attr_accessor :description
1633
+
1634
+ # The MIME type of this resource, if known.
1635
+ # Corresponds to the JSON property `mimeType`
1636
+ # @return [String]
1637
+ attr_accessor :mime_type
1638
+
1639
+ # A human-readable name for this resource.
1640
+ # Corresponds to the JSON property `name`
1641
+ # @return [String]
1642
+ attr_accessor :name
1643
+
1644
+ # The size of the raw resource content, in bytes, if known.
1645
+ # Corresponds to the JSON property `size`
1646
+ # @return [Fixnum]
1647
+ attr_accessor :size
1648
+
1649
+ # The URI of this resource.
1650
+ # Corresponds to the JSON property `uri`
1651
+ # @return [String]
1652
+ attr_accessor :uri
1653
+
1654
+ def initialize(**args)
1655
+ update!(**args)
1656
+ end
1657
+
1658
+ # Update properties of this object
1659
+ def update!(**args)
1660
+ @description = args[:description] if args.key?(:description)
1661
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
1662
+ @name = args[:name] if args.key?(:name)
1663
+ @size = args[:size] if args.key?(:size)
1664
+ @uri = args[:uri] if args.key?(:uri)
1665
+ end
1666
+ end
1667
+
1550
1668
  # Result Metadata message contains metadata about the result returned after
1551
1669
  # executing an Action.
1552
1670
  class ResultMetadata
@@ -1747,6 +1865,11 @@ module Google
1747
1865
  class Tool
1748
1866
  include Google::Apis::Core::Hashable
1749
1867
 
1868
+ # ToolAnnotations holds annotations for a tool.
1869
+ # Corresponds to the JSON property `annotations`
1870
+ # @return [Google::Apis::ConnectorsV2::ToolAnnotations]
1871
+ attr_accessor :annotations
1872
+
1750
1873
  # List of tool names that this tool depends on.
1751
1874
  # Corresponds to the JSON property `dependsOn`
1752
1875
  # @return [Array<String>]
@@ -1778,6 +1901,7 @@ module Google
1778
1901
 
1779
1902
  # Update properties of this object
1780
1903
  def update!(**args)
1904
+ @annotations = args[:annotations] if args.key?(:annotations)
1781
1905
  @depends_on = args[:depends_on] if args.key?(:depends_on)
1782
1906
  @description = args[:description] if args.key?(:description)
1783
1907
  @input_schema = args[:input_schema] if args.key?(:input_schema)
@@ -1786,6 +1910,59 @@ module Google
1786
1910
  end
1787
1911
  end
1788
1912
 
1913
+ # ToolAnnotations holds annotations for a tool.
1914
+ class ToolAnnotations
1915
+ include Google::Apis::Core::Hashable
1916
+
1917
+ # If true, the tool may perform destructive updates to its environment. If false,
1918
+ # the tool performs only additive updates. (This property is meaningful only
1919
+ # when `read_only_hint == false`)
1920
+ # Corresponds to the JSON property `destructiveHint`
1921
+ # @return [Boolean]
1922
+ attr_accessor :destructive_hint
1923
+ alias_method :destructive_hint?, :destructive_hint
1924
+
1925
+ # If true, calling the tool repeatedly with the same arguments will have no
1926
+ # additional effect on the environment. (This property is meaningful only when `
1927
+ # read_only_hint == false`)
1928
+ # Corresponds to the JSON property `idempotentHint`
1929
+ # @return [Boolean]
1930
+ attr_accessor :idempotent_hint
1931
+ alias_method :idempotent_hint?, :idempotent_hint
1932
+
1933
+ # If true, this tool may interact with an "open world" of external entities. If
1934
+ # false, the tool's domain of interaction is closed. For example, the world of a
1935
+ # web search tool is open, whereas that of a memory tool is not.
1936
+ # Corresponds to the JSON property `openWorldHint`
1937
+ # @return [Boolean]
1938
+ attr_accessor :open_world_hint
1939
+ alias_method :open_world_hint?, :open_world_hint
1940
+
1941
+ # If true, the tool does not modify its environment.
1942
+ # Corresponds to the JSON property `readOnlyHint`
1943
+ # @return [Boolean]
1944
+ attr_accessor :read_only_hint
1945
+ alias_method :read_only_hint?, :read_only_hint
1946
+
1947
+ # A human-readable title for the tool.
1948
+ # Corresponds to the JSON property `title`
1949
+ # @return [String]
1950
+ attr_accessor :title
1951
+
1952
+ def initialize(**args)
1953
+ update!(**args)
1954
+ end
1955
+
1956
+ # Update properties of this object
1957
+ def update!(**args)
1958
+ @destructive_hint = args[:destructive_hint] if args.key?(:destructive_hint)
1959
+ @idempotent_hint = args[:idempotent_hint] if args.key?(:idempotent_hint)
1960
+ @open_world_hint = args[:open_world_hint] if args.key?(:open_world_hint)
1961
+ @read_only_hint = args[:read_only_hint] if args.key?(:read_only_hint)
1962
+ @title = args[:title] if args.key?(:title)
1963
+ end
1964
+ end
1965
+
1789
1966
  # Response message for EntityService.UpdateEntitiesWithConditions
1790
1967
  class UpdateEntitiesWithConditionsResponse
1791
1968
  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.27.0"
19
+ GEM_VERSION = "0.29.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 = "20250826"
25
+ REVISION = "20250930"
26
26
  end
27
27
  end
28
28
  end
@@ -142,6 +142,12 @@ module Google
142
142
  include Google::Apis::Core::JsonObjectSupport
143
143
  end
144
144
 
145
+ class GetResourceResponse
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
145
151
  class InputParameter
146
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
153
 
@@ -178,6 +184,12 @@ module Google
178
184
  include Google::Apis::Core::JsonObjectSupport
179
185
  end
180
186
 
187
+ class ListResourcesResponse
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
181
193
  class ListToolsResponse
182
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
195
 
@@ -262,6 +274,12 @@ module Google
262
274
  include Google::Apis::Core::JsonObjectSupport
263
275
  end
264
276
 
277
+ class Resource
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ include Google::Apis::Core::JsonObjectSupport
281
+ end
282
+
265
283
  class ResultMetadata
266
284
  class Representation < Google::Apis::Core::JsonRepresentation; end
267
285
 
@@ -298,6 +316,12 @@ module Google
298
316
  include Google::Apis::Core::JsonObjectSupport
299
317
  end
300
318
 
319
+ class ToolAnnotations
320
+ class Representation < Google::Apis::Core::JsonRepresentation; end
321
+
322
+ include Google::Apis::Core::JsonObjectSupport
323
+ end
324
+
301
325
  class UpdateEntitiesWithConditionsResponse
302
326
  class Representation < Google::Apis::Core::JsonRepresentation; end
303
327
 
@@ -485,6 +509,7 @@ module Google
485
509
  class ExecuteToolResponse
486
510
  # @private
487
511
  class Representation < Google::Apis::Core::JsonRepresentation
512
+ hash :metadata, as: 'metadata'
488
513
  hash :result, as: 'result'
489
514
  end
490
515
  end
@@ -506,6 +531,15 @@ module Google
506
531
  end
507
532
  end
508
533
 
534
+ class GetResourceResponse
535
+ # @private
536
+ class Representation < Google::Apis::Core::JsonRepresentation
537
+ property :data, :base64 => true, as: 'data'
538
+ hash :metadata, as: 'metadata'
539
+ property :mime_type, as: 'mimeType'
540
+ end
541
+ end
542
+
509
543
  class InputParameter
510
544
  # @private
511
545
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -599,9 +633,20 @@ module Google
599
633
  end
600
634
  end
601
635
 
636
+ class ListResourcesResponse
637
+ # @private
638
+ class Representation < Google::Apis::Core::JsonRepresentation
639
+ hash :metadata, as: 'metadata'
640
+ property :next_page_token, as: 'nextPageToken'
641
+ collection :resources, as: 'resources', class: Google::Apis::ConnectorsV2::Resource, decorator: Google::Apis::ConnectorsV2::Resource::Representation
642
+
643
+ end
644
+ end
645
+
602
646
  class ListToolsResponse
603
647
  # @private
604
648
  class Representation < Google::Apis::Core::JsonRepresentation
649
+ hash :metadata, as: 'metadata'
605
650
  property :next_page_token, as: 'nextPageToken'
606
651
  collection :tools, as: 'tools', class: Google::Apis::ConnectorsV2::Tool, decorator: Google::Apis::ConnectorsV2::Tool::Representation
607
652
 
@@ -729,6 +774,17 @@ module Google
729
774
  end
730
775
  end
731
776
 
777
+ class Resource
778
+ # @private
779
+ class Representation < Google::Apis::Core::JsonRepresentation
780
+ property :description, as: 'description'
781
+ property :mime_type, as: 'mimeType'
782
+ property :name, as: 'name'
783
+ property :size, :numeric_string => true, as: 'size'
784
+ property :uri, as: 'uri'
785
+ end
786
+ end
787
+
732
788
  class ResultMetadata
733
789
  # @private
734
790
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -784,6 +840,8 @@ module Google
784
840
  class Tool
785
841
  # @private
786
842
  class Representation < Google::Apis::Core::JsonRepresentation
843
+ property :annotations, as: 'annotations', class: Google::Apis::ConnectorsV2::ToolAnnotations, decorator: Google::Apis::ConnectorsV2::ToolAnnotations::Representation
844
+
787
845
  collection :depends_on, as: 'dependsOn'
788
846
  property :description, as: 'description'
789
847
  property :input_schema, as: 'inputSchema', class: Google::Apis::ConnectorsV2::JsonSchema, decorator: Google::Apis::ConnectorsV2::JsonSchema::Representation
@@ -794,6 +852,17 @@ module Google
794
852
  end
795
853
  end
796
854
 
855
+ class ToolAnnotations
856
+ # @private
857
+ class Representation < Google::Apis::Core::JsonRepresentation
858
+ property :destructive_hint, as: 'destructiveHint'
859
+ property :idempotent_hint, as: 'idempotentHint'
860
+ property :open_world_hint, as: 'openWorldHint'
861
+ property :read_only_hint, as: 'readOnlyHint'
862
+ property :title, as: 'title'
863
+ end
864
+ end
865
+
797
866
  class UpdateEntitiesWithConditionsResponse
798
867
  # @private
799
868
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -690,6 +690,74 @@ module Google
690
690
  execute_or_queue_command(command, &block)
691
691
  end
692
692
 
693
+ # Gets a specific resource.
694
+ # @param [String] name
695
+ # Required. Resource name of the Resource. Format: projects/`project`/locations/`
696
+ # location`/connections/`connection`/resources/`resource`
697
+ # @param [String] fields
698
+ # Selector specifying which fields to include in a partial response.
699
+ # @param [String] quota_user
700
+ # Available to use for quota purposes for server-side applications. Can be any
701
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
702
+ # @param [Google::Apis::RequestOptions] options
703
+ # Request-specific options
704
+ #
705
+ # @yield [result, err] Result & error if block supplied
706
+ # @yieldparam result [Google::Apis::ConnectorsV2::GetResourceResponse] parsed result object
707
+ # @yieldparam err [StandardError] error object if request failed
708
+ #
709
+ # @return [Google::Apis::ConnectorsV2::GetResourceResponse]
710
+ #
711
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
712
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
713
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
714
+ def get_project_location_connection_resource(name, fields: nil, quota_user: nil, options: nil, &block)
715
+ command = make_simple_command(:get, 'v2/{+name}', options)
716
+ command.response_representation = Google::Apis::ConnectorsV2::GetResourceResponse::Representation
717
+ command.response_class = Google::Apis::ConnectorsV2::GetResourceResponse
718
+ command.params['name'] = name unless name.nil?
719
+ command.query['fields'] = fields unless fields.nil?
720
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
721
+ execute_or_queue_command(command, &block)
722
+ end
723
+
724
+ # Lists all available resources.
725
+ # @param [String] parent
726
+ # Required. Resource name of the connection. Format: projects/`project`/
727
+ # locations/`location`/connections/`connection`
728
+ # @param [Fixnum] page_size
729
+ # Optional. Page size for the request.
730
+ # @param [String] page_token
731
+ # Optional. Page token for the request.
732
+ # @param [String] fields
733
+ # Selector specifying which fields to include in a partial response.
734
+ # @param [String] quota_user
735
+ # Available to use for quota purposes for server-side applications. Can be any
736
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
737
+ # @param [Google::Apis::RequestOptions] options
738
+ # Request-specific options
739
+ #
740
+ # @yield [result, err] Result & error if block supplied
741
+ # @yieldparam result [Google::Apis::ConnectorsV2::ListResourcesResponse] parsed result object
742
+ # @yieldparam err [StandardError] error object if request failed
743
+ #
744
+ # @return [Google::Apis::ConnectorsV2::ListResourcesResponse]
745
+ #
746
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
747
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
748
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
749
+ def list_project_location_connection_resources(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
750
+ command = make_simple_command(:get, 'v2/{+parent}/resources', options)
751
+ command.response_representation = Google::Apis::ConnectorsV2::ListResourcesResponse::Representation
752
+ command.response_class = Google::Apis::ConnectorsV2::ListResourcesResponse
753
+ command.params['parent'] = parent unless parent.nil?
754
+ command.query['pageSize'] = page_size unless page_size.nil?
755
+ command.query['pageToken'] = page_token unless page_token.nil?
756
+ command.query['fields'] = fields unless fields.nil?
757
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
758
+ execute_or_queue_command(command, &block)
759
+ end
760
+
693
761
  # Executes a specific tool.
694
762
  # @param [String] name
695
763
  # Required. Resource name of the Tool. Format: projects/`project`/locations/`
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.27.0
4
+ version: 0.29.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.27.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-connectors_v2/v0.29.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: