Module: Google::Cloud::AIPlatform
- Defined in:
- lib/google/cloud/ai_platform.rb,
lib/google/cloud/ai_platform/version.rb
Constant Summary collapse
- VERSION =
"1.5.0"
Class Method Summary collapse
-
.configure {|::Google::Cloud.configure.ai_platform| ... } ⇒ ::Google::Cloud::Config
Configure the google-cloud-ai_platform library.
-
.dataset_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for DatasetService.
-
.deployment_resource_pool_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for DeploymentResourcePoolService.
-
.endpoint_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for EndpointService.
-
.evaluation_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for EvaluationService.
-
.feature_online_store_admin_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for FeatureOnlineStoreAdminService.
-
.feature_online_store_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for FeatureOnlineStoreService.
-
.feature_registry_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for FeatureRegistryService.
-
.featurestore_online_serving_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for FeaturestoreOnlineServingService.
-
.featurestore_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for FeaturestoreService.
-
.gen_ai_tuning_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for GenAiTuningService.
-
.index_endpoint_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for IndexEndpointService.
-
.index_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for IndexService.
-
.job_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for JobService.
-
.llm_utility_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for LlmUtilityService.
-
.match_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for MatchService.
-
.metadata_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for MetadataService.
-
.migration_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for MigrationService.
-
.model_garden_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for ModelGardenService.
-
.model_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for ModelService.
-
.notebook_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for NotebookService.
-
.persistent_resource_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for PersistentResourceService.
-
.pipeline_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for PipelineService.
-
.prediction_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for PredictionService.
-
.schedule_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for ScheduleService.
-
.specialist_pool_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for SpecialistPoolService.
-
.tensorboard_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for TensorboardService.
-
.vertex_rag_data_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for VertexRagDataService.
-
.vertex_rag_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for VertexRagService.
-
.vizier_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for VizierService.
Class Method Details
.configure {|::Google::Cloud.configure.ai_platform| ... } ⇒ ::Google::Cloud::Config
Configure the google-cloud-ai_platform library.
The following configuration parameters are supported:
credentials
(type:String, Hash, Google::Auth::Credentials
) - The path to the keyfile as a String, the contents of the keyfile as a Hash, or a Google::Auth::Credentials object.lib_name
(type:String
) - The library name as recorded in instrumentation and logging.lib_version
(type:String
) - The library version as recorded in instrumentation and logging.interceptors
(type:Array<GRPC::ClientInterceptor>
) - An array of interceptors that are run before calls are executed.timeout
(type:Numeric
) - Default timeout in seconds.metadata
(type:Hash{Symbol=>String}
) - Additional headers to be sent with the call.retry_policy
(type:Hash
) - The retry policy. The value is a hash with the following keys::initial_delay
(type:Numeric
) - The initial delay in seconds.:max_delay
(type:Numeric
) - The max delay in seconds.:multiplier
(type:Numeric
) - The incremental backoff multiplier.:retry_codes
(type:Array<String>
) - The error codes that should trigger a retry.
1078 1079 1080 1081 1082 |
# File 'lib/google/cloud/ai_platform.rb', line 1078 def self.configure yield ::Google::Cloud.configure.ai_platform if block_given? ::Google::Cloud.configure.ai_platform end |
.dataset_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for DatasetService.
By default, this returns an instance of
Google::Cloud::AIPlatform::V1::DatasetService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the DatasetService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About DatasetService
The service that manages Vertex AI Dataset and its child resources.
70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/google/cloud/ai_platform.rb', line 70 def self.dataset_service version: :v1, transport: :grpc, &block require "google/cloud/ai_platform/#{version.to_s.downcase}" package_name = Google::Cloud::AIPlatform .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:DatasetService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.deployment_resource_pool_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for DeploymentResourcePoolService.
By default, this returns an instance of
Google::Cloud::AIPlatform::V1::DeploymentResourcePoolService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the DeploymentResourcePoolService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About DeploymentResourcePoolService
A service that manages the DeploymentResourcePool resource.
104 105 106 107 108 109 110 111 112 113 114 |
# File 'lib/google/cloud/ai_platform.rb', line 104 def self.deployment_resource_pool_service version: :v1, transport: :grpc, &block require "google/cloud/ai_platform/#{version.to_s.downcase}" package_name = Google::Cloud::AIPlatform .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:DeploymentResourcePoolService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.endpoint_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for EndpointService.
By default, this returns an instance of
Google::Cloud::AIPlatform::V1::EndpointService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the EndpointService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About EndpointService
A service for managing Vertex AI's Endpoints.
138 139 140 141 142 143 144 145 146 147 148 |
# File 'lib/google/cloud/ai_platform.rb', line 138 def self.endpoint_service version: :v1, transport: :grpc, &block require "google/cloud/ai_platform/#{version.to_s.downcase}" package_name = Google::Cloud::AIPlatform .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:EndpointService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.evaluation_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for EvaluationService.
By default, this returns an instance of
Google::Cloud::AIPlatform::V1::EvaluationService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the EvaluationService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About EvaluationService
Vertex AI Online Evaluation Service.
172 173 174 175 176 177 178 179 180 181 182 |
# File 'lib/google/cloud/ai_platform.rb', line 172 def self.evaluation_service version: :v1, transport: :grpc, &block require "google/cloud/ai_platform/#{version.to_s.downcase}" package_name = Google::Cloud::AIPlatform .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:EvaluationService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.feature_online_store_admin_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for FeatureOnlineStoreAdminService.
By default, this returns an instance of
Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the FeatureOnlineStoreAdminService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About FeatureOnlineStoreAdminService
The service that handles CRUD and List for resources for FeatureOnlineStore.
207 208 209 210 211 212 213 214 215 216 217 |
# File 'lib/google/cloud/ai_platform.rb', line 207 def self.feature_online_store_admin_service version: :v1, transport: :grpc, &block require "google/cloud/ai_platform/#{version.to_s.downcase}" package_name = Google::Cloud::AIPlatform .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:FeatureOnlineStoreAdminService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.feature_online_store_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for FeatureOnlineStoreService.
By default, this returns an instance of
Google::Cloud::AIPlatform::V1::FeatureOnlineStoreService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the FeatureOnlineStoreService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About FeatureOnlineStoreService
A service for fetching feature values from the online store.
275 276 277 278 279 280 281 282 283 284 285 |
# File 'lib/google/cloud/ai_platform.rb', line 275 def self.feature_online_store_service version: :v1, transport: :grpc, &block require "google/cloud/ai_platform/#{version.to_s.downcase}" package_name = Google::Cloud::AIPlatform .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:FeatureOnlineStoreService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.feature_registry_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for FeatureRegistryService.
By default, this returns an instance of
Google::Cloud::AIPlatform::V1::FeatureRegistryService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the FeatureRegistryService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About FeatureRegistryService
The service that handles CRUD and List for resources for FeatureRegistry.
344 345 346 347 348 349 350 351 352 353 354 |
# File 'lib/google/cloud/ai_platform.rb', line 344 def self.feature_registry_service version: :v1, transport: :grpc, &block require "google/cloud/ai_platform/#{version.to_s.downcase}" package_name = Google::Cloud::AIPlatform .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:FeatureRegistryService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.featurestore_online_serving_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for FeaturestoreOnlineServingService.
By default, this returns an instance of
Google::Cloud::AIPlatform::V1::FeaturestoreOnlineServingService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the FeaturestoreOnlineServingService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About FeaturestoreOnlineServingService
A service for serving online feature values.
241 242 243 244 245 246 247 248 249 250 251 |
# File 'lib/google/cloud/ai_platform.rb', line 241 def self.featurestore_online_serving_service version: :v1, transport: :grpc, &block require "google/cloud/ai_platform/#{version.to_s.downcase}" package_name = Google::Cloud::AIPlatform .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:FeaturestoreOnlineServingService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.featurestore_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for FeaturestoreService.
By default, this returns an instance of
Google::Cloud::AIPlatform::V1::FeaturestoreService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the FeaturestoreService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About FeaturestoreService
The service that handles CRUD and List for resources for Featurestore.
309 310 311 312 313 314 315 316 317 318 319 |
# File 'lib/google/cloud/ai_platform.rb', line 309 def self.featurestore_service version: :v1, transport: :grpc, &block require "google/cloud/ai_platform/#{version.to_s.downcase}" package_name = Google::Cloud::AIPlatform .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:FeaturestoreService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.gen_ai_tuning_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for GenAiTuningService.
By default, this returns an instance of
Google::Cloud::AIPlatform::V1::GenAiTuningService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the GenAiTuningService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About GenAiTuningService
A service for creating and managing GenAI Tuning Jobs.
378 379 380 381 382 383 384 385 386 387 388 |
# File 'lib/google/cloud/ai_platform.rb', line 378 def self.gen_ai_tuning_service version: :v1, transport: :grpc, &block require "google/cloud/ai_platform/#{version.to_s.downcase}" package_name = Google::Cloud::AIPlatform .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:GenAiTuningService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.index_endpoint_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for IndexEndpointService.
By default, this returns an instance of
Google::Cloud::AIPlatform::V1::IndexEndpointService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the IndexEndpointService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About IndexEndpointService
A service for managing Vertex AI's IndexEndpoints.
412 413 414 415 416 417 418 419 420 421 422 |
# File 'lib/google/cloud/ai_platform.rb', line 412 def self.index_endpoint_service version: :v1, transport: :grpc, &block require "google/cloud/ai_platform/#{version.to_s.downcase}" package_name = Google::Cloud::AIPlatform .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:IndexEndpointService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.index_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for IndexService.
By default, this returns an instance of
Google::Cloud::AIPlatform::V1::IndexService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the IndexService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About IndexService
A service for creating and managing Vertex AI's Index resources.
446 447 448 449 450 451 452 453 454 455 456 |
# File 'lib/google/cloud/ai_platform.rb', line 446 def self.index_service version: :v1, transport: :grpc, &block require "google/cloud/ai_platform/#{version.to_s.downcase}" package_name = Google::Cloud::AIPlatform .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:IndexService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.job_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for JobService.
By default, this returns an instance of
Google::Cloud::AIPlatform::V1::JobService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the JobService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About JobService
A service for creating and managing Vertex AI's jobs.
480 481 482 483 484 485 486 487 488 489 490 |
# File 'lib/google/cloud/ai_platform.rb', line 480 def self.job_service version: :v1, transport: :grpc, &block require "google/cloud/ai_platform/#{version.to_s.downcase}" package_name = Google::Cloud::AIPlatform .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:JobService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.llm_utility_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for LlmUtilityService.
By default, this returns an instance of
Google::Cloud::AIPlatform::V1::LlmUtilityService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the LlmUtilityService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About LlmUtilityService
Service for LLM related utility functions.
548 549 550 551 552 553 554 555 556 557 558 |
# File 'lib/google/cloud/ai_platform.rb', line 548 def self.llm_utility_service version: :v1, transport: :grpc, &block require "google/cloud/ai_platform/#{version.to_s.downcase}" package_name = Google::Cloud::AIPlatform .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:LlmUtilityService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.match_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for MatchService.
By default, this returns an instance of
Google::Cloud::AIPlatform::V1::MatchService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the MatchService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About MatchService
MatchService is a Google managed service for efficient vector similarity search at scale.
583 584 585 586 587 588 589 590 591 592 593 |
# File 'lib/google/cloud/ai_platform.rb', line 583 def self.match_service version: :v1, transport: :grpc, &block require "google/cloud/ai_platform/#{version.to_s.downcase}" package_name = Google::Cloud::AIPlatform .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:MatchService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.metadata_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for MetadataService.
By default, this returns an instance of
Google::Cloud::AIPlatform::V1::MetadataService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the MetadataService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About MetadataService
Service for reading and writing metadata entries.
617 618 619 620 621 622 623 624 625 626 627 |
# File 'lib/google/cloud/ai_platform.rb', line 617 def self. version: :v1, transport: :grpc, &block require "google/cloud/ai_platform/#{version.to_s.downcase}" package_name = Google::Cloud::AIPlatform .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:MetadataService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.migration_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for MigrationService.
By default, this returns an instance of
Google::Cloud::AIPlatform::V1::MigrationService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the MigrationService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About MigrationService
A service that migrates resources from automl.googleapis.com, datalabeling.googleapis.com and ml.googleapis.com to Vertex AI.
652 653 654 655 656 657 658 659 660 661 662 |
# File 'lib/google/cloud/ai_platform.rb', line 652 def self.migration_service version: :v1, transport: :grpc, &block require "google/cloud/ai_platform/#{version.to_s.downcase}" package_name = Google::Cloud::AIPlatform .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:MigrationService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.model_garden_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for ModelGardenService.
By default, this returns an instance of
Google::Cloud::AIPlatform::V1::ModelGardenService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the ModelGardenService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About ModelGardenService
The interface of Model Garden Service.
686 687 688 689 690 691 692 693 694 695 696 |
# File 'lib/google/cloud/ai_platform.rb', line 686 def self.model_garden_service version: :v1, transport: :grpc, &block require "google/cloud/ai_platform/#{version.to_s.downcase}" package_name = Google::Cloud::AIPlatform .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:ModelGardenService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.model_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for ModelService.
By default, this returns an instance of
Google::Cloud::AIPlatform::V1::ModelService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the ModelService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About ModelService
A service for managing Vertex AI's machine learning Models.
720 721 722 723 724 725 726 727 728 729 730 |
# File 'lib/google/cloud/ai_platform.rb', line 720 def self.model_service version: :v1, transport: :grpc, &block require "google/cloud/ai_platform/#{version.to_s.downcase}" package_name = Google::Cloud::AIPlatform .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:ModelService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.notebook_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for NotebookService.
By default, this returns an instance of
Google::Cloud::AIPlatform::V1::NotebookService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the NotebookService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About NotebookService
The interface for Vertex Notebook service (a.k.a. Colab on Workbench).
754 755 756 757 758 759 760 761 762 763 764 |
# File 'lib/google/cloud/ai_platform.rb', line 754 def self.notebook_service version: :v1, transport: :grpc, &block require "google/cloud/ai_platform/#{version.to_s.downcase}" package_name = Google::Cloud::AIPlatform .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:NotebookService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.persistent_resource_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for PersistentResourceService.
By default, this returns an instance of
Google::Cloud::AIPlatform::V1::PersistentResourceService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the PersistentResourceService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About PersistentResourceService
A service for managing Vertex AI's machine learning PersistentResource.
788 789 790 791 792 793 794 795 796 797 798 |
# File 'lib/google/cloud/ai_platform.rb', line 788 def self.persistent_resource_service version: :v1, transport: :grpc, &block require "google/cloud/ai_platform/#{version.to_s.downcase}" package_name = Google::Cloud::AIPlatform .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:PersistentResourceService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.pipeline_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for PipelineService.
By default, this returns an instance of
Google::Cloud::AIPlatform::V1::PipelineService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the PipelineService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About PipelineService
A service for creating and managing Vertex AI's pipelines. This includes both
TrainingPipeline
resources (used for AutoML and custom training) and
PipelineJob
resources (used for Vertex AI Pipelines).
824 825 826 827 828 829 830 831 832 833 834 |
# File 'lib/google/cloud/ai_platform.rb', line 824 def self.pipeline_service version: :v1, transport: :grpc, &block require "google/cloud/ai_platform/#{version.to_s.downcase}" package_name = Google::Cloud::AIPlatform .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:PipelineService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.prediction_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for PredictionService.
By default, this returns an instance of
Google::Cloud::AIPlatform::V1::PredictionService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the PredictionService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About PredictionService
A service for online predictions and explanations.
514 515 516 517 518 519 520 521 522 523 524 |
# File 'lib/google/cloud/ai_platform.rb', line 514 def self.prediction_service version: :v1, transport: :grpc, &block require "google/cloud/ai_platform/#{version.to_s.downcase}" package_name = Google::Cloud::AIPlatform .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:PredictionService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.schedule_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for ScheduleService.
By default, this returns an instance of
Google::Cloud::AIPlatform::V1::ScheduleService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the ScheduleService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About ScheduleService
A service for creating and managing Vertex AI's Schedule resources to periodically launch shceudled runs to make API calls.
859 860 861 862 863 864 865 866 867 868 869 |
# File 'lib/google/cloud/ai_platform.rb', line 859 def self.schedule_service version: :v1, transport: :grpc, &block require "google/cloud/ai_platform/#{version.to_s.downcase}" package_name = Google::Cloud::AIPlatform .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:ScheduleService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.specialist_pool_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for SpecialistPoolService.
By default, this returns an instance of
Google::Cloud::AIPlatform::V1::SpecialistPoolService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the SpecialistPoolService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About SpecialistPoolService
A service for creating and managing Customer SpecialistPools. When customers start Data Labeling jobs, they can reuse/create Specialist Pools to bring their own Specialists to label the data. Customers can add/remove Managers for the Specialist Pool on Cloud console, then Managers will get email notifications to manage Specialists and tasks on CrowdCompute console.
898 899 900 901 902 903 904 905 906 907 908 |
# File 'lib/google/cloud/ai_platform.rb', line 898 def self.specialist_pool_service version: :v1, transport: :grpc, &block require "google/cloud/ai_platform/#{version.to_s.downcase}" package_name = Google::Cloud::AIPlatform .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:SpecialistPoolService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.tensorboard_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for TensorboardService.
By default, this returns an instance of
Google::Cloud::AIPlatform::V1::TensorboardService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the TensorboardService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About TensorboardService
TensorboardService
932 933 934 935 936 937 938 939 940 941 942 |
# File 'lib/google/cloud/ai_platform.rb', line 932 def self.tensorboard_service version: :v1, transport: :grpc, &block require "google/cloud/ai_platform/#{version.to_s.downcase}" package_name = Google::Cloud::AIPlatform .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:TensorboardService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.vertex_rag_data_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for VertexRagDataService.
By default, this returns an instance of
Google::Cloud::AIPlatform::V1::VertexRagDataService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the VertexRagDataService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About VertexRagDataService
A service for managing user data for RAG.
966 967 968 969 970 971 972 973 974 975 976 |
# File 'lib/google/cloud/ai_platform.rb', line 966 def self.vertex_rag_data_service version: :v1, transport: :grpc, &block require "google/cloud/ai_platform/#{version.to_s.downcase}" package_name = Google::Cloud::AIPlatform .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:VertexRagDataService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.vertex_rag_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for VertexRagService.
By default, this returns an instance of
Google::Cloud::AIPlatform::V1::VertexRagService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the VertexRagService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About VertexRagService
A service for retrieving relevant contexts.
1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 |
# File 'lib/google/cloud/ai_platform.rb', line 1000 def self.vertex_rag_service version: :v1, transport: :grpc, &block require "google/cloud/ai_platform/#{version.to_s.downcase}" package_name = Google::Cloud::AIPlatform .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:VertexRagService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.vizier_service(version: :v1, transport: :grpc, &block) ⇒ ::Object
Create a new client object for VizierService.
By default, this returns an instance of
Google::Cloud::AIPlatform::V1::VizierService::Client
for a gRPC client for version V1 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the VizierService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
About VizierService
Vertex AI Vizier API.
Vertex AI Vizier is a service to solve blackbox optimization problems, such as tuning machine learning hyperparameters and searching over deep learning architectures.
1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 |
# File 'lib/google/cloud/ai_platform.rb', line 1038 def self.vizier_service version: :v1, transport: :grpc, &block require "google/cloud/ai_platform/#{version.to_s.downcase}" package_name = Google::Cloud::AIPlatform .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:VizierService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |