google_cloud_aiplatform_v1/lib.rs
1// Copyright 2025 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15// Code generated by sidekick. DO NOT EDIT.
16
17//! Google Cloud Client Libraries for Rust - Vertex AI API
18//!
19//! **WARNING:** this crate is under active development. We expect multiple
20//! breaking changes in the upcoming releases. Testing is also incomplete, we do
21//! **not** recommend that you use this crate in production. We welcome feedback
22//! about the APIs, documentation, missing features, bugs, etc.
23//!
24//! This crate contains traits, types, and functions to interact with Vertex AI API
25//! Most applications will use the structs defined in the [client] module.
26//! More specifically:
27//!
28//! * [DatasetService](client/struct.DatasetService.html)
29//! * [DeploymentResourcePoolService](client/struct.DeploymentResourcePoolService.html)
30//! * [EndpointService](client/struct.EndpointService.html)
31//! * [EvaluationService](client/struct.EvaluationService.html)
32//! * [FeatureOnlineStoreAdminService](client/struct.FeatureOnlineStoreAdminService.html)
33//! * [FeatureOnlineStoreService](client/struct.FeatureOnlineStoreService.html)
34//! * [FeatureRegistryService](client/struct.FeatureRegistryService.html)
35//! * [FeaturestoreOnlineServingService](client/struct.FeaturestoreOnlineServingService.html)
36//! * [FeaturestoreService](client/struct.FeaturestoreService.html)
37//! * [GenAiCacheService](client/struct.GenAiCacheService.html)
38//! * [GenAiTuningService](client/struct.GenAiTuningService.html)
39//! * [IndexEndpointService](client/struct.IndexEndpointService.html)
40//! * [IndexService](client/struct.IndexService.html)
41//! * [JobService](client/struct.JobService.html)
42//! * [LlmUtilityService](client/struct.LlmUtilityService.html)
43//! * [MatchService](client/struct.MatchService.html)
44//! * [MetadataService](client/struct.MetadataService.html)
45//! * [MigrationService](client/struct.MigrationService.html)
46//! * [ModelGardenService](client/struct.ModelGardenService.html)
47//! * [ModelService](client/struct.ModelService.html)
48//! * [NotebookService](client/struct.NotebookService.html)
49//! * [PersistentResourceService](client/struct.PersistentResourceService.html)
50//! * [PipelineService](client/struct.PipelineService.html)
51//! * [PredictionService](client/struct.PredictionService.html)
52//! * [ReasoningEngineExecutionService](client/struct.ReasoningEngineExecutionService.html)
53//! * [ReasoningEngineService](client/struct.ReasoningEngineService.html)
54//! * [ScheduleService](client/struct.ScheduleService.html)
55//! * [SpecialistPoolService](client/struct.SpecialistPoolService.html)
56//! * [TensorboardService](client/struct.TensorboardService.html)
57//! * [VertexRagDataService](client/struct.VertexRagDataService.html)
58//! * [VertexRagService](client/struct.VertexRagService.html)
59//! * [VizierService](client/struct.VizierService.html)
60
61#![cfg_attr(docsrs, feature(doc_cfg))]
62#![allow(deprecated)]
63
64/// The messages and enums that are part of this client library.
65#[allow(clippy::module_inception)]
66pub mod model;
67
68pub use gax::Result;
69pub use gax::error::Error;
70
71#[allow(rustdoc::invalid_html_tags)]
72#[allow(rustdoc::redundant_explicit_links)]
73pub mod stub;
74
75/// Concrete implementations of this client library traits.
76pub mod client;
77
78/// Request builders.
79pub mod builder;
80
81#[doc(hidden)]
82pub(crate) mod tracing;
83
84#[doc(hidden)]
85pub(crate) mod transport;
86
87/// The default host used by the service.
88#[cfg(any(
89 feature = "dataset-service",
90 feature = "deployment-resource-pool-service",
91 feature = "endpoint-service",
92 feature = "evaluation-service",
93 feature = "feature-online-store-admin-service",
94 feature = "feature-online-store-service",
95 feature = "feature-registry-service",
96 feature = "featurestore-online-serving-service",
97 feature = "featurestore-service",
98 feature = "gen-ai-cache-service",
99 feature = "gen-ai-tuning-service",
100 feature = "index-endpoint-service",
101 feature = "index-service",
102 feature = "job-service",
103 feature = "llm-utility-service",
104 feature = "match-service",
105 feature = "metadata-service",
106 feature = "migration-service",
107 feature = "model-garden-service",
108 feature = "model-service",
109 feature = "notebook-service",
110 feature = "persistent-resource-service",
111 feature = "pipeline-service",
112 feature = "prediction-service",
113 feature = "reasoning-engine-execution-service",
114 feature = "reasoning-engine-service",
115 feature = "schedule-service",
116 feature = "specialist-pool-service",
117 feature = "tensorboard-service",
118 feature = "vertex-rag-data-service",
119 feature = "vertex-rag-service",
120 feature = "vizier-service",
121))]
122const DEFAULT_HOST: &str = "https://aiplatform.googleapis.com/";
123
124#[cfg(any(
125 feature = "dataset-service",
126 feature = "deployment-resource-pool-service",
127 feature = "endpoint-service",
128 feature = "evaluation-service",
129 feature = "feature-online-store-admin-service",
130 feature = "feature-online-store-service",
131 feature = "feature-registry-service",
132 feature = "featurestore-online-serving-service",
133 feature = "featurestore-service",
134 feature = "gen-ai-cache-service",
135 feature = "gen-ai-tuning-service",
136 feature = "index-endpoint-service",
137 feature = "index-service",
138 feature = "job-service",
139 feature = "llm-utility-service",
140 feature = "match-service",
141 feature = "metadata-service",
142 feature = "migration-service",
143 feature = "model-garden-service",
144 feature = "model-service",
145 feature = "notebook-service",
146 feature = "persistent-resource-service",
147 feature = "pipeline-service",
148 feature = "prediction-service",
149 feature = "reasoning-engine-execution-service",
150 feature = "reasoning-engine-service",
151 feature = "schedule-service",
152 feature = "specialist-pool-service",
153 feature = "tensorboard-service",
154 feature = "vertex-rag-data-service",
155 feature = "vertex-rag-service",
156 feature = "vizier-service",
157))]
158pub(crate) mod info {
159 const NAME: &str = env!("CARGO_PKG_NAME");
160 const VERSION: &str = env!("CARGO_PKG_VERSION");
161 lazy_static::lazy_static! {
162 pub(crate) static ref X_GOOG_API_CLIENT_HEADER: String = {
163 let ac = gaxi::api_header::XGoogApiClient{
164 name: NAME,
165 version: VERSION,
166 library_type: gaxi::api_header::GAPIC,
167 };
168 ac.rest_header_value()
169 };
170 }
171}
172
173pub use lro::Poller;
174pub use lro::PollingResult;