pub struct TensorboardService { /* private fields */ }tensorboard-service only.Expand description
Implements a client for the Vertex AI API.
§Example
let client = TensorboardService::builder().build().await?;
// use `client` to make requests to the Vertex AI API.§Service Description
TensorboardService
§Configuration
To configure TensorboardService use the with_* methods in the type returned
by builder(). The default configuration should
work for most applications. Common configuration changes include
- with_endpoint(): by default this client uses the global default endpoint
(
https://aiplatform.googleapis.com). Applications using regional endpoints or running in restricted networks (e.g. a network configured override this default. - with_credentials(): by default this client uses Application Default Credentials. Applications using custom authentication may need to override this default.
§Pooling and Cloning
TensorboardService holds a connection pool internally, it is advised to
create one and the reuse it. You do not need to wrap TensorboardService in
an Rc or Arc to reuse it, because it
already uses an Arc internally.
Implementations§
Source§impl TensorboardService
impl TensorboardService
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
Returns a builder for TensorboardService.
let client = TensorboardService::builder().build().await?;Sourcepub fn from_stub<T>(stub: T) -> Selfwhere
T: TensorboardService + 'static,
pub fn from_stub<T>(stub: T) -> Selfwhere
T: TensorboardService + 'static,
Creates a new client from the provided stub.
The most common case for calling this function is in tests mocking the client’s behavior.
Sourcepub fn create_tensorboard(&self) -> CreateTensorboard
pub fn create_tensorboard(&self) -> CreateTensorboard
Creates a Tensorboard.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn get_tensorboard(&self) -> GetTensorboard
pub fn get_tensorboard(&self) -> GetTensorboard
Gets a Tensorboard.
Sourcepub fn update_tensorboard(&self) -> UpdateTensorboard
pub fn update_tensorboard(&self) -> UpdateTensorboard
Updates a Tensorboard.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn list_tensorboards(&self) -> ListTensorboards
pub fn list_tensorboards(&self) -> ListTensorboards
Lists Tensorboards in a Location.
Sourcepub fn delete_tensorboard(&self) -> DeleteTensorboard
pub fn delete_tensorboard(&self) -> DeleteTensorboard
Deletes a Tensorboard.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn read_tensorboard_usage(&self) -> ReadTensorboardUsage
pub fn read_tensorboard_usage(&self) -> ReadTensorboardUsage
Returns a list of monthly active users for a given TensorBoard instance.
Sourcepub fn read_tensorboard_size(&self) -> ReadTensorboardSize
pub fn read_tensorboard_size(&self) -> ReadTensorboardSize
Returns the storage size for a given TensorBoard instance.
Sourcepub fn create_tensorboard_experiment(&self) -> CreateTensorboardExperiment
pub fn create_tensorboard_experiment(&self) -> CreateTensorboardExperiment
Creates a TensorboardExperiment.
Sourcepub fn get_tensorboard_experiment(&self) -> GetTensorboardExperiment
pub fn get_tensorboard_experiment(&self) -> GetTensorboardExperiment
Gets a TensorboardExperiment.
Sourcepub fn update_tensorboard_experiment(&self) -> UpdateTensorboardExperiment
pub fn update_tensorboard_experiment(&self) -> UpdateTensorboardExperiment
Updates a TensorboardExperiment.
Sourcepub fn list_tensorboard_experiments(&self) -> ListTensorboardExperiments
pub fn list_tensorboard_experiments(&self) -> ListTensorboardExperiments
Lists TensorboardExperiments in a Location.
Sourcepub fn delete_tensorboard_experiment(&self) -> DeleteTensorboardExperiment
pub fn delete_tensorboard_experiment(&self) -> DeleteTensorboardExperiment
Deletes a TensorboardExperiment.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn create_tensorboard_run(&self) -> CreateTensorboardRun
pub fn create_tensorboard_run(&self) -> CreateTensorboardRun
Creates a TensorboardRun.
Sourcepub fn batch_create_tensorboard_runs(&self) -> BatchCreateTensorboardRuns
pub fn batch_create_tensorboard_runs(&self) -> BatchCreateTensorboardRuns
Batch create TensorboardRuns.
Sourcepub fn get_tensorboard_run(&self) -> GetTensorboardRun
pub fn get_tensorboard_run(&self) -> GetTensorboardRun
Gets a TensorboardRun.
Sourcepub fn update_tensorboard_run(&self) -> UpdateTensorboardRun
pub fn update_tensorboard_run(&self) -> UpdateTensorboardRun
Updates a TensorboardRun.
Sourcepub fn list_tensorboard_runs(&self) -> ListTensorboardRuns
pub fn list_tensorboard_runs(&self) -> ListTensorboardRuns
Lists TensorboardRuns in a Location.
Sourcepub fn delete_tensorboard_run(&self) -> DeleteTensorboardRun
pub fn delete_tensorboard_run(&self) -> DeleteTensorboardRun
Deletes a TensorboardRun.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn batch_create_tensorboard_time_series(
&self,
) -> BatchCreateTensorboardTimeSeries
pub fn batch_create_tensorboard_time_series( &self, ) -> BatchCreateTensorboardTimeSeries
Batch create TensorboardTimeSeries that belong to a TensorboardExperiment.
Sourcepub fn create_tensorboard_time_series(&self) -> CreateTensorboardTimeSeries
pub fn create_tensorboard_time_series(&self) -> CreateTensorboardTimeSeries
Creates a TensorboardTimeSeries.
Sourcepub fn get_tensorboard_time_series(&self) -> GetTensorboardTimeSeries
pub fn get_tensorboard_time_series(&self) -> GetTensorboardTimeSeries
Gets a TensorboardTimeSeries.
Sourcepub fn update_tensorboard_time_series(&self) -> UpdateTensorboardTimeSeries
pub fn update_tensorboard_time_series(&self) -> UpdateTensorboardTimeSeries
Updates a TensorboardTimeSeries.
Sourcepub fn list_tensorboard_time_series(&self) -> ListTensorboardTimeSeries
pub fn list_tensorboard_time_series(&self) -> ListTensorboardTimeSeries
Lists TensorboardTimeSeries in a Location.
Sourcepub fn delete_tensorboard_time_series(&self) -> DeleteTensorboardTimeSeries
pub fn delete_tensorboard_time_series(&self) -> DeleteTensorboardTimeSeries
Deletes a TensorboardTimeSeries.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn batch_read_tensorboard_time_series_data(
&self,
) -> BatchReadTensorboardTimeSeriesData
pub fn batch_read_tensorboard_time_series_data( &self, ) -> BatchReadTensorboardTimeSeriesData
Reads multiple TensorboardTimeSeries’ data. The data point number limit is 1000 for scalars, 100 for tensors and blob references. If the number of data points stored is less than the limit, all data is returned. Otherwise, the number limit of data points is randomly selected from this time series and returned.
Sourcepub fn read_tensorboard_time_series_data(&self) -> ReadTensorboardTimeSeriesData
pub fn read_tensorboard_time_series_data(&self) -> ReadTensorboardTimeSeriesData
Reads a TensorboardTimeSeries’ data. By default, if the number of data points stored is less than 1000, all data is returned. Otherwise, 1000 data points is randomly selected from this time series and returned. This value can be changed by changing max_data_points, which can’t be greater than 10k.
Sourcepub fn write_tensorboard_experiment_data(
&self,
) -> WriteTensorboardExperimentData
pub fn write_tensorboard_experiment_data( &self, ) -> WriteTensorboardExperimentData
Write time series data points of multiple TensorboardTimeSeries in multiple TensorboardRun’s. If any data fail to be ingested, an error is returned.
Sourcepub fn write_tensorboard_run_data(&self) -> WriteTensorboardRunData
pub fn write_tensorboard_run_data(&self) -> WriteTensorboardRunData
Write time series data points into multiple TensorboardTimeSeries under a TensorboardRun. If any data fail to be ingested, an error is returned.
Sourcepub fn export_tensorboard_time_series_data(
&self,
) -> ExportTensorboardTimeSeriesData
pub fn export_tensorboard_time_series_data( &self, ) -> ExportTensorboardTimeSeriesData
Exports a TensorboardTimeSeries’ data. Data is returned in paginated responses.
Sourcepub fn list_locations(&self) -> ListLocations
pub fn list_locations(&self) -> ListLocations
Lists information about the supported locations for this service.
Sourcepub fn get_location(&self) -> GetLocation
pub fn get_location(&self) -> GetLocation
Gets information about a location.
Sourcepub fn set_iam_policy(&self) -> SetIamPolicy
pub fn set_iam_policy(&self) -> SetIamPolicy
Sets the access control policy on the specified resource. Replaces any existing policy.
Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED
errors.
Sourcepub fn get_iam_policy(&self) -> GetIamPolicy
pub fn get_iam_policy(&self) -> GetIamPolicy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Sourcepub fn test_iam_permissions(&self) -> TestIamPermissions
pub fn test_iam_permissions(&self) -> TestIamPermissions
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of
permissions, not a NOT_FOUND error.
Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may “fail open” without warning.
Sourcepub fn list_operations(&self) -> ListOperations
pub fn list_operations(&self) -> ListOperations
Provides the Operations service functionality in this service.
Sourcepub fn get_operation(&self) -> GetOperation
pub fn get_operation(&self) -> GetOperation
Provides the Operations service functionality in this service.
Sourcepub fn delete_operation(&self) -> DeleteOperation
pub fn delete_operation(&self) -> DeleteOperation
Provides the Operations service functionality in this service.
Sourcepub fn cancel_operation(&self) -> CancelOperation
pub fn cancel_operation(&self) -> CancelOperation
Provides the Operations service functionality in this service.
Sourcepub fn wait_operation(&self) -> WaitOperation
pub fn wait_operation(&self) -> WaitOperation
Provides the Operations service functionality in this service.
Trait Implementations§
Source§impl Clone for TensorboardService
impl Clone for TensorboardService
Source§fn clone(&self) -> TensorboardService
fn clone(&self) -> TensorboardService
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more