Show / Hide Table of Contents

Class ProjectsResource.SecretsResource.VersionsResource

The "versions" collection of methods.

Inheritance
object
ProjectsResource.SecretsResource.VersionsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.SecretManager.v1beta1
Assembly: Google.Apis.SecretManager.v1beta1.dll
Syntax
public class ProjectsResource.SecretsResource.VersionsResource

Constructors

VersionsResource(IClientService)

Constructs a new resource.

Declaration
public VersionsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Access(string)

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

Declaration
public virtual ProjectsResource.SecretsResource.VersionsResource.AccessRequest Access(string name)
Parameters
Type Name Description
string name

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

Returns
Type Description
ProjectsResource.SecretsResource.VersionsResource.AccessRequest

Destroy(DestroySecretVersionRequest, string)

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

Declaration
public virtual ProjectsResource.SecretsResource.VersionsResource.DestroyRequest Destroy(DestroySecretVersionRequest body, string name)
Parameters
Type Name Description
DestroySecretVersionRequest body

The body of the request.

string name

Required. The resource name of the SecretVersion to destroy in the format projects/*/secrets/*/versions/*.

Returns
Type Description
ProjectsResource.SecretsResource.VersionsResource.DestroyRequest

Disable(DisableSecretVersionRequest, string)

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

Declaration
public virtual ProjectsResource.SecretsResource.VersionsResource.DisableRequest Disable(DisableSecretVersionRequest body, string name)
Parameters
Type Name Description
DisableSecretVersionRequest body

The body of the request.

string name

Required. The resource name of the SecretVersion to disable in the format projects/*/secrets/*/versions/*.

Returns
Type Description
ProjectsResource.SecretsResource.VersionsResource.DisableRequest

Enable(EnableSecretVersionRequest, string)

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

Declaration
public virtual ProjectsResource.SecretsResource.VersionsResource.EnableRequest Enable(EnableSecretVersionRequest body, string name)
Parameters
Type Name Description
EnableSecretVersionRequest body

The body of the request.

string name

Required. The resource name of the SecretVersion to enable in the format projects/*/secrets/*/versions/*.

Returns
Type Description
ProjectsResource.SecretsResource.VersionsResource.EnableRequest

Get(string)

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

Declaration
public virtual ProjectsResource.SecretsResource.VersionsResource.GetRequest Get(string name)
Parameters
Type Name Description
string 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.

Returns
Type Description
ProjectsResource.SecretsResource.VersionsResource.GetRequest

List(string)

Lists SecretVersions. This call does not return secret data.

Declaration
public virtual ProjectsResource.SecretsResource.VersionsResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

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

Returns
Type Description
ProjectsResource.SecretsResource.VersionsResource.ListRequest
In this article
Back to top Generated by DocFX