google-cloud-ai_platform-v1 0.39.0 → 0.41.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 +4 -4
- data/lib/google/cloud/ai_platform/v1/bindings_override.rb +399 -0
- data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +138 -18
- data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/dataset_service/rest/client.rb +2280 -0
- data/lib/google/cloud/ai_platform/v1/dataset_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/dataset_service/rest/service_stub.rb +1196 -0
- data/lib/google/cloud/ai_platform/v1/dataset_service/rest.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/dataset_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/client.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/client.rb +851 -0
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/service_stub.rb +365 -0
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +19 -8
- data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/client.rb +1215 -0
- data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/service_stub.rb +546 -0
- data/lib/google/cloud/ai_platform/v1/endpoint_service/rest.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/endpoint_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/client.rb +29 -13
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/client.rb +1732 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/service_stub.rb +841 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest.rb +55 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_service/client.rb +7 -2
- data/lib/google/cloud/ai_platform/v1/feature_online_store_service/rest/client.rb +534 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_service/rest/service_stub.rb +189 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_service/rest.rb +53 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/client.rb +24 -11
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/client.rb +1450 -0
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/service_stub.rb +663 -0
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest.rb +55 -0
- data/lib/google/cloud/ai_platform/v1/feature_registry_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +9 -3
- data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/rest/client.rb +645 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/rest/service_stub.rb +244 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/rest.rb +53 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +45 -21
- data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/client.rb +2765 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/service_stub.rb +1319 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_service/rest.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/client.rb +11 -4
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/client.rb +720 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/service_stub.rb +307 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest.rb +53 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +19 -8
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/client.rb +1151 -0
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/service_stub.rb +546 -0
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/index_service/client.rb +17 -7
- data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/index_service/rest/client.rb +1034 -0
- data/lib/google/cloud/ai_platform/v1/index_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/index_service/rest/service_stub.rb +486 -0
- data/lib/google/cloud/ai_platform/v1/index_service/rest.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/index_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/job_service/client.rb +73 -35
- data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/job_service/rest/client.rb +3841 -0
- data/lib/google/cloud/ai_platform/v1/job_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/job_service/rest/service_stub.rb +2149 -0
- data/lib/google/cloud/ai_platform/v1/job_service/rest.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/job_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/llm_utility_service/client.rb +7 -2
- data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest/client.rb +533 -0
- data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest/service_stub.rb +205 -0
- data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest.rb +53 -0
- data/lib/google/cloud/ai_platform/v1/llm_utility_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/match_service/client.rb +7 -2
- data/lib/google/cloud/ai_platform/v1/match_service/rest/client.rb +541 -0
- data/lib/google/cloud/ai_platform/v1/match_service/rest/service_stub.rb +189 -0
- data/lib/google/cloud/ai_platform/v1/match_service/rest.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/match_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +67 -32
- data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/metadata_service/rest/client.rb +3634 -0
- data/lib/google/cloud/ai_platform/v1/metadata_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/metadata_service/rest/service_stub.rb +1972 -0
- data/lib/google/cloud/ai_platform/v1/metadata_service/rest.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/metadata_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +7 -2
- data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/migration_service/rest/client.rb +574 -0
- data/lib/google/cloud/ai_platform/v1/migration_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/migration_service/rest/service_stub.rb +189 -0
- data/lib/google/cloud/ai_platform/v1/migration_service/rest.rb +55 -0
- data/lib/google/cloud/ai_platform/v1/migration_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/model_garden_service/client.rb +5 -1
- data/lib/google/cloud/ai_platform/v1/model_garden_service/rest/client.rb +438 -0
- data/lib/google/cloud/ai_platform/v1/model_garden_service/rest/service_stub.rb +128 -0
- data/lib/google/cloud/ai_platform/v1/model_garden_service/rest.rb +53 -0
- data/lib/google/cloud/ai_platform/v1/model_garden_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/model_service/client.rb +39 -18
- data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/model_service/rest/client.rb +2213 -0
- data/lib/google/cloud/ai_platform/v1/model_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/model_service/rest/service_stub.rb +1140 -0
- data/lib/google/cloud/ai_platform/v1/model_service/rest.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/model_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/notebook_service/client.rb +123 -10
- data/lib/google/cloud/ai_platform/v1/notebook_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/notebook_service/rest/client.rb +1503 -0
- data/lib/google/cloud/ai_platform/v1/notebook_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/notebook_service/rest/service_stub.rb +723 -0
- data/lib/google/cloud/ai_platform/v1/notebook_service/rest.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/notebook_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service/client.rb +15 -6
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/client.rb +942 -0
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/service_stub.rb +426 -0
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +27 -12
- data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/client.rb +1600 -0
- data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/service_stub.rb +783 -0
- data/lib/google/cloud/ai_platform/v1/pipeline_service/rest.rb +56 -0
- data/lib/google/cloud/ai_platform/v1/pipeline_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +37 -15
- data/lib/google/cloud/ai_platform/v1/prediction_service/credentials.rb +2 -1
- data/lib/google/cloud/ai_platform/v1/prediction_service/rest/client.rb +1303 -0
- data/lib/google/cloud/ai_platform/v1/prediction_service/rest/service_stub.rb +658 -0
- data/lib/google/cloud/ai_platform/v1/prediction_service/rest.rb +53 -0
- data/lib/google/cloud/ai_platform/v1/prediction_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/rest.rb +63 -0
- data/lib/google/cloud/ai_platform/v1/schedule_service/client.rb +17 -7
- data/lib/google/cloud/ai_platform/v1/schedule_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/schedule_service/rest/client.rb +1076 -0
- data/lib/google/cloud/ai_platform/v1/schedule_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/schedule_service/rest/service_stub.rb +486 -0
- data/lib/google/cloud/ai_platform/v1/schedule_service/rest.rb +55 -0
- data/lib/google/cloud/ai_platform/v1/schedule_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/client.rb +847 -0
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/service_stub.rb +366 -0
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest.rb +59 -0
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +63 -30
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/client.rb +3274 -0
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/service_stub.rb +1847 -0
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/tensorboard_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
- data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +33 -15
- data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/vizier_service/rest/client.rb +1788 -0
- data/lib/google/cloud/ai_platform/v1/vizier_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/vizier_service/rest/service_stub.rb +963 -0
- data/lib/google/cloud/ai_platform/v1/vizier_service/rest.rb +58 -0
- data/lib/google/cloud/ai_platform/v1/vizier_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1.rb +6 -1
- data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/content_pb.rb +4 -4
- data/lib/google/cloud/aiplatform/v1/dataset_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +3 -2
- data/lib/google/cloud/aiplatform/v1/dataset_service_services_pb.rb +2 -0
- data/lib/google/cloud/aiplatform/v1/dataset_version_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/deployment_resource_pool_pb.rb +3 -1
- data/lib/google/cloud/aiplatform/v1/endpoint_pb.rb +3 -1
- data/lib/google/cloud/aiplatform/v1/feature_online_store_pb.rb +3 -1
- data/lib/google/cloud/aiplatform/v1/feature_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/featurestore_online_service_pb.rb +3 -1
- data/lib/google/cloud/aiplatform/v1/index_pb.rb +2 -1
- data/lib/google/cloud/aiplatform/v1/index_service_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/match_service_pb.rb +2 -1
- data/lib/google/cloud/aiplatform/v1/metadata_store_pb.rb +2 -1
- data/lib/google/cloud/aiplatform/v1/notebook_runtime_pb.rb +3 -1
- data/lib/google/cloud/aiplatform/v1/notebook_service_pb.rb +2 -1
- data/lib/google/cloud/aiplatform/v1/notebook_service_services_pb.rb +2 -0
- data/lib/google/cloud/aiplatform/v1/persistent_resource_pb.rb +2 -1
- data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/publisher_model_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/tool_pb.rb +4 -1
- data/proto_docs/google/cloud/aiplatform/v1/accelerator_type.rb +3 -0
- data/proto_docs/google/cloud/aiplatform/v1/content.rb +26 -48
- data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +4 -0
- data/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb +17 -0
- data/proto_docs/google/cloud/aiplatform/v1/dataset_version.rb +4 -0
- data/proto_docs/google/cloud/aiplatform/v1/deployment_resource_pool.rb +23 -0
- data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +7 -0
- data/proto_docs/google/cloud/aiplatform/v1/feature.rb +3 -0
- data/proto_docs/google/cloud/aiplatform/v1/feature_group.rb +3 -3
- data/proto_docs/google/cloud/aiplatform/v1/feature_online_store.rb +4 -0
- data/proto_docs/google/cloud/aiplatform/v1/feature_registry_service.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/featurestore_online_service.rb +24 -0
- data/proto_docs/google/cloud/aiplatform/v1/index.rb +23 -3
- data/proto_docs/google/cloud/aiplatform/v1/index_service.rb +20 -2
- data/proto_docs/google/cloud/aiplatform/v1/match_service.rb +18 -1
- data/proto_docs/google/cloud/aiplatform/v1/metadata_store.rb +13 -0
- data/proto_docs/google/cloud/aiplatform/v1/model.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/notebook_runtime.rb +17 -2
- data/proto_docs/google/cloud/aiplatform/v1/notebook_service.rb +18 -0
- data/proto_docs/google/cloud/aiplatform/v1/persistent_resource.rb +63 -0
- data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +4 -0
- data/proto_docs/google/cloud/aiplatform/v1/publisher_model.rb +4 -0
- data/proto_docs/google/cloud/aiplatform/v1/tool.rb +43 -5
- data/proto_docs/google/cloud/aiplatform/v1/tuning_job.rb +8 -7
- metadata +101 -2
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2024 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/feature_online_store_admin_service/credentials"
|
|
27
|
+
require "google/cloud/ai_platform/v1/feature_online_store_admin_service/paths"
|
|
28
|
+
require "google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/operations"
|
|
29
|
+
require "google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/client"
|
|
30
|
+
|
|
31
|
+
module Google
|
|
32
|
+
module Cloud
|
|
33
|
+
module AIPlatform
|
|
34
|
+
module V1
|
|
35
|
+
##
|
|
36
|
+
# The service that handles CRUD and List for resources for
|
|
37
|
+
# FeatureOnlineStore.
|
|
38
|
+
#
|
|
39
|
+
# To load this service and instantiate a REST client:
|
|
40
|
+
#
|
|
41
|
+
# require "google/cloud/ai_platform/v1/feature_online_store_admin_service/rest"
|
|
42
|
+
# client = ::Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Client.new
|
|
43
|
+
#
|
|
44
|
+
module FeatureOnlineStoreAdminService
|
|
45
|
+
# Client for the REST transport
|
|
46
|
+
module Rest
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
|
55
|
+
require "google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/helpers" if ::File.file? helper_path
|
|
@@ -26,6 +26,7 @@ require "google/cloud/ai_platform/v1/feature_online_store_admin_service/credenti
|
|
|
26
26
|
require "google/cloud/ai_platform/v1/feature_online_store_admin_service/paths"
|
|
27
27
|
require "google/cloud/ai_platform/v1/feature_online_store_admin_service/operations"
|
|
28
28
|
require "google/cloud/ai_platform/v1/feature_online_store_admin_service/client"
|
|
29
|
+
require "google/cloud/ai_platform/v1/feature_online_store_admin_service/rest"
|
|
29
30
|
|
|
30
31
|
module Google
|
|
31
32
|
module Cloud
|
|
@@ -40,6 +41,11 @@ module Google
|
|
|
40
41
|
# require "google/cloud/ai_platform/v1/feature_online_store_admin_service"
|
|
41
42
|
# client = ::Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Client.new
|
|
42
43
|
#
|
|
44
|
+
# @example Load this service and instantiate a REST client
|
|
45
|
+
#
|
|
46
|
+
# require "google/cloud/ai_platform/v1/feature_online_store_admin_service/rest"
|
|
47
|
+
# client = ::Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Client.new
|
|
48
|
+
#
|
|
43
49
|
module FeatureOnlineStoreAdminService
|
|
44
50
|
end
|
|
45
51
|
end
|
|
@@ -32,6 +32,9 @@ module Google
|
|
|
32
32
|
# A service for fetching feature values from the online store.
|
|
33
33
|
#
|
|
34
34
|
class Client
|
|
35
|
+
# @private
|
|
36
|
+
API_VERSION = ""
|
|
37
|
+
|
|
35
38
|
# @private
|
|
36
39
|
DEFAULT_ENDPOINT_TEMPLATE = "aiplatform.$UNIVERSE_DOMAIN$"
|
|
37
40
|
|
|
@@ -252,10 +255,11 @@ module Google
|
|
|
252
255
|
# Customize the options with defaults
|
|
253
256
|
metadata = @config.rpcs.fetch_feature_values.metadata.to_h
|
|
254
257
|
|
|
255
|
-
# Set x-goog-api-client
|
|
258
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
256
259
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
257
260
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
258
261
|
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
|
262
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
259
263
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
260
264
|
|
|
261
265
|
header_params = {}
|
|
@@ -347,10 +351,11 @@ module Google
|
|
|
347
351
|
# Customize the options with defaults
|
|
348
352
|
metadata = @config.rpcs.search_nearest_entities.metadata.to_h
|
|
349
353
|
|
|
350
|
-
# Set x-goog-api-client
|
|
354
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
351
355
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
352
356
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
353
357
|
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
|
358
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
354
359
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
355
360
|
|
|
356
361
|
header_params = {}
|
|
@@ -0,0 +1,534 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2024 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/feature_online_store_service_pb"
|
|
21
|
+
require "google/cloud/ai_platform/v1/feature_online_store_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 FeatureOnlineStoreService
|
|
30
|
+
module Rest
|
|
31
|
+
##
|
|
32
|
+
# REST client for the FeatureOnlineStoreService service.
|
|
33
|
+
#
|
|
34
|
+
# A service for fetching feature values from the online store.
|
|
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 :feature_online_store_service_stub
|
|
47
|
+
|
|
48
|
+
##
|
|
49
|
+
# Configure the FeatureOnlineStoreService Client class.
|
|
50
|
+
#
|
|
51
|
+
# See {::Google::Cloud::AIPlatform::V1::FeatureOnlineStoreService::Rest::Client::Configuration}
|
|
52
|
+
# for a description of the configuration fields.
|
|
53
|
+
#
|
|
54
|
+
# @example
|
|
55
|
+
#
|
|
56
|
+
# # Modify the configuration for all FeatureOnlineStoreService clients
|
|
57
|
+
# ::Google::Cloud::AIPlatform::V1::FeatureOnlineStoreService::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 FeatureOnlineStoreService 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::FeatureOnlineStoreService::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
|
+
@feature_online_store_service_stub.universe_domain
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
##
|
|
113
|
+
# Create a new FeatureOnlineStoreService REST client object.
|
|
114
|
+
#
|
|
115
|
+
# @example
|
|
116
|
+
#
|
|
117
|
+
# # Create a client using the default configuration
|
|
118
|
+
# client = ::Google::Cloud::AIPlatform::V1::FeatureOnlineStoreService::Rest::Client.new
|
|
119
|
+
#
|
|
120
|
+
# # Create a client using a custom configuration
|
|
121
|
+
# client = ::Google::Cloud::AIPlatform::V1::FeatureOnlineStoreService::Rest::Client.new do |config|
|
|
122
|
+
# config.timeout = 10.0
|
|
123
|
+
# end
|
|
124
|
+
#
|
|
125
|
+
# @yield [config] Configure the FeatureOnlineStoreService 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
|
+
@feature_online_store_service_stub = ::Google::Cloud::AIPlatform::V1::FeatureOnlineStoreService::Rest::ServiceStub.new(
|
|
152
|
+
endpoint: @config.endpoint,
|
|
153
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
|
154
|
+
universe_domain: @config.universe_domain,
|
|
155
|
+
credentials: credentials
|
|
156
|
+
)
|
|
157
|
+
|
|
158
|
+
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
|
159
|
+
config.credentials = credentials
|
|
160
|
+
config.quota_project = @quota_project_id
|
|
161
|
+
config.endpoint = @feature_online_store_service_stub.endpoint
|
|
162
|
+
config.universe_domain = @feature_online_store_service_stub.universe_domain
|
|
163
|
+
config.bindings_override = @config.bindings_override
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
@iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
|
|
167
|
+
config.credentials = credentials
|
|
168
|
+
config.quota_project = @quota_project_id
|
|
169
|
+
config.endpoint = @feature_online_store_service_stub.endpoint
|
|
170
|
+
config.universe_domain = @feature_online_store_service_stub.universe_domain
|
|
171
|
+
config.bindings_override = @config.bindings_override
|
|
172
|
+
end
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
##
|
|
176
|
+
# Get the associated client for mix-in of the Locations.
|
|
177
|
+
#
|
|
178
|
+
# @return [Google::Cloud::Location::Locations::Rest::Client]
|
|
179
|
+
#
|
|
180
|
+
attr_reader :location_client
|
|
181
|
+
|
|
182
|
+
##
|
|
183
|
+
# Get the associated client for mix-in of the IAMPolicy.
|
|
184
|
+
#
|
|
185
|
+
# @return [Google::Iam::V1::IAMPolicy::Rest::Client]
|
|
186
|
+
#
|
|
187
|
+
attr_reader :iam_policy_client
|
|
188
|
+
|
|
189
|
+
# Service calls
|
|
190
|
+
|
|
191
|
+
##
|
|
192
|
+
# Fetch feature values under a FeatureView.
|
|
193
|
+
#
|
|
194
|
+
# @overload fetch_feature_values(request, options = nil)
|
|
195
|
+
# Pass arguments to `fetch_feature_values` via a request object, either of type
|
|
196
|
+
# {::Google::Cloud::AIPlatform::V1::FetchFeatureValuesRequest} or an equivalent Hash.
|
|
197
|
+
#
|
|
198
|
+
# @param request [::Google::Cloud::AIPlatform::V1::FetchFeatureValuesRequest, ::Hash]
|
|
199
|
+
# A request object representing the call parameters. Required. To specify no
|
|
200
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
201
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
202
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
203
|
+
#
|
|
204
|
+
# @overload fetch_feature_values(feature_view: nil, data_key: nil, data_format: nil)
|
|
205
|
+
# Pass arguments to `fetch_feature_values` via keyword arguments. Note that at
|
|
206
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
207
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
208
|
+
#
|
|
209
|
+
# @param feature_view [::String]
|
|
210
|
+
# Required. FeatureView resource format
|
|
211
|
+
# `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`
|
|
212
|
+
# @param data_key [::Google::Cloud::AIPlatform::V1::FeatureViewDataKey, ::Hash]
|
|
213
|
+
# Optional. The request key to fetch feature values for.
|
|
214
|
+
# @param data_format [::Google::Cloud::AIPlatform::V1::FeatureViewDataFormat]
|
|
215
|
+
# Optional. Response data format. If not set,
|
|
216
|
+
# {::Google::Cloud::AIPlatform::V1::FeatureViewDataFormat::KEY_VALUE FeatureViewDataFormat.KEY_VALUE}
|
|
217
|
+
# will be used.
|
|
218
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
219
|
+
# @yieldparam result [::Google::Cloud::AIPlatform::V1::FetchFeatureValuesResponse]
|
|
220
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
221
|
+
#
|
|
222
|
+
# @return [::Google::Cloud::AIPlatform::V1::FetchFeatureValuesResponse]
|
|
223
|
+
#
|
|
224
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
225
|
+
#
|
|
226
|
+
# @example Basic example
|
|
227
|
+
# require "google/cloud/ai_platform/v1"
|
|
228
|
+
#
|
|
229
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
230
|
+
# client = Google::Cloud::AIPlatform::V1::FeatureOnlineStoreService::Rest::Client.new
|
|
231
|
+
#
|
|
232
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
233
|
+
# request = Google::Cloud::AIPlatform::V1::FetchFeatureValuesRequest.new
|
|
234
|
+
#
|
|
235
|
+
# # Call the fetch_feature_values method.
|
|
236
|
+
# result = client.fetch_feature_values request
|
|
237
|
+
#
|
|
238
|
+
# # The returned object is of type Google::Cloud::AIPlatform::V1::FetchFeatureValuesResponse.
|
|
239
|
+
# p result
|
|
240
|
+
#
|
|
241
|
+
def fetch_feature_values request, options = nil
|
|
242
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
243
|
+
|
|
244
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::FetchFeatureValuesRequest
|
|
245
|
+
|
|
246
|
+
# Converts hash and nil to an options object
|
|
247
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
248
|
+
|
|
249
|
+
# Customize the options with defaults
|
|
250
|
+
call_metadata = @config.rpcs.fetch_feature_values.metadata.to_h
|
|
251
|
+
|
|
252
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
253
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
254
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
255
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
|
|
256
|
+
transports_version_send: [:rest]
|
|
257
|
+
|
|
258
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
259
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
260
|
+
|
|
261
|
+
options.apply_defaults timeout: @config.rpcs.fetch_feature_values.timeout,
|
|
262
|
+
metadata: call_metadata,
|
|
263
|
+
retry_policy: @config.rpcs.fetch_feature_values.retry_policy
|
|
264
|
+
|
|
265
|
+
options.apply_defaults timeout: @config.timeout,
|
|
266
|
+
metadata: @config.metadata,
|
|
267
|
+
retry_policy: @config.retry_policy
|
|
268
|
+
|
|
269
|
+
@feature_online_store_service_stub.fetch_feature_values request, options do |result, operation|
|
|
270
|
+
yield result, operation if block_given?
|
|
271
|
+
return result
|
|
272
|
+
end
|
|
273
|
+
rescue ::Gapic::Rest::Error => e
|
|
274
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
##
|
|
278
|
+
# Search the nearest entities under a FeatureView.
|
|
279
|
+
# Search only works for indexable feature view; if a feature view isn't
|
|
280
|
+
# indexable, returns Invalid argument response.
|
|
281
|
+
#
|
|
282
|
+
# @overload search_nearest_entities(request, options = nil)
|
|
283
|
+
# Pass arguments to `search_nearest_entities` via a request object, either of type
|
|
284
|
+
# {::Google::Cloud::AIPlatform::V1::SearchNearestEntitiesRequest} or an equivalent Hash.
|
|
285
|
+
#
|
|
286
|
+
# @param request [::Google::Cloud::AIPlatform::V1::SearchNearestEntitiesRequest, ::Hash]
|
|
287
|
+
# A request object representing the call parameters. Required. To specify no
|
|
288
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
289
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
290
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
291
|
+
#
|
|
292
|
+
# @overload search_nearest_entities(feature_view: nil, query: nil, return_full_entity: nil)
|
|
293
|
+
# Pass arguments to `search_nearest_entities` via keyword arguments. Note that at
|
|
294
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
295
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
296
|
+
#
|
|
297
|
+
# @param feature_view [::String]
|
|
298
|
+
# Required. FeatureView resource format
|
|
299
|
+
# `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`
|
|
300
|
+
# @param query [::Google::Cloud::AIPlatform::V1::NearestNeighborQuery, ::Hash]
|
|
301
|
+
# Required. The query.
|
|
302
|
+
# @param return_full_entity [::Boolean]
|
|
303
|
+
# Optional. If set to true, the full entities (including all vector values
|
|
304
|
+
# and metadata) of the nearest neighbors are returned; otherwise only entity
|
|
305
|
+
# id of the nearest neighbors will be returned. Note that returning full
|
|
306
|
+
# entities will significantly increase the latency and cost of the query.
|
|
307
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
308
|
+
# @yieldparam result [::Google::Cloud::AIPlatform::V1::SearchNearestEntitiesResponse]
|
|
309
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
310
|
+
#
|
|
311
|
+
# @return [::Google::Cloud::AIPlatform::V1::SearchNearestEntitiesResponse]
|
|
312
|
+
#
|
|
313
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
314
|
+
#
|
|
315
|
+
# @example Basic example
|
|
316
|
+
# require "google/cloud/ai_platform/v1"
|
|
317
|
+
#
|
|
318
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
319
|
+
# client = Google::Cloud::AIPlatform::V1::FeatureOnlineStoreService::Rest::Client.new
|
|
320
|
+
#
|
|
321
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
322
|
+
# request = Google::Cloud::AIPlatform::V1::SearchNearestEntitiesRequest.new
|
|
323
|
+
#
|
|
324
|
+
# # Call the search_nearest_entities method.
|
|
325
|
+
# result = client.search_nearest_entities request
|
|
326
|
+
#
|
|
327
|
+
# # The returned object is of type Google::Cloud::AIPlatform::V1::SearchNearestEntitiesResponse.
|
|
328
|
+
# p result
|
|
329
|
+
#
|
|
330
|
+
def search_nearest_entities request, options = nil
|
|
331
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
332
|
+
|
|
333
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::SearchNearestEntitiesRequest
|
|
334
|
+
|
|
335
|
+
# Converts hash and nil to an options object
|
|
336
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
337
|
+
|
|
338
|
+
# Customize the options with defaults
|
|
339
|
+
call_metadata = @config.rpcs.search_nearest_entities.metadata.to_h
|
|
340
|
+
|
|
341
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
342
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
343
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
344
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
|
|
345
|
+
transports_version_send: [:rest]
|
|
346
|
+
|
|
347
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
348
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
349
|
+
|
|
350
|
+
options.apply_defaults timeout: @config.rpcs.search_nearest_entities.timeout,
|
|
351
|
+
metadata: call_metadata,
|
|
352
|
+
retry_policy: @config.rpcs.search_nearest_entities.retry_policy
|
|
353
|
+
|
|
354
|
+
options.apply_defaults timeout: @config.timeout,
|
|
355
|
+
metadata: @config.metadata,
|
|
356
|
+
retry_policy: @config.retry_policy
|
|
357
|
+
|
|
358
|
+
@feature_online_store_service_stub.search_nearest_entities request, options do |result, operation|
|
|
359
|
+
yield result, operation if block_given?
|
|
360
|
+
return result
|
|
361
|
+
end
|
|
362
|
+
rescue ::Gapic::Rest::Error => e
|
|
363
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
364
|
+
end
|
|
365
|
+
|
|
366
|
+
##
|
|
367
|
+
# Configuration class for the FeatureOnlineStoreService REST API.
|
|
368
|
+
#
|
|
369
|
+
# This class represents the configuration for FeatureOnlineStoreService REST,
|
|
370
|
+
# providing control over timeouts, retry behavior, logging, transport
|
|
371
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
|
372
|
+
# applied individually to specific RPCs. See
|
|
373
|
+
# {::Google::Cloud::AIPlatform::V1::FeatureOnlineStoreService::Rest::Client::Configuration::Rpcs}
|
|
374
|
+
# for a list of RPCs that can be configured independently.
|
|
375
|
+
#
|
|
376
|
+
# Configuration can be applied globally to all clients, or to a single client
|
|
377
|
+
# on construction.
|
|
378
|
+
#
|
|
379
|
+
# @example
|
|
380
|
+
#
|
|
381
|
+
# # Modify the global config, setting the timeout for
|
|
382
|
+
# # fetch_feature_values to 20 seconds,
|
|
383
|
+
# # and all remaining timeouts to 10 seconds.
|
|
384
|
+
# ::Google::Cloud::AIPlatform::V1::FeatureOnlineStoreService::Rest::Client.configure do |config|
|
|
385
|
+
# config.timeout = 10.0
|
|
386
|
+
# config.rpcs.fetch_feature_values.timeout = 20.0
|
|
387
|
+
# end
|
|
388
|
+
#
|
|
389
|
+
# # Apply the above configuration only to a new client.
|
|
390
|
+
# client = ::Google::Cloud::AIPlatform::V1::FeatureOnlineStoreService::Rest::Client.new do |config|
|
|
391
|
+
# config.timeout = 10.0
|
|
392
|
+
# config.rpcs.fetch_feature_values.timeout = 20.0
|
|
393
|
+
# end
|
|
394
|
+
#
|
|
395
|
+
# @!attribute [rw] endpoint
|
|
396
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
|
397
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
|
398
|
+
# @return [::String,nil]
|
|
399
|
+
# @!attribute [rw] credentials
|
|
400
|
+
# Credentials to send with calls. You may provide any of the following types:
|
|
401
|
+
# * (`String`) The path to a service account key file in JSON format
|
|
402
|
+
# * (`Hash`) A service account key as a Hash
|
|
403
|
+
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
404
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
405
|
+
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
406
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
407
|
+
# * (`nil`) indicating no credentials
|
|
408
|
+
# @return [::Object]
|
|
409
|
+
# @!attribute [rw] scope
|
|
410
|
+
# The OAuth scopes
|
|
411
|
+
# @return [::Array<::String>]
|
|
412
|
+
# @!attribute [rw] lib_name
|
|
413
|
+
# The library name as recorded in instrumentation and logging
|
|
414
|
+
# @return [::String]
|
|
415
|
+
# @!attribute [rw] lib_version
|
|
416
|
+
# The library version as recorded in instrumentation and logging
|
|
417
|
+
# @return [::String]
|
|
418
|
+
# @!attribute [rw] timeout
|
|
419
|
+
# The call timeout in seconds.
|
|
420
|
+
# @return [::Numeric]
|
|
421
|
+
# @!attribute [rw] metadata
|
|
422
|
+
# Additional headers to be sent with the call.
|
|
423
|
+
# @return [::Hash{::Symbol=>::String}]
|
|
424
|
+
# @!attribute [rw] retry_policy
|
|
425
|
+
# The retry policy. The value is a hash with the following keys:
|
|
426
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
427
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
428
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
429
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
430
|
+
# trigger a retry.
|
|
431
|
+
# @return [::Hash]
|
|
432
|
+
# @!attribute [rw] quota_project
|
|
433
|
+
# A separate project against which to charge quota.
|
|
434
|
+
# @return [::String]
|
|
435
|
+
# @!attribute [rw] universe_domain
|
|
436
|
+
# The universe domain within which to make requests. This determines the
|
|
437
|
+
# default endpoint URL. The default value of nil uses the environment
|
|
438
|
+
# universe (usually the default "googleapis.com" universe).
|
|
439
|
+
# @return [::String,nil]
|
|
440
|
+
#
|
|
441
|
+
class Configuration
|
|
442
|
+
extend ::Gapic::Config
|
|
443
|
+
|
|
444
|
+
# @private
|
|
445
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
|
446
|
+
DEFAULT_ENDPOINT = "aiplatform.googleapis.com"
|
|
447
|
+
|
|
448
|
+
config_attr :endpoint, nil, ::String, nil
|
|
449
|
+
config_attr :credentials, nil do |value|
|
|
450
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
451
|
+
allowed.any? { |klass| klass === value }
|
|
452
|
+
end
|
|
453
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
|
454
|
+
config_attr :lib_name, nil, ::String, nil
|
|
455
|
+
config_attr :lib_version, nil, ::String, nil
|
|
456
|
+
config_attr :timeout, nil, ::Numeric, nil
|
|
457
|
+
config_attr :metadata, nil, ::Hash, nil
|
|
458
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
459
|
+
config_attr :quota_project, nil, ::String, nil
|
|
460
|
+
config_attr :universe_domain, nil, ::String, nil
|
|
461
|
+
|
|
462
|
+
# @private
|
|
463
|
+
# Overrides for http bindings for the RPCs of this service
|
|
464
|
+
# are only used when this service is used as mixin, and only
|
|
465
|
+
# by the host service.
|
|
466
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
|
467
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
|
468
|
+
|
|
469
|
+
# @private
|
|
470
|
+
def initialize parent_config = nil
|
|
471
|
+
@parent_config = parent_config unless parent_config.nil?
|
|
472
|
+
|
|
473
|
+
yield self if block_given?
|
|
474
|
+
end
|
|
475
|
+
|
|
476
|
+
##
|
|
477
|
+
# Configurations for individual RPCs
|
|
478
|
+
# @return [Rpcs]
|
|
479
|
+
#
|
|
480
|
+
def rpcs
|
|
481
|
+
@rpcs ||= begin
|
|
482
|
+
parent_rpcs = nil
|
|
483
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
|
484
|
+
Rpcs.new parent_rpcs
|
|
485
|
+
end
|
|
486
|
+
end
|
|
487
|
+
|
|
488
|
+
##
|
|
489
|
+
# Configuration RPC class for the FeatureOnlineStoreService API.
|
|
490
|
+
#
|
|
491
|
+
# Includes fields providing the configuration for each RPC in this service.
|
|
492
|
+
# Each configuration object is of type `Gapic::Config::Method` and includes
|
|
493
|
+
# the following configuration fields:
|
|
494
|
+
#
|
|
495
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
|
496
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
|
|
497
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
|
498
|
+
# include the following keys:
|
|
499
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
500
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
501
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
502
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
503
|
+
# trigger a retry.
|
|
504
|
+
#
|
|
505
|
+
class Rpcs
|
|
506
|
+
##
|
|
507
|
+
# RPC-specific configuration for `fetch_feature_values`
|
|
508
|
+
# @return [::Gapic::Config::Method]
|
|
509
|
+
#
|
|
510
|
+
attr_reader :fetch_feature_values
|
|
511
|
+
##
|
|
512
|
+
# RPC-specific configuration for `search_nearest_entities`
|
|
513
|
+
# @return [::Gapic::Config::Method]
|
|
514
|
+
#
|
|
515
|
+
attr_reader :search_nearest_entities
|
|
516
|
+
|
|
517
|
+
# @private
|
|
518
|
+
def initialize parent_rpcs = nil
|
|
519
|
+
fetch_feature_values_config = parent_rpcs.fetch_feature_values if parent_rpcs.respond_to? :fetch_feature_values
|
|
520
|
+
@fetch_feature_values = ::Gapic::Config::Method.new fetch_feature_values_config
|
|
521
|
+
search_nearest_entities_config = parent_rpcs.search_nearest_entities if parent_rpcs.respond_to? :search_nearest_entities
|
|
522
|
+
@search_nearest_entities = ::Gapic::Config::Method.new search_nearest_entities_config
|
|
523
|
+
|
|
524
|
+
yield self if block_given?
|
|
525
|
+
end
|
|
526
|
+
end
|
|
527
|
+
end
|
|
528
|
+
end
|
|
529
|
+
end
|
|
530
|
+
end
|
|
531
|
+
end
|
|
532
|
+
end
|
|
533
|
+
end
|
|
534
|
+
end
|