Show / Hide Table of Contents

Class ProjectsResource.SecretsResource

The "secrets" collection of methods.

Inheritance
object
ProjectsResource.SecretsResource
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.v1beta2
Assembly: Google.Apis.SecretManager.v1beta2.dll
Syntax
public class ProjectsResource.SecretsResource

Constructors

SecretsResource(IClientService)

Constructs a new resource.

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

Properties

Versions

Gets the Versions resource.

Declaration
public virtual ProjectsResource.SecretsResource.VersionsResource Versions { get; }
Property Value
Type Description
ProjectsResource.SecretsResource.VersionsResource

Methods

AddVersion(AddSecretVersionRequest, string)

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

Declaration
public virtual ProjectsResource.SecretsResource.AddVersionRequest AddVersion(AddSecretVersionRequest body, string parent)
Parameters
Type Name Description
AddSecretVersionRequest body

The body of the request.

string parent

Required. The resource name of the Secret to associate with the SecretVersion in the format projects/*/secrets/* or projects/*/locations/*/secrets/*.

Returns
Type Description
ProjectsResource.SecretsResource.AddVersionRequest

Create(Secret, string)

Creates a new Secret containing no SecretVersions.

Declaration
public virtual ProjectsResource.SecretsResource.CreateRequest Create(Secret body, string parent)
Parameters
Type Name Description
Secret body

The body of the request.

string parent

Required. The resource name of the project to associate with the Secret, in the format projects/* or projects/*/locations/*.

Returns
Type Description
ProjectsResource.SecretsResource.CreateRequest

Delete(string)

Deletes a Secret.

Declaration
public virtual ProjectsResource.SecretsResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

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

Returns
Type Description
ProjectsResource.SecretsResource.DeleteRequest

Get(string)

Gets metadata for a given Secret.

Declaration
public virtual ProjectsResource.SecretsResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. The resource name of the Secret, in the format projects/*/secrets/* or projects/*/locations/*/secrets/*.

Returns
Type Description
ProjectsResource.SecretsResource.GetRequest

GetIamPolicy(string)

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

Declaration
public virtual ProjectsResource.SecretsResource.GetIamPolicyRequest GetIamPolicy(string resource)
Parameters
Type Name Description
string resource

REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.

Returns
Type Description
ProjectsResource.SecretsResource.GetIamPolicyRequest

List(string)

Lists Secrets.

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

Required. The resource name of the project associated with the Secrets, in the format projects/* or projects/*/locations/*

Returns
Type Description
ProjectsResource.SecretsResource.ListRequest

Patch(Secret, string)

Updates metadata of an existing Secret.

Declaration
public virtual ProjectsResource.SecretsResource.PatchRequest Patch(Secret body, string name)
Parameters
Type Name Description
Secret body

The body of the request.

string name

Output only. The resource name of the Secret in the format projects/*/secrets/*.

Returns
Type Description
ProjectsResource.SecretsResource.PatchRequest

SetIamPolicy(SetIamPolicyRequest, string)

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.

Declaration
public virtual ProjectsResource.SecretsResource.SetIamPolicyRequest SetIamPolicy(SetIamPolicyRequest body, string resource)
Parameters
Type Name Description
SetIamPolicyRequest body

The body of the request.

string resource

REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.

Returns
Type Description
ProjectsResource.SecretsResource.SetIamPolicyRequest

TestIamPermissions(TestIamPermissionsRequest, string)

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.

Declaration
public virtual ProjectsResource.SecretsResource.TestIamPermissionsRequest TestIamPermissions(TestIamPermissionsRequest body, string resource)
Parameters
Type Name Description
TestIamPermissionsRequest body

The body of the request.

string resource

REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.

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