google-cloud-ai_platform-v1 0.60.0 → 0.62.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (181) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +30 -20
  3. data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +43 -20
  4. data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +9 -5
  5. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/client.rb +43 -20
  6. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/operations.rb +84 -35
  7. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/service_stub.rb +166 -116
  8. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/client.rb +34 -7
  9. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/operations.rb +9 -5
  10. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/client.rb +33 -7
  11. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/operations.rb +84 -35
  12. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/service_stub.rb +62 -38
  13. data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +36 -10
  14. data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +9 -5
  15. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/client.rb +36 -10
  16. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/operations.rb +84 -35
  17. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/service_stub.rb +86 -56
  18. data/lib/google/cloud/ai_platform/v1/evaluation_service/client.rb +29 -2
  19. data/lib/google/cloud/ai_platform/v1/evaluation_service/rest/client.rb +29 -2
  20. data/lib/google/cloud/ai_platform/v1/evaluation_service/rest/service_stub.rb +22 -8
  21. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/client.rb +38 -14
  22. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/operations.rb +9 -5
  23. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/client.rb +38 -14
  24. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/operations.rb +84 -35
  25. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/service_stub.rb +118 -80
  26. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/client.rb +29 -3
  27. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/rest/client.rb +29 -3
  28. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/rest/service_stub.rb +30 -14
  29. data/lib/google/cloud/ai_platform/v1/feature_registry_service/client.rb +38 -12
  30. data/lib/google/cloud/ai_platform/v1/feature_registry_service/operations.rb +9 -5
  31. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/client.rb +38 -12
  32. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/operations.rb +84 -35
  33. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/service_stub.rb +102 -68
  34. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +29 -4
  35. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/rest/client.rb +29 -3
  36. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/rest/service_stub.rb +31 -14
  37. data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +45 -22
  38. data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +9 -5
  39. data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/client.rb +45 -22
  40. data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/operations.rb +84 -35
  41. data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/service_stub.rb +182 -128
  42. data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/client.rb +872 -0
  43. data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/credentials.rb +47 -0
  44. data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/paths.rb +88 -0
  45. data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/rest/client.rb +820 -0
  46. data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/rest/service_stub.rb +388 -0
  47. data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/rest.rb +53 -0
  48. data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service.rb +55 -0
  49. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/client.rb +31 -6
  50. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/operations.rb +9 -5
  51. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/client.rb +31 -6
  52. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/operations.rb +84 -35
  53. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/service_stub.rb +54 -32
  54. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +35 -9
  55. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +9 -5
  56. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/client.rb +35 -9
  57. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/operations.rb +84 -35
  58. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/service_stub.rb +78 -50
  59. data/lib/google/cloud/ai_platform/v1/index_service/client.rb +33 -8
  60. data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +9 -5
  61. data/lib/google/cloud/ai_platform/v1/index_service/rest/client.rb +33 -8
  62. data/lib/google/cloud/ai_platform/v1/index_service/rest/operations.rb +84 -35
  63. data/lib/google/cloud/ai_platform/v1/index_service/rest/service_stub.rb +70 -44
  64. data/lib/google/cloud/ai_platform/v1/job_service/client.rb +44 -36
  65. data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +9 -5
  66. data/lib/google/cloud/ai_platform/v1/job_service/rest/client.rb +44 -36
  67. data/lib/google/cloud/ai_platform/v1/job_service/rest/operations.rb +84 -35
  68. data/lib/google/cloud/ai_platform/v1/job_service/rest/service_stub.rb +294 -212
  69. data/lib/google/cloud/ai_platform/v1/llm_utility_service/client.rb +29 -3
  70. data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest/client.rb +29 -3
  71. data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest/service_stub.rb +30 -14
  72. data/lib/google/cloud/ai_platform/v1/match_service/client.rb +29 -3
  73. data/lib/google/cloud/ai_platform/v1/match_service/rest/client.rb +29 -3
  74. data/lib/google/cloud/ai_platform/v1/match_service/rest/service_stub.rb +30 -14
  75. data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +42 -33
  76. data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +9 -5
  77. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/client.rb +42 -33
  78. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/operations.rb +84 -35
  79. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/service_stub.rb +270 -194
  80. data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +31 -3
  81. data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +9 -5
  82. data/lib/google/cloud/ai_platform/v1/migration_service/rest/client.rb +31 -3
  83. data/lib/google/cloud/ai_platform/v1/migration_service/rest/operations.rb +84 -35
  84. data/lib/google/cloud/ai_platform/v1/migration_service/rest/service_stub.rb +30 -14
  85. data/lib/google/cloud/ai_platform/v1/model_garden_service/client.rb +29 -2
  86. data/lib/google/cloud/ai_platform/v1/model_garden_service/rest/client.rb +29 -2
  87. data/lib/google/cloud/ai_platform/v1/model_garden_service/rest/service_stub.rb +22 -8
  88. data/lib/google/cloud/ai_platform/v1/model_service/client.rb +39 -19
  89. data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +9 -5
  90. data/lib/google/cloud/ai_platform/v1/model_service/rest/client.rb +39 -19
  91. data/lib/google/cloud/ai_platform/v1/model_service/rest/operations.rb +84 -35
  92. data/lib/google/cloud/ai_platform/v1/model_service/rest/service_stub.rb +158 -110
  93. data/lib/google/cloud/ai_platform/v1/notebook_service/client.rb +41 -17
  94. data/lib/google/cloud/ai_platform/v1/notebook_service/operations.rb +9 -5
  95. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/client.rb +41 -17
  96. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/operations.rb +84 -35
  97. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/service_stub.rb +142 -98
  98. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/client.rb +34 -7
  99. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/operations.rb +9 -5
  100. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/client.rb +34 -7
  101. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/operations.rb +84 -35
  102. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/service_stub.rb +62 -38
  103. data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +35 -13
  104. data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +9 -5
  105. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/client.rb +35 -13
  106. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/operations.rb +84 -35
  107. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/service_stub.rb +110 -74
  108. data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +43 -16
  109. data/lib/google/cloud/ai_platform/v1/prediction_service/paths.rb +19 -0
  110. data/lib/google/cloud/ai_platform/v1/prediction_service/rest/client.rb +43 -9
  111. data/lib/google/cloud/ai_platform/v1/prediction_service/rest/service_stub.rb +65 -38
  112. data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/client.rb +593 -0
  113. data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/credentials.rb +47 -0
  114. data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/paths.rb +52 -0
  115. data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/rest/client.rb +564 -0
  116. data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/rest/service_stub.rb +199 -0
  117. data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/rest.rb +53 -0
  118. data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service.rb +55 -0
  119. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/client.rb +914 -0
  120. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/credentials.rb +47 -0
  121. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/operations.rb +814 -0
  122. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/paths.rb +69 -0
  123. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/rest/client.rb +862 -0
  124. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/rest/operations.rb +4293 -0
  125. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/rest/service_stub.rb +388 -0
  126. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/rest.rb +54 -0
  127. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service.rb +56 -0
  128. data/lib/google/cloud/ai_platform/v1/rest.rb +3 -0
  129. data/lib/google/cloud/ai_platform/v1/schedule_service/client.rb +31 -8
  130. data/lib/google/cloud/ai_platform/v1/schedule_service/operations.rb +9 -5
  131. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/client.rb +31 -8
  132. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/operations.rb +84 -35
  133. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/service_stub.rb +70 -44
  134. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +33 -6
  135. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +9 -5
  136. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/client.rb +33 -6
  137. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/operations.rb +84 -35
  138. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/service_stub.rb +54 -32
  139. data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +40 -31
  140. data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +9 -5
  141. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/client.rb +40 -30
  142. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/operations.rb +84 -35
  143. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/service_stub.rb +247 -176
  144. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  145. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/client.rb +36 -11
  146. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/operations.rb +9 -5
  147. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/client.rb +36 -11
  148. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/operations.rb +84 -35
  149. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/service_stub.rb +94 -62
  150. data/lib/google/cloud/ai_platform/v1/vertex_rag_service/client.rb +29 -4
  151. data/lib/google/cloud/ai_platform/v1/vertex_rag_service/rest/client.rb +29 -4
  152. data/lib/google/cloud/ai_platform/v1/vertex_rag_service/rest/service_stub.rb +38 -20
  153. data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +33 -16
  154. data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +9 -5
  155. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/client.rb +33 -16
  156. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/operations.rb +84 -35
  157. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/service_stub.rb +134 -92
  158. data/lib/google/cloud/ai_platform/v1.rb +3 -0
  159. data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +1 -1
  160. data/lib/google/cloud/aiplatform/v1/cached_content_pb.rb +54 -0
  161. data/lib/google/cloud/aiplatform/v1/gen_ai_cache_service_pb.rb +57 -0
  162. data/lib/google/cloud/aiplatform/v1/gen_ai_cache_service_services_pb.rb +54 -0
  163. data/lib/google/cloud/aiplatform/v1/notebook_runtime_pb.rb +1 -1
  164. data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +1 -1
  165. data/lib/google/cloud/aiplatform/v1/reasoning_engine_execution_service_pb.rb +52 -0
  166. data/lib/google/cloud/aiplatform/v1/reasoning_engine_execution_service_services_pb.rb +47 -0
  167. data/lib/google/cloud/aiplatform/v1/reasoning_engine_pb.rb +51 -0
  168. data/lib/google/cloud/aiplatform/v1/reasoning_engine_service_pb.rb +62 -0
  169. data/lib/google/cloud/aiplatform/v1/reasoning_engine_service_services_pb.rb +53 -0
  170. data/lib/google/cloud/aiplatform/v1/tool_pb.rb +4 -1
  171. data/proto_docs/google/cloud/aiplatform/v1/accelerator_type.rb +3 -0
  172. data/proto_docs/google/cloud/aiplatform/v1/cached_content.rb +101 -0
  173. data/proto_docs/google/cloud/aiplatform/v1/gen_ai_cache_service.rb +108 -0
  174. data/proto_docs/google/cloud/aiplatform/v1/notebook_runtime.rb +42 -2
  175. data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +11 -0
  176. data/proto_docs/google/cloud/aiplatform/v1/reasoning_engine.rb +87 -0
  177. data/proto_docs/google/cloud/aiplatform/v1/reasoning_engine_execution_service.rb +73 -0
  178. data/proto_docs/google/cloud/aiplatform/v1/reasoning_engine_service.rb +136 -0
  179. data/proto_docs/google/cloud/aiplatform/v1/tool.rb +15 -0
  180. data/proto_docs/google/type/latlng.rb +38 -0
  181. metadata +42 -8
@@ -0,0 +1,199 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/aiplatform/v1/reasoning_engine_execution_service_pb"
20
+
21
+ module Google
22
+ module Cloud
23
+ module AIPlatform
24
+ module V1
25
+ module ReasoningEngineExecutionService
26
+ module Rest
27
+ ##
28
+ # REST service stub for the ReasoningEngineExecutionService service.
29
+ # Service stub contains baseline method implementations
30
+ # including transcoding, making the REST call, and deserialing the response.
31
+ #
32
+ class ServiceStub
33
+ # @private
34
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
35
+ # These require statements are intentionally placed here to initialize
36
+ # the REST modules only when it's required.
37
+ require "gapic/rest"
38
+
39
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
40
+ endpoint_template: endpoint_template,
41
+ universe_domain: universe_domain,
42
+ credentials: credentials,
43
+ numeric_enums: true,
44
+ service_name: self.class,
45
+ raise_faraday_errors: false,
46
+ logger: logger
47
+ end
48
+
49
+ ##
50
+ # The effective universe domain
51
+ #
52
+ # @return [String]
53
+ #
54
+ def universe_domain
55
+ @client_stub.universe_domain
56
+ end
57
+
58
+ ##
59
+ # The effective endpoint
60
+ #
61
+ # @return [String]
62
+ #
63
+ def endpoint
64
+ @client_stub.endpoint
65
+ end
66
+
67
+ ##
68
+ # The logger used for request/response debug logging.
69
+ #
70
+ # @return [Logger]
71
+ #
72
+ def logger stub: false
73
+ stub ? @client_stub.stub_logger : @client_stub.logger
74
+ end
75
+
76
+ ##
77
+ # Baseline implementation for the query_reasoning_engine REST call
78
+ #
79
+ # @param request_pb [::Google::Cloud::AIPlatform::V1::QueryReasoningEngineRequest]
80
+ # A request object representing the call parameters. Required.
81
+ # @param options [::Gapic::CallOptions]
82
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
83
+ #
84
+ # @yield [result, operation] Access the result along with the TransportOperation object
85
+ # @yieldparam result [::Google::Cloud::AIPlatform::V1::QueryReasoningEngineResponse]
86
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
87
+ #
88
+ # @return [::Google::Cloud::AIPlatform::V1::QueryReasoningEngineResponse]
89
+ # A result object deserialized from the server's reply
90
+ def query_reasoning_engine request_pb, options = nil
91
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
92
+
93
+ verb, uri, query_string_params, body = ServiceStub.transcode_query_reasoning_engine_request request_pb
94
+ query_string_params = if query_string_params.any?
95
+ query_string_params.to_h { |p| p.split "=", 2 }
96
+ else
97
+ {}
98
+ end
99
+
100
+ response = @client_stub.make_http_request(
101
+ verb,
102
+ uri: uri,
103
+ body: body || "",
104
+ params: query_string_params,
105
+ method_name: "query_reasoning_engine",
106
+ options: options
107
+ )
108
+ operation = ::Gapic::Rest::TransportOperation.new response
109
+ result = ::Google::Cloud::AIPlatform::V1::QueryReasoningEngineResponse.decode_json response.body, ignore_unknown_fields: true
110
+ catch :response do
111
+ yield result, operation if block_given?
112
+ result
113
+ end
114
+ end
115
+
116
+ ##
117
+ # Baseline implementation for the stream_query_reasoning_engine REST call
118
+ #
119
+ # @param request_pb [::Google::Cloud::AIPlatform::V1::StreamQueryReasoningEngineRequest]
120
+ # A request object representing the call parameters. Required.
121
+ # @param options [::Gapic::CallOptions]
122
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
123
+ #
124
+ # @yieldparam chunk [::String] The chunk of data received during server streaming.
125
+ #
126
+ # @return [::Gapic::Rest::TransportOperation]
127
+ def stream_query_reasoning_engine request_pb, options = nil, &block
128
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
129
+
130
+ verb, uri, query_string_params, body = ServiceStub.transcode_stream_query_reasoning_engine_request request_pb
131
+ query_string_params = if query_string_params.any?
132
+ query_string_params.to_h { |p| p.split "=", 2 }
133
+ else
134
+ {}
135
+ end
136
+
137
+ response = @client_stub.make_http_request(
138
+ verb,
139
+ uri: uri,
140
+ body: body || "",
141
+ params: query_string_params,
142
+ method_name: "stream_query_reasoning_engine",
143
+ options: options,
144
+ is_server_streaming: true,
145
+ &block
146
+ )
147
+ ::Gapic::Rest::TransportOperation.new response
148
+ end
149
+
150
+ ##
151
+ # @private
152
+ #
153
+ # GRPC transcoding helper method for the query_reasoning_engine REST call
154
+ #
155
+ # @param request_pb [::Google::Cloud::AIPlatform::V1::QueryReasoningEngineRequest]
156
+ # A request object representing the call parameters. Required.
157
+ # @return [Array(String, [String, nil], Hash{String => String})]
158
+ # Uri, Body, Query string parameters
159
+ def self.transcode_query_reasoning_engine_request request_pb
160
+ transcoder = Gapic::Rest::GrpcTranscoder.new
161
+ .with_bindings(
162
+ uri_method: :post,
163
+ uri_template: "/v1/{name}:query",
164
+ body: "*",
165
+ matches: [
166
+ ["name", %r{^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/?$}, false]
167
+ ]
168
+ )
169
+ transcoder.transcode request_pb
170
+ end
171
+
172
+ ##
173
+ # @private
174
+ #
175
+ # GRPC transcoding helper method for the stream_query_reasoning_engine REST call
176
+ #
177
+ # @param request_pb [::Google::Cloud::AIPlatform::V1::StreamQueryReasoningEngineRequest]
178
+ # A request object representing the call parameters. Required.
179
+ # @return [Array(String, [String, nil], Hash{String => String})]
180
+ # Uri, Body, Query string parameters
181
+ def self.transcode_stream_query_reasoning_engine_request request_pb
182
+ transcoder = Gapic::Rest::GrpcTranscoder.new
183
+ .with_bindings(
184
+ uri_method: :post,
185
+ uri_template: "/v1/{name}:streamQuery",
186
+ body: "*",
187
+ matches: [
188
+ ["name", %r{^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/?$}, false]
189
+ ]
190
+ )
191
+ transcoder.transcode request_pb
192
+ end
193
+ end
194
+ end
195
+ end
196
+ end
197
+ end
198
+ end
199
+ end
@@ -0,0 +1,53 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/rest"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/ai_platform/v1/version"
24
+ require "google/cloud/ai_platform/v1/bindings_override"
25
+
26
+ require "google/cloud/ai_platform/v1/reasoning_engine_execution_service/credentials"
27
+ require "google/cloud/ai_platform/v1/reasoning_engine_execution_service/paths"
28
+ require "google/cloud/ai_platform/v1/reasoning_engine_execution_service/rest/client"
29
+
30
+ module Google
31
+ module Cloud
32
+ module AIPlatform
33
+ module V1
34
+ ##
35
+ # A service for executing queries on Reasoning Engine.
36
+ #
37
+ # To load this service and instantiate a REST client:
38
+ #
39
+ # require "google/cloud/ai_platform/v1/reasoning_engine_execution_service/rest"
40
+ # client = ::Google::Cloud::AIPlatform::V1::ReasoningEngineExecutionService::Rest::Client.new
41
+ #
42
+ module ReasoningEngineExecutionService
43
+ # Client for the REST transport
44
+ module Rest
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
51
+
52
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
53
+ require "google/cloud/ai_platform/v1/reasoning_engine_execution_service/rest/helpers" if ::File.file? helper_path
@@ -0,0 +1,55 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/ai_platform/v1/version"
24
+
25
+ require "google/cloud/ai_platform/v1/reasoning_engine_execution_service/credentials"
26
+ require "google/cloud/ai_platform/v1/reasoning_engine_execution_service/paths"
27
+ require "google/cloud/ai_platform/v1/reasoning_engine_execution_service/client"
28
+ require "google/cloud/ai_platform/v1/reasoning_engine_execution_service/rest"
29
+
30
+ module Google
31
+ module Cloud
32
+ module AIPlatform
33
+ module V1
34
+ ##
35
+ # A service for executing queries on Reasoning Engine.
36
+ #
37
+ # @example Load this service and instantiate a gRPC client
38
+ #
39
+ # require "google/cloud/ai_platform/v1/reasoning_engine_execution_service"
40
+ # client = ::Google::Cloud::AIPlatform::V1::ReasoningEngineExecutionService::Client.new
41
+ #
42
+ # @example Load this service and instantiate a REST client
43
+ #
44
+ # require "google/cloud/ai_platform/v1/reasoning_engine_execution_service/rest"
45
+ # client = ::Google::Cloud::AIPlatform::V1::ReasoningEngineExecutionService::Rest::Client.new
46
+ #
47
+ module ReasoningEngineExecutionService
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
53
+
54
+ helper_path = ::File.join __dir__, "reasoning_engine_execution_service", "helpers.rb"
55
+ require "google/cloud/ai_platform/v1/reasoning_engine_execution_service/helpers" if ::File.file? helper_path