pub struct ParameterManager { /* private fields */ }Expand description
Implements a client for the Parameter Manager API.
§Example
let client = ParameterManager::builder().build().await?;
// use `client` to make requests to the Parameter Manager API.§Service Description
Service describing handlers for resources
§Configuration
To configure ParameterManager 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://parametermanager.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
ParameterManager holds a connection pool internally, it is advised to
create one and the reuse it. You do not need to wrap ParameterManager in
an Rc or Arc to reuse it, because it
already uses an Arc internally.
Implementations§
Source§impl ParameterManager
impl ParameterManager
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
Returns a builder for ParameterManager.
let client = ParameterManager::builder().build().await?;Sourcepub fn from_stub<T>(stub: T) -> Selfwhere
T: ParameterManager + 'static,
pub fn from_stub<T>(stub: T) -> Selfwhere
T: ParameterManager + '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 list_parameters(&self) -> ListParameters
pub fn list_parameters(&self) -> ListParameters
Lists Parameters in a given project and location.
Sourcepub fn get_parameter(&self) -> GetParameter
pub fn get_parameter(&self) -> GetParameter
Gets details of a single Parameter.
Sourcepub fn create_parameter(&self) -> CreateParameter
pub fn create_parameter(&self) -> CreateParameter
Creates a new Parameter in a given project and location.
Sourcepub fn update_parameter(&self) -> UpdateParameter
pub fn update_parameter(&self) -> UpdateParameter
Updates a single Parameter.
Sourcepub fn delete_parameter(&self) -> DeleteParameter
pub fn delete_parameter(&self) -> DeleteParameter
Deletes a single Parameter.
Sourcepub fn list_parameter_versions(&self) -> ListParameterVersions
pub fn list_parameter_versions(&self) -> ListParameterVersions
Lists ParameterVersions in a given project, location, and parameter.
Sourcepub fn get_parameter_version(&self) -> GetParameterVersion
pub fn get_parameter_version(&self) -> GetParameterVersion
Gets details of a single ParameterVersion.
Sourcepub fn render_parameter_version(&self) -> RenderParameterVersion
pub fn render_parameter_version(&self) -> RenderParameterVersion
Gets rendered version of a ParameterVersion.
Sourcepub fn create_parameter_version(&self) -> CreateParameterVersion
pub fn create_parameter_version(&self) -> CreateParameterVersion
Creates a new ParameterVersion in a given project, location, and parameter.
Sourcepub fn update_parameter_version(&self) -> UpdateParameterVersion
pub fn update_parameter_version(&self) -> UpdateParameterVersion
Updates a single ParameterVersion.
Sourcepub fn delete_parameter_version(&self) -> DeleteParameterVersion
pub fn delete_parameter_version(&self) -> DeleteParameterVersion
Deletes a single ParameterVersion.
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.
Trait Implementations§
Source§impl Clone for ParameterManager
impl Clone for ParameterManager
Source§fn clone(&self) -> ParameterManager
fn clone(&self) -> ParameterManager
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more