google-cloud-ai_platform-v1 0.57.0 → 0.59.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +2 -0
- data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +3 -10
- data/lib/google/cloud/ai_platform/v1/dataset_service/rest/client.rb +2 -0
- data/lib/google/cloud/ai_platform/v1/dataset_service/rest/operations.rb +73 -10
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/operations.rb +3 -10
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/operations.rb +73 -10
- data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +103 -0
- data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +3 -10
- data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/client.rb +96 -0
- data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/operations.rb +73 -10
- data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/service_stub.rb +60 -0
- data/lib/google/cloud/ai_platform/v1/evaluation_service/client.rb +6 -1
- data/lib/google/cloud/ai_platform/v1/evaluation_service/rest/client.rb +6 -1
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/client.rb +1 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/operations.rb +3 -10
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/client.rb +1 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/operations.rb +73 -10
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/client.rb +4 -4
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/operations.rb +3 -10
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/client.rb +4 -4
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/operations.rb +73 -10
- data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +3 -10
- data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/operations.rb +73 -10
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/client.rb +3 -4
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/operations.rb +3 -10
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/client.rb +3 -4
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/operations.rb +73 -10
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +4 -2
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +3 -10
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/client.rb +4 -2
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/operations.rb +73 -10
- data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +3 -10
- data/lib/google/cloud/ai_platform/v1/index_service/rest/operations.rb +73 -10
- data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +3 -10
- data/lib/google/cloud/ai_platform/v1/job_service/rest/operations.rb +73 -10
- data/lib/google/cloud/ai_platform/v1/llm_utility_service/paths.rb +19 -0
- data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +3 -10
- data/lib/google/cloud/ai_platform/v1/metadata_service/rest/operations.rb +73 -10
- data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +3 -10
- data/lib/google/cloud/ai_platform/v1/migration_service/rest/operations.rb +73 -10
- data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +3 -10
- data/lib/google/cloud/ai_platform/v1/model_service/rest/operations.rb +73 -10
- data/lib/google/cloud/ai_platform/v1/notebook_service/client.rb +2 -1
- data/lib/google/cloud/ai_platform/v1/notebook_service/operations.rb +3 -10
- data/lib/google/cloud/ai_platform/v1/notebook_service/rest/client.rb +2 -1
- data/lib/google/cloud/ai_platform/v1/notebook_service/rest/operations.rb +73 -10
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service/client.rb +2 -2
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service/operations.rb +3 -10
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/client.rb +2 -2
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/operations.rb +73 -10
- data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +3 -10
- data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/operations.rb +73 -10
- data/lib/google/cloud/ai_platform/v1/prediction_service/paths.rb +19 -0
- data/lib/google/cloud/ai_platform/v1/rest.rb +2 -0
- data/lib/google/cloud/ai_platform/v1/schedule_service/client.rb +3 -2
- data/lib/google/cloud/ai_platform/v1/schedule_service/operations.rb +3 -10
- data/lib/google/cloud/ai_platform/v1/schedule_service/paths.rb +38 -0
- data/lib/google/cloud/ai_platform/v1/schedule_service/rest/client.rb +3 -2
- data/lib/google/cloud/ai_platform/v1/schedule_service/rest/operations.rb +73 -10
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +3 -10
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/operations.rb +73 -10
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +3 -10
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/operations.rb +73 -10
- data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
- data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/client.rb +1405 -0
- data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/operations.rb +810 -0
- data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/paths.rb +173 -0
- data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/client.rb +1318 -0
- data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/operations.rb +4244 -0
- data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/service_stub.rb +663 -0
- data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service.rb +56 -0
- data/lib/google/cloud/ai_platform/v1/vertex_rag_service/client.rb +672 -0
- data/lib/google/cloud/ai_platform/v1/vertex_rag_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/vertex_rag_service/paths.rb +69 -0
- data/lib/google/cloud/ai_platform/v1/vertex_rag_service/rest/client.rb +634 -0
- data/lib/google/cloud/ai_platform/v1/vertex_rag_service/rest/service_stub.rb +249 -0
- data/lib/google/cloud/ai_platform/v1/vertex_rag_service/rest.rb +53 -0
- data/lib/google/cloud/ai_platform/v1/vertex_rag_service.rb +55 -0
- data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +3 -10
- data/lib/google/cloud/ai_platform/v1/vizier_service/rest/operations.rb +73 -10
- data/lib/google/cloud/ai_platform/v1.rb +2 -0
- data/lib/google/cloud/aiplatform/v1/api_auth_pb.rb +46 -0
- data/lib/google/cloud/aiplatform/v1/dataset_service_services_pb.rb +2 -0
- data/lib/google/cloud/aiplatform/v1/endpoint_pb.rb +6 -1
- data/lib/google/cloud/aiplatform/v1/endpoint_service_pb.rb +3 -1
- data/lib/google/cloud/aiplatform/v1/endpoint_service_services_pb.rb +2 -0
- data/lib/google/cloud/aiplatform/v1/env_var_pb.rb +2 -1
- data/lib/google/cloud/aiplatform/v1/evaluation_service_pb.rb +11 -1
- data/lib/google/cloud/aiplatform/v1/genai_tuning_service_services_pb.rb +0 -2
- data/lib/google/cloud/aiplatform/v1/io_pb.rb +16 -1
- data/lib/google/cloud/aiplatform/v1/machine_resources_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/notebook_execution_job_pb.rb +6 -1
- data/lib/google/cloud/aiplatform/v1/schedule_service_services_pb.rb +3 -2
- data/lib/google/cloud/aiplatform/v1/tool_pb.rb +5 -1
- data/lib/google/cloud/aiplatform/v1/tuning_job_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/vertex_rag_data_pb.rb +67 -0
- data/lib/google/cloud/aiplatform/v1/vertex_rag_data_service_pb.rb +71 -0
- data/lib/google/cloud/aiplatform/v1/vertex_rag_data_service_services_pb.rb +63 -0
- data/lib/google/cloud/aiplatform/v1/vertex_rag_service_pb.rb +65 -0
- data/lib/google/cloud/aiplatform/v1/vertex_rag_service_services_pb.rb +52 -0
- data/proto_docs/google/cloud/aiplatform/v1/api_auth.rb +45 -0
- data/proto_docs/google/cloud/aiplatform/v1/custom_job.rb +2 -2
- data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +4 -2
- data/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb +2 -0
- data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +42 -0
- data/proto_docs/google/cloud/aiplatform/v1/endpoint_service.rb +22 -0
- data/proto_docs/google/cloud/aiplatform/v1/evaluated_annotation.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/evaluation_service.rb +149 -1
- data/proto_docs/google/cloud/aiplatform/v1/explanation.rb +2 -2
- data/proto_docs/google/cloud/aiplatform/v1/feature_online_store_admin_service.rb +3 -1
- data/proto_docs/google/cloud/aiplatform/v1/feature_registry_service.rb +4 -4
- data/proto_docs/google/cloud/aiplatform/v1/featurestore_online_service.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +2 -1
- data/proto_docs/google/cloud/aiplatform/v1/genai_tuning_service.rb +3 -2
- data/proto_docs/google/cloud/aiplatform/v1/index_endpoint_service.rb +4 -2
- data/proto_docs/google/cloud/aiplatform/v1/io.rb +158 -0
- data/proto_docs/google/cloud/aiplatform/v1/machine_resources.rb +8 -0
- data/proto_docs/google/cloud/aiplatform/v1/migration_service.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/model.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/model_monitoring.rb +3 -3
- data/proto_docs/google/cloud/aiplatform/v1/notebook_execution_job.rb +18 -0
- data/proto_docs/google/cloud/aiplatform/v1/notebook_service.rb +5 -3
- data/proto_docs/google/cloud/aiplatform/v1/openapi.rb +2 -2
- data/proto_docs/google/cloud/aiplatform/v1/persistent_resource_service.rb +4 -3
- data/proto_docs/google/cloud/aiplatform/v1/tool.rb +72 -0
- data/proto_docs/google/cloud/aiplatform/v1/tuning_job.rb +9 -0
- data/proto_docs/google/cloud/aiplatform/v1/types.rb +13 -13
- data/proto_docs/google/cloud/aiplatform/v1/vertex_rag_data.rb +334 -0
- data/proto_docs/google/cloud/aiplatform/v1/vertex_rag_data_service.rb +293 -0
- data/proto_docs/google/cloud/aiplatform/v1/vertex_rag_service.rb +279 -0
- data/proto_docs/google/longrunning/operations.rb +19 -14
- metadata +28 -2
@@ -0,0 +1,173 @@
|
|
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
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module AIPlatform
|
23
|
+
module V1
|
24
|
+
module VertexRagDataService
|
25
|
+
# Path helper methods for the VertexRagDataService API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Endpoint resource string.
|
29
|
+
#
|
30
|
+
# @overload endpoint_path(project:, location:, endpoint:)
|
31
|
+
# The resource will be in the following format:
|
32
|
+
#
|
33
|
+
# `projects/{project}/locations/{location}/endpoints/{endpoint}`
|
34
|
+
#
|
35
|
+
# @param project [String]
|
36
|
+
# @param location [String]
|
37
|
+
# @param endpoint [String]
|
38
|
+
#
|
39
|
+
# @overload endpoint_path(project:, location:, publisher:, model:)
|
40
|
+
# The resource will be in the following format:
|
41
|
+
#
|
42
|
+
# `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`
|
43
|
+
#
|
44
|
+
# @param project [String]
|
45
|
+
# @param location [String]
|
46
|
+
# @param publisher [String]
|
47
|
+
# @param model [String]
|
48
|
+
#
|
49
|
+
# @return [::String]
|
50
|
+
def endpoint_path **args
|
51
|
+
resources = {
|
52
|
+
"endpoint:location:project" => (proc do |project:, location:, endpoint:|
|
53
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
54
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
55
|
+
|
56
|
+
"projects/#{project}/locations/#{location}/endpoints/#{endpoint}"
|
57
|
+
end),
|
58
|
+
"location:model:project:publisher" => (proc do |project:, location:, publisher:, model:|
|
59
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
60
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
61
|
+
raise ::ArgumentError, "publisher cannot contain /" if publisher.to_s.include? "/"
|
62
|
+
|
63
|
+
"projects/#{project}/locations/#{location}/publishers/#{publisher}/models/#{model}"
|
64
|
+
end)
|
65
|
+
}
|
66
|
+
|
67
|
+
resource = resources[args.keys.sort.join(":")]
|
68
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
69
|
+
resource.call(**args)
|
70
|
+
end
|
71
|
+
|
72
|
+
##
|
73
|
+
# Create a fully-qualified Location resource string.
|
74
|
+
#
|
75
|
+
# The resource will be in the following format:
|
76
|
+
#
|
77
|
+
# `projects/{project}/locations/{location}`
|
78
|
+
#
|
79
|
+
# @param project [String]
|
80
|
+
# @param location [String]
|
81
|
+
#
|
82
|
+
# @return [::String]
|
83
|
+
def location_path project:, location:
|
84
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
85
|
+
|
86
|
+
"projects/#{project}/locations/#{location}"
|
87
|
+
end
|
88
|
+
|
89
|
+
##
|
90
|
+
# Create a fully-qualified Model resource string.
|
91
|
+
#
|
92
|
+
# The resource will be in the following format:
|
93
|
+
#
|
94
|
+
# `projects/{project}/locations/{location}/models/{model}`
|
95
|
+
#
|
96
|
+
# @param project [String]
|
97
|
+
# @param location [String]
|
98
|
+
# @param model [String]
|
99
|
+
#
|
100
|
+
# @return [::String]
|
101
|
+
def model_path project:, location:, model:
|
102
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
103
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
104
|
+
|
105
|
+
"projects/#{project}/locations/#{location}/models/#{model}"
|
106
|
+
end
|
107
|
+
|
108
|
+
##
|
109
|
+
# Create a fully-qualified RagCorpus resource string.
|
110
|
+
#
|
111
|
+
# The resource will be in the following format:
|
112
|
+
#
|
113
|
+
# `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
|
114
|
+
#
|
115
|
+
# @param project [String]
|
116
|
+
# @param location [String]
|
117
|
+
# @param rag_corpus [String]
|
118
|
+
#
|
119
|
+
# @return [::String]
|
120
|
+
def rag_corpus_path project:, location:, rag_corpus:
|
121
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
122
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
123
|
+
|
124
|
+
"projects/#{project}/locations/#{location}/ragCorpora/#{rag_corpus}"
|
125
|
+
end
|
126
|
+
|
127
|
+
##
|
128
|
+
# Create a fully-qualified RagFile resource string.
|
129
|
+
#
|
130
|
+
# The resource will be in the following format:
|
131
|
+
#
|
132
|
+
# `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}`
|
133
|
+
#
|
134
|
+
# @param project [String]
|
135
|
+
# @param location [String]
|
136
|
+
# @param rag_corpus [String]
|
137
|
+
# @param rag_file [String]
|
138
|
+
#
|
139
|
+
# @return [::String]
|
140
|
+
def rag_file_path project:, location:, rag_corpus:, rag_file:
|
141
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
142
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
143
|
+
raise ::ArgumentError, "rag_corpus cannot contain /" if rag_corpus.to_s.include? "/"
|
144
|
+
|
145
|
+
"projects/#{project}/locations/#{location}/ragCorpora/#{rag_corpus}/ragFiles/#{rag_file}"
|
146
|
+
end
|
147
|
+
|
148
|
+
##
|
149
|
+
# Create a fully-qualified SecretVersion resource string.
|
150
|
+
#
|
151
|
+
# The resource will be in the following format:
|
152
|
+
#
|
153
|
+
# `projects/{project}/secrets/{secret}/versions/{secret_version}`
|
154
|
+
#
|
155
|
+
# @param project [String]
|
156
|
+
# @param secret [String]
|
157
|
+
# @param secret_version [String]
|
158
|
+
#
|
159
|
+
# @return [::String]
|
160
|
+
def secret_version_path project:, secret:, secret_version:
|
161
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
162
|
+
raise ::ArgumentError, "secret cannot contain /" if secret.to_s.include? "/"
|
163
|
+
|
164
|
+
"projects/#{project}/secrets/#{secret}/versions/#{secret_version}"
|
165
|
+
end
|
166
|
+
|
167
|
+
extend self
|
168
|
+
end
|
169
|
+
end
|
170
|
+
end
|
171
|
+
end
|
172
|
+
end
|
173
|
+
end
|