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
@@ -34,6 +34,9 @@ module Google
|
|
34
34
|
# `PipelineJob` resources (used for Vertex AI Pipelines).
|
35
35
|
#
|
36
36
|
class Client
|
37
|
+
# @private
|
38
|
+
DEFAULT_ENDPOINT_TEMPLATE = "aiplatform.$UNIVERSE_DOMAIN$"
|
39
|
+
|
37
40
|
include Paths
|
38
41
|
|
39
42
|
# @private
|
@@ -94,6 +97,15 @@ module Google
|
|
94
97
|
@config
|
95
98
|
end
|
96
99
|
|
100
|
+
##
|
101
|
+
# The effective universe domain
|
102
|
+
#
|
103
|
+
# @return [String]
|
104
|
+
#
|
105
|
+
def universe_domain
|
106
|
+
@pipeline_service_stub.universe_domain
|
107
|
+
end
|
108
|
+
|
97
109
|
##
|
98
110
|
# Create a new PipelineService client object.
|
99
111
|
#
|
@@ -127,8 +139,9 @@ module Google
|
|
127
139
|
credentials = @config.credentials
|
128
140
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
129
141
|
# but only if the default endpoint does not have a region prefix.
|
130
|
-
enable_self_signed_jwt = @config.endpoint
|
131
|
-
|
142
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
143
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
144
|
+
!@config.endpoint.split(".").first.include?("-"))
|
132
145
|
credentials ||= Credentials.default scope: @config.scope,
|
133
146
|
enable_self_signed_jwt: enable_self_signed_jwt
|
134
147
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
@@ -141,28 +154,33 @@ module Google
|
|
141
154
|
config.credentials = credentials
|
142
155
|
config.quota_project = @quota_project_id
|
143
156
|
config.endpoint = @config.endpoint
|
157
|
+
config.universe_domain = @config.universe_domain
|
144
158
|
end
|
145
159
|
|
160
|
+
@pipeline_service_stub = ::Gapic::ServiceStub.new(
|
161
|
+
::Google::Cloud::AIPlatform::V1::PipelineService::Stub,
|
162
|
+
credentials: credentials,
|
163
|
+
endpoint: @config.endpoint,
|
164
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
165
|
+
universe_domain: @config.universe_domain,
|
166
|
+
channel_args: @config.channel_args,
|
167
|
+
interceptors: @config.interceptors,
|
168
|
+
channel_pool_config: @config.channel_pool
|
169
|
+
)
|
170
|
+
|
146
171
|
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
147
172
|
config.credentials = credentials
|
148
173
|
config.quota_project = @quota_project_id
|
149
|
-
config.endpoint = @
|
174
|
+
config.endpoint = @pipeline_service_stub.endpoint
|
175
|
+
config.universe_domain = @pipeline_service_stub.universe_domain
|
150
176
|
end
|
151
177
|
|
152
178
|
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
153
179
|
config.credentials = credentials
|
154
180
|
config.quota_project = @quota_project_id
|
155
|
-
config.endpoint = @
|
181
|
+
config.endpoint = @pipeline_service_stub.endpoint
|
182
|
+
config.universe_domain = @pipeline_service_stub.universe_domain
|
156
183
|
end
|
157
|
-
|
158
|
-
@pipeline_service_stub = ::Gapic::ServiceStub.new(
|
159
|
-
::Google::Cloud::AIPlatform::V1::PipelineService::Stub,
|
160
|
-
credentials: credentials,
|
161
|
-
endpoint: @config.endpoint,
|
162
|
-
channel_args: @config.channel_args,
|
163
|
-
interceptors: @config.interceptors,
|
164
|
-
channel_pool_config: @config.channel_pool
|
165
|
-
)
|
166
184
|
end
|
167
185
|
|
168
186
|
##
|
@@ -1239,9 +1257,9 @@ module Google
|
|
1239
1257
|
# end
|
1240
1258
|
#
|
1241
1259
|
# @!attribute [rw] endpoint
|
1242
|
-
#
|
1243
|
-
#
|
1244
|
-
# @return [::String]
|
1260
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
1261
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
1262
|
+
# @return [::String,nil]
|
1245
1263
|
# @!attribute [rw] credentials
|
1246
1264
|
# Credentials to send with calls. You may provide any of the following types:
|
1247
1265
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -1287,13 +1305,20 @@ module Google
|
|
1287
1305
|
# @!attribute [rw] quota_project
|
1288
1306
|
# A separate project against which to charge quota.
|
1289
1307
|
# @return [::String]
|
1308
|
+
# @!attribute [rw] universe_domain
|
1309
|
+
# The universe domain within which to make requests. This determines the
|
1310
|
+
# default endpoint URL. The default value of nil uses the environment
|
1311
|
+
# universe (usually the default "googleapis.com" universe).
|
1312
|
+
# @return [::String,nil]
|
1290
1313
|
#
|
1291
1314
|
class Configuration
|
1292
1315
|
extend ::Gapic::Config
|
1293
1316
|
|
1317
|
+
# @private
|
1318
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
1294
1319
|
DEFAULT_ENDPOINT = "aiplatform.googleapis.com"
|
1295
1320
|
|
1296
|
-
config_attr :endpoint,
|
1321
|
+
config_attr :endpoint, nil, ::String, nil
|
1297
1322
|
config_attr :credentials, nil do |value|
|
1298
1323
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1299
1324
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -1308,6 +1333,7 @@ module Google
|
|
1308
1333
|
config_attr :metadata, nil, ::Hash, nil
|
1309
1334
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1310
1335
|
config_attr :quota_project, nil, ::String, nil
|
1336
|
+
config_attr :universe_domain, nil, ::String, nil
|
1311
1337
|
|
1312
1338
|
# @private
|
1313
1339
|
def initialize parent_config = nil
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module PipelineService
|
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
|