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,1732 @@
|
|
|
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_admin_service_pb"
|
|
21
|
+
require "google/cloud/ai_platform/v1/feature_online_store_admin_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 FeatureOnlineStoreAdminService
|
|
30
|
+
module Rest
|
|
31
|
+
##
|
|
32
|
+
# REST client for the FeatureOnlineStoreAdminService service.
|
|
33
|
+
#
|
|
34
|
+
# The service that handles CRUD and List for resources for
|
|
35
|
+
# FeatureOnlineStore.
|
|
36
|
+
#
|
|
37
|
+
class Client
|
|
38
|
+
# @private
|
|
39
|
+
API_VERSION = ""
|
|
40
|
+
|
|
41
|
+
# @private
|
|
42
|
+
DEFAULT_ENDPOINT_TEMPLATE = "aiplatform.$UNIVERSE_DOMAIN$"
|
|
43
|
+
|
|
44
|
+
include Paths
|
|
45
|
+
|
|
46
|
+
# @private
|
|
47
|
+
attr_reader :feature_online_store_admin_service_stub
|
|
48
|
+
|
|
49
|
+
##
|
|
50
|
+
# Configure the FeatureOnlineStoreAdminService Client class.
|
|
51
|
+
#
|
|
52
|
+
# See {::Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Client::Configuration}
|
|
53
|
+
# for a description of the configuration fields.
|
|
54
|
+
#
|
|
55
|
+
# @example
|
|
56
|
+
#
|
|
57
|
+
# # Modify the configuration for all FeatureOnlineStoreAdminService clients
|
|
58
|
+
# ::Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Client.configure do |config|
|
|
59
|
+
# config.timeout = 10.0
|
|
60
|
+
# end
|
|
61
|
+
#
|
|
62
|
+
# @yield [config] Configure the Client client.
|
|
63
|
+
# @yieldparam config [Client::Configuration]
|
|
64
|
+
#
|
|
65
|
+
# @return [Client::Configuration]
|
|
66
|
+
#
|
|
67
|
+
def self.configure
|
|
68
|
+
@configure ||= begin
|
|
69
|
+
namespace = ["Google", "Cloud", "AIPlatform", "V1"]
|
|
70
|
+
parent_config = while namespace.any?
|
|
71
|
+
parent_name = namespace.join "::"
|
|
72
|
+
parent_const = const_get parent_name
|
|
73
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
|
74
|
+
namespace.pop
|
|
75
|
+
end
|
|
76
|
+
default_config = Client::Configuration.new parent_config
|
|
77
|
+
|
|
78
|
+
default_config
|
|
79
|
+
end
|
|
80
|
+
yield @configure if block_given?
|
|
81
|
+
@configure
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
##
|
|
85
|
+
# Configure the FeatureOnlineStoreAdminService Client instance.
|
|
86
|
+
#
|
|
87
|
+
# The configuration is set to the derived mode, meaning that values can be changed,
|
|
88
|
+
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
|
89
|
+
# should be made on {Client.configure}.
|
|
90
|
+
#
|
|
91
|
+
# See {::Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Client::Configuration}
|
|
92
|
+
# for a description of the configuration fields.
|
|
93
|
+
#
|
|
94
|
+
# @yield [config] Configure the Client client.
|
|
95
|
+
# @yieldparam config [Client::Configuration]
|
|
96
|
+
#
|
|
97
|
+
# @return [Client::Configuration]
|
|
98
|
+
#
|
|
99
|
+
def configure
|
|
100
|
+
yield @config if block_given?
|
|
101
|
+
@config
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
##
|
|
105
|
+
# The effective universe domain
|
|
106
|
+
#
|
|
107
|
+
# @return [String]
|
|
108
|
+
#
|
|
109
|
+
def universe_domain
|
|
110
|
+
@feature_online_store_admin_service_stub.universe_domain
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
##
|
|
114
|
+
# Create a new FeatureOnlineStoreAdminService REST client object.
|
|
115
|
+
#
|
|
116
|
+
# @example
|
|
117
|
+
#
|
|
118
|
+
# # Create a client using the default configuration
|
|
119
|
+
# client = ::Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Client.new
|
|
120
|
+
#
|
|
121
|
+
# # Create a client using a custom configuration
|
|
122
|
+
# client = ::Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Client.new do |config|
|
|
123
|
+
# config.timeout = 10.0
|
|
124
|
+
# end
|
|
125
|
+
#
|
|
126
|
+
# @yield [config] Configure the FeatureOnlineStoreAdminService client.
|
|
127
|
+
# @yieldparam config [Client::Configuration]
|
|
128
|
+
#
|
|
129
|
+
def initialize
|
|
130
|
+
# Create the configuration object
|
|
131
|
+
@config = Configuration.new Client.configure
|
|
132
|
+
|
|
133
|
+
# Yield the configuration if needed
|
|
134
|
+
yield @config if block_given?
|
|
135
|
+
|
|
136
|
+
# Create credentials
|
|
137
|
+
credentials = @config.credentials
|
|
138
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
139
|
+
# but only if the default endpoint does not have a region prefix.
|
|
140
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
|
141
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
142
|
+
!@config.endpoint.split(".").first.include?("-"))
|
|
143
|
+
credentials ||= Credentials.default scope: @config.scope,
|
|
144
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
|
145
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
|
146
|
+
credentials = Credentials.new credentials, scope: @config.scope
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
@quota_project_id = @config.quota_project
|
|
150
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
|
151
|
+
|
|
152
|
+
@operations_client = ::Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Operations.new do |config|
|
|
153
|
+
config.credentials = credentials
|
|
154
|
+
config.quota_project = @quota_project_id
|
|
155
|
+
config.endpoint = @config.endpoint
|
|
156
|
+
config.universe_domain = @config.universe_domain
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
@feature_online_store_admin_service_stub = ::Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::ServiceStub.new(
|
|
160
|
+
endpoint: @config.endpoint,
|
|
161
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
|
162
|
+
universe_domain: @config.universe_domain,
|
|
163
|
+
credentials: credentials
|
|
164
|
+
)
|
|
165
|
+
|
|
166
|
+
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
|
167
|
+
config.credentials = credentials
|
|
168
|
+
config.quota_project = @quota_project_id
|
|
169
|
+
config.endpoint = @feature_online_store_admin_service_stub.endpoint
|
|
170
|
+
config.universe_domain = @feature_online_store_admin_service_stub.universe_domain
|
|
171
|
+
config.bindings_override = @config.bindings_override
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
@iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
|
|
175
|
+
config.credentials = credentials
|
|
176
|
+
config.quota_project = @quota_project_id
|
|
177
|
+
config.endpoint = @feature_online_store_admin_service_stub.endpoint
|
|
178
|
+
config.universe_domain = @feature_online_store_admin_service_stub.universe_domain
|
|
179
|
+
config.bindings_override = @config.bindings_override
|
|
180
|
+
end
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
##
|
|
184
|
+
# Get the associated client for long-running operations.
|
|
185
|
+
#
|
|
186
|
+
# @return [::Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Operations]
|
|
187
|
+
#
|
|
188
|
+
attr_reader :operations_client
|
|
189
|
+
|
|
190
|
+
##
|
|
191
|
+
# Get the associated client for mix-in of the Locations.
|
|
192
|
+
#
|
|
193
|
+
# @return [Google::Cloud::Location::Locations::Rest::Client]
|
|
194
|
+
#
|
|
195
|
+
attr_reader :location_client
|
|
196
|
+
|
|
197
|
+
##
|
|
198
|
+
# Get the associated client for mix-in of the IAMPolicy.
|
|
199
|
+
#
|
|
200
|
+
# @return [Google::Iam::V1::IAMPolicy::Rest::Client]
|
|
201
|
+
#
|
|
202
|
+
attr_reader :iam_policy_client
|
|
203
|
+
|
|
204
|
+
# Service calls
|
|
205
|
+
|
|
206
|
+
##
|
|
207
|
+
# Creates a new FeatureOnlineStore in a given project and location.
|
|
208
|
+
#
|
|
209
|
+
# @overload create_feature_online_store(request, options = nil)
|
|
210
|
+
# Pass arguments to `create_feature_online_store` via a request object, either of type
|
|
211
|
+
# {::Google::Cloud::AIPlatform::V1::CreateFeatureOnlineStoreRequest} or an equivalent Hash.
|
|
212
|
+
#
|
|
213
|
+
# @param request [::Google::Cloud::AIPlatform::V1::CreateFeatureOnlineStoreRequest, ::Hash]
|
|
214
|
+
# A request object representing the call parameters. Required. To specify no
|
|
215
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
216
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
217
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
218
|
+
#
|
|
219
|
+
# @overload create_feature_online_store(parent: nil, feature_online_store: nil, feature_online_store_id: nil)
|
|
220
|
+
# Pass arguments to `create_feature_online_store` via keyword arguments. Note that at
|
|
221
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
222
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
223
|
+
#
|
|
224
|
+
# @param parent [::String]
|
|
225
|
+
# Required. The resource name of the Location to create FeatureOnlineStores.
|
|
226
|
+
# Format:
|
|
227
|
+
# `projects/{project}/locations/{location}`
|
|
228
|
+
# @param feature_online_store [::Google::Cloud::AIPlatform::V1::FeatureOnlineStore, ::Hash]
|
|
229
|
+
# Required. The FeatureOnlineStore to create.
|
|
230
|
+
# @param feature_online_store_id [::String]
|
|
231
|
+
# Required. The ID to use for this FeatureOnlineStore, which will become the
|
|
232
|
+
# final component of the FeatureOnlineStore's resource name.
|
|
233
|
+
#
|
|
234
|
+
# This value may be up to 60 characters, and valid characters are
|
|
235
|
+
# `[a-z0-9_]`. The first character cannot be a number.
|
|
236
|
+
#
|
|
237
|
+
# The value must be unique within the project and location.
|
|
238
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
239
|
+
# @yieldparam result [::Gapic::Operation]
|
|
240
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
241
|
+
#
|
|
242
|
+
# @return [::Gapic::Operation]
|
|
243
|
+
#
|
|
244
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
245
|
+
#
|
|
246
|
+
# @example Basic example
|
|
247
|
+
# require "google/cloud/ai_platform/v1"
|
|
248
|
+
#
|
|
249
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
250
|
+
# client = Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Client.new
|
|
251
|
+
#
|
|
252
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
253
|
+
# request = Google::Cloud::AIPlatform::V1::CreateFeatureOnlineStoreRequest.new
|
|
254
|
+
#
|
|
255
|
+
# # Call the create_feature_online_store method.
|
|
256
|
+
# result = client.create_feature_online_store request
|
|
257
|
+
#
|
|
258
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
259
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
260
|
+
# # Here is how to wait for a response.
|
|
261
|
+
# result.wait_until_done! timeout: 60
|
|
262
|
+
# if result.response?
|
|
263
|
+
# p result.response
|
|
264
|
+
# else
|
|
265
|
+
# puts "No response received."
|
|
266
|
+
# end
|
|
267
|
+
#
|
|
268
|
+
def create_feature_online_store request, options = nil
|
|
269
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
270
|
+
|
|
271
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CreateFeatureOnlineStoreRequest
|
|
272
|
+
|
|
273
|
+
# Converts hash and nil to an options object
|
|
274
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
275
|
+
|
|
276
|
+
# Customize the options with defaults
|
|
277
|
+
call_metadata = @config.rpcs.create_feature_online_store.metadata.to_h
|
|
278
|
+
|
|
279
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
280
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
281
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
282
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
|
|
283
|
+
transports_version_send: [:rest]
|
|
284
|
+
|
|
285
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
286
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
287
|
+
|
|
288
|
+
options.apply_defaults timeout: @config.rpcs.create_feature_online_store.timeout,
|
|
289
|
+
metadata: call_metadata,
|
|
290
|
+
retry_policy: @config.rpcs.create_feature_online_store.retry_policy
|
|
291
|
+
|
|
292
|
+
options.apply_defaults timeout: @config.timeout,
|
|
293
|
+
metadata: @config.metadata,
|
|
294
|
+
retry_policy: @config.retry_policy
|
|
295
|
+
|
|
296
|
+
@feature_online_store_admin_service_stub.create_feature_online_store request, options do |result, operation|
|
|
297
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
298
|
+
yield result, operation if block_given?
|
|
299
|
+
return result
|
|
300
|
+
end
|
|
301
|
+
rescue ::Gapic::Rest::Error => e
|
|
302
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
##
|
|
306
|
+
# Gets details of a single FeatureOnlineStore.
|
|
307
|
+
#
|
|
308
|
+
# @overload get_feature_online_store(request, options = nil)
|
|
309
|
+
# Pass arguments to `get_feature_online_store` via a request object, either of type
|
|
310
|
+
# {::Google::Cloud::AIPlatform::V1::GetFeatureOnlineStoreRequest} or an equivalent Hash.
|
|
311
|
+
#
|
|
312
|
+
# @param request [::Google::Cloud::AIPlatform::V1::GetFeatureOnlineStoreRequest, ::Hash]
|
|
313
|
+
# A request object representing the call parameters. Required. To specify no
|
|
314
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
315
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
316
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
317
|
+
#
|
|
318
|
+
# @overload get_feature_online_store(name: nil)
|
|
319
|
+
# Pass arguments to `get_feature_online_store` via keyword arguments. Note that at
|
|
320
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
321
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
322
|
+
#
|
|
323
|
+
# @param name [::String]
|
|
324
|
+
# Required. The name of the FeatureOnlineStore resource.
|
|
325
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
326
|
+
# @yieldparam result [::Google::Cloud::AIPlatform::V1::FeatureOnlineStore]
|
|
327
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
328
|
+
#
|
|
329
|
+
# @return [::Google::Cloud::AIPlatform::V1::FeatureOnlineStore]
|
|
330
|
+
#
|
|
331
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
332
|
+
#
|
|
333
|
+
# @example Basic example
|
|
334
|
+
# require "google/cloud/ai_platform/v1"
|
|
335
|
+
#
|
|
336
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
337
|
+
# client = Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Client.new
|
|
338
|
+
#
|
|
339
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
340
|
+
# request = Google::Cloud::AIPlatform::V1::GetFeatureOnlineStoreRequest.new
|
|
341
|
+
#
|
|
342
|
+
# # Call the get_feature_online_store method.
|
|
343
|
+
# result = client.get_feature_online_store request
|
|
344
|
+
#
|
|
345
|
+
# # The returned object is of type Google::Cloud::AIPlatform::V1::FeatureOnlineStore.
|
|
346
|
+
# p result
|
|
347
|
+
#
|
|
348
|
+
def get_feature_online_store request, options = nil
|
|
349
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
350
|
+
|
|
351
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::GetFeatureOnlineStoreRequest
|
|
352
|
+
|
|
353
|
+
# Converts hash and nil to an options object
|
|
354
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
355
|
+
|
|
356
|
+
# Customize the options with defaults
|
|
357
|
+
call_metadata = @config.rpcs.get_feature_online_store.metadata.to_h
|
|
358
|
+
|
|
359
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
360
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
361
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
362
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
|
|
363
|
+
transports_version_send: [:rest]
|
|
364
|
+
|
|
365
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
366
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
367
|
+
|
|
368
|
+
options.apply_defaults timeout: @config.rpcs.get_feature_online_store.timeout,
|
|
369
|
+
metadata: call_metadata,
|
|
370
|
+
retry_policy: @config.rpcs.get_feature_online_store.retry_policy
|
|
371
|
+
|
|
372
|
+
options.apply_defaults timeout: @config.timeout,
|
|
373
|
+
metadata: @config.metadata,
|
|
374
|
+
retry_policy: @config.retry_policy
|
|
375
|
+
|
|
376
|
+
@feature_online_store_admin_service_stub.get_feature_online_store request, options do |result, operation|
|
|
377
|
+
yield result, operation if block_given?
|
|
378
|
+
return result
|
|
379
|
+
end
|
|
380
|
+
rescue ::Gapic::Rest::Error => e
|
|
381
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
382
|
+
end
|
|
383
|
+
|
|
384
|
+
##
|
|
385
|
+
# Lists FeatureOnlineStores in a given project and location.
|
|
386
|
+
#
|
|
387
|
+
# @overload list_feature_online_stores(request, options = nil)
|
|
388
|
+
# Pass arguments to `list_feature_online_stores` via a request object, either of type
|
|
389
|
+
# {::Google::Cloud::AIPlatform::V1::ListFeatureOnlineStoresRequest} or an equivalent Hash.
|
|
390
|
+
#
|
|
391
|
+
# @param request [::Google::Cloud::AIPlatform::V1::ListFeatureOnlineStoresRequest, ::Hash]
|
|
392
|
+
# A request object representing the call parameters. Required. To specify no
|
|
393
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
394
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
395
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
396
|
+
#
|
|
397
|
+
# @overload list_feature_online_stores(parent: nil, filter: nil, page_size: nil, page_token: nil, order_by: nil)
|
|
398
|
+
# Pass arguments to `list_feature_online_stores` via keyword arguments. Note that at
|
|
399
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
400
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
401
|
+
#
|
|
402
|
+
# @param parent [::String]
|
|
403
|
+
# Required. The resource name of the Location to list FeatureOnlineStores.
|
|
404
|
+
# Format:
|
|
405
|
+
# `projects/{project}/locations/{location}`
|
|
406
|
+
# @param filter [::String]
|
|
407
|
+
# Lists the FeatureOnlineStores that match the filter expression. The
|
|
408
|
+
# following fields are supported:
|
|
409
|
+
#
|
|
410
|
+
# * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
|
|
411
|
+
# Values must be
|
|
412
|
+
# in RFC 3339 format.
|
|
413
|
+
# * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
|
|
414
|
+
# Values must be
|
|
415
|
+
# in RFC 3339 format.
|
|
416
|
+
# * `labels`: Supports key-value equality and key presence.
|
|
417
|
+
#
|
|
418
|
+
# Examples:
|
|
419
|
+
#
|
|
420
|
+
# * `create_time > "2020-01-01" OR update_time > "2020-01-01"`
|
|
421
|
+
# FeatureOnlineStores created or updated after 2020-01-01.
|
|
422
|
+
# * `labels.env = "prod"`
|
|
423
|
+
# FeatureOnlineStores with label "env" set to "prod".
|
|
424
|
+
# @param page_size [::Integer]
|
|
425
|
+
# The maximum number of FeatureOnlineStores to return. The service may return
|
|
426
|
+
# fewer than this value. If unspecified, at most 100 FeatureOnlineStores will
|
|
427
|
+
# be returned. The maximum value is 100; any value greater than 100 will be
|
|
428
|
+
# coerced to 100.
|
|
429
|
+
# @param page_token [::String]
|
|
430
|
+
# A page token, received from a previous
|
|
431
|
+
# {::Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Client#list_feature_online_stores FeatureOnlineStoreAdminService.ListFeatureOnlineStores}
|
|
432
|
+
# call. Provide this to retrieve the subsequent page.
|
|
433
|
+
#
|
|
434
|
+
# When paginating, all other parameters provided to
|
|
435
|
+
# {::Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Client#list_feature_online_stores FeatureOnlineStoreAdminService.ListFeatureOnlineStores}
|
|
436
|
+
# must match the call that provided the page token.
|
|
437
|
+
# @param order_by [::String]
|
|
438
|
+
# A comma-separated list of fields to order by, sorted in ascending order.
|
|
439
|
+
# Use "desc" after a field name for descending.
|
|
440
|
+
# Supported Fields:
|
|
441
|
+
#
|
|
442
|
+
# * `create_time`
|
|
443
|
+
# * `update_time`
|
|
444
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
445
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AIPlatform::V1::FeatureOnlineStore>]
|
|
446
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
447
|
+
#
|
|
448
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AIPlatform::V1::FeatureOnlineStore>]
|
|
449
|
+
#
|
|
450
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
451
|
+
#
|
|
452
|
+
# @example Basic example
|
|
453
|
+
# require "google/cloud/ai_platform/v1"
|
|
454
|
+
#
|
|
455
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
456
|
+
# client = Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Client.new
|
|
457
|
+
#
|
|
458
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
459
|
+
# request = Google::Cloud::AIPlatform::V1::ListFeatureOnlineStoresRequest.new
|
|
460
|
+
#
|
|
461
|
+
# # Call the list_feature_online_stores method.
|
|
462
|
+
# result = client.list_feature_online_stores request
|
|
463
|
+
#
|
|
464
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
465
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
466
|
+
# result.each do |item|
|
|
467
|
+
# # Each element is of type ::Google::Cloud::AIPlatform::V1::FeatureOnlineStore.
|
|
468
|
+
# p item
|
|
469
|
+
# end
|
|
470
|
+
#
|
|
471
|
+
def list_feature_online_stores request, options = nil
|
|
472
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
473
|
+
|
|
474
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ListFeatureOnlineStoresRequest
|
|
475
|
+
|
|
476
|
+
# Converts hash and nil to an options object
|
|
477
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
478
|
+
|
|
479
|
+
# Customize the options with defaults
|
|
480
|
+
call_metadata = @config.rpcs.list_feature_online_stores.metadata.to_h
|
|
481
|
+
|
|
482
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
483
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
484
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
485
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
|
|
486
|
+
transports_version_send: [:rest]
|
|
487
|
+
|
|
488
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
489
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
490
|
+
|
|
491
|
+
options.apply_defaults timeout: @config.rpcs.list_feature_online_stores.timeout,
|
|
492
|
+
metadata: call_metadata,
|
|
493
|
+
retry_policy: @config.rpcs.list_feature_online_stores.retry_policy
|
|
494
|
+
|
|
495
|
+
options.apply_defaults timeout: @config.timeout,
|
|
496
|
+
metadata: @config.metadata,
|
|
497
|
+
retry_policy: @config.retry_policy
|
|
498
|
+
|
|
499
|
+
@feature_online_store_admin_service_stub.list_feature_online_stores request, options do |result, operation|
|
|
500
|
+
result = ::Gapic::Rest::PagedEnumerable.new @feature_online_store_admin_service_stub, :list_feature_online_stores, "feature_online_stores", request, result, options
|
|
501
|
+
yield result, operation if block_given?
|
|
502
|
+
return result
|
|
503
|
+
end
|
|
504
|
+
rescue ::Gapic::Rest::Error => e
|
|
505
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
506
|
+
end
|
|
507
|
+
|
|
508
|
+
##
|
|
509
|
+
# Updates the parameters of a single FeatureOnlineStore.
|
|
510
|
+
#
|
|
511
|
+
# @overload update_feature_online_store(request, options = nil)
|
|
512
|
+
# Pass arguments to `update_feature_online_store` via a request object, either of type
|
|
513
|
+
# {::Google::Cloud::AIPlatform::V1::UpdateFeatureOnlineStoreRequest} or an equivalent Hash.
|
|
514
|
+
#
|
|
515
|
+
# @param request [::Google::Cloud::AIPlatform::V1::UpdateFeatureOnlineStoreRequest, ::Hash]
|
|
516
|
+
# A request object representing the call parameters. Required. To specify no
|
|
517
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
518
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
519
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
520
|
+
#
|
|
521
|
+
# @overload update_feature_online_store(feature_online_store: nil, update_mask: nil)
|
|
522
|
+
# Pass arguments to `update_feature_online_store` via keyword arguments. Note that at
|
|
523
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
524
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
525
|
+
#
|
|
526
|
+
# @param feature_online_store [::Google::Cloud::AIPlatform::V1::FeatureOnlineStore, ::Hash]
|
|
527
|
+
# Required. The FeatureOnlineStore's `name` field is used to identify the
|
|
528
|
+
# FeatureOnlineStore to be updated. Format:
|
|
529
|
+
# `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`
|
|
530
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
531
|
+
# Field mask is used to specify the fields to be overwritten in the
|
|
532
|
+
# FeatureOnlineStore resource by the update.
|
|
533
|
+
# The fields specified in the update_mask are relative to the resource, not
|
|
534
|
+
# the full request. A field will be overwritten if it is in the mask. If the
|
|
535
|
+
# user does not provide a mask then only the non-empty fields present in the
|
|
536
|
+
# request will be overwritten. Set the update_mask to `*` to override all
|
|
537
|
+
# fields.
|
|
538
|
+
#
|
|
539
|
+
# Updatable fields:
|
|
540
|
+
#
|
|
541
|
+
# * `big_query_source`
|
|
542
|
+
# * `bigtable`
|
|
543
|
+
# * `labels`
|
|
544
|
+
# * `sync_config`
|
|
545
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
546
|
+
# @yieldparam result [::Gapic::Operation]
|
|
547
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
548
|
+
#
|
|
549
|
+
# @return [::Gapic::Operation]
|
|
550
|
+
#
|
|
551
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
552
|
+
#
|
|
553
|
+
# @example Basic example
|
|
554
|
+
# require "google/cloud/ai_platform/v1"
|
|
555
|
+
#
|
|
556
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
557
|
+
# client = Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Client.new
|
|
558
|
+
#
|
|
559
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
560
|
+
# request = Google::Cloud::AIPlatform::V1::UpdateFeatureOnlineStoreRequest.new
|
|
561
|
+
#
|
|
562
|
+
# # Call the update_feature_online_store method.
|
|
563
|
+
# result = client.update_feature_online_store request
|
|
564
|
+
#
|
|
565
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
566
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
567
|
+
# # Here is how to wait for a response.
|
|
568
|
+
# result.wait_until_done! timeout: 60
|
|
569
|
+
# if result.response?
|
|
570
|
+
# p result.response
|
|
571
|
+
# else
|
|
572
|
+
# puts "No response received."
|
|
573
|
+
# end
|
|
574
|
+
#
|
|
575
|
+
def update_feature_online_store request, options = nil
|
|
576
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
577
|
+
|
|
578
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::UpdateFeatureOnlineStoreRequest
|
|
579
|
+
|
|
580
|
+
# Converts hash and nil to an options object
|
|
581
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
582
|
+
|
|
583
|
+
# Customize the options with defaults
|
|
584
|
+
call_metadata = @config.rpcs.update_feature_online_store.metadata.to_h
|
|
585
|
+
|
|
586
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
587
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
588
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
589
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
|
|
590
|
+
transports_version_send: [:rest]
|
|
591
|
+
|
|
592
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
593
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
594
|
+
|
|
595
|
+
options.apply_defaults timeout: @config.rpcs.update_feature_online_store.timeout,
|
|
596
|
+
metadata: call_metadata,
|
|
597
|
+
retry_policy: @config.rpcs.update_feature_online_store.retry_policy
|
|
598
|
+
|
|
599
|
+
options.apply_defaults timeout: @config.timeout,
|
|
600
|
+
metadata: @config.metadata,
|
|
601
|
+
retry_policy: @config.retry_policy
|
|
602
|
+
|
|
603
|
+
@feature_online_store_admin_service_stub.update_feature_online_store request, options do |result, operation|
|
|
604
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
605
|
+
yield result, operation if block_given?
|
|
606
|
+
return result
|
|
607
|
+
end
|
|
608
|
+
rescue ::Gapic::Rest::Error => e
|
|
609
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
610
|
+
end
|
|
611
|
+
|
|
612
|
+
##
|
|
613
|
+
# Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not
|
|
614
|
+
# contain any FeatureViews.
|
|
615
|
+
#
|
|
616
|
+
# @overload delete_feature_online_store(request, options = nil)
|
|
617
|
+
# Pass arguments to `delete_feature_online_store` via a request object, either of type
|
|
618
|
+
# {::Google::Cloud::AIPlatform::V1::DeleteFeatureOnlineStoreRequest} or an equivalent Hash.
|
|
619
|
+
#
|
|
620
|
+
# @param request [::Google::Cloud::AIPlatform::V1::DeleteFeatureOnlineStoreRequest, ::Hash]
|
|
621
|
+
# A request object representing the call parameters. Required. To specify no
|
|
622
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
623
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
624
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
625
|
+
#
|
|
626
|
+
# @overload delete_feature_online_store(name: nil, force: nil)
|
|
627
|
+
# Pass arguments to `delete_feature_online_store` via keyword arguments. Note that at
|
|
628
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
629
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
630
|
+
#
|
|
631
|
+
# @param name [::String]
|
|
632
|
+
# Required. The name of the FeatureOnlineStore to be deleted.
|
|
633
|
+
# Format:
|
|
634
|
+
# `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`
|
|
635
|
+
# @param force [::Boolean]
|
|
636
|
+
# If set to true, any FeatureViews and Features for this FeatureOnlineStore
|
|
637
|
+
# will also be deleted. (Otherwise, the request will only work if the
|
|
638
|
+
# FeatureOnlineStore has no FeatureViews.)
|
|
639
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
640
|
+
# @yieldparam result [::Gapic::Operation]
|
|
641
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
642
|
+
#
|
|
643
|
+
# @return [::Gapic::Operation]
|
|
644
|
+
#
|
|
645
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
646
|
+
#
|
|
647
|
+
# @example Basic example
|
|
648
|
+
# require "google/cloud/ai_platform/v1"
|
|
649
|
+
#
|
|
650
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
651
|
+
# client = Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Client.new
|
|
652
|
+
#
|
|
653
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
654
|
+
# request = Google::Cloud::AIPlatform::V1::DeleteFeatureOnlineStoreRequest.new
|
|
655
|
+
#
|
|
656
|
+
# # Call the delete_feature_online_store method.
|
|
657
|
+
# result = client.delete_feature_online_store request
|
|
658
|
+
#
|
|
659
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
660
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
661
|
+
# # Here is how to wait for a response.
|
|
662
|
+
# result.wait_until_done! timeout: 60
|
|
663
|
+
# if result.response?
|
|
664
|
+
# p result.response
|
|
665
|
+
# else
|
|
666
|
+
# puts "No response received."
|
|
667
|
+
# end
|
|
668
|
+
#
|
|
669
|
+
def delete_feature_online_store request, options = nil
|
|
670
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
671
|
+
|
|
672
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::DeleteFeatureOnlineStoreRequest
|
|
673
|
+
|
|
674
|
+
# Converts hash and nil to an options object
|
|
675
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
676
|
+
|
|
677
|
+
# Customize the options with defaults
|
|
678
|
+
call_metadata = @config.rpcs.delete_feature_online_store.metadata.to_h
|
|
679
|
+
|
|
680
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
681
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
682
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
683
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
|
|
684
|
+
transports_version_send: [:rest]
|
|
685
|
+
|
|
686
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
687
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
688
|
+
|
|
689
|
+
options.apply_defaults timeout: @config.rpcs.delete_feature_online_store.timeout,
|
|
690
|
+
metadata: call_metadata,
|
|
691
|
+
retry_policy: @config.rpcs.delete_feature_online_store.retry_policy
|
|
692
|
+
|
|
693
|
+
options.apply_defaults timeout: @config.timeout,
|
|
694
|
+
metadata: @config.metadata,
|
|
695
|
+
retry_policy: @config.retry_policy
|
|
696
|
+
|
|
697
|
+
@feature_online_store_admin_service_stub.delete_feature_online_store request, options do |result, operation|
|
|
698
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
699
|
+
yield result, operation if block_given?
|
|
700
|
+
return result
|
|
701
|
+
end
|
|
702
|
+
rescue ::Gapic::Rest::Error => e
|
|
703
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
704
|
+
end
|
|
705
|
+
|
|
706
|
+
##
|
|
707
|
+
# Creates a new FeatureView in a given FeatureOnlineStore.
|
|
708
|
+
#
|
|
709
|
+
# @overload create_feature_view(request, options = nil)
|
|
710
|
+
# Pass arguments to `create_feature_view` via a request object, either of type
|
|
711
|
+
# {::Google::Cloud::AIPlatform::V1::CreateFeatureViewRequest} or an equivalent Hash.
|
|
712
|
+
#
|
|
713
|
+
# @param request [::Google::Cloud::AIPlatform::V1::CreateFeatureViewRequest, ::Hash]
|
|
714
|
+
# A request object representing the call parameters. Required. To specify no
|
|
715
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
716
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
717
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
718
|
+
#
|
|
719
|
+
# @overload create_feature_view(parent: nil, feature_view: nil, feature_view_id: nil, run_sync_immediately: nil)
|
|
720
|
+
# Pass arguments to `create_feature_view` via keyword arguments. Note that at
|
|
721
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
722
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
723
|
+
#
|
|
724
|
+
# @param parent [::String]
|
|
725
|
+
# Required. The resource name of the FeatureOnlineStore to create
|
|
726
|
+
# FeatureViews. Format:
|
|
727
|
+
# `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`
|
|
728
|
+
# @param feature_view [::Google::Cloud::AIPlatform::V1::FeatureView, ::Hash]
|
|
729
|
+
# Required. The FeatureView to create.
|
|
730
|
+
# @param feature_view_id [::String]
|
|
731
|
+
# Required. The ID to use for the FeatureView, which will become the final
|
|
732
|
+
# component of the FeatureView's resource name.
|
|
733
|
+
#
|
|
734
|
+
# This value may be up to 60 characters, and valid characters are
|
|
735
|
+
# `[a-z0-9_]`. The first character cannot be a number.
|
|
736
|
+
#
|
|
737
|
+
# The value must be unique within a FeatureOnlineStore.
|
|
738
|
+
# @param run_sync_immediately [::Boolean]
|
|
739
|
+
# Immutable. If set to true, one on demand sync will be run immediately,
|
|
740
|
+
# regardless whether the
|
|
741
|
+
# {::Google::Cloud::AIPlatform::V1::FeatureView#sync_config FeatureView.sync_config}
|
|
742
|
+
# is configured or not.
|
|
743
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
744
|
+
# @yieldparam result [::Gapic::Operation]
|
|
745
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
746
|
+
#
|
|
747
|
+
# @return [::Gapic::Operation]
|
|
748
|
+
#
|
|
749
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
750
|
+
#
|
|
751
|
+
# @example Basic example
|
|
752
|
+
# require "google/cloud/ai_platform/v1"
|
|
753
|
+
#
|
|
754
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
755
|
+
# client = Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Client.new
|
|
756
|
+
#
|
|
757
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
758
|
+
# request = Google::Cloud::AIPlatform::V1::CreateFeatureViewRequest.new
|
|
759
|
+
#
|
|
760
|
+
# # Call the create_feature_view method.
|
|
761
|
+
# result = client.create_feature_view request
|
|
762
|
+
#
|
|
763
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
764
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
765
|
+
# # Here is how to wait for a response.
|
|
766
|
+
# result.wait_until_done! timeout: 60
|
|
767
|
+
# if result.response?
|
|
768
|
+
# p result.response
|
|
769
|
+
# else
|
|
770
|
+
# puts "No response received."
|
|
771
|
+
# end
|
|
772
|
+
#
|
|
773
|
+
def create_feature_view request, options = nil
|
|
774
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
775
|
+
|
|
776
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CreateFeatureViewRequest
|
|
777
|
+
|
|
778
|
+
# Converts hash and nil to an options object
|
|
779
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
780
|
+
|
|
781
|
+
# Customize the options with defaults
|
|
782
|
+
call_metadata = @config.rpcs.create_feature_view.metadata.to_h
|
|
783
|
+
|
|
784
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
785
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
786
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
787
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
|
|
788
|
+
transports_version_send: [:rest]
|
|
789
|
+
|
|
790
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
791
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
792
|
+
|
|
793
|
+
options.apply_defaults timeout: @config.rpcs.create_feature_view.timeout,
|
|
794
|
+
metadata: call_metadata,
|
|
795
|
+
retry_policy: @config.rpcs.create_feature_view.retry_policy
|
|
796
|
+
|
|
797
|
+
options.apply_defaults timeout: @config.timeout,
|
|
798
|
+
metadata: @config.metadata,
|
|
799
|
+
retry_policy: @config.retry_policy
|
|
800
|
+
|
|
801
|
+
@feature_online_store_admin_service_stub.create_feature_view request, options do |result, operation|
|
|
802
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
803
|
+
yield result, operation if block_given?
|
|
804
|
+
return result
|
|
805
|
+
end
|
|
806
|
+
rescue ::Gapic::Rest::Error => e
|
|
807
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
808
|
+
end
|
|
809
|
+
|
|
810
|
+
##
|
|
811
|
+
# Gets details of a single FeatureView.
|
|
812
|
+
#
|
|
813
|
+
# @overload get_feature_view(request, options = nil)
|
|
814
|
+
# Pass arguments to `get_feature_view` via a request object, either of type
|
|
815
|
+
# {::Google::Cloud::AIPlatform::V1::GetFeatureViewRequest} or an equivalent Hash.
|
|
816
|
+
#
|
|
817
|
+
# @param request [::Google::Cloud::AIPlatform::V1::GetFeatureViewRequest, ::Hash]
|
|
818
|
+
# A request object representing the call parameters. Required. To specify no
|
|
819
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
820
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
821
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
822
|
+
#
|
|
823
|
+
# @overload get_feature_view(name: nil)
|
|
824
|
+
# Pass arguments to `get_feature_view` via keyword arguments. Note that at
|
|
825
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
826
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
827
|
+
#
|
|
828
|
+
# @param name [::String]
|
|
829
|
+
# Required. The name of the FeatureView resource.
|
|
830
|
+
# Format:
|
|
831
|
+
# `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
|
|
832
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
833
|
+
# @yieldparam result [::Google::Cloud::AIPlatform::V1::FeatureView]
|
|
834
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
835
|
+
#
|
|
836
|
+
# @return [::Google::Cloud::AIPlatform::V1::FeatureView]
|
|
837
|
+
#
|
|
838
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
839
|
+
#
|
|
840
|
+
# @example Basic example
|
|
841
|
+
# require "google/cloud/ai_platform/v1"
|
|
842
|
+
#
|
|
843
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
844
|
+
# client = Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Client.new
|
|
845
|
+
#
|
|
846
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
847
|
+
# request = Google::Cloud::AIPlatform::V1::GetFeatureViewRequest.new
|
|
848
|
+
#
|
|
849
|
+
# # Call the get_feature_view method.
|
|
850
|
+
# result = client.get_feature_view request
|
|
851
|
+
#
|
|
852
|
+
# # The returned object is of type Google::Cloud::AIPlatform::V1::FeatureView.
|
|
853
|
+
# p result
|
|
854
|
+
#
|
|
855
|
+
def get_feature_view request, options = nil
|
|
856
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
857
|
+
|
|
858
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::GetFeatureViewRequest
|
|
859
|
+
|
|
860
|
+
# Converts hash and nil to an options object
|
|
861
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
862
|
+
|
|
863
|
+
# Customize the options with defaults
|
|
864
|
+
call_metadata = @config.rpcs.get_feature_view.metadata.to_h
|
|
865
|
+
|
|
866
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
867
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
868
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
869
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
|
|
870
|
+
transports_version_send: [:rest]
|
|
871
|
+
|
|
872
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
873
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
874
|
+
|
|
875
|
+
options.apply_defaults timeout: @config.rpcs.get_feature_view.timeout,
|
|
876
|
+
metadata: call_metadata,
|
|
877
|
+
retry_policy: @config.rpcs.get_feature_view.retry_policy
|
|
878
|
+
|
|
879
|
+
options.apply_defaults timeout: @config.timeout,
|
|
880
|
+
metadata: @config.metadata,
|
|
881
|
+
retry_policy: @config.retry_policy
|
|
882
|
+
|
|
883
|
+
@feature_online_store_admin_service_stub.get_feature_view request, options do |result, operation|
|
|
884
|
+
yield result, operation if block_given?
|
|
885
|
+
return result
|
|
886
|
+
end
|
|
887
|
+
rescue ::Gapic::Rest::Error => e
|
|
888
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
889
|
+
end
|
|
890
|
+
|
|
891
|
+
##
|
|
892
|
+
# Lists FeatureViews in a given FeatureOnlineStore.
|
|
893
|
+
#
|
|
894
|
+
# @overload list_feature_views(request, options = nil)
|
|
895
|
+
# Pass arguments to `list_feature_views` via a request object, either of type
|
|
896
|
+
# {::Google::Cloud::AIPlatform::V1::ListFeatureViewsRequest} or an equivalent Hash.
|
|
897
|
+
#
|
|
898
|
+
# @param request [::Google::Cloud::AIPlatform::V1::ListFeatureViewsRequest, ::Hash]
|
|
899
|
+
# A request object representing the call parameters. Required. To specify no
|
|
900
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
901
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
902
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
903
|
+
#
|
|
904
|
+
# @overload list_feature_views(parent: nil, filter: nil, page_size: nil, page_token: nil, order_by: nil)
|
|
905
|
+
# Pass arguments to `list_feature_views` via keyword arguments. Note that at
|
|
906
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
907
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
908
|
+
#
|
|
909
|
+
# @param parent [::String]
|
|
910
|
+
# Required. The resource name of the FeatureOnlineStore to list FeatureViews.
|
|
911
|
+
# Format:
|
|
912
|
+
# `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`
|
|
913
|
+
# @param filter [::String]
|
|
914
|
+
# Lists the FeatureViews that match the filter expression. The following
|
|
915
|
+
# filters are supported:
|
|
916
|
+
#
|
|
917
|
+
# * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons.
|
|
918
|
+
# Values must be in RFC 3339 format.
|
|
919
|
+
# * `update_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons.
|
|
920
|
+
# Values must be in RFC 3339 format.
|
|
921
|
+
# * `labels`: Supports key-value equality as well as key presence.
|
|
922
|
+
#
|
|
923
|
+
# Examples:
|
|
924
|
+
#
|
|
925
|
+
# * `create_time > \"2020-01-31T15:30:00.000000Z\" OR
|
|
926
|
+
# update_time > \"2020-01-31T15:30:00.000000Z\"` --> FeatureViews
|
|
927
|
+
# created or updated after 2020-01-31T15:30:00.000000Z.
|
|
928
|
+
# * `labels.active = yes AND labels.env = prod` --> FeatureViews having both
|
|
929
|
+
# (active: yes) and (env: prod) labels.
|
|
930
|
+
# * `labels.env: *` --> Any FeatureView which has a label with 'env' as the
|
|
931
|
+
# key.
|
|
932
|
+
# @param page_size [::Integer]
|
|
933
|
+
# The maximum number of FeatureViews to return. The service may return fewer
|
|
934
|
+
# than this value. If unspecified, at most 1000 FeatureViews will be
|
|
935
|
+
# returned. The maximum value is 1000; any value greater than 1000 will be
|
|
936
|
+
# coerced to 1000.
|
|
937
|
+
# @param page_token [::String]
|
|
938
|
+
# A page token, received from a previous
|
|
939
|
+
# {::Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Client#list_feature_views FeatureOnlineStoreAdminService.ListFeatureViews}
|
|
940
|
+
# call. Provide this to retrieve the subsequent page.
|
|
941
|
+
#
|
|
942
|
+
# When paginating, all other parameters provided to
|
|
943
|
+
# {::Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Client#list_feature_views FeatureOnlineStoreAdminService.ListFeatureViews}
|
|
944
|
+
# must match the call that provided the page token.
|
|
945
|
+
# @param order_by [::String]
|
|
946
|
+
# A comma-separated list of fields to order by, sorted in ascending order.
|
|
947
|
+
# Use "desc" after a field name for descending.
|
|
948
|
+
#
|
|
949
|
+
# Supported fields:
|
|
950
|
+
#
|
|
951
|
+
# * `feature_view_id`
|
|
952
|
+
# * `create_time`
|
|
953
|
+
# * `update_time`
|
|
954
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
955
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AIPlatform::V1::FeatureView>]
|
|
956
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
957
|
+
#
|
|
958
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AIPlatform::V1::FeatureView>]
|
|
959
|
+
#
|
|
960
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
961
|
+
#
|
|
962
|
+
# @example Basic example
|
|
963
|
+
# require "google/cloud/ai_platform/v1"
|
|
964
|
+
#
|
|
965
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
966
|
+
# client = Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Client.new
|
|
967
|
+
#
|
|
968
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
969
|
+
# request = Google::Cloud::AIPlatform::V1::ListFeatureViewsRequest.new
|
|
970
|
+
#
|
|
971
|
+
# # Call the list_feature_views method.
|
|
972
|
+
# result = client.list_feature_views request
|
|
973
|
+
#
|
|
974
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
975
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
976
|
+
# result.each do |item|
|
|
977
|
+
# # Each element is of type ::Google::Cloud::AIPlatform::V1::FeatureView.
|
|
978
|
+
# p item
|
|
979
|
+
# end
|
|
980
|
+
#
|
|
981
|
+
def list_feature_views request, options = nil
|
|
982
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
983
|
+
|
|
984
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ListFeatureViewsRequest
|
|
985
|
+
|
|
986
|
+
# Converts hash and nil to an options object
|
|
987
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
988
|
+
|
|
989
|
+
# Customize the options with defaults
|
|
990
|
+
call_metadata = @config.rpcs.list_feature_views.metadata.to_h
|
|
991
|
+
|
|
992
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
993
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
994
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
995
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
|
|
996
|
+
transports_version_send: [:rest]
|
|
997
|
+
|
|
998
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
999
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1000
|
+
|
|
1001
|
+
options.apply_defaults timeout: @config.rpcs.list_feature_views.timeout,
|
|
1002
|
+
metadata: call_metadata,
|
|
1003
|
+
retry_policy: @config.rpcs.list_feature_views.retry_policy
|
|
1004
|
+
|
|
1005
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1006
|
+
metadata: @config.metadata,
|
|
1007
|
+
retry_policy: @config.retry_policy
|
|
1008
|
+
|
|
1009
|
+
@feature_online_store_admin_service_stub.list_feature_views request, options do |result, operation|
|
|
1010
|
+
result = ::Gapic::Rest::PagedEnumerable.new @feature_online_store_admin_service_stub, :list_feature_views, "feature_views", request, result, options
|
|
1011
|
+
yield result, operation if block_given?
|
|
1012
|
+
return result
|
|
1013
|
+
end
|
|
1014
|
+
rescue ::Gapic::Rest::Error => e
|
|
1015
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1016
|
+
end
|
|
1017
|
+
|
|
1018
|
+
##
|
|
1019
|
+
# Updates the parameters of a single FeatureView.
|
|
1020
|
+
#
|
|
1021
|
+
# @overload update_feature_view(request, options = nil)
|
|
1022
|
+
# Pass arguments to `update_feature_view` via a request object, either of type
|
|
1023
|
+
# {::Google::Cloud::AIPlatform::V1::UpdateFeatureViewRequest} or an equivalent Hash.
|
|
1024
|
+
#
|
|
1025
|
+
# @param request [::Google::Cloud::AIPlatform::V1::UpdateFeatureViewRequest, ::Hash]
|
|
1026
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1027
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1028
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1029
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1030
|
+
#
|
|
1031
|
+
# @overload update_feature_view(feature_view: nil, update_mask: nil)
|
|
1032
|
+
# Pass arguments to `update_feature_view` via keyword arguments. Note that at
|
|
1033
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1034
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1035
|
+
#
|
|
1036
|
+
# @param feature_view [::Google::Cloud::AIPlatform::V1::FeatureView, ::Hash]
|
|
1037
|
+
# Required. The FeatureView's `name` field is used to identify the
|
|
1038
|
+
# FeatureView to be updated. Format:
|
|
1039
|
+
# `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
|
|
1040
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
1041
|
+
# Field mask is used to specify the fields to be overwritten in the
|
|
1042
|
+
# FeatureView resource by the update.
|
|
1043
|
+
# The fields specified in the update_mask are relative to the resource, not
|
|
1044
|
+
# the full request. A field will be overwritten if it is in the mask. If the
|
|
1045
|
+
# user does not provide a mask then only the non-empty fields present in the
|
|
1046
|
+
# request will be overwritten. Set the update_mask to `*` to override all
|
|
1047
|
+
# fields.
|
|
1048
|
+
#
|
|
1049
|
+
# Updatable fields:
|
|
1050
|
+
#
|
|
1051
|
+
# * `labels`
|
|
1052
|
+
# * `serviceAgentType`
|
|
1053
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1054
|
+
# @yieldparam result [::Gapic::Operation]
|
|
1055
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1056
|
+
#
|
|
1057
|
+
# @return [::Gapic::Operation]
|
|
1058
|
+
#
|
|
1059
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1060
|
+
#
|
|
1061
|
+
# @example Basic example
|
|
1062
|
+
# require "google/cloud/ai_platform/v1"
|
|
1063
|
+
#
|
|
1064
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1065
|
+
# client = Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Client.new
|
|
1066
|
+
#
|
|
1067
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1068
|
+
# request = Google::Cloud::AIPlatform::V1::UpdateFeatureViewRequest.new
|
|
1069
|
+
#
|
|
1070
|
+
# # Call the update_feature_view method.
|
|
1071
|
+
# result = client.update_feature_view request
|
|
1072
|
+
#
|
|
1073
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
1074
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
1075
|
+
# # Here is how to wait for a response.
|
|
1076
|
+
# result.wait_until_done! timeout: 60
|
|
1077
|
+
# if result.response?
|
|
1078
|
+
# p result.response
|
|
1079
|
+
# else
|
|
1080
|
+
# puts "No response received."
|
|
1081
|
+
# end
|
|
1082
|
+
#
|
|
1083
|
+
def update_feature_view request, options = nil
|
|
1084
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1085
|
+
|
|
1086
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::UpdateFeatureViewRequest
|
|
1087
|
+
|
|
1088
|
+
# Converts hash and nil to an options object
|
|
1089
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1090
|
+
|
|
1091
|
+
# Customize the options with defaults
|
|
1092
|
+
call_metadata = @config.rpcs.update_feature_view.metadata.to_h
|
|
1093
|
+
|
|
1094
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1095
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1096
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1097
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
|
|
1098
|
+
transports_version_send: [:rest]
|
|
1099
|
+
|
|
1100
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1101
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1102
|
+
|
|
1103
|
+
options.apply_defaults timeout: @config.rpcs.update_feature_view.timeout,
|
|
1104
|
+
metadata: call_metadata,
|
|
1105
|
+
retry_policy: @config.rpcs.update_feature_view.retry_policy
|
|
1106
|
+
|
|
1107
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1108
|
+
metadata: @config.metadata,
|
|
1109
|
+
retry_policy: @config.retry_policy
|
|
1110
|
+
|
|
1111
|
+
@feature_online_store_admin_service_stub.update_feature_view request, options do |result, operation|
|
|
1112
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
1113
|
+
yield result, operation if block_given?
|
|
1114
|
+
return result
|
|
1115
|
+
end
|
|
1116
|
+
rescue ::Gapic::Rest::Error => e
|
|
1117
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1118
|
+
end
|
|
1119
|
+
|
|
1120
|
+
##
|
|
1121
|
+
# Deletes a single FeatureView.
|
|
1122
|
+
#
|
|
1123
|
+
# @overload delete_feature_view(request, options = nil)
|
|
1124
|
+
# Pass arguments to `delete_feature_view` via a request object, either of type
|
|
1125
|
+
# {::Google::Cloud::AIPlatform::V1::DeleteFeatureViewRequest} or an equivalent Hash.
|
|
1126
|
+
#
|
|
1127
|
+
# @param request [::Google::Cloud::AIPlatform::V1::DeleteFeatureViewRequest, ::Hash]
|
|
1128
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1129
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1130
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1131
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1132
|
+
#
|
|
1133
|
+
# @overload delete_feature_view(name: nil)
|
|
1134
|
+
# Pass arguments to `delete_feature_view` via keyword arguments. Note that at
|
|
1135
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1136
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1137
|
+
#
|
|
1138
|
+
# @param name [::String]
|
|
1139
|
+
# Required. The name of the FeatureView to be deleted.
|
|
1140
|
+
# Format:
|
|
1141
|
+
# `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
|
|
1142
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1143
|
+
# @yieldparam result [::Gapic::Operation]
|
|
1144
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1145
|
+
#
|
|
1146
|
+
# @return [::Gapic::Operation]
|
|
1147
|
+
#
|
|
1148
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1149
|
+
#
|
|
1150
|
+
# @example Basic example
|
|
1151
|
+
# require "google/cloud/ai_platform/v1"
|
|
1152
|
+
#
|
|
1153
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1154
|
+
# client = Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Client.new
|
|
1155
|
+
#
|
|
1156
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1157
|
+
# request = Google::Cloud::AIPlatform::V1::DeleteFeatureViewRequest.new
|
|
1158
|
+
#
|
|
1159
|
+
# # Call the delete_feature_view method.
|
|
1160
|
+
# result = client.delete_feature_view request
|
|
1161
|
+
#
|
|
1162
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
1163
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
1164
|
+
# # Here is how to wait for a response.
|
|
1165
|
+
# result.wait_until_done! timeout: 60
|
|
1166
|
+
# if result.response?
|
|
1167
|
+
# p result.response
|
|
1168
|
+
# else
|
|
1169
|
+
# puts "No response received."
|
|
1170
|
+
# end
|
|
1171
|
+
#
|
|
1172
|
+
def delete_feature_view request, options = nil
|
|
1173
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1174
|
+
|
|
1175
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::DeleteFeatureViewRequest
|
|
1176
|
+
|
|
1177
|
+
# Converts hash and nil to an options object
|
|
1178
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1179
|
+
|
|
1180
|
+
# Customize the options with defaults
|
|
1181
|
+
call_metadata = @config.rpcs.delete_feature_view.metadata.to_h
|
|
1182
|
+
|
|
1183
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1184
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1185
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1186
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
|
|
1187
|
+
transports_version_send: [:rest]
|
|
1188
|
+
|
|
1189
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1190
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1191
|
+
|
|
1192
|
+
options.apply_defaults timeout: @config.rpcs.delete_feature_view.timeout,
|
|
1193
|
+
metadata: call_metadata,
|
|
1194
|
+
retry_policy: @config.rpcs.delete_feature_view.retry_policy
|
|
1195
|
+
|
|
1196
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1197
|
+
metadata: @config.metadata,
|
|
1198
|
+
retry_policy: @config.retry_policy
|
|
1199
|
+
|
|
1200
|
+
@feature_online_store_admin_service_stub.delete_feature_view request, options do |result, operation|
|
|
1201
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
1202
|
+
yield result, operation if block_given?
|
|
1203
|
+
return result
|
|
1204
|
+
end
|
|
1205
|
+
rescue ::Gapic::Rest::Error => e
|
|
1206
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1207
|
+
end
|
|
1208
|
+
|
|
1209
|
+
##
|
|
1210
|
+
# Triggers on-demand sync for the FeatureView.
|
|
1211
|
+
#
|
|
1212
|
+
# @overload sync_feature_view(request, options = nil)
|
|
1213
|
+
# Pass arguments to `sync_feature_view` via a request object, either of type
|
|
1214
|
+
# {::Google::Cloud::AIPlatform::V1::SyncFeatureViewRequest} or an equivalent Hash.
|
|
1215
|
+
#
|
|
1216
|
+
# @param request [::Google::Cloud::AIPlatform::V1::SyncFeatureViewRequest, ::Hash]
|
|
1217
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1218
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1219
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1220
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1221
|
+
#
|
|
1222
|
+
# @overload sync_feature_view(feature_view: nil)
|
|
1223
|
+
# Pass arguments to `sync_feature_view` via keyword arguments. Note that at
|
|
1224
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1225
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1226
|
+
#
|
|
1227
|
+
# @param feature_view [::String]
|
|
1228
|
+
# Required. Format:
|
|
1229
|
+
# `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
|
|
1230
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1231
|
+
# @yieldparam result [::Google::Cloud::AIPlatform::V1::SyncFeatureViewResponse]
|
|
1232
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1233
|
+
#
|
|
1234
|
+
# @return [::Google::Cloud::AIPlatform::V1::SyncFeatureViewResponse]
|
|
1235
|
+
#
|
|
1236
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1237
|
+
#
|
|
1238
|
+
# @example Basic example
|
|
1239
|
+
# require "google/cloud/ai_platform/v1"
|
|
1240
|
+
#
|
|
1241
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1242
|
+
# client = Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Client.new
|
|
1243
|
+
#
|
|
1244
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1245
|
+
# request = Google::Cloud::AIPlatform::V1::SyncFeatureViewRequest.new
|
|
1246
|
+
#
|
|
1247
|
+
# # Call the sync_feature_view method.
|
|
1248
|
+
# result = client.sync_feature_view request
|
|
1249
|
+
#
|
|
1250
|
+
# # The returned object is of type Google::Cloud::AIPlatform::V1::SyncFeatureViewResponse.
|
|
1251
|
+
# p result
|
|
1252
|
+
#
|
|
1253
|
+
def sync_feature_view request, options = nil
|
|
1254
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1255
|
+
|
|
1256
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::SyncFeatureViewRequest
|
|
1257
|
+
|
|
1258
|
+
# Converts hash and nil to an options object
|
|
1259
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1260
|
+
|
|
1261
|
+
# Customize the options with defaults
|
|
1262
|
+
call_metadata = @config.rpcs.sync_feature_view.metadata.to_h
|
|
1263
|
+
|
|
1264
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1265
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1266
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1267
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
|
|
1268
|
+
transports_version_send: [:rest]
|
|
1269
|
+
|
|
1270
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1271
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1272
|
+
|
|
1273
|
+
options.apply_defaults timeout: @config.rpcs.sync_feature_view.timeout,
|
|
1274
|
+
metadata: call_metadata,
|
|
1275
|
+
retry_policy: @config.rpcs.sync_feature_view.retry_policy
|
|
1276
|
+
|
|
1277
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1278
|
+
metadata: @config.metadata,
|
|
1279
|
+
retry_policy: @config.retry_policy
|
|
1280
|
+
|
|
1281
|
+
@feature_online_store_admin_service_stub.sync_feature_view request, options do |result, operation|
|
|
1282
|
+
yield result, operation if block_given?
|
|
1283
|
+
return result
|
|
1284
|
+
end
|
|
1285
|
+
rescue ::Gapic::Rest::Error => e
|
|
1286
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1287
|
+
end
|
|
1288
|
+
|
|
1289
|
+
##
|
|
1290
|
+
# Gets details of a single FeatureViewSync.
|
|
1291
|
+
#
|
|
1292
|
+
# @overload get_feature_view_sync(request, options = nil)
|
|
1293
|
+
# Pass arguments to `get_feature_view_sync` via a request object, either of type
|
|
1294
|
+
# {::Google::Cloud::AIPlatform::V1::GetFeatureViewSyncRequest} or an equivalent Hash.
|
|
1295
|
+
#
|
|
1296
|
+
# @param request [::Google::Cloud::AIPlatform::V1::GetFeatureViewSyncRequest, ::Hash]
|
|
1297
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1298
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1299
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1300
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1301
|
+
#
|
|
1302
|
+
# @overload get_feature_view_sync(name: nil)
|
|
1303
|
+
# Pass arguments to `get_feature_view_sync` via keyword arguments. Note that at
|
|
1304
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1305
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1306
|
+
#
|
|
1307
|
+
# @param name [::String]
|
|
1308
|
+
# Required. The name of the FeatureViewSync resource.
|
|
1309
|
+
# Format:
|
|
1310
|
+
# `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}`
|
|
1311
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1312
|
+
# @yieldparam result [::Google::Cloud::Aiplatform::V1::FeatureViewSync]
|
|
1313
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1314
|
+
#
|
|
1315
|
+
# @return [::Google::Cloud::Aiplatform::V1::FeatureViewSync]
|
|
1316
|
+
#
|
|
1317
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1318
|
+
#
|
|
1319
|
+
# @example Basic example
|
|
1320
|
+
# require "google/cloud/ai_platform/v1"
|
|
1321
|
+
#
|
|
1322
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1323
|
+
# client = Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Client.new
|
|
1324
|
+
#
|
|
1325
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1326
|
+
# request = Google::Cloud::AIPlatform::V1::GetFeatureViewSyncRequest.new
|
|
1327
|
+
#
|
|
1328
|
+
# # Call the get_feature_view_sync method.
|
|
1329
|
+
# result = client.get_feature_view_sync request
|
|
1330
|
+
#
|
|
1331
|
+
# # The returned object is of type Google::Cloud::Aiplatform::V1::FeatureViewSync.
|
|
1332
|
+
# p result
|
|
1333
|
+
#
|
|
1334
|
+
def get_feature_view_sync request, options = nil
|
|
1335
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1336
|
+
|
|
1337
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::GetFeatureViewSyncRequest
|
|
1338
|
+
|
|
1339
|
+
# Converts hash and nil to an options object
|
|
1340
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1341
|
+
|
|
1342
|
+
# Customize the options with defaults
|
|
1343
|
+
call_metadata = @config.rpcs.get_feature_view_sync.metadata.to_h
|
|
1344
|
+
|
|
1345
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1346
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1347
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1348
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
|
|
1349
|
+
transports_version_send: [:rest]
|
|
1350
|
+
|
|
1351
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1352
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1353
|
+
|
|
1354
|
+
options.apply_defaults timeout: @config.rpcs.get_feature_view_sync.timeout,
|
|
1355
|
+
metadata: call_metadata,
|
|
1356
|
+
retry_policy: @config.rpcs.get_feature_view_sync.retry_policy
|
|
1357
|
+
|
|
1358
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1359
|
+
metadata: @config.metadata,
|
|
1360
|
+
retry_policy: @config.retry_policy
|
|
1361
|
+
|
|
1362
|
+
@feature_online_store_admin_service_stub.get_feature_view_sync request, options do |result, operation|
|
|
1363
|
+
yield result, operation if block_given?
|
|
1364
|
+
return result
|
|
1365
|
+
end
|
|
1366
|
+
rescue ::Gapic::Rest::Error => e
|
|
1367
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1368
|
+
end
|
|
1369
|
+
|
|
1370
|
+
##
|
|
1371
|
+
# Lists FeatureViewSyncs in a given FeatureView.
|
|
1372
|
+
#
|
|
1373
|
+
# @overload list_feature_view_syncs(request, options = nil)
|
|
1374
|
+
# Pass arguments to `list_feature_view_syncs` via a request object, either of type
|
|
1375
|
+
# {::Google::Cloud::AIPlatform::V1::ListFeatureViewSyncsRequest} or an equivalent Hash.
|
|
1376
|
+
#
|
|
1377
|
+
# @param request [::Google::Cloud::AIPlatform::V1::ListFeatureViewSyncsRequest, ::Hash]
|
|
1378
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1379
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1380
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1381
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1382
|
+
#
|
|
1383
|
+
# @overload list_feature_view_syncs(parent: nil, filter: nil, page_size: nil, page_token: nil, order_by: nil)
|
|
1384
|
+
# Pass arguments to `list_feature_view_syncs` via keyword arguments. Note that at
|
|
1385
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1386
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1387
|
+
#
|
|
1388
|
+
# @param parent [::String]
|
|
1389
|
+
# Required. The resource name of the FeatureView to list FeatureViewSyncs.
|
|
1390
|
+
# Format:
|
|
1391
|
+
# `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
|
|
1392
|
+
# @param filter [::String]
|
|
1393
|
+
# Lists the FeatureViewSyncs that match the filter expression. The following
|
|
1394
|
+
# filters are supported:
|
|
1395
|
+
#
|
|
1396
|
+
# * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons.
|
|
1397
|
+
# Values must be in RFC 3339 format.
|
|
1398
|
+
#
|
|
1399
|
+
# Examples:
|
|
1400
|
+
#
|
|
1401
|
+
# * `create_time > \"2020-01-31T15:30:00.000000Z\"` --> FeatureViewSyncs
|
|
1402
|
+
# created after 2020-01-31T15:30:00.000000Z.
|
|
1403
|
+
# @param page_size [::Integer]
|
|
1404
|
+
# The maximum number of FeatureViewSyncs to return. The service may return
|
|
1405
|
+
# fewer than this value. If unspecified, at most 1000 FeatureViewSyncs will
|
|
1406
|
+
# be returned. The maximum value is 1000; any value greater than 1000 will be
|
|
1407
|
+
# coerced to 1000.
|
|
1408
|
+
# @param page_token [::String]
|
|
1409
|
+
# A page token, received from a previous
|
|
1410
|
+
# {::Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Client#list_feature_view_syncs FeatureOnlineStoreAdminService.ListFeatureViewSyncs}
|
|
1411
|
+
# call. Provide this to retrieve the subsequent page.
|
|
1412
|
+
#
|
|
1413
|
+
# When paginating, all other parameters provided to
|
|
1414
|
+
# {::Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Client#list_feature_view_syncs FeatureOnlineStoreAdminService.ListFeatureViewSyncs}
|
|
1415
|
+
# must match the call that provided the page token.
|
|
1416
|
+
# @param order_by [::String]
|
|
1417
|
+
# A comma-separated list of fields to order by, sorted in ascending order.
|
|
1418
|
+
# Use "desc" after a field name for descending.
|
|
1419
|
+
#
|
|
1420
|
+
# Supported fields:
|
|
1421
|
+
#
|
|
1422
|
+
# * `create_time`
|
|
1423
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1424
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Aiplatform::V1::FeatureViewSync>]
|
|
1425
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1426
|
+
#
|
|
1427
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Aiplatform::V1::FeatureViewSync>]
|
|
1428
|
+
#
|
|
1429
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1430
|
+
#
|
|
1431
|
+
# @example Basic example
|
|
1432
|
+
# require "google/cloud/ai_platform/v1"
|
|
1433
|
+
#
|
|
1434
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1435
|
+
# client = Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Client.new
|
|
1436
|
+
#
|
|
1437
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1438
|
+
# request = Google::Cloud::AIPlatform::V1::ListFeatureViewSyncsRequest.new
|
|
1439
|
+
#
|
|
1440
|
+
# # Call the list_feature_view_syncs method.
|
|
1441
|
+
# result = client.list_feature_view_syncs request
|
|
1442
|
+
#
|
|
1443
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
1444
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
1445
|
+
# result.each do |item|
|
|
1446
|
+
# # Each element is of type ::Google::Cloud::Aiplatform::V1::FeatureViewSync.
|
|
1447
|
+
# p item
|
|
1448
|
+
# end
|
|
1449
|
+
#
|
|
1450
|
+
def list_feature_view_syncs request, options = nil
|
|
1451
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1452
|
+
|
|
1453
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ListFeatureViewSyncsRequest
|
|
1454
|
+
|
|
1455
|
+
# Converts hash and nil to an options object
|
|
1456
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1457
|
+
|
|
1458
|
+
# Customize the options with defaults
|
|
1459
|
+
call_metadata = @config.rpcs.list_feature_view_syncs.metadata.to_h
|
|
1460
|
+
|
|
1461
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1462
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1463
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1464
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
|
|
1465
|
+
transports_version_send: [:rest]
|
|
1466
|
+
|
|
1467
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1468
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1469
|
+
|
|
1470
|
+
options.apply_defaults timeout: @config.rpcs.list_feature_view_syncs.timeout,
|
|
1471
|
+
metadata: call_metadata,
|
|
1472
|
+
retry_policy: @config.rpcs.list_feature_view_syncs.retry_policy
|
|
1473
|
+
|
|
1474
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1475
|
+
metadata: @config.metadata,
|
|
1476
|
+
retry_policy: @config.retry_policy
|
|
1477
|
+
|
|
1478
|
+
@feature_online_store_admin_service_stub.list_feature_view_syncs request, options do |result, operation|
|
|
1479
|
+
result = ::Gapic::Rest::PagedEnumerable.new @feature_online_store_admin_service_stub, :list_feature_view_syncs, "feature_view_syncs", request, result, options
|
|
1480
|
+
yield result, operation if block_given?
|
|
1481
|
+
return result
|
|
1482
|
+
end
|
|
1483
|
+
rescue ::Gapic::Rest::Error => e
|
|
1484
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1485
|
+
end
|
|
1486
|
+
|
|
1487
|
+
##
|
|
1488
|
+
# Configuration class for the FeatureOnlineStoreAdminService REST API.
|
|
1489
|
+
#
|
|
1490
|
+
# This class represents the configuration for FeatureOnlineStoreAdminService REST,
|
|
1491
|
+
# providing control over timeouts, retry behavior, logging, transport
|
|
1492
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
|
1493
|
+
# applied individually to specific RPCs. See
|
|
1494
|
+
# {::Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Client::Configuration::Rpcs}
|
|
1495
|
+
# for a list of RPCs that can be configured independently.
|
|
1496
|
+
#
|
|
1497
|
+
# Configuration can be applied globally to all clients, or to a single client
|
|
1498
|
+
# on construction.
|
|
1499
|
+
#
|
|
1500
|
+
# @example
|
|
1501
|
+
#
|
|
1502
|
+
# # Modify the global config, setting the timeout for
|
|
1503
|
+
# # create_feature_online_store to 20 seconds,
|
|
1504
|
+
# # and all remaining timeouts to 10 seconds.
|
|
1505
|
+
# ::Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Client.configure do |config|
|
|
1506
|
+
# config.timeout = 10.0
|
|
1507
|
+
# config.rpcs.create_feature_online_store.timeout = 20.0
|
|
1508
|
+
# end
|
|
1509
|
+
#
|
|
1510
|
+
# # Apply the above configuration only to a new client.
|
|
1511
|
+
# client = ::Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Rest::Client.new do |config|
|
|
1512
|
+
# config.timeout = 10.0
|
|
1513
|
+
# config.rpcs.create_feature_online_store.timeout = 20.0
|
|
1514
|
+
# end
|
|
1515
|
+
#
|
|
1516
|
+
# @!attribute [rw] endpoint
|
|
1517
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
|
1518
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
|
1519
|
+
# @return [::String,nil]
|
|
1520
|
+
# @!attribute [rw] credentials
|
|
1521
|
+
# Credentials to send with calls. You may provide any of the following types:
|
|
1522
|
+
# * (`String`) The path to a service account key file in JSON format
|
|
1523
|
+
# * (`Hash`) A service account key as a Hash
|
|
1524
|
+
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
1525
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
1526
|
+
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
1527
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
1528
|
+
# * (`nil`) indicating no credentials
|
|
1529
|
+
# @return [::Object]
|
|
1530
|
+
# @!attribute [rw] scope
|
|
1531
|
+
# The OAuth scopes
|
|
1532
|
+
# @return [::Array<::String>]
|
|
1533
|
+
# @!attribute [rw] lib_name
|
|
1534
|
+
# The library name as recorded in instrumentation and logging
|
|
1535
|
+
# @return [::String]
|
|
1536
|
+
# @!attribute [rw] lib_version
|
|
1537
|
+
# The library version as recorded in instrumentation and logging
|
|
1538
|
+
# @return [::String]
|
|
1539
|
+
# @!attribute [rw] timeout
|
|
1540
|
+
# The call timeout in seconds.
|
|
1541
|
+
# @return [::Numeric]
|
|
1542
|
+
# @!attribute [rw] metadata
|
|
1543
|
+
# Additional headers to be sent with the call.
|
|
1544
|
+
# @return [::Hash{::Symbol=>::String}]
|
|
1545
|
+
# @!attribute [rw] retry_policy
|
|
1546
|
+
# The retry policy. The value is a hash with the following keys:
|
|
1547
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
1548
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
1549
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1550
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
1551
|
+
# trigger a retry.
|
|
1552
|
+
# @return [::Hash]
|
|
1553
|
+
# @!attribute [rw] quota_project
|
|
1554
|
+
# A separate project against which to charge quota.
|
|
1555
|
+
# @return [::String]
|
|
1556
|
+
# @!attribute [rw] universe_domain
|
|
1557
|
+
# The universe domain within which to make requests. This determines the
|
|
1558
|
+
# default endpoint URL. The default value of nil uses the environment
|
|
1559
|
+
# universe (usually the default "googleapis.com" universe).
|
|
1560
|
+
# @return [::String,nil]
|
|
1561
|
+
#
|
|
1562
|
+
class Configuration
|
|
1563
|
+
extend ::Gapic::Config
|
|
1564
|
+
|
|
1565
|
+
# @private
|
|
1566
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
|
1567
|
+
DEFAULT_ENDPOINT = "aiplatform.googleapis.com"
|
|
1568
|
+
|
|
1569
|
+
config_attr :endpoint, nil, ::String, nil
|
|
1570
|
+
config_attr :credentials, nil do |value|
|
|
1571
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
1572
|
+
allowed.any? { |klass| klass === value }
|
|
1573
|
+
end
|
|
1574
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
|
1575
|
+
config_attr :lib_name, nil, ::String, nil
|
|
1576
|
+
config_attr :lib_version, nil, ::String, nil
|
|
1577
|
+
config_attr :timeout, nil, ::Numeric, nil
|
|
1578
|
+
config_attr :metadata, nil, ::Hash, nil
|
|
1579
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
1580
|
+
config_attr :quota_project, nil, ::String, nil
|
|
1581
|
+
config_attr :universe_domain, nil, ::String, nil
|
|
1582
|
+
|
|
1583
|
+
# @private
|
|
1584
|
+
# Overrides for http bindings for the RPCs of this service
|
|
1585
|
+
# are only used when this service is used as mixin, and only
|
|
1586
|
+
# by the host service.
|
|
1587
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
|
1588
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
|
1589
|
+
|
|
1590
|
+
# @private
|
|
1591
|
+
def initialize parent_config = nil
|
|
1592
|
+
@parent_config = parent_config unless parent_config.nil?
|
|
1593
|
+
|
|
1594
|
+
yield self if block_given?
|
|
1595
|
+
end
|
|
1596
|
+
|
|
1597
|
+
##
|
|
1598
|
+
# Configurations for individual RPCs
|
|
1599
|
+
# @return [Rpcs]
|
|
1600
|
+
#
|
|
1601
|
+
def rpcs
|
|
1602
|
+
@rpcs ||= begin
|
|
1603
|
+
parent_rpcs = nil
|
|
1604
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
|
1605
|
+
Rpcs.new parent_rpcs
|
|
1606
|
+
end
|
|
1607
|
+
end
|
|
1608
|
+
|
|
1609
|
+
##
|
|
1610
|
+
# Configuration RPC class for the FeatureOnlineStoreAdminService API.
|
|
1611
|
+
#
|
|
1612
|
+
# Includes fields providing the configuration for each RPC in this service.
|
|
1613
|
+
# Each configuration object is of type `Gapic::Config::Method` and includes
|
|
1614
|
+
# the following configuration fields:
|
|
1615
|
+
#
|
|
1616
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
|
1617
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
|
|
1618
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
|
1619
|
+
# include the following keys:
|
|
1620
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
1621
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
1622
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1623
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
1624
|
+
# trigger a retry.
|
|
1625
|
+
#
|
|
1626
|
+
class Rpcs
|
|
1627
|
+
##
|
|
1628
|
+
# RPC-specific configuration for `create_feature_online_store`
|
|
1629
|
+
# @return [::Gapic::Config::Method]
|
|
1630
|
+
#
|
|
1631
|
+
attr_reader :create_feature_online_store
|
|
1632
|
+
##
|
|
1633
|
+
# RPC-specific configuration for `get_feature_online_store`
|
|
1634
|
+
# @return [::Gapic::Config::Method]
|
|
1635
|
+
#
|
|
1636
|
+
attr_reader :get_feature_online_store
|
|
1637
|
+
##
|
|
1638
|
+
# RPC-specific configuration for `list_feature_online_stores`
|
|
1639
|
+
# @return [::Gapic::Config::Method]
|
|
1640
|
+
#
|
|
1641
|
+
attr_reader :list_feature_online_stores
|
|
1642
|
+
##
|
|
1643
|
+
# RPC-specific configuration for `update_feature_online_store`
|
|
1644
|
+
# @return [::Gapic::Config::Method]
|
|
1645
|
+
#
|
|
1646
|
+
attr_reader :update_feature_online_store
|
|
1647
|
+
##
|
|
1648
|
+
# RPC-specific configuration for `delete_feature_online_store`
|
|
1649
|
+
# @return [::Gapic::Config::Method]
|
|
1650
|
+
#
|
|
1651
|
+
attr_reader :delete_feature_online_store
|
|
1652
|
+
##
|
|
1653
|
+
# RPC-specific configuration for `create_feature_view`
|
|
1654
|
+
# @return [::Gapic::Config::Method]
|
|
1655
|
+
#
|
|
1656
|
+
attr_reader :create_feature_view
|
|
1657
|
+
##
|
|
1658
|
+
# RPC-specific configuration for `get_feature_view`
|
|
1659
|
+
# @return [::Gapic::Config::Method]
|
|
1660
|
+
#
|
|
1661
|
+
attr_reader :get_feature_view
|
|
1662
|
+
##
|
|
1663
|
+
# RPC-specific configuration for `list_feature_views`
|
|
1664
|
+
# @return [::Gapic::Config::Method]
|
|
1665
|
+
#
|
|
1666
|
+
attr_reader :list_feature_views
|
|
1667
|
+
##
|
|
1668
|
+
# RPC-specific configuration for `update_feature_view`
|
|
1669
|
+
# @return [::Gapic::Config::Method]
|
|
1670
|
+
#
|
|
1671
|
+
attr_reader :update_feature_view
|
|
1672
|
+
##
|
|
1673
|
+
# RPC-specific configuration for `delete_feature_view`
|
|
1674
|
+
# @return [::Gapic::Config::Method]
|
|
1675
|
+
#
|
|
1676
|
+
attr_reader :delete_feature_view
|
|
1677
|
+
##
|
|
1678
|
+
# RPC-specific configuration for `sync_feature_view`
|
|
1679
|
+
# @return [::Gapic::Config::Method]
|
|
1680
|
+
#
|
|
1681
|
+
attr_reader :sync_feature_view
|
|
1682
|
+
##
|
|
1683
|
+
# RPC-specific configuration for `get_feature_view_sync`
|
|
1684
|
+
# @return [::Gapic::Config::Method]
|
|
1685
|
+
#
|
|
1686
|
+
attr_reader :get_feature_view_sync
|
|
1687
|
+
##
|
|
1688
|
+
# RPC-specific configuration for `list_feature_view_syncs`
|
|
1689
|
+
# @return [::Gapic::Config::Method]
|
|
1690
|
+
#
|
|
1691
|
+
attr_reader :list_feature_view_syncs
|
|
1692
|
+
|
|
1693
|
+
# @private
|
|
1694
|
+
def initialize parent_rpcs = nil
|
|
1695
|
+
create_feature_online_store_config = parent_rpcs.create_feature_online_store if parent_rpcs.respond_to? :create_feature_online_store
|
|
1696
|
+
@create_feature_online_store = ::Gapic::Config::Method.new create_feature_online_store_config
|
|
1697
|
+
get_feature_online_store_config = parent_rpcs.get_feature_online_store if parent_rpcs.respond_to? :get_feature_online_store
|
|
1698
|
+
@get_feature_online_store = ::Gapic::Config::Method.new get_feature_online_store_config
|
|
1699
|
+
list_feature_online_stores_config = parent_rpcs.list_feature_online_stores if parent_rpcs.respond_to? :list_feature_online_stores
|
|
1700
|
+
@list_feature_online_stores = ::Gapic::Config::Method.new list_feature_online_stores_config
|
|
1701
|
+
update_feature_online_store_config = parent_rpcs.update_feature_online_store if parent_rpcs.respond_to? :update_feature_online_store
|
|
1702
|
+
@update_feature_online_store = ::Gapic::Config::Method.new update_feature_online_store_config
|
|
1703
|
+
delete_feature_online_store_config = parent_rpcs.delete_feature_online_store if parent_rpcs.respond_to? :delete_feature_online_store
|
|
1704
|
+
@delete_feature_online_store = ::Gapic::Config::Method.new delete_feature_online_store_config
|
|
1705
|
+
create_feature_view_config = parent_rpcs.create_feature_view if parent_rpcs.respond_to? :create_feature_view
|
|
1706
|
+
@create_feature_view = ::Gapic::Config::Method.new create_feature_view_config
|
|
1707
|
+
get_feature_view_config = parent_rpcs.get_feature_view if parent_rpcs.respond_to? :get_feature_view
|
|
1708
|
+
@get_feature_view = ::Gapic::Config::Method.new get_feature_view_config
|
|
1709
|
+
list_feature_views_config = parent_rpcs.list_feature_views if parent_rpcs.respond_to? :list_feature_views
|
|
1710
|
+
@list_feature_views = ::Gapic::Config::Method.new list_feature_views_config
|
|
1711
|
+
update_feature_view_config = parent_rpcs.update_feature_view if parent_rpcs.respond_to? :update_feature_view
|
|
1712
|
+
@update_feature_view = ::Gapic::Config::Method.new update_feature_view_config
|
|
1713
|
+
delete_feature_view_config = parent_rpcs.delete_feature_view if parent_rpcs.respond_to? :delete_feature_view
|
|
1714
|
+
@delete_feature_view = ::Gapic::Config::Method.new delete_feature_view_config
|
|
1715
|
+
sync_feature_view_config = parent_rpcs.sync_feature_view if parent_rpcs.respond_to? :sync_feature_view
|
|
1716
|
+
@sync_feature_view = ::Gapic::Config::Method.new sync_feature_view_config
|
|
1717
|
+
get_feature_view_sync_config = parent_rpcs.get_feature_view_sync if parent_rpcs.respond_to? :get_feature_view_sync
|
|
1718
|
+
@get_feature_view_sync = ::Gapic::Config::Method.new get_feature_view_sync_config
|
|
1719
|
+
list_feature_view_syncs_config = parent_rpcs.list_feature_view_syncs if parent_rpcs.respond_to? :list_feature_view_syncs
|
|
1720
|
+
@list_feature_view_syncs = ::Gapic::Config::Method.new list_feature_view_syncs_config
|
|
1721
|
+
|
|
1722
|
+
yield self if block_given?
|
|
1723
|
+
end
|
|
1724
|
+
end
|
|
1725
|
+
end
|
|
1726
|
+
end
|
|
1727
|
+
end
|
|
1728
|
+
end
|
|
1729
|
+
end
|
|
1730
|
+
end
|
|
1731
|
+
end
|
|
1732
|
+
end
|