pub struct ProjectMethods<'a> { /* private fields */ }
Expand description

A builder providing access to all methods supported on project resources. It is not used directly, but through the SecretManager hub.

Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate google_secretmanager1_beta1 as secretmanager1_beta1;
 
use std::default::Default;
use secretmanager1_beta1::{SecretManager, oauth2, hyper, hyper_rustls};
 
let secret: oauth2::ApplicationSecret = Default::default();
let auth = oauth2::InstalledFlowAuthenticator::builder(
        secret,
        oauth2::InstalledFlowReturnMethod::HTTPRedirect,
    ).build().await.unwrap();
let mut hub = SecretManager::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `locations_get(...)`, `locations_list(...)`, `secrets_add_version(...)`, `secrets_create(...)`, `secrets_delete(...)`, `secrets_get(...)`, `secrets_get_iam_policy(...)`, `secrets_list(...)`, `secrets_patch(...)`, `secrets_set_iam_policy(...)`, `secrets_test_iam_permissions(...)`, `secrets_versions_access(...)`, `secrets_versions_destroy(...)`, `secrets_versions_disable(...)`, `secrets_versions_enable(...)`, `secrets_versions_get(...)` and `secrets_versions_list(...)`
// to build up your call.
let rb = hub.projects();

Implementations

Create a builder to help you perform the following task:

Gets information about a location.

Arguments
  • name - Resource name for the location.

Create a builder to help you perform the following task:

Lists information about the supported locations for this service.

Arguments
  • name - The resource that owns the locations collection, if applicable.

Create a builder to help you perform the following task:

Accesses a SecretVersion. This call returns the secret data. projects/*/secrets/*/versions/latest is an alias to the latest SecretVersion.

Arguments
  • name - Required. The resource name of the SecretVersion in the format projects/*/secrets/*/versions/*.

Create a builder to help you perform the following task:

Destroys a SecretVersion. Sets the state of the SecretVersion to DESTROYED and irrevocably destroys the secret data.

Arguments
  • request - No description provided.
  • name - Required. The resource name of the SecretVersion to destroy in the format projects/*/secrets/*/versions/*.

Create a builder to help you perform the following task:

Disables a SecretVersion. Sets the state of the SecretVersion to DISABLED.

Arguments
  • request - No description provided.
  • name - Required. The resource name of the SecretVersion to disable in the format projects/*/secrets/*/versions/*.

Create a builder to help you perform the following task:

Enables a SecretVersion. Sets the state of the SecretVersion to ENABLED.

Arguments
  • request - No description provided.
  • name - Required. The resource name of the SecretVersion to enable in the format projects/*/secrets/*/versions/*.

Create a builder to help you perform the following task:

Gets metadata for a SecretVersion. projects/*/secrets/*/versions/latest is an alias to the latest SecretVersion.

Arguments
  • name - Required. The resource name of the SecretVersion in the format projects/*/secrets/*/versions/*. projects/*/secrets/*/versions/latest is an alias to the latest SecretVersion.

Create a builder to help you perform the following task:

Lists SecretVersions. This call does not return secret data.

Arguments
  • parent - Required. The resource name of the Secret associated with the SecretVersions to list, in the format projects/*/secrets/*.

Create a builder to help you perform the following task:

Creates a new SecretVersion containing secret data and attaches it to an existing Secret.

Arguments
  • request - No description provided.
  • parent - Required. The resource name of the Secret to associate with the SecretVersion in the format projects/*/secrets/*.

Create a builder to help you perform the following task:

Creates a new Secret containing no SecretVersions.

Arguments
  • request - No description provided.
  • parent - Required. The resource name of the project to associate with the Secret, in the format projects/*.

Create a builder to help you perform the following task:

Deletes a Secret.

Arguments
  • name - Required. The resource name of the Secret to delete in the format projects/*/secrets/*.

Create a builder to help you perform the following task:

Gets metadata for a given Secret.

Arguments
  • name - Required. The resource name of the Secret, in the format projects/*/secrets/*.

Create a builder to help you perform the following task:

Gets the access control policy for a secret. Returns empty policy if the secret exists and does not have a policy set.

Arguments
  • resource - REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.

Create a builder to help you perform the following task:

Lists Secrets.

Arguments
  • parent - Required. The resource name of the project associated with the Secrets, in the format projects/*.

Create a builder to help you perform the following task:

Updates metadata of an existing Secret.

Arguments
  • request - No description provided.
  • name - Output only. The resource name of the Secret in the format projects/*/secrets/*.

Create a builder to help you perform the following task:

Sets the access control policy on the specified secret. Replaces any existing policy. Permissions on SecretVersions are enforced according to the policy set on the associated Secret.

Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.

Create a builder to help you perform the following task:

Returns permissions that a caller has for the specified secret. If the secret does not exist, this call returns 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.

Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more