google-cloud-ai_platform-v1 0.35.0 → 0.37.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +72 -99
- data/README.md +1 -1
- data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +43 -17
- data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/client.rb +896 -0
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/operations.rb +809 -0
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/paths.rb +83 -0
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service.rb +50 -0
- data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +43 -17
- data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1/endpoint_service/paths.rb +19 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/client.rb +46 -18
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1/feature_online_store_service/client.rb +146 -17
- data/lib/google/cloud/ai_platform/v1/feature_online_store_service.rb +2 -0
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/client.rb +44 -18
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +42 -17
- data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +44 -18
- data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +43 -17
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1/index_service/client.rb +52 -18
- data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1/job_service/client.rb +43 -17
- data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1/llm_utility_service/client.rb +49 -18
- data/lib/google/cloud/ai_platform/v1/match_service/client.rb +42 -17
- data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +43 -17
- data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +43 -17
- data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1/model_garden_service/client.rb +42 -17
- data/lib/google/cloud/ai_platform/v1/model_service/client.rb +47 -21
- data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +43 -17
- data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +544 -20
- data/lib/google/cloud/ai_platform/v1/schedule_service/client.rb +43 -17
- data/lib/google/cloud/ai_platform/v1/schedule_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +43 -17
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +43 -17
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
- data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +43 -17
- data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/annotation_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/annotation_spec_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/artifact_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/batch_prediction_job_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/completion_stats_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/content_pb.rb +64 -0
- data/lib/google/cloud/aiplatform/v1/context_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/custom_job_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/data_item_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/data_labeling_job_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/dataset_pb.rb +4 -2
- data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +4 -2
- data/lib/google/cloud/aiplatform/v1/dataset_version_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/deployed_index_ref_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/deployed_model_ref_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/deployment_resource_pool_pb.rb +49 -0
- data/lib/google/cloud/aiplatform/v1/deployment_resource_pool_service_pb.rb +65 -0
- data/lib/google/cloud/aiplatform/v1/deployment_resource_pool_service_services_pb.rb +53 -0
- data/lib/google/cloud/aiplatform/v1/encryption_spec_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/endpoint_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/endpoint_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/entity_type_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/env_var_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/evaluated_annotation_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/event_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/execution_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/explanation_metadata_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/explanation_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/feature_group_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/feature_monitoring_stats_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/feature_online_store_admin_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/feature_online_store_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/feature_online_store_service_pb.rb +11 -2
- data/lib/google/cloud/aiplatform/v1/feature_online_store_service_services_pb.rb +5 -0
- data/lib/google/cloud/aiplatform/v1/feature_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/feature_registry_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/feature_selector_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/feature_view_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/feature_view_sync_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/featurestore_monitoring_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/featurestore_online_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/featurestore_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/featurestore_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/hyperparameter_tuning_job_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/index_endpoint_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/index_endpoint_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/index_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/index_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/io_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/job_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/job_state_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/lineage_subgraph_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/llm_utility_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/machine_resources_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/manual_batch_tuning_parameters_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/match_service_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/metadata_schema_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/metadata_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/metadata_store_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/migratable_resource_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/migration_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/model_deployment_monitoring_job_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/model_evaluation_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/model_evaluation_slice_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/model_garden_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/model_monitoring_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/model_pb.rb +3 -2
- data/lib/google/cloud/aiplatform/v1/model_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/nas_job_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/openapi_pb.rb +47 -0
- data/lib/google/cloud/aiplatform/v1/operation_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/pipeline_failure_policy_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/pipeline_job_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/pipeline_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/pipeline_state_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +16 -2
- data/lib/google/cloud/aiplatform/v1/prediction_service_services_pb.rb +16 -3
- data/lib/google/cloud/aiplatform/v1/publisher_model_pb.rb +6 -2
- data/lib/google/cloud/aiplatform/v1/saved_query_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/schedule_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/schedule_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/service_networking_pb.rb +4 -2
- data/lib/google/cloud/aiplatform/v1/specialist_pool_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/specialist_pool_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/study_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/tensorboard_data_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/tensorboard_experiment_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/tensorboard_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/tensorboard_run_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/tensorboard_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/tensorboard_time_series_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/tool_pb.rb +51 -0
- data/lib/google/cloud/aiplatform/v1/training_pipeline_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/types_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/unmanaged_container_model_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/user_action_reference_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/value_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/vizier_service_pb.rb +2 -2
- data/proto_docs/google/api/client.rb +1 -0
- data/proto_docs/google/cloud/aiplatform/v1/batch_prediction_job.rb +2 -2
- data/proto_docs/google/cloud/aiplatform/v1/content.rb +312 -0
- data/proto_docs/google/cloud/aiplatform/v1/custom_job.rb +15 -0
- data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +102 -0
- data/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb +12 -1
- data/proto_docs/google/cloud/aiplatform/v1/deployed_index_ref.rb +3 -0
- data/proto_docs/google/cloud/aiplatform/v1/deployment_resource_pool.rb +45 -0
- data/proto_docs/google/cloud/aiplatform/v1/deployment_resource_pool_service.rb +170 -0
- data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +6 -0
- data/proto_docs/google/cloud/aiplatform/v1/explanation.rb +8 -0
- data/proto_docs/google/cloud/aiplatform/v1/feature.rb +5 -1
- data/proto_docs/google/cloud/aiplatform/v1/feature_group.rb +2 -2
- data/proto_docs/google/cloud/aiplatform/v1/feature_online_store.rb +2 -2
- data/proto_docs/google/cloud/aiplatform/v1/feature_online_store_admin_service.rb +3 -1
- data/proto_docs/google/cloud/aiplatform/v1/feature_online_store_service.rb +150 -0
- data/proto_docs/google/cloud/aiplatform/v1/feature_view.rb +3 -2
- data/proto_docs/google/cloud/aiplatform/v1/feature_view_sync.rb +2 -2
- data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/index_endpoint.rb +5 -0
- data/proto_docs/google/cloud/aiplatform/v1/index_service.rb +28 -0
- data/proto_docs/google/cloud/aiplatform/v1/metadata_service.rb +1 -0
- data/proto_docs/google/cloud/aiplatform/v1/model.rb +55 -4
- data/proto_docs/google/cloud/aiplatform/v1/model_deployment_monitoring_job.rb +4 -0
- data/proto_docs/google/cloud/aiplatform/v1/model_evaluation.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/model_monitoring.rb +1 -0
- data/proto_docs/google/cloud/aiplatform/v1/model_service.rb +4 -4
- data/proto_docs/google/cloud/aiplatform/v1/nas_job.rb +1 -0
- data/proto_docs/google/cloud/aiplatform/v1/openapi.rb +102 -0
- data/proto_docs/google/cloud/aiplatform/v1/pipeline_job.rb +1 -0
- data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +195 -0
- data/proto_docs/google/cloud/aiplatform/v1/publisher_model.rb +73 -1
- data/proto_docs/google/cloud/aiplatform/v1/service_networking.rb +16 -0
- data/proto_docs/google/cloud/aiplatform/v1/tool.rb +112 -0
- data/proto_docs/google/protobuf/any.rb +2 -1
- data/proto_docs/google/type/date.rb +53 -0
- metadata +27 -122
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# The service that handles CRUD and List for resources for Featurestore.
|
33
33
|
#
|
34
34
|
class Client
|
35
|
+
# @private
|
36
|
+
DEFAULT_ENDPOINT_TEMPLATE = "aiplatform.$UNIVERSE_DOMAIN$"
|
37
|
+
|
35
38
|
include Paths
|
36
39
|
|
37
40
|
# @private
|
@@ -92,6 +95,15 @@ module Google
|
|
92
95
|
@config
|
93
96
|
end
|
94
97
|
|
98
|
+
##
|
99
|
+
# The effective universe domain
|
100
|
+
#
|
101
|
+
# @return [String]
|
102
|
+
#
|
103
|
+
def universe_domain
|
104
|
+
@featurestore_service_stub.universe_domain
|
105
|
+
end
|
106
|
+
|
95
107
|
##
|
96
108
|
# Create a new FeaturestoreService client object.
|
97
109
|
#
|
@@ -125,8 +137,9 @@ module Google
|
|
125
137
|
credentials = @config.credentials
|
126
138
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
127
139
|
# but only if the default endpoint does not have a region prefix.
|
128
|
-
enable_self_signed_jwt = @config.endpoint
|
129
|
-
|
140
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
141
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
142
|
+
!@config.endpoint.split(".").first.include?("-"))
|
130
143
|
credentials ||= Credentials.default scope: @config.scope,
|
131
144
|
enable_self_signed_jwt: enable_self_signed_jwt
|
132
145
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
@@ -139,28 +152,33 @@ module Google
|
|
139
152
|
config.credentials = credentials
|
140
153
|
config.quota_project = @quota_project_id
|
141
154
|
config.endpoint = @config.endpoint
|
155
|
+
config.universe_domain = @config.universe_domain
|
142
156
|
end
|
143
157
|
|
158
|
+
@featurestore_service_stub = ::Gapic::ServiceStub.new(
|
159
|
+
::Google::Cloud::AIPlatform::V1::FeaturestoreService::Stub,
|
160
|
+
credentials: credentials,
|
161
|
+
endpoint: @config.endpoint,
|
162
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
163
|
+
universe_domain: @config.universe_domain,
|
164
|
+
channel_args: @config.channel_args,
|
165
|
+
interceptors: @config.interceptors,
|
166
|
+
channel_pool_config: @config.channel_pool
|
167
|
+
)
|
168
|
+
|
144
169
|
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
145
170
|
config.credentials = credentials
|
146
171
|
config.quota_project = @quota_project_id
|
147
|
-
config.endpoint = @
|
172
|
+
config.endpoint = @featurestore_service_stub.endpoint
|
173
|
+
config.universe_domain = @featurestore_service_stub.universe_domain
|
148
174
|
end
|
149
175
|
|
150
176
|
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
151
177
|
config.credentials = credentials
|
152
178
|
config.quota_project = @quota_project_id
|
153
|
-
config.endpoint = @
|
179
|
+
config.endpoint = @featurestore_service_stub.endpoint
|
180
|
+
config.universe_domain = @featurestore_service_stub.universe_domain
|
154
181
|
end
|
155
|
-
|
156
|
-
@featurestore_service_stub = ::Gapic::ServiceStub.new(
|
157
|
-
::Google::Cloud::AIPlatform::V1::FeaturestoreService::Stub,
|
158
|
-
credentials: credentials,
|
159
|
-
endpoint: @config.endpoint,
|
160
|
-
channel_args: @config.channel_args,
|
161
|
-
interceptors: @config.interceptors,
|
162
|
-
channel_pool_config: @config.channel_pool
|
163
|
-
)
|
164
182
|
end
|
165
183
|
|
166
184
|
##
|
@@ -1611,7 +1629,7 @@ module Google
|
|
1611
1629
|
#
|
1612
1630
|
# When paginating, all other parameters provided to
|
1613
1631
|
# {::Google::Cloud::AIPlatform::V1::FeaturestoreService::Client#list_features FeaturestoreService.ListFeatures}
|
1614
|
-
# or
|
1632
|
+
# or
|
1615
1633
|
# {::Google::Cloud::AIPlatform::V1::FeatureRegistryService::Client#list_features FeatureRegistryService.ListFeatures}
|
1616
1634
|
# must match the call that provided the page token.
|
1617
1635
|
# @param order_by [::String]
|
@@ -2601,9 +2619,9 @@ module Google
|
|
2601
2619
|
# end
|
2602
2620
|
#
|
2603
2621
|
# @!attribute [rw] endpoint
|
2604
|
-
#
|
2605
|
-
#
|
2606
|
-
# @return [::String]
|
2622
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
2623
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
2624
|
+
# @return [::String,nil]
|
2607
2625
|
# @!attribute [rw] credentials
|
2608
2626
|
# Credentials to send with calls. You may provide any of the following types:
|
2609
2627
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -2649,13 +2667,20 @@ module Google
|
|
2649
2667
|
# @!attribute [rw] quota_project
|
2650
2668
|
# A separate project against which to charge quota.
|
2651
2669
|
# @return [::String]
|
2670
|
+
# @!attribute [rw] universe_domain
|
2671
|
+
# The universe domain within which to make requests. This determines the
|
2672
|
+
# default endpoint URL. The default value of nil uses the environment
|
2673
|
+
# universe (usually the default "googleapis.com" universe).
|
2674
|
+
# @return [::String,nil]
|
2652
2675
|
#
|
2653
2676
|
class Configuration
|
2654
2677
|
extend ::Gapic::Config
|
2655
2678
|
|
2679
|
+
# @private
|
2680
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
2656
2681
|
DEFAULT_ENDPOINT = "aiplatform.googleapis.com"
|
2657
2682
|
|
2658
|
-
config_attr :endpoint,
|
2683
|
+
config_attr :endpoint, nil, ::String, nil
|
2659
2684
|
config_attr :credentials, nil do |value|
|
2660
2685
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2661
2686
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -2670,6 +2695,7 @@ module Google
|
|
2670
2695
|
config_attr :metadata, nil, ::Hash, nil
|
2671
2696
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
2672
2697
|
config_attr :quota_project, nil, ::String, nil
|
2698
|
+
config_attr :universe_domain, nil, ::String, nil
|
2673
2699
|
|
2674
2700
|
# @private
|
2675
2701
|
def initialize parent_config = nil
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module FeaturestoreService
|
27
27
|
# Service that implements Longrunning Operations API.
|
28
28
|
class Operations
|
29
|
+
# @private
|
30
|
+
DEFAULT_ENDPOINT_TEMPLATE = "aiplatform.$UNIVERSE_DOMAIN$"
|
31
|
+
|
29
32
|
# @private
|
30
33
|
attr_reader :operations_stub
|
31
34
|
|
@@ -60,6 +63,15 @@ module Google
|
|
60
63
|
@config
|
61
64
|
end
|
62
65
|
|
66
|
+
##
|
67
|
+
# The effective universe domain
|
68
|
+
#
|
69
|
+
# @return [String]
|
70
|
+
#
|
71
|
+
def universe_domain
|
72
|
+
@operations_stub.universe_domain
|
73
|
+
end
|
74
|
+
|
63
75
|
##
|
64
76
|
# Create a new Operations client object.
|
65
77
|
#
|
@@ -90,8 +102,10 @@ module Google
|
|
90
102
|
|
91
103
|
@operations_stub = ::Gapic::ServiceStub.new(
|
92
104
|
::Google::Longrunning::Operations::Stub,
|
93
|
-
credentials:
|
94
|
-
endpoint:
|
105
|
+
credentials: credentials,
|
106
|
+
endpoint: @config.endpoint,
|
107
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
108
|
+
universe_domain: @config.universe_domain,
|
95
109
|
channel_args: @config.channel_args,
|
96
110
|
interceptors: @config.interceptors,
|
97
111
|
channel_pool_config: @config.channel_pool
|
@@ -621,9 +635,9 @@ module Google
|
|
621
635
|
# end
|
622
636
|
#
|
623
637
|
# @!attribute [rw] endpoint
|
624
|
-
#
|
625
|
-
#
|
626
|
-
# @return [::String]
|
638
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
639
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
640
|
+
# @return [::String,nil]
|
627
641
|
# @!attribute [rw] credentials
|
628
642
|
# Credentials to send with calls. You may provide any of the following types:
|
629
643
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -669,13 +683,20 @@ module Google
|
|
669
683
|
# @!attribute [rw] quota_project
|
670
684
|
# A separate project against which to charge quota.
|
671
685
|
# @return [::String]
|
686
|
+
# @!attribute [rw] universe_domain
|
687
|
+
# The universe domain within which to make requests. This determines the
|
688
|
+
# default endpoint URL. The default value of nil uses the environment
|
689
|
+
# universe (usually the default "googleapis.com" universe).
|
690
|
+
# @return [::String,nil]
|
672
691
|
#
|
673
692
|
class Configuration
|
674
693
|
extend ::Gapic::Config
|
675
694
|
|
695
|
+
# @private
|
696
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
676
697
|
DEFAULT_ENDPOINT = "aiplatform.googleapis.com"
|
677
698
|
|
678
|
-
config_attr :endpoint,
|
699
|
+
config_attr :endpoint, nil, ::String, nil
|
679
700
|
config_attr :credentials, nil do |value|
|
680
701
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
681
702
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -690,6 +711,7 @@ module Google
|
|
690
711
|
config_attr :metadata, nil, ::Hash, nil
|
691
712
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
692
713
|
config_attr :quota_project, nil, ::String, nil
|
714
|
+
config_attr :universe_domain, nil, ::String, nil
|
693
715
|
|
694
716
|
# @private
|
695
717
|
def initialize parent_config = nil
|
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# A service for managing Vertex AI's IndexEndpoints.
|
33
33
|
#
|
34
34
|
class Client
|
35
|
+
# @private
|
36
|
+
DEFAULT_ENDPOINT_TEMPLATE = "aiplatform.$UNIVERSE_DOMAIN$"
|
37
|
+
|
35
38
|
include Paths
|
36
39
|
|
37
40
|
# @private
|
@@ -92,6 +95,15 @@ module Google
|
|
92
95
|
@config
|
93
96
|
end
|
94
97
|
|
98
|
+
##
|
99
|
+
# The effective universe domain
|
100
|
+
#
|
101
|
+
# @return [String]
|
102
|
+
#
|
103
|
+
def universe_domain
|
104
|
+
@index_endpoint_service_stub.universe_domain
|
105
|
+
end
|
106
|
+
|
95
107
|
##
|
96
108
|
# Create a new IndexEndpointService client object.
|
97
109
|
#
|
@@ -125,8 +137,9 @@ module Google
|
|
125
137
|
credentials = @config.credentials
|
126
138
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
127
139
|
# but only if the default endpoint does not have a region prefix.
|
128
|
-
enable_self_signed_jwt = @config.endpoint
|
129
|
-
|
140
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
141
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
142
|
+
!@config.endpoint.split(".").first.include?("-"))
|
130
143
|
credentials ||= Credentials.default scope: @config.scope,
|
131
144
|
enable_self_signed_jwt: enable_self_signed_jwt
|
132
145
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
@@ -139,28 +152,33 @@ module Google
|
|
139
152
|
config.credentials = credentials
|
140
153
|
config.quota_project = @quota_project_id
|
141
154
|
config.endpoint = @config.endpoint
|
155
|
+
config.universe_domain = @config.universe_domain
|
142
156
|
end
|
143
157
|
|
158
|
+
@index_endpoint_service_stub = ::Gapic::ServiceStub.new(
|
159
|
+
::Google::Cloud::AIPlatform::V1::IndexEndpointService::Stub,
|
160
|
+
credentials: credentials,
|
161
|
+
endpoint: @config.endpoint,
|
162
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
163
|
+
universe_domain: @config.universe_domain,
|
164
|
+
channel_args: @config.channel_args,
|
165
|
+
interceptors: @config.interceptors,
|
166
|
+
channel_pool_config: @config.channel_pool
|
167
|
+
)
|
168
|
+
|
144
169
|
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
145
170
|
config.credentials = credentials
|
146
171
|
config.quota_project = @quota_project_id
|
147
|
-
config.endpoint = @
|
172
|
+
config.endpoint = @index_endpoint_service_stub.endpoint
|
173
|
+
config.universe_domain = @index_endpoint_service_stub.universe_domain
|
148
174
|
end
|
149
175
|
|
150
176
|
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
151
177
|
config.credentials = credentials
|
152
178
|
config.quota_project = @quota_project_id
|
153
|
-
config.endpoint = @
|
179
|
+
config.endpoint = @index_endpoint_service_stub.endpoint
|
180
|
+
config.universe_domain = @index_endpoint_service_stub.universe_domain
|
154
181
|
end
|
155
|
-
|
156
|
-
@index_endpoint_service_stub = ::Gapic::ServiceStub.new(
|
157
|
-
::Google::Cloud::AIPlatform::V1::IndexEndpointService::Stub,
|
158
|
-
credentials: credentials,
|
159
|
-
endpoint: @config.endpoint,
|
160
|
-
channel_args: @config.channel_args,
|
161
|
-
interceptors: @config.interceptors,
|
162
|
-
channel_pool_config: @config.channel_pool
|
163
|
-
)
|
164
182
|
end
|
165
183
|
|
166
184
|
##
|
@@ -1000,9 +1018,9 @@ module Google
|
|
1000
1018
|
# end
|
1001
1019
|
#
|
1002
1020
|
# @!attribute [rw] endpoint
|
1003
|
-
#
|
1004
|
-
#
|
1005
|
-
# @return [::String]
|
1021
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
1022
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
1023
|
+
# @return [::String,nil]
|
1006
1024
|
# @!attribute [rw] credentials
|
1007
1025
|
# Credentials to send with calls. You may provide any of the following types:
|
1008
1026
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -1048,13 +1066,20 @@ module Google
|
|
1048
1066
|
# @!attribute [rw] quota_project
|
1049
1067
|
# A separate project against which to charge quota.
|
1050
1068
|
# @return [::String]
|
1069
|
+
# @!attribute [rw] universe_domain
|
1070
|
+
# The universe domain within which to make requests. This determines the
|
1071
|
+
# default endpoint URL. The default value of nil uses the environment
|
1072
|
+
# universe (usually the default "googleapis.com" universe).
|
1073
|
+
# @return [::String,nil]
|
1051
1074
|
#
|
1052
1075
|
class Configuration
|
1053
1076
|
extend ::Gapic::Config
|
1054
1077
|
|
1078
|
+
# @private
|
1079
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
1055
1080
|
DEFAULT_ENDPOINT = "aiplatform.googleapis.com"
|
1056
1081
|
|
1057
|
-
config_attr :endpoint,
|
1082
|
+
config_attr :endpoint, nil, ::String, nil
|
1058
1083
|
config_attr :credentials, nil do |value|
|
1059
1084
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1060
1085
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -1069,6 +1094,7 @@ module Google
|
|
1069
1094
|
config_attr :metadata, nil, ::Hash, nil
|
1070
1095
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1071
1096
|
config_attr :quota_project, nil, ::String, nil
|
1097
|
+
config_attr :universe_domain, nil, ::String, nil
|
1072
1098
|
|
1073
1099
|
# @private
|
1074
1100
|
def initialize parent_config = nil
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module IndexEndpointService
|
27
27
|
# Service that implements Longrunning Operations API.
|
28
28
|
class Operations
|
29
|
+
# @private
|
30
|
+
DEFAULT_ENDPOINT_TEMPLATE = "aiplatform.$UNIVERSE_DOMAIN$"
|
31
|
+
|
29
32
|
# @private
|
30
33
|
attr_reader :operations_stub
|
31
34
|
|
@@ -60,6 +63,15 @@ module Google
|
|
60
63
|
@config
|
61
64
|
end
|
62
65
|
|
66
|
+
##
|
67
|
+
# The effective universe domain
|
68
|
+
#
|
69
|
+
# @return [String]
|
70
|
+
#
|
71
|
+
def universe_domain
|
72
|
+
@operations_stub.universe_domain
|
73
|
+
end
|
74
|
+
|
63
75
|
##
|
64
76
|
# Create a new Operations client object.
|
65
77
|
#
|
@@ -90,8 +102,10 @@ module Google
|
|
90
102
|
|
91
103
|
@operations_stub = ::Gapic::ServiceStub.new(
|
92
104
|
::Google::Longrunning::Operations::Stub,
|
93
|
-
credentials:
|
94
|
-
endpoint:
|
105
|
+
credentials: credentials,
|
106
|
+
endpoint: @config.endpoint,
|
107
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
108
|
+
universe_domain: @config.universe_domain,
|
95
109
|
channel_args: @config.channel_args,
|
96
110
|
interceptors: @config.interceptors,
|
97
111
|
channel_pool_config: @config.channel_pool
|
@@ -621,9 +635,9 @@ module Google
|
|
621
635
|
# end
|
622
636
|
#
|
623
637
|
# @!attribute [rw] endpoint
|
624
|
-
#
|
625
|
-
#
|
626
|
-
# @return [::String]
|
638
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
639
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
640
|
+
# @return [::String,nil]
|
627
641
|
# @!attribute [rw] credentials
|
628
642
|
# Credentials to send with calls. You may provide any of the following types:
|
629
643
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -669,13 +683,20 @@ module Google
|
|
669
683
|
# @!attribute [rw] quota_project
|
670
684
|
# A separate project against which to charge quota.
|
671
685
|
# @return [::String]
|
686
|
+
# @!attribute [rw] universe_domain
|
687
|
+
# The universe domain within which to make requests. This determines the
|
688
|
+
# default endpoint URL. The default value of nil uses the environment
|
689
|
+
# universe (usually the default "googleapis.com" universe).
|
690
|
+
# @return [::String,nil]
|
672
691
|
#
|
673
692
|
class Configuration
|
674
693
|
extend ::Gapic::Config
|
675
694
|
|
695
|
+
# @private
|
696
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
676
697
|
DEFAULT_ENDPOINT = "aiplatform.googleapis.com"
|
677
698
|
|
678
|
-
config_attr :endpoint,
|
699
|
+
config_attr :endpoint, nil, ::String, nil
|
679
700
|
config_attr :credentials, nil do |value|
|
680
701
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
681
702
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -690,6 +711,7 @@ module Google
|
|
690
711
|
config_attr :metadata, nil, ::Hash, nil
|
691
712
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
692
713
|
config_attr :quota_project, nil, ::String, nil
|
714
|
+
config_attr :universe_domain, nil, ::String, nil
|
693
715
|
|
694
716
|
# @private
|
695
717
|
def initialize parent_config = nil
|
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# A service for creating and managing Vertex AI's Index resources.
|
33
33
|
#
|
34
34
|
class Client
|
35
|
+
# @private
|
36
|
+
DEFAULT_ENDPOINT_TEMPLATE = "aiplatform.$UNIVERSE_DOMAIN$"
|
37
|
+
|
35
38
|
include Paths
|
36
39
|
|
37
40
|
# @private
|
@@ -92,6 +95,15 @@ module Google
|
|
92
95
|
@config
|
93
96
|
end
|
94
97
|
|
98
|
+
##
|
99
|
+
# The effective universe domain
|
100
|
+
#
|
101
|
+
# @return [String]
|
102
|
+
#
|
103
|
+
def universe_domain
|
104
|
+
@index_service_stub.universe_domain
|
105
|
+
end
|
106
|
+
|
95
107
|
##
|
96
108
|
# Create a new IndexService client object.
|
97
109
|
#
|
@@ -125,8 +137,9 @@ module Google
|
|
125
137
|
credentials = @config.credentials
|
126
138
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
127
139
|
# but only if the default endpoint does not have a region prefix.
|
128
|
-
enable_self_signed_jwt = @config.endpoint
|
129
|
-
|
140
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
141
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
142
|
+
!@config.endpoint.split(".").first.include?("-"))
|
130
143
|
credentials ||= Credentials.default scope: @config.scope,
|
131
144
|
enable_self_signed_jwt: enable_self_signed_jwt
|
132
145
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
@@ -139,28 +152,33 @@ module Google
|
|
139
152
|
config.credentials = credentials
|
140
153
|
config.quota_project = @quota_project_id
|
141
154
|
config.endpoint = @config.endpoint
|
155
|
+
config.universe_domain = @config.universe_domain
|
142
156
|
end
|
143
157
|
|
158
|
+
@index_service_stub = ::Gapic::ServiceStub.new(
|
159
|
+
::Google::Cloud::AIPlatform::V1::IndexService::Stub,
|
160
|
+
credentials: credentials,
|
161
|
+
endpoint: @config.endpoint,
|
162
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
163
|
+
universe_domain: @config.universe_domain,
|
164
|
+
channel_args: @config.channel_args,
|
165
|
+
interceptors: @config.interceptors,
|
166
|
+
channel_pool_config: @config.channel_pool
|
167
|
+
)
|
168
|
+
|
144
169
|
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
145
170
|
config.credentials = credentials
|
146
171
|
config.quota_project = @quota_project_id
|
147
|
-
config.endpoint = @
|
172
|
+
config.endpoint = @index_service_stub.endpoint
|
173
|
+
config.universe_domain = @index_service_stub.universe_domain
|
148
174
|
end
|
149
175
|
|
150
176
|
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
151
177
|
config.credentials = credentials
|
152
178
|
config.quota_project = @quota_project_id
|
153
|
-
config.endpoint = @
|
179
|
+
config.endpoint = @index_service_stub.endpoint
|
180
|
+
config.universe_domain = @index_service_stub.universe_domain
|
154
181
|
end
|
155
|
-
|
156
|
-
@index_service_stub = ::Gapic::ServiceStub.new(
|
157
|
-
::Google::Cloud::AIPlatform::V1::IndexService::Stub,
|
158
|
-
credentials: credentials,
|
159
|
-
endpoint: @config.endpoint,
|
160
|
-
channel_args: @config.channel_args,
|
161
|
-
interceptors: @config.interceptors,
|
162
|
-
channel_pool_config: @config.channel_pool
|
163
|
-
)
|
164
182
|
end
|
165
183
|
|
166
184
|
##
|
@@ -681,7 +699,7 @@ module Google
|
|
681
699
|
# @param options [::Gapic::CallOptions, ::Hash]
|
682
700
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
683
701
|
#
|
684
|
-
# @overload upsert_datapoints(index: nil, datapoints: nil)
|
702
|
+
# @overload upsert_datapoints(index: nil, datapoints: nil, update_mask: nil)
|
685
703
|
# Pass arguments to `upsert_datapoints` via keyword arguments. Note that at
|
686
704
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
687
705
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -692,6 +710,14 @@ module Google
|
|
692
710
|
# `projects/{project}/locations/{location}/indexes/{index}`
|
693
711
|
# @param datapoints [::Array<::Google::Cloud::AIPlatform::V1::IndexDatapoint, ::Hash>]
|
694
712
|
# A list of datapoints to be created/updated.
|
713
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
714
|
+
# Optional. Update mask is used to specify the fields to be overwritten in
|
715
|
+
# the datapoints by the update. The fields specified in the update_mask are
|
716
|
+
# relative to each IndexDatapoint inside datapoints, not the full request.
|
717
|
+
#
|
718
|
+
# Updatable fields:
|
719
|
+
#
|
720
|
+
# * Use `all_restricts` to update both restricts and numeric_restricts.
|
695
721
|
#
|
696
722
|
# @yield [response, operation] Access the result along with the RPC operation
|
697
723
|
# @yieldparam response [::Google::Cloud::AIPlatform::V1::UpsertDatapointsResponse]
|
@@ -876,9 +902,9 @@ module Google
|
|
876
902
|
# end
|
877
903
|
#
|
878
904
|
# @!attribute [rw] endpoint
|
879
|
-
#
|
880
|
-
#
|
881
|
-
# @return [::String]
|
905
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
906
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
907
|
+
# @return [::String,nil]
|
882
908
|
# @!attribute [rw] credentials
|
883
909
|
# Credentials to send with calls. You may provide any of the following types:
|
884
910
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -924,13 +950,20 @@ module Google
|
|
924
950
|
# @!attribute [rw] quota_project
|
925
951
|
# A separate project against which to charge quota.
|
926
952
|
# @return [::String]
|
953
|
+
# @!attribute [rw] universe_domain
|
954
|
+
# The universe domain within which to make requests. This determines the
|
955
|
+
# default endpoint URL. The default value of nil uses the environment
|
956
|
+
# universe (usually the default "googleapis.com" universe).
|
957
|
+
# @return [::String,nil]
|
927
958
|
#
|
928
959
|
class Configuration
|
929
960
|
extend ::Gapic::Config
|
930
961
|
|
962
|
+
# @private
|
963
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
931
964
|
DEFAULT_ENDPOINT = "aiplatform.googleapis.com"
|
932
965
|
|
933
|
-
config_attr :endpoint,
|
966
|
+
config_attr :endpoint, nil, ::String, nil
|
934
967
|
config_attr :credentials, nil do |value|
|
935
968
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
936
969
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -945,6 +978,7 @@ module Google
|
|
945
978
|
config_attr :metadata, nil, ::Hash, nil
|
946
979
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
947
980
|
config_attr :quota_project, nil, ::String, nil
|
981
|
+
config_attr :universe_domain, nil, ::String, nil
|
948
982
|
|
949
983
|
# @private
|
950
984
|
def initialize parent_config = nil
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module IndexService
|
27
27
|
# Service that implements Longrunning Operations API.
|
28
28
|
class Operations
|
29
|
+
# @private
|
30
|
+
DEFAULT_ENDPOINT_TEMPLATE = "aiplatform.$UNIVERSE_DOMAIN$"
|
31
|
+
|
29
32
|
# @private
|
30
33
|
attr_reader :operations_stub
|
31
34
|
|
@@ -60,6 +63,15 @@ module Google
|
|
60
63
|
@config
|
61
64
|
end
|
62
65
|
|
66
|
+
##
|
67
|
+
# The effective universe domain
|
68
|
+
#
|
69
|
+
# @return [String]
|
70
|
+
#
|
71
|
+
def universe_domain
|
72
|
+
@operations_stub.universe_domain
|
73
|
+
end
|
74
|
+
|
63
75
|
##
|
64
76
|
# Create a new Operations client object.
|
65
77
|
#
|
@@ -90,8 +102,10 @@ module Google
|
|
90
102
|
|
91
103
|
@operations_stub = ::Gapic::ServiceStub.new(
|
92
104
|
::Google::Longrunning::Operations::Stub,
|
93
|
-
credentials:
|
94
|
-
endpoint:
|
105
|
+
credentials: credentials,
|
106
|
+
endpoint: @config.endpoint,
|
107
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
108
|
+
universe_domain: @config.universe_domain,
|
95
109
|
channel_args: @config.channel_args,
|
96
110
|
interceptors: @config.interceptors,
|
97
111
|
channel_pool_config: @config.channel_pool
|
@@ -621,9 +635,9 @@ module Google
|
|
621
635
|
# end
|
622
636
|
#
|
623
637
|
# @!attribute [rw] endpoint
|
624
|
-
#
|
625
|
-
#
|
626
|
-
# @return [::String]
|
638
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
639
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
640
|
+
# @return [::String,nil]
|
627
641
|
# @!attribute [rw] credentials
|
628
642
|
# Credentials to send with calls. You may provide any of the following types:
|
629
643
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -669,13 +683,20 @@ module Google
|
|
669
683
|
# @!attribute [rw] quota_project
|
670
684
|
# A separate project against which to charge quota.
|
671
685
|
# @return [::String]
|
686
|
+
# @!attribute [rw] universe_domain
|
687
|
+
# The universe domain within which to make requests. This determines the
|
688
|
+
# default endpoint URL. The default value of nil uses the environment
|
689
|
+
# universe (usually the default "googleapis.com" universe).
|
690
|
+
# @return [::String,nil]
|
672
691
|
#
|
673
692
|
class Configuration
|
674
693
|
extend ::Gapic::Config
|
675
694
|
|
695
|
+
# @private
|
696
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
676
697
|
DEFAULT_ENDPOINT = "aiplatform.googleapis.com"
|
677
698
|
|
678
|
-
config_attr :endpoint,
|
699
|
+
config_attr :endpoint, nil, ::String, nil
|
679
700
|
config_attr :credentials, nil do |value|
|
680
701
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
681
702
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -690,6 +711,7 @@ module Google
|
|
690
711
|
config_attr :metadata, nil, ::Hash, nil
|
691
712
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
692
713
|
config_attr :quota_project, nil, ::String, nil
|
714
|
+
config_attr :universe_domain, nil, ::String, nil
|
693
715
|
|
694
716
|
# @private
|
695
717
|
def initialize parent_config = nil
|