google-cloud-ai_platform-v1 0.39.0 → 0.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/ai_platform/v1/bindings_override.rb +399 -0
- data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +138 -18
- data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/dataset_service/rest/client.rb +2280 -0
- data/lib/google/cloud/ai_platform/v1/dataset_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/dataset_service/rest/service_stub.rb +1196 -0
- data/lib/google/cloud/ai_platform/v1/dataset_service/rest.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/dataset_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/client.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/client.rb +851 -0
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/service_stub.rb +365 -0
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +19 -8
- data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/client.rb +1215 -0
- data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/service_stub.rb +546 -0
- data/lib/google/cloud/ai_platform/v1/endpoint_service/rest.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/endpoint_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/client.rb +29 -13
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/client.rb +1732 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/service_stub.rb +841 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest.rb +55 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_service/client.rb +7 -2
- data/lib/google/cloud/ai_platform/v1/feature_online_store_service/rest/client.rb +534 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_service/rest/service_stub.rb +189 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_service/rest.rb +53 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/client.rb +24 -11
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/client.rb +1450 -0
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/service_stub.rb +663 -0
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest.rb +55 -0
- data/lib/google/cloud/ai_platform/v1/feature_registry_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +9 -3
- data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/rest/client.rb +645 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/rest/service_stub.rb +244 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/rest.rb +53 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +45 -21
- data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/client.rb +2765 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/service_stub.rb +1319 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_service/rest.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/client.rb +11 -4
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/client.rb +720 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/service_stub.rb +307 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest.rb +53 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +19 -8
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/client.rb +1151 -0
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/service_stub.rb +546 -0
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/index_service/client.rb +17 -7
- data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/index_service/rest/client.rb +1034 -0
- data/lib/google/cloud/ai_platform/v1/index_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/index_service/rest/service_stub.rb +486 -0
- data/lib/google/cloud/ai_platform/v1/index_service/rest.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/index_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/job_service/client.rb +73 -35
- data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/job_service/rest/client.rb +3841 -0
- data/lib/google/cloud/ai_platform/v1/job_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/job_service/rest/service_stub.rb +2149 -0
- data/lib/google/cloud/ai_platform/v1/job_service/rest.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/job_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/llm_utility_service/client.rb +7 -2
- data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest/client.rb +533 -0
- data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest/service_stub.rb +205 -0
- data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest.rb +53 -0
- data/lib/google/cloud/ai_platform/v1/llm_utility_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/match_service/client.rb +7 -2
- data/lib/google/cloud/ai_platform/v1/match_service/rest/client.rb +541 -0
- data/lib/google/cloud/ai_platform/v1/match_service/rest/service_stub.rb +189 -0
- data/lib/google/cloud/ai_platform/v1/match_service/rest.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/match_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +67 -32
- data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/metadata_service/rest/client.rb +3634 -0
- data/lib/google/cloud/ai_platform/v1/metadata_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/metadata_service/rest/service_stub.rb +1972 -0
- data/lib/google/cloud/ai_platform/v1/metadata_service/rest.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/metadata_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +7 -2
- data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/migration_service/rest/client.rb +574 -0
- data/lib/google/cloud/ai_platform/v1/migration_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/migration_service/rest/service_stub.rb +189 -0
- data/lib/google/cloud/ai_platform/v1/migration_service/rest.rb +55 -0
- data/lib/google/cloud/ai_platform/v1/migration_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/model_garden_service/client.rb +5 -1
- data/lib/google/cloud/ai_platform/v1/model_garden_service/rest/client.rb +438 -0
- data/lib/google/cloud/ai_platform/v1/model_garden_service/rest/service_stub.rb +128 -0
- data/lib/google/cloud/ai_platform/v1/model_garden_service/rest.rb +53 -0
- data/lib/google/cloud/ai_platform/v1/model_garden_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/model_service/client.rb +39 -18
- data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/model_service/rest/client.rb +2213 -0
- data/lib/google/cloud/ai_platform/v1/model_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/model_service/rest/service_stub.rb +1140 -0
- data/lib/google/cloud/ai_platform/v1/model_service/rest.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/model_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/notebook_service/client.rb +123 -10
- data/lib/google/cloud/ai_platform/v1/notebook_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/notebook_service/rest/client.rb +1503 -0
- data/lib/google/cloud/ai_platform/v1/notebook_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/notebook_service/rest/service_stub.rb +723 -0
- data/lib/google/cloud/ai_platform/v1/notebook_service/rest.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/notebook_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service/client.rb +15 -6
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/client.rb +942 -0
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/service_stub.rb +426 -0
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +27 -12
- data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/client.rb +1600 -0
- data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/service_stub.rb +783 -0
- data/lib/google/cloud/ai_platform/v1/pipeline_service/rest.rb +56 -0
- data/lib/google/cloud/ai_platform/v1/pipeline_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +37 -15
- data/lib/google/cloud/ai_platform/v1/prediction_service/credentials.rb +2 -1
- data/lib/google/cloud/ai_platform/v1/prediction_service/rest/client.rb +1303 -0
- data/lib/google/cloud/ai_platform/v1/prediction_service/rest/service_stub.rb +658 -0
- data/lib/google/cloud/ai_platform/v1/prediction_service/rest.rb +53 -0
- data/lib/google/cloud/ai_platform/v1/prediction_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/rest.rb +63 -0
- data/lib/google/cloud/ai_platform/v1/schedule_service/client.rb +17 -7
- data/lib/google/cloud/ai_platform/v1/schedule_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/schedule_service/rest/client.rb +1076 -0
- data/lib/google/cloud/ai_platform/v1/schedule_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/schedule_service/rest/service_stub.rb +486 -0
- data/lib/google/cloud/ai_platform/v1/schedule_service/rest.rb +55 -0
- data/lib/google/cloud/ai_platform/v1/schedule_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/client.rb +847 -0
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/service_stub.rb +366 -0
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest.rb +59 -0
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +63 -30
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/client.rb +3274 -0
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/service_stub.rb +1847 -0
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/tensorboard_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
- data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +33 -15
- data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +13 -5
- data/lib/google/cloud/ai_platform/v1/vizier_service/rest/client.rb +1788 -0
- data/lib/google/cloud/ai_platform/v1/vizier_service/rest/operations.rb +3971 -0
- data/lib/google/cloud/ai_platform/v1/vizier_service/rest/service_stub.rb +963 -0
- data/lib/google/cloud/ai_platform/v1/vizier_service/rest.rb +58 -0
- data/lib/google/cloud/ai_platform/v1/vizier_service.rb +6 -0
- data/lib/google/cloud/ai_platform/v1.rb +6 -1
- data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/content_pb.rb +4 -4
- data/lib/google/cloud/aiplatform/v1/dataset_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +3 -2
- data/lib/google/cloud/aiplatform/v1/dataset_service_services_pb.rb +2 -0
- data/lib/google/cloud/aiplatform/v1/dataset_version_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/deployment_resource_pool_pb.rb +3 -1
- data/lib/google/cloud/aiplatform/v1/endpoint_pb.rb +3 -1
- data/lib/google/cloud/aiplatform/v1/feature_online_store_pb.rb +3 -1
- data/lib/google/cloud/aiplatform/v1/feature_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/featurestore_online_service_pb.rb +3 -1
- data/lib/google/cloud/aiplatform/v1/index_pb.rb +2 -1
- data/lib/google/cloud/aiplatform/v1/index_service_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/match_service_pb.rb +2 -1
- data/lib/google/cloud/aiplatform/v1/metadata_store_pb.rb +2 -1
- data/lib/google/cloud/aiplatform/v1/notebook_runtime_pb.rb +3 -1
- data/lib/google/cloud/aiplatform/v1/notebook_service_pb.rb +2 -1
- data/lib/google/cloud/aiplatform/v1/notebook_service_services_pb.rb +2 -0
- data/lib/google/cloud/aiplatform/v1/persistent_resource_pb.rb +2 -1
- data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/publisher_model_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/tool_pb.rb +4 -1
- data/proto_docs/google/cloud/aiplatform/v1/accelerator_type.rb +3 -0
- data/proto_docs/google/cloud/aiplatform/v1/content.rb +26 -48
- data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +4 -0
- data/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb +17 -0
- data/proto_docs/google/cloud/aiplatform/v1/dataset_version.rb +4 -0
- data/proto_docs/google/cloud/aiplatform/v1/deployment_resource_pool.rb +23 -0
- data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +7 -0
- data/proto_docs/google/cloud/aiplatform/v1/feature.rb +3 -0
- data/proto_docs/google/cloud/aiplatform/v1/feature_group.rb +3 -3
- data/proto_docs/google/cloud/aiplatform/v1/feature_online_store.rb +4 -0
- data/proto_docs/google/cloud/aiplatform/v1/feature_registry_service.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/featurestore_online_service.rb +24 -0
- data/proto_docs/google/cloud/aiplatform/v1/index.rb +23 -3
- data/proto_docs/google/cloud/aiplatform/v1/index_service.rb +20 -2
- data/proto_docs/google/cloud/aiplatform/v1/match_service.rb +18 -1
- data/proto_docs/google/cloud/aiplatform/v1/metadata_store.rb +13 -0
- data/proto_docs/google/cloud/aiplatform/v1/model.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/notebook_runtime.rb +17 -2
- data/proto_docs/google/cloud/aiplatform/v1/notebook_service.rb +18 -0
- data/proto_docs/google/cloud/aiplatform/v1/persistent_resource.rb +63 -0
- data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +4 -0
- data/proto_docs/google/cloud/aiplatform/v1/publisher_model.rb +4 -0
- data/proto_docs/google/cloud/aiplatform/v1/tool.rb +43 -5
- data/proto_docs/google/cloud/aiplatform/v1/tuning_job.rb +8 -7
- metadata +101 -2
|
@@ -0,0 +1,1600 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2024 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "google/cloud/errors"
|
|
20
|
+
require "google/cloud/aiplatform/v1/pipeline_service_pb"
|
|
21
|
+
require "google/cloud/ai_platform/v1/pipeline_service/rest/service_stub"
|
|
22
|
+
require "google/cloud/location/rest"
|
|
23
|
+
require "google/iam/v1/rest"
|
|
24
|
+
|
|
25
|
+
module Google
|
|
26
|
+
module Cloud
|
|
27
|
+
module AIPlatform
|
|
28
|
+
module V1
|
|
29
|
+
module PipelineService
|
|
30
|
+
module Rest
|
|
31
|
+
##
|
|
32
|
+
# REST client for the PipelineService service.
|
|
33
|
+
#
|
|
34
|
+
# A service for creating and managing Vertex AI's pipelines. This includes both
|
|
35
|
+
# `TrainingPipeline` resources (used for AutoML and custom training) and
|
|
36
|
+
# `PipelineJob` resources (used for Vertex AI Pipelines).
|
|
37
|
+
#
|
|
38
|
+
class Client
|
|
39
|
+
# @private
|
|
40
|
+
API_VERSION = ""
|
|
41
|
+
|
|
42
|
+
# @private
|
|
43
|
+
DEFAULT_ENDPOINT_TEMPLATE = "aiplatform.$UNIVERSE_DOMAIN$"
|
|
44
|
+
|
|
45
|
+
include Paths
|
|
46
|
+
|
|
47
|
+
# @private
|
|
48
|
+
attr_reader :pipeline_service_stub
|
|
49
|
+
|
|
50
|
+
##
|
|
51
|
+
# Configure the PipelineService Client class.
|
|
52
|
+
#
|
|
53
|
+
# See {::Google::Cloud::AIPlatform::V1::PipelineService::Rest::Client::Configuration}
|
|
54
|
+
# for a description of the configuration fields.
|
|
55
|
+
#
|
|
56
|
+
# @example
|
|
57
|
+
#
|
|
58
|
+
# # Modify the configuration for all PipelineService clients
|
|
59
|
+
# ::Google::Cloud::AIPlatform::V1::PipelineService::Rest::Client.configure do |config|
|
|
60
|
+
# config.timeout = 10.0
|
|
61
|
+
# end
|
|
62
|
+
#
|
|
63
|
+
# @yield [config] Configure the Client client.
|
|
64
|
+
# @yieldparam config [Client::Configuration]
|
|
65
|
+
#
|
|
66
|
+
# @return [Client::Configuration]
|
|
67
|
+
#
|
|
68
|
+
def self.configure
|
|
69
|
+
@configure ||= begin
|
|
70
|
+
namespace = ["Google", "Cloud", "AIPlatform", "V1"]
|
|
71
|
+
parent_config = while namespace.any?
|
|
72
|
+
parent_name = namespace.join "::"
|
|
73
|
+
parent_const = const_get parent_name
|
|
74
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
|
75
|
+
namespace.pop
|
|
76
|
+
end
|
|
77
|
+
default_config = Client::Configuration.new parent_config
|
|
78
|
+
|
|
79
|
+
default_config
|
|
80
|
+
end
|
|
81
|
+
yield @configure if block_given?
|
|
82
|
+
@configure
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
##
|
|
86
|
+
# Configure the PipelineService Client instance.
|
|
87
|
+
#
|
|
88
|
+
# The configuration is set to the derived mode, meaning that values can be changed,
|
|
89
|
+
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
|
90
|
+
# should be made on {Client.configure}.
|
|
91
|
+
#
|
|
92
|
+
# See {::Google::Cloud::AIPlatform::V1::PipelineService::Rest::Client::Configuration}
|
|
93
|
+
# for a description of the configuration fields.
|
|
94
|
+
#
|
|
95
|
+
# @yield [config] Configure the Client client.
|
|
96
|
+
# @yieldparam config [Client::Configuration]
|
|
97
|
+
#
|
|
98
|
+
# @return [Client::Configuration]
|
|
99
|
+
#
|
|
100
|
+
def configure
|
|
101
|
+
yield @config if block_given?
|
|
102
|
+
@config
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
##
|
|
106
|
+
# The effective universe domain
|
|
107
|
+
#
|
|
108
|
+
# @return [String]
|
|
109
|
+
#
|
|
110
|
+
def universe_domain
|
|
111
|
+
@pipeline_service_stub.universe_domain
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
##
|
|
115
|
+
# Create a new PipelineService REST client object.
|
|
116
|
+
#
|
|
117
|
+
# @example
|
|
118
|
+
#
|
|
119
|
+
# # Create a client using the default configuration
|
|
120
|
+
# client = ::Google::Cloud::AIPlatform::V1::PipelineService::Rest::Client.new
|
|
121
|
+
#
|
|
122
|
+
# # Create a client using a custom configuration
|
|
123
|
+
# client = ::Google::Cloud::AIPlatform::V1::PipelineService::Rest::Client.new do |config|
|
|
124
|
+
# config.timeout = 10.0
|
|
125
|
+
# end
|
|
126
|
+
#
|
|
127
|
+
# @yield [config] Configure the PipelineService client.
|
|
128
|
+
# @yieldparam config [Client::Configuration]
|
|
129
|
+
#
|
|
130
|
+
def initialize
|
|
131
|
+
# Create the configuration object
|
|
132
|
+
@config = Configuration.new Client.configure
|
|
133
|
+
|
|
134
|
+
# Yield the configuration if needed
|
|
135
|
+
yield @config if block_given?
|
|
136
|
+
|
|
137
|
+
# Create credentials
|
|
138
|
+
credentials = @config.credentials
|
|
139
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
140
|
+
# but only if the default endpoint does not have a region prefix.
|
|
141
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
|
142
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
143
|
+
!@config.endpoint.split(".").first.include?("-"))
|
|
144
|
+
credentials ||= Credentials.default scope: @config.scope,
|
|
145
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
|
146
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
|
147
|
+
credentials = Credentials.new credentials, scope: @config.scope
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
@quota_project_id = @config.quota_project
|
|
151
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
|
152
|
+
|
|
153
|
+
@operations_client = ::Google::Cloud::AIPlatform::V1::PipelineService::Rest::Operations.new do |config|
|
|
154
|
+
config.credentials = credentials
|
|
155
|
+
config.quota_project = @quota_project_id
|
|
156
|
+
config.endpoint = @config.endpoint
|
|
157
|
+
config.universe_domain = @config.universe_domain
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
@pipeline_service_stub = ::Google::Cloud::AIPlatform::V1::PipelineService::Rest::ServiceStub.new(
|
|
161
|
+
endpoint: @config.endpoint,
|
|
162
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
|
163
|
+
universe_domain: @config.universe_domain,
|
|
164
|
+
credentials: credentials
|
|
165
|
+
)
|
|
166
|
+
|
|
167
|
+
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
|
168
|
+
config.credentials = credentials
|
|
169
|
+
config.quota_project = @quota_project_id
|
|
170
|
+
config.endpoint = @pipeline_service_stub.endpoint
|
|
171
|
+
config.universe_domain = @pipeline_service_stub.universe_domain
|
|
172
|
+
config.bindings_override = @config.bindings_override
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
@iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
|
|
176
|
+
config.credentials = credentials
|
|
177
|
+
config.quota_project = @quota_project_id
|
|
178
|
+
config.endpoint = @pipeline_service_stub.endpoint
|
|
179
|
+
config.universe_domain = @pipeline_service_stub.universe_domain
|
|
180
|
+
config.bindings_override = @config.bindings_override
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
##
|
|
185
|
+
# Get the associated client for long-running operations.
|
|
186
|
+
#
|
|
187
|
+
# @return [::Google::Cloud::AIPlatform::V1::PipelineService::Rest::Operations]
|
|
188
|
+
#
|
|
189
|
+
attr_reader :operations_client
|
|
190
|
+
|
|
191
|
+
##
|
|
192
|
+
# Get the associated client for mix-in of the Locations.
|
|
193
|
+
#
|
|
194
|
+
# @return [Google::Cloud::Location::Locations::Rest::Client]
|
|
195
|
+
#
|
|
196
|
+
attr_reader :location_client
|
|
197
|
+
|
|
198
|
+
##
|
|
199
|
+
# Get the associated client for mix-in of the IAMPolicy.
|
|
200
|
+
#
|
|
201
|
+
# @return [Google::Iam::V1::IAMPolicy::Rest::Client]
|
|
202
|
+
#
|
|
203
|
+
attr_reader :iam_policy_client
|
|
204
|
+
|
|
205
|
+
# Service calls
|
|
206
|
+
|
|
207
|
+
##
|
|
208
|
+
# Creates a TrainingPipeline. A created TrainingPipeline right away will be
|
|
209
|
+
# attempted to be run.
|
|
210
|
+
#
|
|
211
|
+
# @overload create_training_pipeline(request, options = nil)
|
|
212
|
+
# Pass arguments to `create_training_pipeline` via a request object, either of type
|
|
213
|
+
# {::Google::Cloud::AIPlatform::V1::CreateTrainingPipelineRequest} or an equivalent Hash.
|
|
214
|
+
#
|
|
215
|
+
# @param request [::Google::Cloud::AIPlatform::V1::CreateTrainingPipelineRequest, ::Hash]
|
|
216
|
+
# A request object representing the call parameters. Required. To specify no
|
|
217
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
218
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
219
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
220
|
+
#
|
|
221
|
+
# @overload create_training_pipeline(parent: nil, training_pipeline: nil)
|
|
222
|
+
# Pass arguments to `create_training_pipeline` via keyword arguments. Note that at
|
|
223
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
224
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
225
|
+
#
|
|
226
|
+
# @param parent [::String]
|
|
227
|
+
# Required. The resource name of the Location to create the TrainingPipeline
|
|
228
|
+
# in. Format: `projects/{project}/locations/{location}`
|
|
229
|
+
# @param training_pipeline [::Google::Cloud::AIPlatform::V1::TrainingPipeline, ::Hash]
|
|
230
|
+
# Required. The TrainingPipeline to create.
|
|
231
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
232
|
+
# @yieldparam result [::Google::Cloud::AIPlatform::V1::TrainingPipeline]
|
|
233
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
234
|
+
#
|
|
235
|
+
# @return [::Google::Cloud::AIPlatform::V1::TrainingPipeline]
|
|
236
|
+
#
|
|
237
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
238
|
+
#
|
|
239
|
+
# @example Basic example
|
|
240
|
+
# require "google/cloud/ai_platform/v1"
|
|
241
|
+
#
|
|
242
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
243
|
+
# client = Google::Cloud::AIPlatform::V1::PipelineService::Rest::Client.new
|
|
244
|
+
#
|
|
245
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
246
|
+
# request = Google::Cloud::AIPlatform::V1::CreateTrainingPipelineRequest.new
|
|
247
|
+
#
|
|
248
|
+
# # Call the create_training_pipeline method.
|
|
249
|
+
# result = client.create_training_pipeline request
|
|
250
|
+
#
|
|
251
|
+
# # The returned object is of type Google::Cloud::AIPlatform::V1::TrainingPipeline.
|
|
252
|
+
# p result
|
|
253
|
+
#
|
|
254
|
+
def create_training_pipeline request, options = nil
|
|
255
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
256
|
+
|
|
257
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CreateTrainingPipelineRequest
|
|
258
|
+
|
|
259
|
+
# Converts hash and nil to an options object
|
|
260
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
261
|
+
|
|
262
|
+
# Customize the options with defaults
|
|
263
|
+
call_metadata = @config.rpcs.create_training_pipeline.metadata.to_h
|
|
264
|
+
|
|
265
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
266
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
267
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
268
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
|
|
269
|
+
transports_version_send: [:rest]
|
|
270
|
+
|
|
271
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
272
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
273
|
+
|
|
274
|
+
options.apply_defaults timeout: @config.rpcs.create_training_pipeline.timeout,
|
|
275
|
+
metadata: call_metadata,
|
|
276
|
+
retry_policy: @config.rpcs.create_training_pipeline.retry_policy
|
|
277
|
+
|
|
278
|
+
options.apply_defaults timeout: @config.timeout,
|
|
279
|
+
metadata: @config.metadata,
|
|
280
|
+
retry_policy: @config.retry_policy
|
|
281
|
+
|
|
282
|
+
@pipeline_service_stub.create_training_pipeline request, options do |result, operation|
|
|
283
|
+
yield result, operation if block_given?
|
|
284
|
+
return result
|
|
285
|
+
end
|
|
286
|
+
rescue ::Gapic::Rest::Error => e
|
|
287
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
##
|
|
291
|
+
# Gets a TrainingPipeline.
|
|
292
|
+
#
|
|
293
|
+
# @overload get_training_pipeline(request, options = nil)
|
|
294
|
+
# Pass arguments to `get_training_pipeline` via a request object, either of type
|
|
295
|
+
# {::Google::Cloud::AIPlatform::V1::GetTrainingPipelineRequest} or an equivalent Hash.
|
|
296
|
+
#
|
|
297
|
+
# @param request [::Google::Cloud::AIPlatform::V1::GetTrainingPipelineRequest, ::Hash]
|
|
298
|
+
# A request object representing the call parameters. Required. To specify no
|
|
299
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
300
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
301
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
302
|
+
#
|
|
303
|
+
# @overload get_training_pipeline(name: nil)
|
|
304
|
+
# Pass arguments to `get_training_pipeline` via keyword arguments. Note that at
|
|
305
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
306
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
307
|
+
#
|
|
308
|
+
# @param name [::String]
|
|
309
|
+
# Required. The name of the TrainingPipeline resource.
|
|
310
|
+
# Format:
|
|
311
|
+
# `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}`
|
|
312
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
313
|
+
# @yieldparam result [::Google::Cloud::AIPlatform::V1::TrainingPipeline]
|
|
314
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
315
|
+
#
|
|
316
|
+
# @return [::Google::Cloud::AIPlatform::V1::TrainingPipeline]
|
|
317
|
+
#
|
|
318
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
319
|
+
#
|
|
320
|
+
# @example Basic example
|
|
321
|
+
# require "google/cloud/ai_platform/v1"
|
|
322
|
+
#
|
|
323
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
324
|
+
# client = Google::Cloud::AIPlatform::V1::PipelineService::Rest::Client.new
|
|
325
|
+
#
|
|
326
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
327
|
+
# request = Google::Cloud::AIPlatform::V1::GetTrainingPipelineRequest.new
|
|
328
|
+
#
|
|
329
|
+
# # Call the get_training_pipeline method.
|
|
330
|
+
# result = client.get_training_pipeline request
|
|
331
|
+
#
|
|
332
|
+
# # The returned object is of type Google::Cloud::AIPlatform::V1::TrainingPipeline.
|
|
333
|
+
# p result
|
|
334
|
+
#
|
|
335
|
+
def get_training_pipeline request, options = nil
|
|
336
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
337
|
+
|
|
338
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::GetTrainingPipelineRequest
|
|
339
|
+
|
|
340
|
+
# Converts hash and nil to an options object
|
|
341
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
342
|
+
|
|
343
|
+
# Customize the options with defaults
|
|
344
|
+
call_metadata = @config.rpcs.get_training_pipeline.metadata.to_h
|
|
345
|
+
|
|
346
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
347
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
348
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
349
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
|
|
350
|
+
transports_version_send: [:rest]
|
|
351
|
+
|
|
352
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
353
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
354
|
+
|
|
355
|
+
options.apply_defaults timeout: @config.rpcs.get_training_pipeline.timeout,
|
|
356
|
+
metadata: call_metadata,
|
|
357
|
+
retry_policy: @config.rpcs.get_training_pipeline.retry_policy
|
|
358
|
+
|
|
359
|
+
options.apply_defaults timeout: @config.timeout,
|
|
360
|
+
metadata: @config.metadata,
|
|
361
|
+
retry_policy: @config.retry_policy
|
|
362
|
+
|
|
363
|
+
@pipeline_service_stub.get_training_pipeline request, options do |result, operation|
|
|
364
|
+
yield result, operation if block_given?
|
|
365
|
+
return result
|
|
366
|
+
end
|
|
367
|
+
rescue ::Gapic::Rest::Error => e
|
|
368
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
##
|
|
372
|
+
# Lists TrainingPipelines in a Location.
|
|
373
|
+
#
|
|
374
|
+
# @overload list_training_pipelines(request, options = nil)
|
|
375
|
+
# Pass arguments to `list_training_pipelines` via a request object, either of type
|
|
376
|
+
# {::Google::Cloud::AIPlatform::V1::ListTrainingPipelinesRequest} or an equivalent Hash.
|
|
377
|
+
#
|
|
378
|
+
# @param request [::Google::Cloud::AIPlatform::V1::ListTrainingPipelinesRequest, ::Hash]
|
|
379
|
+
# A request object representing the call parameters. Required. To specify no
|
|
380
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
381
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
382
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
383
|
+
#
|
|
384
|
+
# @overload list_training_pipelines(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil)
|
|
385
|
+
# Pass arguments to `list_training_pipelines` via keyword arguments. Note that at
|
|
386
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
387
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
388
|
+
#
|
|
389
|
+
# @param parent [::String]
|
|
390
|
+
# Required. The resource name of the Location to list the TrainingPipelines
|
|
391
|
+
# from. Format: `projects/{project}/locations/{location}`
|
|
392
|
+
# @param filter [::String]
|
|
393
|
+
# The standard list filter.
|
|
394
|
+
#
|
|
395
|
+
# Supported fields:
|
|
396
|
+
#
|
|
397
|
+
# * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
|
|
398
|
+
# * `state` supports `=`, `!=` comparisons.
|
|
399
|
+
# * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard.
|
|
400
|
+
# * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
|
|
401
|
+
# `create_time` must be in RFC 3339 format.
|
|
402
|
+
# * `labels` supports general map functions that is:
|
|
403
|
+
# `labels.key=value` - key:value equality
|
|
404
|
+
# `labels.key:* - key existence
|
|
405
|
+
#
|
|
406
|
+
# Some examples of using the filter are:
|
|
407
|
+
#
|
|
408
|
+
# * `state="PIPELINE_STATE_SUCCEEDED" AND display_name:"my_pipeline_*"`
|
|
409
|
+
# * `state!="PIPELINE_STATE_FAILED" OR display_name="my_pipeline"`
|
|
410
|
+
# * `NOT display_name="my_pipeline"`
|
|
411
|
+
# * `create_time>"2021-05-18T00:00:00Z"`
|
|
412
|
+
# * `training_task_definition:"*automl_text_classification*"`
|
|
413
|
+
# @param page_size [::Integer]
|
|
414
|
+
# The standard list page size.
|
|
415
|
+
# @param page_token [::String]
|
|
416
|
+
# The standard list page token.
|
|
417
|
+
# Typically obtained via
|
|
418
|
+
# {::Google::Cloud::AIPlatform::V1::ListTrainingPipelinesResponse#next_page_token ListTrainingPipelinesResponse.next_page_token}
|
|
419
|
+
# of the previous
|
|
420
|
+
# {::Google::Cloud::AIPlatform::V1::PipelineService::Rest::Client#list_training_pipelines PipelineService.ListTrainingPipelines}
|
|
421
|
+
# call.
|
|
422
|
+
# @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
423
|
+
# Mask specifying which fields to read.
|
|
424
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
425
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AIPlatform::V1::TrainingPipeline>]
|
|
426
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
427
|
+
#
|
|
428
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AIPlatform::V1::TrainingPipeline>]
|
|
429
|
+
#
|
|
430
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
431
|
+
#
|
|
432
|
+
# @example Basic example
|
|
433
|
+
# require "google/cloud/ai_platform/v1"
|
|
434
|
+
#
|
|
435
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
436
|
+
# client = Google::Cloud::AIPlatform::V1::PipelineService::Rest::Client.new
|
|
437
|
+
#
|
|
438
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
439
|
+
# request = Google::Cloud::AIPlatform::V1::ListTrainingPipelinesRequest.new
|
|
440
|
+
#
|
|
441
|
+
# # Call the list_training_pipelines method.
|
|
442
|
+
# result = client.list_training_pipelines request
|
|
443
|
+
#
|
|
444
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
445
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
446
|
+
# result.each do |item|
|
|
447
|
+
# # Each element is of type ::Google::Cloud::AIPlatform::V1::TrainingPipeline.
|
|
448
|
+
# p item
|
|
449
|
+
# end
|
|
450
|
+
#
|
|
451
|
+
def list_training_pipelines request, options = nil
|
|
452
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
453
|
+
|
|
454
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ListTrainingPipelinesRequest
|
|
455
|
+
|
|
456
|
+
# Converts hash and nil to an options object
|
|
457
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
458
|
+
|
|
459
|
+
# Customize the options with defaults
|
|
460
|
+
call_metadata = @config.rpcs.list_training_pipelines.metadata.to_h
|
|
461
|
+
|
|
462
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
463
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
464
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
465
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
|
|
466
|
+
transports_version_send: [:rest]
|
|
467
|
+
|
|
468
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
469
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
470
|
+
|
|
471
|
+
options.apply_defaults timeout: @config.rpcs.list_training_pipelines.timeout,
|
|
472
|
+
metadata: call_metadata,
|
|
473
|
+
retry_policy: @config.rpcs.list_training_pipelines.retry_policy
|
|
474
|
+
|
|
475
|
+
options.apply_defaults timeout: @config.timeout,
|
|
476
|
+
metadata: @config.metadata,
|
|
477
|
+
retry_policy: @config.retry_policy
|
|
478
|
+
|
|
479
|
+
@pipeline_service_stub.list_training_pipelines request, options do |result, operation|
|
|
480
|
+
result = ::Gapic::Rest::PagedEnumerable.new @pipeline_service_stub, :list_training_pipelines, "training_pipelines", request, result, options
|
|
481
|
+
yield result, operation if block_given?
|
|
482
|
+
return result
|
|
483
|
+
end
|
|
484
|
+
rescue ::Gapic::Rest::Error => e
|
|
485
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
486
|
+
end
|
|
487
|
+
|
|
488
|
+
##
|
|
489
|
+
# Deletes a TrainingPipeline.
|
|
490
|
+
#
|
|
491
|
+
# @overload delete_training_pipeline(request, options = nil)
|
|
492
|
+
# Pass arguments to `delete_training_pipeline` via a request object, either of type
|
|
493
|
+
# {::Google::Cloud::AIPlatform::V1::DeleteTrainingPipelineRequest} or an equivalent Hash.
|
|
494
|
+
#
|
|
495
|
+
# @param request [::Google::Cloud::AIPlatform::V1::DeleteTrainingPipelineRequest, ::Hash]
|
|
496
|
+
# A request object representing the call parameters. Required. To specify no
|
|
497
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
498
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
499
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
500
|
+
#
|
|
501
|
+
# @overload delete_training_pipeline(name: nil)
|
|
502
|
+
# Pass arguments to `delete_training_pipeline` via keyword arguments. Note that at
|
|
503
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
504
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
505
|
+
#
|
|
506
|
+
# @param name [::String]
|
|
507
|
+
# Required. The name of the TrainingPipeline resource to be deleted.
|
|
508
|
+
# Format:
|
|
509
|
+
# `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}`
|
|
510
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
511
|
+
# @yieldparam result [::Gapic::Operation]
|
|
512
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
513
|
+
#
|
|
514
|
+
# @return [::Gapic::Operation]
|
|
515
|
+
#
|
|
516
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
517
|
+
#
|
|
518
|
+
# @example Basic example
|
|
519
|
+
# require "google/cloud/ai_platform/v1"
|
|
520
|
+
#
|
|
521
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
522
|
+
# client = Google::Cloud::AIPlatform::V1::PipelineService::Rest::Client.new
|
|
523
|
+
#
|
|
524
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
525
|
+
# request = Google::Cloud::AIPlatform::V1::DeleteTrainingPipelineRequest.new
|
|
526
|
+
#
|
|
527
|
+
# # Call the delete_training_pipeline method.
|
|
528
|
+
# result = client.delete_training_pipeline request
|
|
529
|
+
#
|
|
530
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
531
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
532
|
+
# # Here is how to wait for a response.
|
|
533
|
+
# result.wait_until_done! timeout: 60
|
|
534
|
+
# if result.response?
|
|
535
|
+
# p result.response
|
|
536
|
+
# else
|
|
537
|
+
# puts "No response received."
|
|
538
|
+
# end
|
|
539
|
+
#
|
|
540
|
+
def delete_training_pipeline request, options = nil
|
|
541
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
542
|
+
|
|
543
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::DeleteTrainingPipelineRequest
|
|
544
|
+
|
|
545
|
+
# Converts hash and nil to an options object
|
|
546
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
547
|
+
|
|
548
|
+
# Customize the options with defaults
|
|
549
|
+
call_metadata = @config.rpcs.delete_training_pipeline.metadata.to_h
|
|
550
|
+
|
|
551
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
552
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
553
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
554
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
|
|
555
|
+
transports_version_send: [:rest]
|
|
556
|
+
|
|
557
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
558
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
559
|
+
|
|
560
|
+
options.apply_defaults timeout: @config.rpcs.delete_training_pipeline.timeout,
|
|
561
|
+
metadata: call_metadata,
|
|
562
|
+
retry_policy: @config.rpcs.delete_training_pipeline.retry_policy
|
|
563
|
+
|
|
564
|
+
options.apply_defaults timeout: @config.timeout,
|
|
565
|
+
metadata: @config.metadata,
|
|
566
|
+
retry_policy: @config.retry_policy
|
|
567
|
+
|
|
568
|
+
@pipeline_service_stub.delete_training_pipeline request, options do |result, operation|
|
|
569
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
570
|
+
yield result, operation if block_given?
|
|
571
|
+
return result
|
|
572
|
+
end
|
|
573
|
+
rescue ::Gapic::Rest::Error => e
|
|
574
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
575
|
+
end
|
|
576
|
+
|
|
577
|
+
##
|
|
578
|
+
# Cancels a TrainingPipeline.
|
|
579
|
+
# Starts asynchronous cancellation on the TrainingPipeline. The server
|
|
580
|
+
# makes a best effort to cancel the pipeline, but success is not
|
|
581
|
+
# guaranteed. Clients can use
|
|
582
|
+
# {::Google::Cloud::AIPlatform::V1::PipelineService::Rest::Client#get_training_pipeline PipelineService.GetTrainingPipeline}
|
|
583
|
+
# or other methods to check whether the cancellation succeeded or whether the
|
|
584
|
+
# pipeline completed despite cancellation. On successful cancellation,
|
|
585
|
+
# the TrainingPipeline is not deleted; instead it becomes a pipeline with
|
|
586
|
+
# a
|
|
587
|
+
# {::Google::Cloud::AIPlatform::V1::TrainingPipeline#error TrainingPipeline.error}
|
|
588
|
+
# value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
|
|
589
|
+
# corresponding to `Code.CANCELLED`, and
|
|
590
|
+
# {::Google::Cloud::AIPlatform::V1::TrainingPipeline#state TrainingPipeline.state}
|
|
591
|
+
# is set to `CANCELLED`.
|
|
592
|
+
#
|
|
593
|
+
# @overload cancel_training_pipeline(request, options = nil)
|
|
594
|
+
# Pass arguments to `cancel_training_pipeline` via a request object, either of type
|
|
595
|
+
# {::Google::Cloud::AIPlatform::V1::CancelTrainingPipelineRequest} or an equivalent Hash.
|
|
596
|
+
#
|
|
597
|
+
# @param request [::Google::Cloud::AIPlatform::V1::CancelTrainingPipelineRequest, ::Hash]
|
|
598
|
+
# A request object representing the call parameters. Required. To specify no
|
|
599
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
600
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
601
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
602
|
+
#
|
|
603
|
+
# @overload cancel_training_pipeline(name: nil)
|
|
604
|
+
# Pass arguments to `cancel_training_pipeline` via keyword arguments. Note that at
|
|
605
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
606
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
607
|
+
#
|
|
608
|
+
# @param name [::String]
|
|
609
|
+
# Required. The name of the TrainingPipeline to cancel.
|
|
610
|
+
# Format:
|
|
611
|
+
# `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}`
|
|
612
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
613
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
|
614
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
615
|
+
#
|
|
616
|
+
# @return [::Google::Protobuf::Empty]
|
|
617
|
+
#
|
|
618
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
619
|
+
#
|
|
620
|
+
# @example Basic example
|
|
621
|
+
# require "google/cloud/ai_platform/v1"
|
|
622
|
+
#
|
|
623
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
624
|
+
# client = Google::Cloud::AIPlatform::V1::PipelineService::Rest::Client.new
|
|
625
|
+
#
|
|
626
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
627
|
+
# request = Google::Cloud::AIPlatform::V1::CancelTrainingPipelineRequest.new
|
|
628
|
+
#
|
|
629
|
+
# # Call the cancel_training_pipeline method.
|
|
630
|
+
# result = client.cancel_training_pipeline request
|
|
631
|
+
#
|
|
632
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
|
633
|
+
# p result
|
|
634
|
+
#
|
|
635
|
+
def cancel_training_pipeline request, options = nil
|
|
636
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
637
|
+
|
|
638
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CancelTrainingPipelineRequest
|
|
639
|
+
|
|
640
|
+
# Converts hash and nil to an options object
|
|
641
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
642
|
+
|
|
643
|
+
# Customize the options with defaults
|
|
644
|
+
call_metadata = @config.rpcs.cancel_training_pipeline.metadata.to_h
|
|
645
|
+
|
|
646
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
647
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
648
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
649
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
|
|
650
|
+
transports_version_send: [:rest]
|
|
651
|
+
|
|
652
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
653
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
654
|
+
|
|
655
|
+
options.apply_defaults timeout: @config.rpcs.cancel_training_pipeline.timeout,
|
|
656
|
+
metadata: call_metadata,
|
|
657
|
+
retry_policy: @config.rpcs.cancel_training_pipeline.retry_policy
|
|
658
|
+
|
|
659
|
+
options.apply_defaults timeout: @config.timeout,
|
|
660
|
+
metadata: @config.metadata,
|
|
661
|
+
retry_policy: @config.retry_policy
|
|
662
|
+
|
|
663
|
+
@pipeline_service_stub.cancel_training_pipeline request, options do |result, operation|
|
|
664
|
+
yield result, operation if block_given?
|
|
665
|
+
return result
|
|
666
|
+
end
|
|
667
|
+
rescue ::Gapic::Rest::Error => e
|
|
668
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
669
|
+
end
|
|
670
|
+
|
|
671
|
+
##
|
|
672
|
+
# Creates a PipelineJob. A PipelineJob will run immediately when created.
|
|
673
|
+
#
|
|
674
|
+
# @overload create_pipeline_job(request, options = nil)
|
|
675
|
+
# Pass arguments to `create_pipeline_job` via a request object, either of type
|
|
676
|
+
# {::Google::Cloud::AIPlatform::V1::CreatePipelineJobRequest} or an equivalent Hash.
|
|
677
|
+
#
|
|
678
|
+
# @param request [::Google::Cloud::AIPlatform::V1::CreatePipelineJobRequest, ::Hash]
|
|
679
|
+
# A request object representing the call parameters. Required. To specify no
|
|
680
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
681
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
682
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
683
|
+
#
|
|
684
|
+
# @overload create_pipeline_job(parent: nil, pipeline_job: nil, pipeline_job_id: nil)
|
|
685
|
+
# Pass arguments to `create_pipeline_job` via keyword arguments. Note that at
|
|
686
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
687
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
688
|
+
#
|
|
689
|
+
# @param parent [::String]
|
|
690
|
+
# Required. The resource name of the Location to create the PipelineJob in.
|
|
691
|
+
# Format: `projects/{project}/locations/{location}`
|
|
692
|
+
# @param pipeline_job [::Google::Cloud::AIPlatform::V1::PipelineJob, ::Hash]
|
|
693
|
+
# Required. The PipelineJob to create.
|
|
694
|
+
# @param pipeline_job_id [::String]
|
|
695
|
+
# The ID to use for the PipelineJob, which will become the final component of
|
|
696
|
+
# the PipelineJob name. If not provided, an ID will be automatically
|
|
697
|
+
# generated.
|
|
698
|
+
#
|
|
699
|
+
# This value should be less than 128 characters, and valid characters
|
|
700
|
+
# are `/[a-z][0-9]-/`.
|
|
701
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
702
|
+
# @yieldparam result [::Google::Cloud::AIPlatform::V1::PipelineJob]
|
|
703
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
704
|
+
#
|
|
705
|
+
# @return [::Google::Cloud::AIPlatform::V1::PipelineJob]
|
|
706
|
+
#
|
|
707
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
708
|
+
#
|
|
709
|
+
# @example Basic example
|
|
710
|
+
# require "google/cloud/ai_platform/v1"
|
|
711
|
+
#
|
|
712
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
713
|
+
# client = Google::Cloud::AIPlatform::V1::PipelineService::Rest::Client.new
|
|
714
|
+
#
|
|
715
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
716
|
+
# request = Google::Cloud::AIPlatform::V1::CreatePipelineJobRequest.new
|
|
717
|
+
#
|
|
718
|
+
# # Call the create_pipeline_job method.
|
|
719
|
+
# result = client.create_pipeline_job request
|
|
720
|
+
#
|
|
721
|
+
# # The returned object is of type Google::Cloud::AIPlatform::V1::PipelineJob.
|
|
722
|
+
# p result
|
|
723
|
+
#
|
|
724
|
+
def create_pipeline_job request, options = nil
|
|
725
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
726
|
+
|
|
727
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CreatePipelineJobRequest
|
|
728
|
+
|
|
729
|
+
# Converts hash and nil to an options object
|
|
730
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
731
|
+
|
|
732
|
+
# Customize the options with defaults
|
|
733
|
+
call_metadata = @config.rpcs.create_pipeline_job.metadata.to_h
|
|
734
|
+
|
|
735
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
736
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
737
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
738
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
|
|
739
|
+
transports_version_send: [:rest]
|
|
740
|
+
|
|
741
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
742
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
743
|
+
|
|
744
|
+
options.apply_defaults timeout: @config.rpcs.create_pipeline_job.timeout,
|
|
745
|
+
metadata: call_metadata,
|
|
746
|
+
retry_policy: @config.rpcs.create_pipeline_job.retry_policy
|
|
747
|
+
|
|
748
|
+
options.apply_defaults timeout: @config.timeout,
|
|
749
|
+
metadata: @config.metadata,
|
|
750
|
+
retry_policy: @config.retry_policy
|
|
751
|
+
|
|
752
|
+
@pipeline_service_stub.create_pipeline_job request, options do |result, operation|
|
|
753
|
+
yield result, operation if block_given?
|
|
754
|
+
return result
|
|
755
|
+
end
|
|
756
|
+
rescue ::Gapic::Rest::Error => e
|
|
757
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
758
|
+
end
|
|
759
|
+
|
|
760
|
+
##
|
|
761
|
+
# Gets a PipelineJob.
|
|
762
|
+
#
|
|
763
|
+
# @overload get_pipeline_job(request, options = nil)
|
|
764
|
+
# Pass arguments to `get_pipeline_job` via a request object, either of type
|
|
765
|
+
# {::Google::Cloud::AIPlatform::V1::GetPipelineJobRequest} or an equivalent Hash.
|
|
766
|
+
#
|
|
767
|
+
# @param request [::Google::Cloud::AIPlatform::V1::GetPipelineJobRequest, ::Hash]
|
|
768
|
+
# A request object representing the call parameters. Required. To specify no
|
|
769
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
770
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
771
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
772
|
+
#
|
|
773
|
+
# @overload get_pipeline_job(name: nil)
|
|
774
|
+
# Pass arguments to `get_pipeline_job` via keyword arguments. Note that at
|
|
775
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
776
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
777
|
+
#
|
|
778
|
+
# @param name [::String]
|
|
779
|
+
# Required. The name of the PipelineJob resource.
|
|
780
|
+
# Format:
|
|
781
|
+
# `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
|
|
782
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
783
|
+
# @yieldparam result [::Google::Cloud::AIPlatform::V1::PipelineJob]
|
|
784
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
785
|
+
#
|
|
786
|
+
# @return [::Google::Cloud::AIPlatform::V1::PipelineJob]
|
|
787
|
+
#
|
|
788
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
789
|
+
#
|
|
790
|
+
# @example Basic example
|
|
791
|
+
# require "google/cloud/ai_platform/v1"
|
|
792
|
+
#
|
|
793
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
794
|
+
# client = Google::Cloud::AIPlatform::V1::PipelineService::Rest::Client.new
|
|
795
|
+
#
|
|
796
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
797
|
+
# request = Google::Cloud::AIPlatform::V1::GetPipelineJobRequest.new
|
|
798
|
+
#
|
|
799
|
+
# # Call the get_pipeline_job method.
|
|
800
|
+
# result = client.get_pipeline_job request
|
|
801
|
+
#
|
|
802
|
+
# # The returned object is of type Google::Cloud::AIPlatform::V1::PipelineJob.
|
|
803
|
+
# p result
|
|
804
|
+
#
|
|
805
|
+
def get_pipeline_job request, options = nil
|
|
806
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
807
|
+
|
|
808
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::GetPipelineJobRequest
|
|
809
|
+
|
|
810
|
+
# Converts hash and nil to an options object
|
|
811
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
812
|
+
|
|
813
|
+
# Customize the options with defaults
|
|
814
|
+
call_metadata = @config.rpcs.get_pipeline_job.metadata.to_h
|
|
815
|
+
|
|
816
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
817
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
818
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
819
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
|
|
820
|
+
transports_version_send: [:rest]
|
|
821
|
+
|
|
822
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
823
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
824
|
+
|
|
825
|
+
options.apply_defaults timeout: @config.rpcs.get_pipeline_job.timeout,
|
|
826
|
+
metadata: call_metadata,
|
|
827
|
+
retry_policy: @config.rpcs.get_pipeline_job.retry_policy
|
|
828
|
+
|
|
829
|
+
options.apply_defaults timeout: @config.timeout,
|
|
830
|
+
metadata: @config.metadata,
|
|
831
|
+
retry_policy: @config.retry_policy
|
|
832
|
+
|
|
833
|
+
@pipeline_service_stub.get_pipeline_job request, options do |result, operation|
|
|
834
|
+
yield result, operation if block_given?
|
|
835
|
+
return result
|
|
836
|
+
end
|
|
837
|
+
rescue ::Gapic::Rest::Error => e
|
|
838
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
839
|
+
end
|
|
840
|
+
|
|
841
|
+
##
|
|
842
|
+
# Lists PipelineJobs in a Location.
|
|
843
|
+
#
|
|
844
|
+
# @overload list_pipeline_jobs(request, options = nil)
|
|
845
|
+
# Pass arguments to `list_pipeline_jobs` via a request object, either of type
|
|
846
|
+
# {::Google::Cloud::AIPlatform::V1::ListPipelineJobsRequest} or an equivalent Hash.
|
|
847
|
+
#
|
|
848
|
+
# @param request [::Google::Cloud::AIPlatform::V1::ListPipelineJobsRequest, ::Hash]
|
|
849
|
+
# A request object representing the call parameters. Required. To specify no
|
|
850
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
851
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
852
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
853
|
+
#
|
|
854
|
+
# @overload list_pipeline_jobs(parent: nil, filter: nil, page_size: nil, page_token: nil, order_by: nil, read_mask: nil)
|
|
855
|
+
# Pass arguments to `list_pipeline_jobs` via keyword arguments. Note that at
|
|
856
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
857
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
858
|
+
#
|
|
859
|
+
# @param parent [::String]
|
|
860
|
+
# Required. The resource name of the Location to list the PipelineJobs from.
|
|
861
|
+
# Format: `projects/{project}/locations/{location}`
|
|
862
|
+
# @param filter [::String]
|
|
863
|
+
# Lists the PipelineJobs that match the filter expression. The following
|
|
864
|
+
# fields are supported:
|
|
865
|
+
#
|
|
866
|
+
# * `pipeline_name`: Supports `=` and `!=` comparisons.
|
|
867
|
+
# * `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard.
|
|
868
|
+
# * `pipeline_job_user_id`: Supports `=`, `!=` comparisons, and `:` wildcard.
|
|
869
|
+
# for example, can check if pipeline's display_name contains *step* by
|
|
870
|
+
# doing display_name:\"*step*\"
|
|
871
|
+
# * `state`: Supports `=` and `!=` comparisons.
|
|
872
|
+
# * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
|
|
873
|
+
# Values must be in RFC 3339 format.
|
|
874
|
+
# * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
|
|
875
|
+
# Values must be in RFC 3339 format.
|
|
876
|
+
# * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
|
|
877
|
+
# Values must be in RFC 3339 format.
|
|
878
|
+
# * `labels`: Supports key-value equality and key presence.
|
|
879
|
+
# * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard.
|
|
880
|
+
# * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:`
|
|
881
|
+
# wildcard.
|
|
882
|
+
#
|
|
883
|
+
# Filter expressions can be combined together using logical operators
|
|
884
|
+
# (`AND` & `OR`).
|
|
885
|
+
# For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`.
|
|
886
|
+
#
|
|
887
|
+
# The syntax to define filter expression is based on
|
|
888
|
+
# https://google.aip.dev/160.
|
|
889
|
+
#
|
|
890
|
+
# Examples:
|
|
891
|
+
#
|
|
892
|
+
# * `create_time>"2021-05-18T00:00:00Z" OR
|
|
893
|
+
# update_time>"2020-05-18T00:00:00Z"` PipelineJobs created or updated
|
|
894
|
+
# after 2020-05-18 00:00:00 UTC.
|
|
895
|
+
# * `labels.env = "prod"`
|
|
896
|
+
# PipelineJobs with label "env" set to "prod".
|
|
897
|
+
# @param page_size [::Integer]
|
|
898
|
+
# The standard list page size.
|
|
899
|
+
# @param page_token [::String]
|
|
900
|
+
# The standard list page token.
|
|
901
|
+
# Typically obtained via
|
|
902
|
+
# {::Google::Cloud::AIPlatform::V1::ListPipelineJobsResponse#next_page_token ListPipelineJobsResponse.next_page_token}
|
|
903
|
+
# of the previous
|
|
904
|
+
# {::Google::Cloud::AIPlatform::V1::PipelineService::Rest::Client#list_pipeline_jobs PipelineService.ListPipelineJobs}
|
|
905
|
+
# call.
|
|
906
|
+
# @param order_by [::String]
|
|
907
|
+
# A comma-separated list of fields to order by. The default sort order is in
|
|
908
|
+
# ascending order. Use "desc" after a field name for descending. You can have
|
|
909
|
+
# multiple order_by fields provided e.g. "create_time desc, end_time",
|
|
910
|
+
# "end_time, start_time, update_time" For example, using "create_time desc,
|
|
911
|
+
# end_time" will order results by create time in descending order, and if
|
|
912
|
+
# there are multiple jobs having the same create time, order them by the end
|
|
913
|
+
# time in ascending order. if order_by is not specified, it will order by
|
|
914
|
+
# default order is create time in descending order. Supported fields:
|
|
915
|
+
#
|
|
916
|
+
# * `create_time`
|
|
917
|
+
# * `update_time`
|
|
918
|
+
# * `end_time`
|
|
919
|
+
# * `start_time`
|
|
920
|
+
# @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
921
|
+
# Mask specifying which fields to read.
|
|
922
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
923
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AIPlatform::V1::PipelineJob>]
|
|
924
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
925
|
+
#
|
|
926
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AIPlatform::V1::PipelineJob>]
|
|
927
|
+
#
|
|
928
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
929
|
+
#
|
|
930
|
+
# @example Basic example
|
|
931
|
+
# require "google/cloud/ai_platform/v1"
|
|
932
|
+
#
|
|
933
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
934
|
+
# client = Google::Cloud::AIPlatform::V1::PipelineService::Rest::Client.new
|
|
935
|
+
#
|
|
936
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
937
|
+
# request = Google::Cloud::AIPlatform::V1::ListPipelineJobsRequest.new
|
|
938
|
+
#
|
|
939
|
+
# # Call the list_pipeline_jobs method.
|
|
940
|
+
# result = client.list_pipeline_jobs request
|
|
941
|
+
#
|
|
942
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
943
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
944
|
+
# result.each do |item|
|
|
945
|
+
# # Each element is of type ::Google::Cloud::AIPlatform::V1::PipelineJob.
|
|
946
|
+
# p item
|
|
947
|
+
# end
|
|
948
|
+
#
|
|
949
|
+
def list_pipeline_jobs request, options = nil
|
|
950
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
951
|
+
|
|
952
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ListPipelineJobsRequest
|
|
953
|
+
|
|
954
|
+
# Converts hash and nil to an options object
|
|
955
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
956
|
+
|
|
957
|
+
# Customize the options with defaults
|
|
958
|
+
call_metadata = @config.rpcs.list_pipeline_jobs.metadata.to_h
|
|
959
|
+
|
|
960
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
961
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
962
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
963
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
|
|
964
|
+
transports_version_send: [:rest]
|
|
965
|
+
|
|
966
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
967
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
968
|
+
|
|
969
|
+
options.apply_defaults timeout: @config.rpcs.list_pipeline_jobs.timeout,
|
|
970
|
+
metadata: call_metadata,
|
|
971
|
+
retry_policy: @config.rpcs.list_pipeline_jobs.retry_policy
|
|
972
|
+
|
|
973
|
+
options.apply_defaults timeout: @config.timeout,
|
|
974
|
+
metadata: @config.metadata,
|
|
975
|
+
retry_policy: @config.retry_policy
|
|
976
|
+
|
|
977
|
+
@pipeline_service_stub.list_pipeline_jobs request, options do |result, operation|
|
|
978
|
+
result = ::Gapic::Rest::PagedEnumerable.new @pipeline_service_stub, :list_pipeline_jobs, "pipeline_jobs", request, result, options
|
|
979
|
+
yield result, operation if block_given?
|
|
980
|
+
return result
|
|
981
|
+
end
|
|
982
|
+
rescue ::Gapic::Rest::Error => e
|
|
983
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
984
|
+
end
|
|
985
|
+
|
|
986
|
+
##
|
|
987
|
+
# Deletes a PipelineJob.
|
|
988
|
+
#
|
|
989
|
+
# @overload delete_pipeline_job(request, options = nil)
|
|
990
|
+
# Pass arguments to `delete_pipeline_job` via a request object, either of type
|
|
991
|
+
# {::Google::Cloud::AIPlatform::V1::DeletePipelineJobRequest} or an equivalent Hash.
|
|
992
|
+
#
|
|
993
|
+
# @param request [::Google::Cloud::AIPlatform::V1::DeletePipelineJobRequest, ::Hash]
|
|
994
|
+
# A request object representing the call parameters. Required. To specify no
|
|
995
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
996
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
997
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
998
|
+
#
|
|
999
|
+
# @overload delete_pipeline_job(name: nil)
|
|
1000
|
+
# Pass arguments to `delete_pipeline_job` via keyword arguments. Note that at
|
|
1001
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1002
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1003
|
+
#
|
|
1004
|
+
# @param name [::String]
|
|
1005
|
+
# Required. The name of the PipelineJob resource to be deleted.
|
|
1006
|
+
# Format:
|
|
1007
|
+
# `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
|
|
1008
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1009
|
+
# @yieldparam result [::Gapic::Operation]
|
|
1010
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1011
|
+
#
|
|
1012
|
+
# @return [::Gapic::Operation]
|
|
1013
|
+
#
|
|
1014
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1015
|
+
#
|
|
1016
|
+
# @example Basic example
|
|
1017
|
+
# require "google/cloud/ai_platform/v1"
|
|
1018
|
+
#
|
|
1019
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1020
|
+
# client = Google::Cloud::AIPlatform::V1::PipelineService::Rest::Client.new
|
|
1021
|
+
#
|
|
1022
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1023
|
+
# request = Google::Cloud::AIPlatform::V1::DeletePipelineJobRequest.new
|
|
1024
|
+
#
|
|
1025
|
+
# # Call the delete_pipeline_job method.
|
|
1026
|
+
# result = client.delete_pipeline_job request
|
|
1027
|
+
#
|
|
1028
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
1029
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
1030
|
+
# # Here is how to wait for a response.
|
|
1031
|
+
# result.wait_until_done! timeout: 60
|
|
1032
|
+
# if result.response?
|
|
1033
|
+
# p result.response
|
|
1034
|
+
# else
|
|
1035
|
+
# puts "No response received."
|
|
1036
|
+
# end
|
|
1037
|
+
#
|
|
1038
|
+
def delete_pipeline_job request, options = nil
|
|
1039
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1040
|
+
|
|
1041
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::DeletePipelineJobRequest
|
|
1042
|
+
|
|
1043
|
+
# Converts hash and nil to an options object
|
|
1044
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1045
|
+
|
|
1046
|
+
# Customize the options with defaults
|
|
1047
|
+
call_metadata = @config.rpcs.delete_pipeline_job.metadata.to_h
|
|
1048
|
+
|
|
1049
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1050
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1051
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1052
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
|
|
1053
|
+
transports_version_send: [:rest]
|
|
1054
|
+
|
|
1055
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1056
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1057
|
+
|
|
1058
|
+
options.apply_defaults timeout: @config.rpcs.delete_pipeline_job.timeout,
|
|
1059
|
+
metadata: call_metadata,
|
|
1060
|
+
retry_policy: @config.rpcs.delete_pipeline_job.retry_policy
|
|
1061
|
+
|
|
1062
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1063
|
+
metadata: @config.metadata,
|
|
1064
|
+
retry_policy: @config.retry_policy
|
|
1065
|
+
|
|
1066
|
+
@pipeline_service_stub.delete_pipeline_job request, options do |result, operation|
|
|
1067
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
1068
|
+
yield result, operation if block_given?
|
|
1069
|
+
return result
|
|
1070
|
+
end
|
|
1071
|
+
rescue ::Gapic::Rest::Error => e
|
|
1072
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1073
|
+
end
|
|
1074
|
+
|
|
1075
|
+
##
|
|
1076
|
+
# Batch deletes PipelineJobs
|
|
1077
|
+
# The Operation is atomic. If it fails, none of the PipelineJobs are deleted.
|
|
1078
|
+
# If it succeeds, all of the PipelineJobs are deleted.
|
|
1079
|
+
#
|
|
1080
|
+
# @overload batch_delete_pipeline_jobs(request, options = nil)
|
|
1081
|
+
# Pass arguments to `batch_delete_pipeline_jobs` via a request object, either of type
|
|
1082
|
+
# {::Google::Cloud::AIPlatform::V1::BatchDeletePipelineJobsRequest} or an equivalent Hash.
|
|
1083
|
+
#
|
|
1084
|
+
# @param request [::Google::Cloud::AIPlatform::V1::BatchDeletePipelineJobsRequest, ::Hash]
|
|
1085
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1086
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1087
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1088
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1089
|
+
#
|
|
1090
|
+
# @overload batch_delete_pipeline_jobs(parent: nil, names: nil)
|
|
1091
|
+
# Pass arguments to `batch_delete_pipeline_jobs` via keyword arguments. Note that at
|
|
1092
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1093
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1094
|
+
#
|
|
1095
|
+
# @param parent [::String]
|
|
1096
|
+
# Required. The name of the PipelineJobs' parent resource.
|
|
1097
|
+
# Format: `projects/{project}/locations/{location}`
|
|
1098
|
+
# @param names [::Array<::String>]
|
|
1099
|
+
# Required. The names of the PipelineJobs to delete.
|
|
1100
|
+
# A maximum of 32 PipelineJobs can be deleted in a batch.
|
|
1101
|
+
# Format:
|
|
1102
|
+
# `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}`
|
|
1103
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1104
|
+
# @yieldparam result [::Gapic::Operation]
|
|
1105
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1106
|
+
#
|
|
1107
|
+
# @return [::Gapic::Operation]
|
|
1108
|
+
#
|
|
1109
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1110
|
+
#
|
|
1111
|
+
# @example Basic example
|
|
1112
|
+
# require "google/cloud/ai_platform/v1"
|
|
1113
|
+
#
|
|
1114
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1115
|
+
# client = Google::Cloud::AIPlatform::V1::PipelineService::Rest::Client.new
|
|
1116
|
+
#
|
|
1117
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1118
|
+
# request = Google::Cloud::AIPlatform::V1::BatchDeletePipelineJobsRequest.new
|
|
1119
|
+
#
|
|
1120
|
+
# # Call the batch_delete_pipeline_jobs method.
|
|
1121
|
+
# result = client.batch_delete_pipeline_jobs request
|
|
1122
|
+
#
|
|
1123
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
1124
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
1125
|
+
# # Here is how to wait for a response.
|
|
1126
|
+
# result.wait_until_done! timeout: 60
|
|
1127
|
+
# if result.response?
|
|
1128
|
+
# p result.response
|
|
1129
|
+
# else
|
|
1130
|
+
# puts "No response received."
|
|
1131
|
+
# end
|
|
1132
|
+
#
|
|
1133
|
+
def batch_delete_pipeline_jobs request, options = nil
|
|
1134
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1135
|
+
|
|
1136
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::BatchDeletePipelineJobsRequest
|
|
1137
|
+
|
|
1138
|
+
# Converts hash and nil to an options object
|
|
1139
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1140
|
+
|
|
1141
|
+
# Customize the options with defaults
|
|
1142
|
+
call_metadata = @config.rpcs.batch_delete_pipeline_jobs.metadata.to_h
|
|
1143
|
+
|
|
1144
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1145
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1146
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1147
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
|
|
1148
|
+
transports_version_send: [:rest]
|
|
1149
|
+
|
|
1150
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1151
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1152
|
+
|
|
1153
|
+
options.apply_defaults timeout: @config.rpcs.batch_delete_pipeline_jobs.timeout,
|
|
1154
|
+
metadata: call_metadata,
|
|
1155
|
+
retry_policy: @config.rpcs.batch_delete_pipeline_jobs.retry_policy
|
|
1156
|
+
|
|
1157
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1158
|
+
metadata: @config.metadata,
|
|
1159
|
+
retry_policy: @config.retry_policy
|
|
1160
|
+
|
|
1161
|
+
@pipeline_service_stub.batch_delete_pipeline_jobs request, options do |result, operation|
|
|
1162
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
1163
|
+
yield result, operation if block_given?
|
|
1164
|
+
return result
|
|
1165
|
+
end
|
|
1166
|
+
rescue ::Gapic::Rest::Error => e
|
|
1167
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1168
|
+
end
|
|
1169
|
+
|
|
1170
|
+
##
|
|
1171
|
+
# Cancels a PipelineJob.
|
|
1172
|
+
# Starts asynchronous cancellation on the PipelineJob. The server
|
|
1173
|
+
# makes a best effort to cancel the pipeline, but success is not
|
|
1174
|
+
# guaranteed. Clients can use
|
|
1175
|
+
# {::Google::Cloud::AIPlatform::V1::PipelineService::Rest::Client#get_pipeline_job PipelineService.GetPipelineJob}
|
|
1176
|
+
# or other methods to check whether the cancellation succeeded or whether the
|
|
1177
|
+
# pipeline completed despite cancellation. On successful cancellation,
|
|
1178
|
+
# the PipelineJob is not deleted; instead it becomes a pipeline with
|
|
1179
|
+
# a {::Google::Cloud::AIPlatform::V1::PipelineJob#error PipelineJob.error} value
|
|
1180
|
+
# with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1, corresponding
|
|
1181
|
+
# to `Code.CANCELLED`, and
|
|
1182
|
+
# {::Google::Cloud::AIPlatform::V1::PipelineJob#state PipelineJob.state} is set to
|
|
1183
|
+
# `CANCELLED`.
|
|
1184
|
+
#
|
|
1185
|
+
# @overload cancel_pipeline_job(request, options = nil)
|
|
1186
|
+
# Pass arguments to `cancel_pipeline_job` via a request object, either of type
|
|
1187
|
+
# {::Google::Cloud::AIPlatform::V1::CancelPipelineJobRequest} or an equivalent Hash.
|
|
1188
|
+
#
|
|
1189
|
+
# @param request [::Google::Cloud::AIPlatform::V1::CancelPipelineJobRequest, ::Hash]
|
|
1190
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1191
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1192
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1193
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1194
|
+
#
|
|
1195
|
+
# @overload cancel_pipeline_job(name: nil)
|
|
1196
|
+
# Pass arguments to `cancel_pipeline_job` via keyword arguments. Note that at
|
|
1197
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1198
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1199
|
+
#
|
|
1200
|
+
# @param name [::String]
|
|
1201
|
+
# Required. The name of the PipelineJob to cancel.
|
|
1202
|
+
# Format:
|
|
1203
|
+
# `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
|
|
1204
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1205
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
|
1206
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1207
|
+
#
|
|
1208
|
+
# @return [::Google::Protobuf::Empty]
|
|
1209
|
+
#
|
|
1210
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1211
|
+
#
|
|
1212
|
+
# @example Basic example
|
|
1213
|
+
# require "google/cloud/ai_platform/v1"
|
|
1214
|
+
#
|
|
1215
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1216
|
+
# client = Google::Cloud::AIPlatform::V1::PipelineService::Rest::Client.new
|
|
1217
|
+
#
|
|
1218
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1219
|
+
# request = Google::Cloud::AIPlatform::V1::CancelPipelineJobRequest.new
|
|
1220
|
+
#
|
|
1221
|
+
# # Call the cancel_pipeline_job method.
|
|
1222
|
+
# result = client.cancel_pipeline_job request
|
|
1223
|
+
#
|
|
1224
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
|
1225
|
+
# p result
|
|
1226
|
+
#
|
|
1227
|
+
def cancel_pipeline_job request, options = nil
|
|
1228
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1229
|
+
|
|
1230
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CancelPipelineJobRequest
|
|
1231
|
+
|
|
1232
|
+
# Converts hash and nil to an options object
|
|
1233
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1234
|
+
|
|
1235
|
+
# Customize the options with defaults
|
|
1236
|
+
call_metadata = @config.rpcs.cancel_pipeline_job.metadata.to_h
|
|
1237
|
+
|
|
1238
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1239
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1240
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1241
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
|
|
1242
|
+
transports_version_send: [:rest]
|
|
1243
|
+
|
|
1244
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1245
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1246
|
+
|
|
1247
|
+
options.apply_defaults timeout: @config.rpcs.cancel_pipeline_job.timeout,
|
|
1248
|
+
metadata: call_metadata,
|
|
1249
|
+
retry_policy: @config.rpcs.cancel_pipeline_job.retry_policy
|
|
1250
|
+
|
|
1251
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1252
|
+
metadata: @config.metadata,
|
|
1253
|
+
retry_policy: @config.retry_policy
|
|
1254
|
+
|
|
1255
|
+
@pipeline_service_stub.cancel_pipeline_job request, options do |result, operation|
|
|
1256
|
+
yield result, operation if block_given?
|
|
1257
|
+
return result
|
|
1258
|
+
end
|
|
1259
|
+
rescue ::Gapic::Rest::Error => e
|
|
1260
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1261
|
+
end
|
|
1262
|
+
|
|
1263
|
+
##
|
|
1264
|
+
# Batch cancel PipelineJobs.
|
|
1265
|
+
# Firstly the server will check if all the jobs are in non-terminal states,
|
|
1266
|
+
# and skip the jobs that are already terminated.
|
|
1267
|
+
# If the operation failed, none of the pipeline jobs are cancelled.
|
|
1268
|
+
# The server will poll the states of all the pipeline jobs periodically
|
|
1269
|
+
# to check the cancellation status.
|
|
1270
|
+
# This operation will return an LRO.
|
|
1271
|
+
#
|
|
1272
|
+
# @overload batch_cancel_pipeline_jobs(request, options = nil)
|
|
1273
|
+
# Pass arguments to `batch_cancel_pipeline_jobs` via a request object, either of type
|
|
1274
|
+
# {::Google::Cloud::AIPlatform::V1::BatchCancelPipelineJobsRequest} or an equivalent Hash.
|
|
1275
|
+
#
|
|
1276
|
+
# @param request [::Google::Cloud::AIPlatform::V1::BatchCancelPipelineJobsRequest, ::Hash]
|
|
1277
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1278
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1279
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1280
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1281
|
+
#
|
|
1282
|
+
# @overload batch_cancel_pipeline_jobs(parent: nil, names: nil)
|
|
1283
|
+
# Pass arguments to `batch_cancel_pipeline_jobs` via keyword arguments. Note that at
|
|
1284
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1285
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1286
|
+
#
|
|
1287
|
+
# @param parent [::String]
|
|
1288
|
+
# Required. The name of the PipelineJobs' parent resource.
|
|
1289
|
+
# Format: `projects/{project}/locations/{location}`
|
|
1290
|
+
# @param names [::Array<::String>]
|
|
1291
|
+
# Required. The names of the PipelineJobs to cancel.
|
|
1292
|
+
# A maximum of 32 PipelineJobs can be cancelled in a batch.
|
|
1293
|
+
# Format:
|
|
1294
|
+
# `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}`
|
|
1295
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1296
|
+
# @yieldparam result [::Gapic::Operation]
|
|
1297
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1298
|
+
#
|
|
1299
|
+
# @return [::Gapic::Operation]
|
|
1300
|
+
#
|
|
1301
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1302
|
+
#
|
|
1303
|
+
# @example Basic example
|
|
1304
|
+
# require "google/cloud/ai_platform/v1"
|
|
1305
|
+
#
|
|
1306
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1307
|
+
# client = Google::Cloud::AIPlatform::V1::PipelineService::Rest::Client.new
|
|
1308
|
+
#
|
|
1309
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1310
|
+
# request = Google::Cloud::AIPlatform::V1::BatchCancelPipelineJobsRequest.new
|
|
1311
|
+
#
|
|
1312
|
+
# # Call the batch_cancel_pipeline_jobs method.
|
|
1313
|
+
# result = client.batch_cancel_pipeline_jobs request
|
|
1314
|
+
#
|
|
1315
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
1316
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
1317
|
+
# # Here is how to wait for a response.
|
|
1318
|
+
# result.wait_until_done! timeout: 60
|
|
1319
|
+
# if result.response?
|
|
1320
|
+
# p result.response
|
|
1321
|
+
# else
|
|
1322
|
+
# puts "No response received."
|
|
1323
|
+
# end
|
|
1324
|
+
#
|
|
1325
|
+
def batch_cancel_pipeline_jobs request, options = nil
|
|
1326
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1327
|
+
|
|
1328
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::BatchCancelPipelineJobsRequest
|
|
1329
|
+
|
|
1330
|
+
# Converts hash and nil to an options object
|
|
1331
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1332
|
+
|
|
1333
|
+
# Customize the options with defaults
|
|
1334
|
+
call_metadata = @config.rpcs.batch_cancel_pipeline_jobs.metadata.to_h
|
|
1335
|
+
|
|
1336
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1337
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1338
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1339
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
|
|
1340
|
+
transports_version_send: [:rest]
|
|
1341
|
+
|
|
1342
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1343
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1344
|
+
|
|
1345
|
+
options.apply_defaults timeout: @config.rpcs.batch_cancel_pipeline_jobs.timeout,
|
|
1346
|
+
metadata: call_metadata,
|
|
1347
|
+
retry_policy: @config.rpcs.batch_cancel_pipeline_jobs.retry_policy
|
|
1348
|
+
|
|
1349
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1350
|
+
metadata: @config.metadata,
|
|
1351
|
+
retry_policy: @config.retry_policy
|
|
1352
|
+
|
|
1353
|
+
@pipeline_service_stub.batch_cancel_pipeline_jobs request, options do |result, operation|
|
|
1354
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
1355
|
+
yield result, operation if block_given?
|
|
1356
|
+
return result
|
|
1357
|
+
end
|
|
1358
|
+
rescue ::Gapic::Rest::Error => e
|
|
1359
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1360
|
+
end
|
|
1361
|
+
|
|
1362
|
+
##
|
|
1363
|
+
# Configuration class for the PipelineService REST API.
|
|
1364
|
+
#
|
|
1365
|
+
# This class represents the configuration for PipelineService REST,
|
|
1366
|
+
# providing control over timeouts, retry behavior, logging, transport
|
|
1367
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
|
1368
|
+
# applied individually to specific RPCs. See
|
|
1369
|
+
# {::Google::Cloud::AIPlatform::V1::PipelineService::Rest::Client::Configuration::Rpcs}
|
|
1370
|
+
# for a list of RPCs that can be configured independently.
|
|
1371
|
+
#
|
|
1372
|
+
# Configuration can be applied globally to all clients, or to a single client
|
|
1373
|
+
# on construction.
|
|
1374
|
+
#
|
|
1375
|
+
# @example
|
|
1376
|
+
#
|
|
1377
|
+
# # Modify the global config, setting the timeout for
|
|
1378
|
+
# # create_training_pipeline to 20 seconds,
|
|
1379
|
+
# # and all remaining timeouts to 10 seconds.
|
|
1380
|
+
# ::Google::Cloud::AIPlatform::V1::PipelineService::Rest::Client.configure do |config|
|
|
1381
|
+
# config.timeout = 10.0
|
|
1382
|
+
# config.rpcs.create_training_pipeline.timeout = 20.0
|
|
1383
|
+
# end
|
|
1384
|
+
#
|
|
1385
|
+
# # Apply the above configuration only to a new client.
|
|
1386
|
+
# client = ::Google::Cloud::AIPlatform::V1::PipelineService::Rest::Client.new do |config|
|
|
1387
|
+
# config.timeout = 10.0
|
|
1388
|
+
# config.rpcs.create_training_pipeline.timeout = 20.0
|
|
1389
|
+
# end
|
|
1390
|
+
#
|
|
1391
|
+
# @!attribute [rw] endpoint
|
|
1392
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
|
1393
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
|
1394
|
+
# @return [::String,nil]
|
|
1395
|
+
# @!attribute [rw] credentials
|
|
1396
|
+
# Credentials to send with calls. You may provide any of the following types:
|
|
1397
|
+
# * (`String`) The path to a service account key file in JSON format
|
|
1398
|
+
# * (`Hash`) A service account key as a Hash
|
|
1399
|
+
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
1400
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
1401
|
+
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
1402
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
1403
|
+
# * (`nil`) indicating no credentials
|
|
1404
|
+
# @return [::Object]
|
|
1405
|
+
# @!attribute [rw] scope
|
|
1406
|
+
# The OAuth scopes
|
|
1407
|
+
# @return [::Array<::String>]
|
|
1408
|
+
# @!attribute [rw] lib_name
|
|
1409
|
+
# The library name as recorded in instrumentation and logging
|
|
1410
|
+
# @return [::String]
|
|
1411
|
+
# @!attribute [rw] lib_version
|
|
1412
|
+
# The library version as recorded in instrumentation and logging
|
|
1413
|
+
# @return [::String]
|
|
1414
|
+
# @!attribute [rw] timeout
|
|
1415
|
+
# The call timeout in seconds.
|
|
1416
|
+
# @return [::Numeric]
|
|
1417
|
+
# @!attribute [rw] metadata
|
|
1418
|
+
# Additional headers to be sent with the call.
|
|
1419
|
+
# @return [::Hash{::Symbol=>::String}]
|
|
1420
|
+
# @!attribute [rw] retry_policy
|
|
1421
|
+
# The retry policy. The value is a hash with the following keys:
|
|
1422
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
1423
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
1424
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1425
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
1426
|
+
# trigger a retry.
|
|
1427
|
+
# @return [::Hash]
|
|
1428
|
+
# @!attribute [rw] quota_project
|
|
1429
|
+
# A separate project against which to charge quota.
|
|
1430
|
+
# @return [::String]
|
|
1431
|
+
# @!attribute [rw] universe_domain
|
|
1432
|
+
# The universe domain within which to make requests. This determines the
|
|
1433
|
+
# default endpoint URL. The default value of nil uses the environment
|
|
1434
|
+
# universe (usually the default "googleapis.com" universe).
|
|
1435
|
+
# @return [::String,nil]
|
|
1436
|
+
#
|
|
1437
|
+
class Configuration
|
|
1438
|
+
extend ::Gapic::Config
|
|
1439
|
+
|
|
1440
|
+
# @private
|
|
1441
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
|
1442
|
+
DEFAULT_ENDPOINT = "aiplatform.googleapis.com"
|
|
1443
|
+
|
|
1444
|
+
config_attr :endpoint, nil, ::String, nil
|
|
1445
|
+
config_attr :credentials, nil do |value|
|
|
1446
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
1447
|
+
allowed.any? { |klass| klass === value }
|
|
1448
|
+
end
|
|
1449
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
|
1450
|
+
config_attr :lib_name, nil, ::String, nil
|
|
1451
|
+
config_attr :lib_version, nil, ::String, nil
|
|
1452
|
+
config_attr :timeout, nil, ::Numeric, nil
|
|
1453
|
+
config_attr :metadata, nil, ::Hash, nil
|
|
1454
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
1455
|
+
config_attr :quota_project, nil, ::String, nil
|
|
1456
|
+
config_attr :universe_domain, nil, ::String, nil
|
|
1457
|
+
|
|
1458
|
+
# @private
|
|
1459
|
+
# Overrides for http bindings for the RPCs of this service
|
|
1460
|
+
# are only used when this service is used as mixin, and only
|
|
1461
|
+
# by the host service.
|
|
1462
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
|
1463
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
|
1464
|
+
|
|
1465
|
+
# @private
|
|
1466
|
+
def initialize parent_config = nil
|
|
1467
|
+
@parent_config = parent_config unless parent_config.nil?
|
|
1468
|
+
|
|
1469
|
+
yield self if block_given?
|
|
1470
|
+
end
|
|
1471
|
+
|
|
1472
|
+
##
|
|
1473
|
+
# Configurations for individual RPCs
|
|
1474
|
+
# @return [Rpcs]
|
|
1475
|
+
#
|
|
1476
|
+
def rpcs
|
|
1477
|
+
@rpcs ||= begin
|
|
1478
|
+
parent_rpcs = nil
|
|
1479
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
|
1480
|
+
Rpcs.new parent_rpcs
|
|
1481
|
+
end
|
|
1482
|
+
end
|
|
1483
|
+
|
|
1484
|
+
##
|
|
1485
|
+
# Configuration RPC class for the PipelineService API.
|
|
1486
|
+
#
|
|
1487
|
+
# Includes fields providing the configuration for each RPC in this service.
|
|
1488
|
+
# Each configuration object is of type `Gapic::Config::Method` and includes
|
|
1489
|
+
# the following configuration fields:
|
|
1490
|
+
#
|
|
1491
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
|
1492
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
|
|
1493
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
|
1494
|
+
# include the following keys:
|
|
1495
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
1496
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
1497
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1498
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
1499
|
+
# trigger a retry.
|
|
1500
|
+
#
|
|
1501
|
+
class Rpcs
|
|
1502
|
+
##
|
|
1503
|
+
# RPC-specific configuration for `create_training_pipeline`
|
|
1504
|
+
# @return [::Gapic::Config::Method]
|
|
1505
|
+
#
|
|
1506
|
+
attr_reader :create_training_pipeline
|
|
1507
|
+
##
|
|
1508
|
+
# RPC-specific configuration for `get_training_pipeline`
|
|
1509
|
+
# @return [::Gapic::Config::Method]
|
|
1510
|
+
#
|
|
1511
|
+
attr_reader :get_training_pipeline
|
|
1512
|
+
##
|
|
1513
|
+
# RPC-specific configuration for `list_training_pipelines`
|
|
1514
|
+
# @return [::Gapic::Config::Method]
|
|
1515
|
+
#
|
|
1516
|
+
attr_reader :list_training_pipelines
|
|
1517
|
+
##
|
|
1518
|
+
# RPC-specific configuration for `delete_training_pipeline`
|
|
1519
|
+
# @return [::Gapic::Config::Method]
|
|
1520
|
+
#
|
|
1521
|
+
attr_reader :delete_training_pipeline
|
|
1522
|
+
##
|
|
1523
|
+
# RPC-specific configuration for `cancel_training_pipeline`
|
|
1524
|
+
# @return [::Gapic::Config::Method]
|
|
1525
|
+
#
|
|
1526
|
+
attr_reader :cancel_training_pipeline
|
|
1527
|
+
##
|
|
1528
|
+
# RPC-specific configuration for `create_pipeline_job`
|
|
1529
|
+
# @return [::Gapic::Config::Method]
|
|
1530
|
+
#
|
|
1531
|
+
attr_reader :create_pipeline_job
|
|
1532
|
+
##
|
|
1533
|
+
# RPC-specific configuration for `get_pipeline_job`
|
|
1534
|
+
# @return [::Gapic::Config::Method]
|
|
1535
|
+
#
|
|
1536
|
+
attr_reader :get_pipeline_job
|
|
1537
|
+
##
|
|
1538
|
+
# RPC-specific configuration for `list_pipeline_jobs`
|
|
1539
|
+
# @return [::Gapic::Config::Method]
|
|
1540
|
+
#
|
|
1541
|
+
attr_reader :list_pipeline_jobs
|
|
1542
|
+
##
|
|
1543
|
+
# RPC-specific configuration for `delete_pipeline_job`
|
|
1544
|
+
# @return [::Gapic::Config::Method]
|
|
1545
|
+
#
|
|
1546
|
+
attr_reader :delete_pipeline_job
|
|
1547
|
+
##
|
|
1548
|
+
# RPC-specific configuration for `batch_delete_pipeline_jobs`
|
|
1549
|
+
# @return [::Gapic::Config::Method]
|
|
1550
|
+
#
|
|
1551
|
+
attr_reader :batch_delete_pipeline_jobs
|
|
1552
|
+
##
|
|
1553
|
+
# RPC-specific configuration for `cancel_pipeline_job`
|
|
1554
|
+
# @return [::Gapic::Config::Method]
|
|
1555
|
+
#
|
|
1556
|
+
attr_reader :cancel_pipeline_job
|
|
1557
|
+
##
|
|
1558
|
+
# RPC-specific configuration for `batch_cancel_pipeline_jobs`
|
|
1559
|
+
# @return [::Gapic::Config::Method]
|
|
1560
|
+
#
|
|
1561
|
+
attr_reader :batch_cancel_pipeline_jobs
|
|
1562
|
+
|
|
1563
|
+
# @private
|
|
1564
|
+
def initialize parent_rpcs = nil
|
|
1565
|
+
create_training_pipeline_config = parent_rpcs.create_training_pipeline if parent_rpcs.respond_to? :create_training_pipeline
|
|
1566
|
+
@create_training_pipeline = ::Gapic::Config::Method.new create_training_pipeline_config
|
|
1567
|
+
get_training_pipeline_config = parent_rpcs.get_training_pipeline if parent_rpcs.respond_to? :get_training_pipeline
|
|
1568
|
+
@get_training_pipeline = ::Gapic::Config::Method.new get_training_pipeline_config
|
|
1569
|
+
list_training_pipelines_config = parent_rpcs.list_training_pipelines if parent_rpcs.respond_to? :list_training_pipelines
|
|
1570
|
+
@list_training_pipelines = ::Gapic::Config::Method.new list_training_pipelines_config
|
|
1571
|
+
delete_training_pipeline_config = parent_rpcs.delete_training_pipeline if parent_rpcs.respond_to? :delete_training_pipeline
|
|
1572
|
+
@delete_training_pipeline = ::Gapic::Config::Method.new delete_training_pipeline_config
|
|
1573
|
+
cancel_training_pipeline_config = parent_rpcs.cancel_training_pipeline if parent_rpcs.respond_to? :cancel_training_pipeline
|
|
1574
|
+
@cancel_training_pipeline = ::Gapic::Config::Method.new cancel_training_pipeline_config
|
|
1575
|
+
create_pipeline_job_config = parent_rpcs.create_pipeline_job if parent_rpcs.respond_to? :create_pipeline_job
|
|
1576
|
+
@create_pipeline_job = ::Gapic::Config::Method.new create_pipeline_job_config
|
|
1577
|
+
get_pipeline_job_config = parent_rpcs.get_pipeline_job if parent_rpcs.respond_to? :get_pipeline_job
|
|
1578
|
+
@get_pipeline_job = ::Gapic::Config::Method.new get_pipeline_job_config
|
|
1579
|
+
list_pipeline_jobs_config = parent_rpcs.list_pipeline_jobs if parent_rpcs.respond_to? :list_pipeline_jobs
|
|
1580
|
+
@list_pipeline_jobs = ::Gapic::Config::Method.new list_pipeline_jobs_config
|
|
1581
|
+
delete_pipeline_job_config = parent_rpcs.delete_pipeline_job if parent_rpcs.respond_to? :delete_pipeline_job
|
|
1582
|
+
@delete_pipeline_job = ::Gapic::Config::Method.new delete_pipeline_job_config
|
|
1583
|
+
batch_delete_pipeline_jobs_config = parent_rpcs.batch_delete_pipeline_jobs if parent_rpcs.respond_to? :batch_delete_pipeline_jobs
|
|
1584
|
+
@batch_delete_pipeline_jobs = ::Gapic::Config::Method.new batch_delete_pipeline_jobs_config
|
|
1585
|
+
cancel_pipeline_job_config = parent_rpcs.cancel_pipeline_job if parent_rpcs.respond_to? :cancel_pipeline_job
|
|
1586
|
+
@cancel_pipeline_job = ::Gapic::Config::Method.new cancel_pipeline_job_config
|
|
1587
|
+
batch_cancel_pipeline_jobs_config = parent_rpcs.batch_cancel_pipeline_jobs if parent_rpcs.respond_to? :batch_cancel_pipeline_jobs
|
|
1588
|
+
@batch_cancel_pipeline_jobs = ::Gapic::Config::Method.new batch_cancel_pipeline_jobs_config
|
|
1589
|
+
|
|
1590
|
+
yield self if block_given?
|
|
1591
|
+
end
|
|
1592
|
+
end
|
|
1593
|
+
end
|
|
1594
|
+
end
|
|
1595
|
+
end
|
|
1596
|
+
end
|
|
1597
|
+
end
|
|
1598
|
+
end
|
|
1599
|
+
end
|
|
1600
|
+
end
|