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.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +2 -0
  3. data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +3 -10
  4. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/client.rb +2 -0
  5. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/operations.rb +73 -10
  6. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/operations.rb +3 -10
  7. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/operations.rb +73 -10
  8. data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +103 -0
  9. data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +3 -10
  10. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/client.rb +96 -0
  11. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/operations.rb +73 -10
  12. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/service_stub.rb +60 -0
  13. data/lib/google/cloud/ai_platform/v1/evaluation_service/client.rb +6 -1
  14. data/lib/google/cloud/ai_platform/v1/evaluation_service/rest/client.rb +6 -1
  15. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/client.rb +1 -0
  16. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/operations.rb +3 -10
  17. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/client.rb +1 -0
  18. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/operations.rb +73 -10
  19. data/lib/google/cloud/ai_platform/v1/feature_registry_service/client.rb +4 -4
  20. data/lib/google/cloud/ai_platform/v1/feature_registry_service/operations.rb +3 -10
  21. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/client.rb +4 -4
  22. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/operations.rb +73 -10
  23. data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +3 -10
  24. data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/operations.rb +73 -10
  25. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/client.rb +3 -4
  26. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/operations.rb +3 -10
  27. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/client.rb +3 -4
  28. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/operations.rb +73 -10
  29. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +4 -2
  30. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +3 -10
  31. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/client.rb +4 -2
  32. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/operations.rb +73 -10
  33. data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +3 -10
  34. data/lib/google/cloud/ai_platform/v1/index_service/rest/operations.rb +73 -10
  35. data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +3 -10
  36. data/lib/google/cloud/ai_platform/v1/job_service/rest/operations.rb +73 -10
  37. data/lib/google/cloud/ai_platform/v1/llm_utility_service/paths.rb +19 -0
  38. data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +3 -10
  39. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/operations.rb +73 -10
  40. data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +3 -10
  41. data/lib/google/cloud/ai_platform/v1/migration_service/rest/operations.rb +73 -10
  42. data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +3 -10
  43. data/lib/google/cloud/ai_platform/v1/model_service/rest/operations.rb +73 -10
  44. data/lib/google/cloud/ai_platform/v1/notebook_service/client.rb +2 -1
  45. data/lib/google/cloud/ai_platform/v1/notebook_service/operations.rb +3 -10
  46. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/client.rb +2 -1
  47. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/operations.rb +73 -10
  48. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/client.rb +2 -2
  49. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/operations.rb +3 -10
  50. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/client.rb +2 -2
  51. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/operations.rb +73 -10
  52. data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +3 -10
  53. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/operations.rb +73 -10
  54. data/lib/google/cloud/ai_platform/v1/prediction_service/paths.rb +19 -0
  55. data/lib/google/cloud/ai_platform/v1/rest.rb +2 -0
  56. data/lib/google/cloud/ai_platform/v1/schedule_service/client.rb +3 -2
  57. data/lib/google/cloud/ai_platform/v1/schedule_service/operations.rb +3 -10
  58. data/lib/google/cloud/ai_platform/v1/schedule_service/paths.rb +38 -0
  59. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/client.rb +3 -2
  60. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/operations.rb +73 -10
  61. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +3 -10
  62. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/operations.rb +73 -10
  63. data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +3 -10
  64. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/operations.rb +73 -10
  65. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  66. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/client.rb +1405 -0
  67. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/credentials.rb +47 -0
  68. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/operations.rb +810 -0
  69. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/paths.rb +173 -0
  70. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/client.rb +1318 -0
  71. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/operations.rb +4244 -0
  72. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/service_stub.rb +663 -0
  73. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest.rb +54 -0
  74. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service.rb +56 -0
  75. data/lib/google/cloud/ai_platform/v1/vertex_rag_service/client.rb +672 -0
  76. data/lib/google/cloud/ai_platform/v1/vertex_rag_service/credentials.rb +47 -0
  77. data/lib/google/cloud/ai_platform/v1/vertex_rag_service/paths.rb +69 -0
  78. data/lib/google/cloud/ai_platform/v1/vertex_rag_service/rest/client.rb +634 -0
  79. data/lib/google/cloud/ai_platform/v1/vertex_rag_service/rest/service_stub.rb +249 -0
  80. data/lib/google/cloud/ai_platform/v1/vertex_rag_service/rest.rb +53 -0
  81. data/lib/google/cloud/ai_platform/v1/vertex_rag_service.rb +55 -0
  82. data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +3 -10
  83. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/operations.rb +73 -10
  84. data/lib/google/cloud/ai_platform/v1.rb +2 -0
  85. data/lib/google/cloud/aiplatform/v1/api_auth_pb.rb +46 -0
  86. data/lib/google/cloud/aiplatform/v1/dataset_service_services_pb.rb +2 -0
  87. data/lib/google/cloud/aiplatform/v1/endpoint_pb.rb +6 -1
  88. data/lib/google/cloud/aiplatform/v1/endpoint_service_pb.rb +3 -1
  89. data/lib/google/cloud/aiplatform/v1/endpoint_service_services_pb.rb +2 -0
  90. data/lib/google/cloud/aiplatform/v1/env_var_pb.rb +2 -1
  91. data/lib/google/cloud/aiplatform/v1/evaluation_service_pb.rb +11 -1
  92. data/lib/google/cloud/aiplatform/v1/genai_tuning_service_services_pb.rb +0 -2
  93. data/lib/google/cloud/aiplatform/v1/io_pb.rb +16 -1
  94. data/lib/google/cloud/aiplatform/v1/machine_resources_pb.rb +1 -1
  95. data/lib/google/cloud/aiplatform/v1/notebook_execution_job_pb.rb +6 -1
  96. data/lib/google/cloud/aiplatform/v1/schedule_service_services_pb.rb +3 -2
  97. data/lib/google/cloud/aiplatform/v1/tool_pb.rb +5 -1
  98. data/lib/google/cloud/aiplatform/v1/tuning_job_pb.rb +1 -1
  99. data/lib/google/cloud/aiplatform/v1/vertex_rag_data_pb.rb +67 -0
  100. data/lib/google/cloud/aiplatform/v1/vertex_rag_data_service_pb.rb +71 -0
  101. data/lib/google/cloud/aiplatform/v1/vertex_rag_data_service_services_pb.rb +63 -0
  102. data/lib/google/cloud/aiplatform/v1/vertex_rag_service_pb.rb +65 -0
  103. data/lib/google/cloud/aiplatform/v1/vertex_rag_service_services_pb.rb +52 -0
  104. data/proto_docs/google/cloud/aiplatform/v1/api_auth.rb +45 -0
  105. data/proto_docs/google/cloud/aiplatform/v1/custom_job.rb +2 -2
  106. data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +4 -2
  107. data/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb +2 -0
  108. data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +42 -0
  109. data/proto_docs/google/cloud/aiplatform/v1/endpoint_service.rb +22 -0
  110. data/proto_docs/google/cloud/aiplatform/v1/evaluated_annotation.rb +1 -1
  111. data/proto_docs/google/cloud/aiplatform/v1/evaluation_service.rb +149 -1
  112. data/proto_docs/google/cloud/aiplatform/v1/explanation.rb +2 -2
  113. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store_admin_service.rb +3 -1
  114. data/proto_docs/google/cloud/aiplatform/v1/feature_registry_service.rb +4 -4
  115. data/proto_docs/google/cloud/aiplatform/v1/featurestore_online_service.rb +1 -1
  116. data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +2 -1
  117. data/proto_docs/google/cloud/aiplatform/v1/genai_tuning_service.rb +3 -2
  118. data/proto_docs/google/cloud/aiplatform/v1/index_endpoint_service.rb +4 -2
  119. data/proto_docs/google/cloud/aiplatform/v1/io.rb +158 -0
  120. data/proto_docs/google/cloud/aiplatform/v1/machine_resources.rb +8 -0
  121. data/proto_docs/google/cloud/aiplatform/v1/migration_service.rb +1 -1
  122. data/proto_docs/google/cloud/aiplatform/v1/model.rb +1 -1
  123. data/proto_docs/google/cloud/aiplatform/v1/model_monitoring.rb +3 -3
  124. data/proto_docs/google/cloud/aiplatform/v1/notebook_execution_job.rb +18 -0
  125. data/proto_docs/google/cloud/aiplatform/v1/notebook_service.rb +5 -3
  126. data/proto_docs/google/cloud/aiplatform/v1/openapi.rb +2 -2
  127. data/proto_docs/google/cloud/aiplatform/v1/persistent_resource_service.rb +4 -3
  128. data/proto_docs/google/cloud/aiplatform/v1/tool.rb +72 -0
  129. data/proto_docs/google/cloud/aiplatform/v1/tuning_job.rb +9 -0
  130. data/proto_docs/google/cloud/aiplatform/v1/types.rb +13 -13
  131. data/proto_docs/google/cloud/aiplatform/v1/vertex_rag_data.rb +334 -0
  132. data/proto_docs/google/cloud/aiplatform/v1/vertex_rag_data_service.rb +293 -0
  133. data/proto_docs/google/cloud/aiplatform/v1/vertex_rag_service.rb +279 -0
  134. data/proto_docs/google/longrunning/operations.rb +19 -14
  135. 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