Class ProjectsResource.SecretsResource.VersionsResource
The "versions" collection of methods.
Inherited Members
Namespace: Google.Apis.SecretManager.v1beta2
Assembly: Google.Apis.SecretManager.v1beta2.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 most recently created 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 |
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
|
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
|
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
|
Returns
Type | Description |
---|---|
ProjectsResource.SecretsResource.VersionsResource.EnableRequest |
Get(string)
Gets metadata for a SecretVersion. projects/*/secrets/*/versions/latest
is an alias to the most
recently created 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 |
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
|
Returns
Type | Description |
---|---|
ProjectsResource.SecretsResource.VersionsResource.ListRequest |