pub struct CloudControlsPartnerCore { /* private fields */ }
Expand description
Implements a client for the Cloud Controls Partner API.
§Example
let client = CloudControlsPartnerCore::builder().build().await?;
// use `client` to make requests to the Cloud Controls Partner API.
§Service Description
Service describing handlers for resources
§Configuration
To configure CloudControlsPartnerCore
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://cloudcontrolspartner.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
CloudControlsPartnerCore
holds a connection pool internally, it is advised to
create one and the reuse it. You do not need to wrap CloudControlsPartnerCore
in
an Rc or Arc to reuse it, because it
already uses an Arc
internally.
Implementations§
Source§impl CloudControlsPartnerCore
impl CloudControlsPartnerCore
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
Returns a builder for CloudControlsPartnerCore.
let client = CloudControlsPartnerCore::builder().build().await?;
Sourcepub fn from_stub<T>(stub: T) -> Selfwhere
T: CloudControlsPartnerCore + 'static,
pub fn from_stub<T>(stub: T) -> Selfwhere
T: CloudControlsPartnerCore + '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 get_workload(&self) -> GetWorkload
pub fn get_workload(&self) -> GetWorkload
Gets details of a single workload
Sourcepub fn list_workloads(&self) -> ListWorkloads
pub fn list_workloads(&self) -> ListWorkloads
Lists customer workloads for a given customer org id
Sourcepub fn get_customer(&self) -> GetCustomer
pub fn get_customer(&self) -> GetCustomer
Gets details of a single customer
Sourcepub fn list_customers(&self) -> ListCustomers
pub fn list_customers(&self) -> ListCustomers
Lists customers of a partner identified by its Google Cloud organization ID
Sourcepub fn get_ekm_connections(&self) -> GetEkmConnections
pub fn get_ekm_connections(&self) -> GetEkmConnections
Gets the EKM connections associated with a workload
Sourcepub fn get_partner_permissions(&self) -> GetPartnerPermissions
pub fn get_partner_permissions(&self) -> GetPartnerPermissions
Gets the partner permissions granted for a workload
Sourcepub fn list_access_approval_requests(&self) -> ListAccessApprovalRequests
👎Deprecated
pub fn list_access_approval_requests(&self) -> ListAccessApprovalRequests
Deprecated: Only returns access approval requests directly associated with an assured workload folder.
Sourcepub fn get_partner(&self) -> GetPartner
pub fn get_partner(&self) -> GetPartner
Get details of a Partner.
Sourcepub fn create_customer(&self) -> CreateCustomer
pub fn create_customer(&self) -> CreateCustomer
Creates a new customer.
Sourcepub fn update_customer(&self) -> UpdateCustomer
pub fn update_customer(&self) -> UpdateCustomer
Update details of a single customer
Sourcepub fn delete_customer(&self) -> DeleteCustomer
pub fn delete_customer(&self) -> DeleteCustomer
Delete details of a single customer
Trait Implementations§
Source§impl Clone for CloudControlsPartnerCore
impl Clone for CloudControlsPartnerCore
Source§fn clone(&self) -> CloudControlsPartnerCore
fn clone(&self) -> CloudControlsPartnerCore
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more