google-cloud-ai_platform-v1 0.61.0 → 0.63.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/ai_platform/v1/bindings_override.rb +24 -0
- data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +11 -0
- data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/dataset_service/rest/client.rb +11 -0
- data/lib/google/cloud/ai_platform/v1/dataset_service/rest/operations.rb +70 -0
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/operations.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/operations.rb +70 -0
- data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/operations.rb +70 -0
- data/lib/google/cloud/ai_platform/v1/evaluation_service/client.rb +57 -0
- data/lib/google/cloud/ai_platform/v1/evaluation_service/rest/client.rb +57 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/operations.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/operations.rb +70 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_service/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_service/rest/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/operations.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/operations.rb +70 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/rest/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +26 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/client.rb +26 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/operations.rb +70 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/client.rb +879 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/paths.rb +88 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/rest/client.rb +827 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/rest/service_stub.rb +388 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/rest.rb +53 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service.rb +55 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/operations.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/operations.rb +70 -0
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/operations.rb +70 -0
- data/lib/google/cloud/ai_platform/v1/index_service/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/index_service/rest/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/index_service/rest/operations.rb +70 -0
- data/lib/google/cloud/ai_platform/v1/job_service/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/job_service/rest/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/job_service/rest/operations.rb +70 -0
- data/lib/google/cloud/ai_platform/v1/llm_utility_service/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/match_service/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/match_service/rest/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/metadata_service/rest/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/metadata_service/rest/operations.rb +70 -0
- data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/migration_service/rest/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/migration_service/rest/operations.rb +70 -0
- data/lib/google/cloud/ai_platform/v1/model_garden_service/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/model_garden_service/rest/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/model_service/client.rb +124 -0
- data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/model_service/rest/client.rb +117 -0
- data/lib/google/cloud/ai_platform/v1/model_service/rest/operations.rb +70 -0
- data/lib/google/cloud/ai_platform/v1/model_service/rest/service_stub.rb +61 -0
- data/lib/google/cloud/ai_platform/v1/notebook_service/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/notebook_service/operations.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/notebook_service/rest/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/notebook_service/rest/operations.rb +70 -0
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service/operations.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/operations.rb +70 -0
- data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/operations.rb +70 -0
- data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +21 -2
- data/lib/google/cloud/ai_platform/v1/prediction_service/paths.rb +19 -0
- data/lib/google/cloud/ai_platform/v1/prediction_service/rest/client.rb +21 -2
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/client.rb +600 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/paths.rb +52 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/rest/client.rb +571 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/rest/service_stub.rb +199 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/rest.rb +53 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service.rb +55 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/client.rb +921 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/operations.rb +821 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/paths.rb +69 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/rest/client.rb +869 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/rest/operations.rb +4328 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/rest/service_stub.rb +388 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/rest.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_service.rb +56 -0
- data/lib/google/cloud/ai_platform/v1/rest.rb +3 -0
- data/lib/google/cloud/ai_platform/v1/schedule_service/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/schedule_service/operations.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/schedule_service/rest/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/schedule_service/rest/operations.rb +70 -0
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/operations.rb +70 -0
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/operations.rb +70 -0
- data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
- data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/operations.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/operations.rb +70 -0
- data/lib/google/cloud/ai_platform/v1/vertex_rag_service/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/vertex_rag_service/rest/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/vizier_service/rest/client.rb +7 -0
- data/lib/google/cloud/ai_platform/v1/vizier_service/rest/operations.rb +70 -0
- data/lib/google/cloud/ai_platform/v1.rb +3 -0
- data/lib/google/cloud/aiplatform/v1/cached_content_pb.rb +54 -0
- data/lib/google/cloud/aiplatform/v1/content_pb.rb +3 -1
- data/lib/google/cloud/aiplatform/v1/endpoint_pb.rb +5 -2
- data/lib/google/cloud/aiplatform/v1/feature_view_pb.rb +2 -1
- data/lib/google/cloud/aiplatform/v1/gen_ai_cache_service_pb.rb +57 -0
- data/lib/google/cloud/aiplatform/v1/gen_ai_cache_service_services_pb.rb +54 -0
- data/lib/google/cloud/aiplatform/v1/model_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/model_service_pb.rb +4 -1
- data/lib/google/cloud/aiplatform/v1/model_service_services_pb.rb +2 -0
- data/lib/google/cloud/aiplatform/v1/notebook_runtime_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/reasoning_engine_execution_service_pb.rb +52 -0
- data/lib/google/cloud/aiplatform/v1/reasoning_engine_execution_service_services_pb.rb +47 -0
- data/lib/google/cloud/aiplatform/v1/reasoning_engine_pb.rb +51 -0
- data/lib/google/cloud/aiplatform/v1/reasoning_engine_service_pb.rb +62 -0
- data/lib/google/cloud/aiplatform/v1/reasoning_engine_service_services_pb.rb +53 -0
- data/lib/google/cloud/aiplatform/v1/tool_pb.rb +9 -1
- data/proto_docs/google/cloud/aiplatform/v1/batch_prediction_job.rb +12 -0
- data/proto_docs/google/cloud/aiplatform/v1/cached_content.rb +105 -0
- data/proto_docs/google/cloud/aiplatform/v1/content.rb +61 -0
- data/proto_docs/google/cloud/aiplatform/v1/custom_job.rb +4 -0
- data/proto_docs/google/cloud/aiplatform/v1/data_labeling_job.rb +4 -0
- data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +4 -0
- data/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb +4 -0
- data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +57 -5
- data/proto_docs/google/cloud/aiplatform/v1/evaluation_service.rb +100 -0
- data/proto_docs/google/cloud/aiplatform/v1/explanation.rb +16 -0
- data/proto_docs/google/cloud/aiplatform/v1/explanation_metadata.rb +4 -0
- data/proto_docs/google/cloud/aiplatform/v1/feature_online_store.rb +4 -0
- data/proto_docs/google/cloud/aiplatform/v1/feature_online_store_service.rb +18 -0
- data/proto_docs/google/cloud/aiplatform/v1/feature_view.rb +39 -0
- data/proto_docs/google/cloud/aiplatform/v1/featurestore_online_service.rb +24 -0
- data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +29 -0
- data/proto_docs/google/cloud/aiplatform/v1/gen_ai_cache_service.rb +108 -0
- data/proto_docs/google/cloud/aiplatform/v1/index.rb +6 -0
- data/proto_docs/google/cloud/aiplatform/v1/io.rb +8 -0
- data/proto_docs/google/cloud/aiplatform/v1/migratable_resource.rb +8 -0
- data/proto_docs/google/cloud/aiplatform/v1/migration_service.rb +18 -0
- data/proto_docs/google/cloud/aiplatform/v1/model.rb +7 -0
- data/proto_docs/google/cloud/aiplatform/v1/model_evaluation_slice.rb +10 -0
- data/proto_docs/google/cloud/aiplatform/v1/model_monitoring.rb +10 -0
- data/proto_docs/google/cloud/aiplatform/v1/model_service.rb +63 -0
- data/proto_docs/google/cloud/aiplatform/v1/notebook_execution_job.rb +14 -0
- data/proto_docs/google/cloud/aiplatform/v1/notebook_runtime.rb +42 -2
- data/proto_docs/google/cloud/aiplatform/v1/pipeline_job.rb +4 -0
- data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +24 -0
- data/proto_docs/google/cloud/aiplatform/v1/publisher_model.rb +14 -0
- data/proto_docs/google/cloud/aiplatform/v1/reasoning_engine.rb +87 -0
- data/proto_docs/google/cloud/aiplatform/v1/reasoning_engine_execution_service.rb +73 -0
- data/proto_docs/google/cloud/aiplatform/v1/reasoning_engine_service.rb +136 -0
- data/proto_docs/google/cloud/aiplatform/v1/schedule.rb +4 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_tables.rb +12 -0
- data/proto_docs/google/cloud/aiplatform/v1/study.rb +24 -0
- data/proto_docs/google/cloud/aiplatform/v1/tensorboard_data.rb +6 -0
- data/proto_docs/google/cloud/aiplatform/v1/tool.rb +95 -0
- data/proto_docs/google/cloud/aiplatform/v1/training_pipeline.rb +14 -0
- data/proto_docs/google/cloud/aiplatform/v1/tuning_job.rb +6 -0
- data/proto_docs/google/cloud/aiplatform/v1/user_action_reference.rb +4 -0
- data/proto_docs/google/cloud/aiplatform/v1/value.rb +6 -0
- data/proto_docs/google/cloud/aiplatform/v1/vertex_rag_data.rb +32 -0
- data/proto_docs/google/cloud/aiplatform/v1/vertex_rag_data_service.rb +8 -0
- data/proto_docs/google/longrunning/operations.rb +4 -0
- data/proto_docs/google/protobuf/struct.rb +12 -0
- data/proto_docs/google/type/latlng.rb +38 -0
- metadata +43 -9
@@ -0,0 +1,47 @@
|
|
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 "googleauth"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module AIPlatform
|
24
|
+
module V1
|
25
|
+
module ReasoningEngineExecutionService
|
26
|
+
# Credentials for the ReasoningEngineExecutionService API.
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
28
|
+
self.scope = [
|
29
|
+
"https://www.googleapis.com/auth/cloud-platform"
|
30
|
+
]
|
31
|
+
self.env_vars = [
|
32
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
33
|
+
"GOOGLE_CLOUD_KEYFILE",
|
34
|
+
"GCLOUD_KEYFILE",
|
35
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
36
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
37
|
+
"GCLOUD_KEYFILE_JSON"
|
38
|
+
]
|
39
|
+
self.paths = [
|
40
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
41
|
+
]
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,52 @@
|
|
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
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module AIPlatform
|
23
|
+
module V1
|
24
|
+
module ReasoningEngineExecutionService
|
25
|
+
# Path helper methods for the ReasoningEngineExecutionService API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified ReasoningEngine resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param reasoning_engine [String]
|
37
|
+
#
|
38
|
+
# @return [::String]
|
39
|
+
def reasoning_engine_path project:, location:, reasoning_engine:
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
41
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
42
|
+
|
43
|
+
"projects/#{project}/locations/#{location}/reasoningEngines/#{reasoning_engine}"
|
44
|
+
end
|
45
|
+
|
46
|
+
extend self
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,571 @@
|
|
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/errors"
|
20
|
+
require "google/cloud/aiplatform/v1/reasoning_engine_execution_service_pb"
|
21
|
+
require "google/cloud/ai_platform/v1/reasoning_engine_execution_service/rest/service_stub"
|
22
|
+
require "google/cloud/location/rest"
|
23
|
+
require "google/iam/v1/rest"
|
24
|
+
|
25
|
+
module Google
|
26
|
+
module Cloud
|
27
|
+
module AIPlatform
|
28
|
+
module V1
|
29
|
+
module ReasoningEngineExecutionService
|
30
|
+
module Rest
|
31
|
+
##
|
32
|
+
# REST client for the ReasoningEngineExecutionService service.
|
33
|
+
#
|
34
|
+
# A service for executing queries on Reasoning Engine.
|
35
|
+
#
|
36
|
+
class Client
|
37
|
+
# @private
|
38
|
+
API_VERSION = ""
|
39
|
+
|
40
|
+
# @private
|
41
|
+
DEFAULT_ENDPOINT_TEMPLATE = "aiplatform.$UNIVERSE_DOMAIN$"
|
42
|
+
|
43
|
+
include Paths
|
44
|
+
|
45
|
+
# @private
|
46
|
+
attr_reader :reasoning_engine_execution_service_stub
|
47
|
+
|
48
|
+
##
|
49
|
+
# Configure the ReasoningEngineExecutionService Client class.
|
50
|
+
#
|
51
|
+
# See {::Google::Cloud::AIPlatform::V1::ReasoningEngineExecutionService::Rest::Client::Configuration}
|
52
|
+
# for a description of the configuration fields.
|
53
|
+
#
|
54
|
+
# @example
|
55
|
+
#
|
56
|
+
# # Modify the configuration for all ReasoningEngineExecutionService clients
|
57
|
+
# ::Google::Cloud::AIPlatform::V1::ReasoningEngineExecutionService::Rest::Client.configure do |config|
|
58
|
+
# config.timeout = 10.0
|
59
|
+
# end
|
60
|
+
#
|
61
|
+
# @yield [config] Configure the Client client.
|
62
|
+
# @yieldparam config [Client::Configuration]
|
63
|
+
#
|
64
|
+
# @return [Client::Configuration]
|
65
|
+
#
|
66
|
+
def self.configure
|
67
|
+
@configure ||= begin
|
68
|
+
namespace = ["Google", "Cloud", "AIPlatform", "V1"]
|
69
|
+
parent_config = while namespace.any?
|
70
|
+
parent_name = namespace.join "::"
|
71
|
+
parent_const = const_get parent_name
|
72
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
73
|
+
namespace.pop
|
74
|
+
end
|
75
|
+
default_config = Client::Configuration.new parent_config
|
76
|
+
|
77
|
+
default_config
|
78
|
+
end
|
79
|
+
yield @configure if block_given?
|
80
|
+
@configure
|
81
|
+
end
|
82
|
+
|
83
|
+
##
|
84
|
+
# Configure the ReasoningEngineExecutionService Client instance.
|
85
|
+
#
|
86
|
+
# The configuration is set to the derived mode, meaning that values can be changed,
|
87
|
+
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
88
|
+
# should be made on {Client.configure}.
|
89
|
+
#
|
90
|
+
# See {::Google::Cloud::AIPlatform::V1::ReasoningEngineExecutionService::Rest::Client::Configuration}
|
91
|
+
# for a description of the configuration fields.
|
92
|
+
#
|
93
|
+
# @yield [config] Configure the Client client.
|
94
|
+
# @yieldparam config [Client::Configuration]
|
95
|
+
#
|
96
|
+
# @return [Client::Configuration]
|
97
|
+
#
|
98
|
+
def configure
|
99
|
+
yield @config if block_given?
|
100
|
+
@config
|
101
|
+
end
|
102
|
+
|
103
|
+
##
|
104
|
+
# The effective universe domain
|
105
|
+
#
|
106
|
+
# @return [String]
|
107
|
+
#
|
108
|
+
def universe_domain
|
109
|
+
@reasoning_engine_execution_service_stub.universe_domain
|
110
|
+
end
|
111
|
+
|
112
|
+
##
|
113
|
+
# Create a new ReasoningEngineExecutionService REST client object.
|
114
|
+
#
|
115
|
+
# @example
|
116
|
+
#
|
117
|
+
# # Create a client using the default configuration
|
118
|
+
# client = ::Google::Cloud::AIPlatform::V1::ReasoningEngineExecutionService::Rest::Client.new
|
119
|
+
#
|
120
|
+
# # Create a client using a custom configuration
|
121
|
+
# client = ::Google::Cloud::AIPlatform::V1::ReasoningEngineExecutionService::Rest::Client.new do |config|
|
122
|
+
# config.timeout = 10.0
|
123
|
+
# end
|
124
|
+
#
|
125
|
+
# @yield [config] Configure the ReasoningEngineExecutionService client.
|
126
|
+
# @yieldparam config [Client::Configuration]
|
127
|
+
#
|
128
|
+
def initialize
|
129
|
+
# Create the configuration object
|
130
|
+
@config = Configuration.new Client.configure
|
131
|
+
|
132
|
+
# Yield the configuration if needed
|
133
|
+
yield @config if block_given?
|
134
|
+
|
135
|
+
# Create credentials
|
136
|
+
credentials = @config.credentials
|
137
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
138
|
+
# but only if the default endpoint does not have a region prefix.
|
139
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
140
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
141
|
+
!@config.endpoint.split(".").first.include?("-"))
|
142
|
+
credentials ||= Credentials.default scope: @config.scope,
|
143
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
144
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
145
|
+
credentials = Credentials.new credentials, scope: @config.scope
|
146
|
+
end
|
147
|
+
|
148
|
+
@quota_project_id = @config.quota_project
|
149
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
150
|
+
|
151
|
+
@reasoning_engine_execution_service_stub = ::Google::Cloud::AIPlatform::V1::ReasoningEngineExecutionService::Rest::ServiceStub.new(
|
152
|
+
endpoint: @config.endpoint,
|
153
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
154
|
+
universe_domain: @config.universe_domain,
|
155
|
+
credentials: credentials,
|
156
|
+
logger: @config.logger
|
157
|
+
)
|
158
|
+
|
159
|
+
@reasoning_engine_execution_service_stub.logger(stub: true)&.info do |entry|
|
160
|
+
entry.set_system_name
|
161
|
+
entry.set_service
|
162
|
+
entry.message = "Created client for #{entry.service}"
|
163
|
+
entry.set_credentials_fields credentials
|
164
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
165
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
166
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
167
|
+
end
|
168
|
+
|
169
|
+
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
170
|
+
config.credentials = credentials
|
171
|
+
config.quota_project = @quota_project_id
|
172
|
+
config.endpoint = @reasoning_engine_execution_service_stub.endpoint
|
173
|
+
config.universe_domain = @reasoning_engine_execution_service_stub.universe_domain
|
174
|
+
config.bindings_override = @config.bindings_override
|
175
|
+
config.logger = @reasoning_engine_execution_service_stub.logger if config.respond_to? :logger=
|
176
|
+
end
|
177
|
+
|
178
|
+
@iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
|
179
|
+
config.credentials = credentials
|
180
|
+
config.quota_project = @quota_project_id
|
181
|
+
config.endpoint = @reasoning_engine_execution_service_stub.endpoint
|
182
|
+
config.universe_domain = @reasoning_engine_execution_service_stub.universe_domain
|
183
|
+
config.bindings_override = @config.bindings_override
|
184
|
+
config.logger = @reasoning_engine_execution_service_stub.logger if config.respond_to? :logger=
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
188
|
+
##
|
189
|
+
# Get the associated client for mix-in of the Locations.
|
190
|
+
#
|
191
|
+
# @return [Google::Cloud::Location::Locations::Rest::Client]
|
192
|
+
#
|
193
|
+
attr_reader :location_client
|
194
|
+
|
195
|
+
##
|
196
|
+
# Get the associated client for mix-in of the IAMPolicy.
|
197
|
+
#
|
198
|
+
# @return [Google::Iam::V1::IAMPolicy::Rest::Client]
|
199
|
+
#
|
200
|
+
attr_reader :iam_policy_client
|
201
|
+
|
202
|
+
##
|
203
|
+
# The logger used for request/response debug logging.
|
204
|
+
#
|
205
|
+
# @return [Logger]
|
206
|
+
#
|
207
|
+
def logger
|
208
|
+
@reasoning_engine_execution_service_stub.logger
|
209
|
+
end
|
210
|
+
|
211
|
+
# Service calls
|
212
|
+
|
213
|
+
##
|
214
|
+
# Queries using a reasoning engine.
|
215
|
+
#
|
216
|
+
# @overload query_reasoning_engine(request, options = nil)
|
217
|
+
# Pass arguments to `query_reasoning_engine` via a request object, either of type
|
218
|
+
# {::Google::Cloud::AIPlatform::V1::QueryReasoningEngineRequest} or an equivalent Hash.
|
219
|
+
#
|
220
|
+
# @param request [::Google::Cloud::AIPlatform::V1::QueryReasoningEngineRequest, ::Hash]
|
221
|
+
# A request object representing the call parameters. Required. To specify no
|
222
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
223
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
224
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
225
|
+
#
|
226
|
+
# @overload query_reasoning_engine(name: nil, input: nil, class_method: nil)
|
227
|
+
# Pass arguments to `query_reasoning_engine` via keyword arguments. Note that at
|
228
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
229
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
230
|
+
#
|
231
|
+
# @param name [::String]
|
232
|
+
# Required. The name of the ReasoningEngine resource to use.
|
233
|
+
# Format:
|
234
|
+
# `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
|
235
|
+
# @param input [::Google::Protobuf::Struct, ::Hash]
|
236
|
+
# Optional. Input content provided by users in JSON object format. Examples
|
237
|
+
# include text query, function calling parameters, media bytes, etc.
|
238
|
+
# @param class_method [::String]
|
239
|
+
# Optional. Class method to be used for the query.
|
240
|
+
# It is optional and defaults to "query" if unspecified.
|
241
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
242
|
+
# @yieldparam result [::Google::Cloud::AIPlatform::V1::QueryReasoningEngineResponse]
|
243
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
244
|
+
#
|
245
|
+
# @return [::Google::Cloud::AIPlatform::V1::QueryReasoningEngineResponse]
|
246
|
+
#
|
247
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
248
|
+
#
|
249
|
+
# @example Basic example
|
250
|
+
# require "google/cloud/ai_platform/v1"
|
251
|
+
#
|
252
|
+
# # Create a client object. The client can be reused for multiple calls.
|
253
|
+
# client = Google::Cloud::AIPlatform::V1::ReasoningEngineExecutionService::Rest::Client.new
|
254
|
+
#
|
255
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
256
|
+
# request = Google::Cloud::AIPlatform::V1::QueryReasoningEngineRequest.new
|
257
|
+
#
|
258
|
+
# # Call the query_reasoning_engine method.
|
259
|
+
# result = client.query_reasoning_engine request
|
260
|
+
#
|
261
|
+
# # The returned object is of type Google::Cloud::AIPlatform::V1::QueryReasoningEngineResponse.
|
262
|
+
# p result
|
263
|
+
#
|
264
|
+
def query_reasoning_engine request, options = nil
|
265
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
266
|
+
|
267
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::QueryReasoningEngineRequest
|
268
|
+
|
269
|
+
# Converts hash and nil to an options object
|
270
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
271
|
+
|
272
|
+
# Customize the options with defaults
|
273
|
+
call_metadata = @config.rpcs.query_reasoning_engine.metadata.to_h
|
274
|
+
|
275
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
276
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
277
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
278
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
|
279
|
+
transports_version_send: [:rest]
|
280
|
+
|
281
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
282
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
283
|
+
|
284
|
+
options.apply_defaults timeout: @config.rpcs.query_reasoning_engine.timeout,
|
285
|
+
metadata: call_metadata,
|
286
|
+
retry_policy: @config.rpcs.query_reasoning_engine.retry_policy
|
287
|
+
|
288
|
+
options.apply_defaults timeout: @config.timeout,
|
289
|
+
metadata: @config.metadata,
|
290
|
+
retry_policy: @config.retry_policy
|
291
|
+
|
292
|
+
@reasoning_engine_execution_service_stub.query_reasoning_engine request, options do |result, operation|
|
293
|
+
yield result, operation if block_given?
|
294
|
+
end
|
295
|
+
rescue ::Gapic::Rest::Error => e
|
296
|
+
raise ::Google::Cloud::Error.from_error(e)
|
297
|
+
end
|
298
|
+
|
299
|
+
##
|
300
|
+
# Streams queries using a reasoning engine.
|
301
|
+
#
|
302
|
+
# @overload stream_query_reasoning_engine(request, options = nil)
|
303
|
+
# Pass arguments to `stream_query_reasoning_engine` via a request object, either of type
|
304
|
+
# {::Google::Cloud::AIPlatform::V1::StreamQueryReasoningEngineRequest} or an equivalent Hash.
|
305
|
+
#
|
306
|
+
# @param request [::Google::Cloud::AIPlatform::V1::StreamQueryReasoningEngineRequest, ::Hash]
|
307
|
+
# A request object representing the call parameters. Required. To specify no
|
308
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
309
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
310
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
311
|
+
#
|
312
|
+
# @overload stream_query_reasoning_engine(name: nil, input: nil, class_method: nil)
|
313
|
+
# Pass arguments to `stream_query_reasoning_engine` via keyword arguments. Note that at
|
314
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
315
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
316
|
+
#
|
317
|
+
# @param name [::String]
|
318
|
+
# Required. The name of the ReasoningEngine resource to use.
|
319
|
+
# Format:
|
320
|
+
# `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
|
321
|
+
# @param input [::Google::Protobuf::Struct, ::Hash]
|
322
|
+
# Optional. Input content provided by users in JSON object format. Examples
|
323
|
+
# include text query, function calling parameters, media bytes, etc.
|
324
|
+
# @param class_method [::String]
|
325
|
+
# Optional. Class method to be used for the stream query.
|
326
|
+
# It is optional and defaults to "stream_query" if unspecified.
|
327
|
+
# @return [::Enumerable<::Google::Api::HttpBody>]
|
328
|
+
#
|
329
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
330
|
+
#
|
331
|
+
# @example Basic example
|
332
|
+
# require "google/cloud/ai_platform/v1"
|
333
|
+
#
|
334
|
+
# # Create a client object. The client can be reused for multiple calls.
|
335
|
+
# client = Google::Cloud::AIPlatform::V1::ReasoningEngineExecutionService::Rest::Client.new
|
336
|
+
#
|
337
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
338
|
+
# request = Google::Cloud::AIPlatform::V1::StreamQueryReasoningEngineRequest.new
|
339
|
+
#
|
340
|
+
# # Call the stream_query_reasoning_engine method to start streaming.
|
341
|
+
# output = client.stream_query_reasoning_engine request
|
342
|
+
#
|
343
|
+
# # The returned object is a streamed enumerable yielding elements of type
|
344
|
+
# # ::Google::Api::HttpBody
|
345
|
+
# output.each do |current_response|
|
346
|
+
# p current_response
|
347
|
+
# end
|
348
|
+
#
|
349
|
+
def stream_query_reasoning_engine request, options = nil
|
350
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
351
|
+
|
352
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::StreamQueryReasoningEngineRequest
|
353
|
+
|
354
|
+
# Converts hash and nil to an options object
|
355
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
356
|
+
|
357
|
+
# Customize the options with defaults
|
358
|
+
call_metadata = @config.rpcs.stream_query_reasoning_engine.metadata.to_h
|
359
|
+
|
360
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
361
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
362
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
363
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
|
364
|
+
transports_version_send: [:rest]
|
365
|
+
|
366
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
367
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
368
|
+
|
369
|
+
options.apply_defaults timeout: @config.rpcs.stream_query_reasoning_engine.timeout,
|
370
|
+
metadata: call_metadata,
|
371
|
+
retry_policy: @config.rpcs.stream_query_reasoning_engine.retry_policy
|
372
|
+
|
373
|
+
options.apply_defaults timeout: @config.timeout,
|
374
|
+
metadata: @config.metadata,
|
375
|
+
retry_policy: @config.retry_policy
|
376
|
+
|
377
|
+
::Gapic::Rest::ServerStream.new(
|
378
|
+
::Google::Api::HttpBody,
|
379
|
+
::Gapic::Rest::ThreadedEnumerator.new do |in_q, out_q|
|
380
|
+
@reasoning_engine_execution_service_stub.stream_query_reasoning_engine request, options do |chunk|
|
381
|
+
in_q.deq
|
382
|
+
out_q.enq chunk
|
383
|
+
end
|
384
|
+
end
|
385
|
+
)
|
386
|
+
rescue ::Gapic::Rest::Error => e
|
387
|
+
raise ::Google::Cloud::Error.from_error(e)
|
388
|
+
end
|
389
|
+
|
390
|
+
##
|
391
|
+
# Configuration class for the ReasoningEngineExecutionService REST API.
|
392
|
+
#
|
393
|
+
# This class represents the configuration for ReasoningEngineExecutionService REST,
|
394
|
+
# providing control over timeouts, retry behavior, logging, transport
|
395
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
396
|
+
# applied individually to specific RPCs. See
|
397
|
+
# {::Google::Cloud::AIPlatform::V1::ReasoningEngineExecutionService::Rest::Client::Configuration::Rpcs}
|
398
|
+
# for a list of RPCs that can be configured independently.
|
399
|
+
#
|
400
|
+
# Configuration can be applied globally to all clients, or to a single client
|
401
|
+
# on construction.
|
402
|
+
#
|
403
|
+
# @example
|
404
|
+
#
|
405
|
+
# # Modify the global config, setting the timeout for
|
406
|
+
# # query_reasoning_engine to 20 seconds,
|
407
|
+
# # and all remaining timeouts to 10 seconds.
|
408
|
+
# ::Google::Cloud::AIPlatform::V1::ReasoningEngineExecutionService::Rest::Client.configure do |config|
|
409
|
+
# config.timeout = 10.0
|
410
|
+
# config.rpcs.query_reasoning_engine.timeout = 20.0
|
411
|
+
# end
|
412
|
+
#
|
413
|
+
# # Apply the above configuration only to a new client.
|
414
|
+
# client = ::Google::Cloud::AIPlatform::V1::ReasoningEngineExecutionService::Rest::Client.new do |config|
|
415
|
+
# config.timeout = 10.0
|
416
|
+
# config.rpcs.query_reasoning_engine.timeout = 20.0
|
417
|
+
# end
|
418
|
+
#
|
419
|
+
# @!attribute [rw] endpoint
|
420
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
421
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
422
|
+
# @return [::String,nil]
|
423
|
+
# @!attribute [rw] credentials
|
424
|
+
# Credentials to send with calls. You may provide any of the following types:
|
425
|
+
# * (`String`) The path to a service account key file in JSON format
|
426
|
+
# * (`Hash`) A service account key as a Hash
|
427
|
+
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
428
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
429
|
+
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
430
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
431
|
+
# * (`nil`) indicating no credentials
|
432
|
+
#
|
433
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
434
|
+
# external source for authentication to Google Cloud, you must validate it before
|
435
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
436
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
437
|
+
# For more information, refer to [Validate credential configurations from external
|
438
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
439
|
+
# @return [::Object]
|
440
|
+
# @!attribute [rw] scope
|
441
|
+
# The OAuth scopes
|
442
|
+
# @return [::Array<::String>]
|
443
|
+
# @!attribute [rw] lib_name
|
444
|
+
# The library name as recorded in instrumentation and logging
|
445
|
+
# @return [::String]
|
446
|
+
# @!attribute [rw] lib_version
|
447
|
+
# The library version as recorded in instrumentation and logging
|
448
|
+
# @return [::String]
|
449
|
+
# @!attribute [rw] timeout
|
450
|
+
# The call timeout in seconds.
|
451
|
+
# @return [::Numeric]
|
452
|
+
# @!attribute [rw] metadata
|
453
|
+
# Additional headers to be sent with the call.
|
454
|
+
# @return [::Hash{::Symbol=>::String}]
|
455
|
+
# @!attribute [rw] retry_policy
|
456
|
+
# The retry policy. The value is a hash with the following keys:
|
457
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
458
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
459
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
460
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
461
|
+
# trigger a retry.
|
462
|
+
# @return [::Hash]
|
463
|
+
# @!attribute [rw] quota_project
|
464
|
+
# A separate project against which to charge quota.
|
465
|
+
# @return [::String]
|
466
|
+
# @!attribute [rw] universe_domain
|
467
|
+
# The universe domain within which to make requests. This determines the
|
468
|
+
# default endpoint URL. The default value of nil uses the environment
|
469
|
+
# universe (usually the default "googleapis.com" universe).
|
470
|
+
# @return [::String,nil]
|
471
|
+
# @!attribute [rw] logger
|
472
|
+
# A custom logger to use for request/response debug logging, or the value
|
473
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
474
|
+
# explicitly disable logging.
|
475
|
+
# @return [::Logger,:default,nil]
|
476
|
+
#
|
477
|
+
class Configuration
|
478
|
+
extend ::Gapic::Config
|
479
|
+
|
480
|
+
# @private
|
481
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
482
|
+
DEFAULT_ENDPOINT = "aiplatform.googleapis.com"
|
483
|
+
|
484
|
+
config_attr :endpoint, nil, ::String, nil
|
485
|
+
config_attr :credentials, nil do |value|
|
486
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
487
|
+
allowed.any? { |klass| klass === value }
|
488
|
+
end
|
489
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
490
|
+
config_attr :lib_name, nil, ::String, nil
|
491
|
+
config_attr :lib_version, nil, ::String, nil
|
492
|
+
config_attr :timeout, nil, ::Numeric, nil
|
493
|
+
config_attr :metadata, nil, ::Hash, nil
|
494
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
495
|
+
config_attr :quota_project, nil, ::String, nil
|
496
|
+
config_attr :universe_domain, nil, ::String, nil
|
497
|
+
|
498
|
+
# @private
|
499
|
+
# Overrides for http bindings for the RPCs of this service
|
500
|
+
# are only used when this service is used as mixin, and only
|
501
|
+
# by the host service.
|
502
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
503
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
504
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
505
|
+
|
506
|
+
# @private
|
507
|
+
def initialize parent_config = nil
|
508
|
+
@parent_config = parent_config unless parent_config.nil?
|
509
|
+
|
510
|
+
yield self if block_given?
|
511
|
+
end
|
512
|
+
|
513
|
+
##
|
514
|
+
# Configurations for individual RPCs
|
515
|
+
# @return [Rpcs]
|
516
|
+
#
|
517
|
+
def rpcs
|
518
|
+
@rpcs ||= begin
|
519
|
+
parent_rpcs = nil
|
520
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
521
|
+
Rpcs.new parent_rpcs
|
522
|
+
end
|
523
|
+
end
|
524
|
+
|
525
|
+
##
|
526
|
+
# Configuration RPC class for the ReasoningEngineExecutionService API.
|
527
|
+
#
|
528
|
+
# Includes fields providing the configuration for each RPC in this service.
|
529
|
+
# Each configuration object is of type `Gapic::Config::Method` and includes
|
530
|
+
# the following configuration fields:
|
531
|
+
#
|
532
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
533
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
|
534
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
535
|
+
# include the following keys:
|
536
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
537
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
538
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
539
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
540
|
+
# trigger a retry.
|
541
|
+
#
|
542
|
+
class Rpcs
|
543
|
+
##
|
544
|
+
# RPC-specific configuration for `query_reasoning_engine`
|
545
|
+
# @return [::Gapic::Config::Method]
|
546
|
+
#
|
547
|
+
attr_reader :query_reasoning_engine
|
548
|
+
##
|
549
|
+
# RPC-specific configuration for `stream_query_reasoning_engine`
|
550
|
+
# @return [::Gapic::Config::Method]
|
551
|
+
#
|
552
|
+
attr_reader :stream_query_reasoning_engine
|
553
|
+
|
554
|
+
# @private
|
555
|
+
def initialize parent_rpcs = nil
|
556
|
+
query_reasoning_engine_config = parent_rpcs.query_reasoning_engine if parent_rpcs.respond_to? :query_reasoning_engine
|
557
|
+
@query_reasoning_engine = ::Gapic::Config::Method.new query_reasoning_engine_config
|
558
|
+
stream_query_reasoning_engine_config = parent_rpcs.stream_query_reasoning_engine if parent_rpcs.respond_to? :stream_query_reasoning_engine
|
559
|
+
@stream_query_reasoning_engine = ::Gapic::Config::Method.new stream_query_reasoning_engine_config
|
560
|
+
|
561
|
+
yield self if block_given?
|
562
|
+
end
|
563
|
+
end
|
564
|
+
end
|
565
|
+
end
|
566
|
+
end
|
567
|
+
end
|
568
|
+
end
|
569
|
+
end
|
570
|
+
end
|
571
|
+
end
|