pub struct DataplexService { /* private fields */ }Expand description
Implements a client for the Cloud Dataplex API.
§Example
let client = DataplexService::builder().build().await?;
// use `client` to make requests to the Cloud Dataplex API.§Service Description
Dataplex service provides data lakes as a service. The primary resources offered by this service are Lakes, Zones and Assets which collectively allow a data administrator to organize, manage, secure and catalog data across their organization located across cloud projects in a variety of storage systems including Cloud Storage and BigQuery.
§Configuration
To configure DataplexService 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://dataplex.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
DataplexService holds a connection pool internally, it is advised to
create one and the reuse it. You do not need to wrap DataplexService in
an Rc or Arc to reuse it, because it
already uses an Arc internally.
Implementations§
Source§impl DataplexService
impl DataplexService
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
Returns a builder for DataplexService.
let client = DataplexService::builder().build().await?;Sourcepub fn from_stub<T>(stub: T) -> Selfwhere
T: DataplexService + 'static,
pub fn from_stub<T>(stub: T) -> Selfwhere
T: DataplexService + '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_lake(&self) -> CreateLake
pub fn create_lake(&self) -> CreateLake
Creates a lake resource.
§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 update_lake(&self) -> UpdateLake
pub fn update_lake(&self) -> UpdateLake
Updates a lake resource.
§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 delete_lake(&self) -> DeleteLake
pub fn delete_lake(&self) -> DeleteLake
Deletes a lake resource. All zones within the lake must be deleted before the lake can be deleted.
§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_lakes(&self) -> ListLakes
pub fn list_lakes(&self) -> ListLakes
Lists lake resources in a project and location.
Sourcepub fn list_lake_actions(&self) -> ListLakeActions
pub fn list_lake_actions(&self) -> ListLakeActions
Lists action resources in a lake.
Sourcepub fn create_zone(&self) -> CreateZone
pub fn create_zone(&self) -> CreateZone
Creates a zone resource within a lake.
§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 update_zone(&self) -> UpdateZone
pub fn update_zone(&self) -> UpdateZone
Updates a zone resource.
§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 delete_zone(&self) -> DeleteZone
pub fn delete_zone(&self) -> DeleteZone
Deletes a zone resource. All assets within a zone must be deleted before the zone can be deleted.
§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_zones(&self) -> ListZones
pub fn list_zones(&self) -> ListZones
Lists zone resources in a lake.
Sourcepub fn list_zone_actions(&self) -> ListZoneActions
pub fn list_zone_actions(&self) -> ListZoneActions
Lists action resources in a zone.
Sourcepub fn create_asset(&self) -> CreateAsset
pub fn create_asset(&self) -> CreateAsset
Creates an asset resource.
§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 update_asset(&self) -> UpdateAsset
pub fn update_asset(&self) -> UpdateAsset
Updates an asset resource.
§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 delete_asset(&self) -> DeleteAsset
pub fn delete_asset(&self) -> DeleteAsset
Deletes an asset resource. The referenced storage resource is detached (default) or deleted based on the associated Lifecycle policy.
§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_assets(&self) -> ListAssets
pub fn list_assets(&self) -> ListAssets
Lists asset resources in a zone.
Sourcepub fn list_asset_actions(&self) -> ListAssetActions
pub fn list_asset_actions(&self) -> ListAssetActions
Lists action resources in an asset.
Sourcepub fn create_task(&self) -> CreateTask
pub fn create_task(&self) -> CreateTask
Creates a task resource within a lake.
§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 update_task(&self) -> UpdateTask
pub fn update_task(&self) -> UpdateTask
Update the task resource.
§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 delete_task(&self) -> DeleteTask
pub fn delete_task(&self) -> DeleteTask
Delete the task resource.
§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_tasks(&self) -> ListTasks
pub fn list_tasks(&self) -> ListTasks
Lists tasks under the given lake.
Sourcepub fn cancel_job(&self) -> CancelJob
pub fn cancel_job(&self) -> CancelJob
Cancel jobs running for the task resource.
Sourcepub fn create_environment(&self) -> CreateEnvironment
pub fn create_environment(&self) -> CreateEnvironment
Create an environment resource.
§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 update_environment(&self) -> UpdateEnvironment
pub fn update_environment(&self) -> UpdateEnvironment
Update the environment resource.
§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 delete_environment(&self) -> DeleteEnvironment
pub fn delete_environment(&self) -> DeleteEnvironment
Delete the environment resource. All the child resources must have been deleted before environment deletion can be initiated.
§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_environments(&self) -> ListEnvironments
pub fn list_environments(&self) -> ListEnvironments
Lists environments under the given lake.
Sourcepub fn get_environment(&self) -> GetEnvironment
pub fn get_environment(&self) -> GetEnvironment
Get environment resource.
Sourcepub fn list_sessions(&self) -> ListSessions
pub fn list_sessions(&self) -> ListSessions
Lists session resources in an environment.
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.
Trait Implementations§
Source§impl Clone for DataplexService
impl Clone for DataplexService
Source§fn clone(&self) -> DataplexService
fn clone(&self) -> DataplexService
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more