Class ProjectsResource.LocationsResource.SecretsResource
The "secrets" collection of methods.
Inherited Members
Namespace: Google.Apis.SecretManager.v1beta2
Assembly: Google.Apis.SecretManager.v1beta2.dll
Syntax
public class ProjectsResource.LocationsResource.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.LocationsResource.SecretsResource.VersionsResource Versions { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource.SecretsResource.VersionsResource |
Methods
AddVersion(AddSecretVersionRequest, string)
Creates a new SecretVersion containing secret data and attaches it to an existing Secret.
Declaration
public virtual ProjectsResource.LocationsResource.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
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.SecretsResource.AddVersionRequest |
Create(Secret, string)
Creates a new Secret containing no SecretVersions.
Declaration
public virtual ProjectsResource.LocationsResource.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 |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.SecretsResource.CreateRequest |
Delete(string)
Deletes a Secret.
Declaration
public virtual ProjectsResource.LocationsResource.SecretsResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The resource name of the Secret to delete in the format |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.SecretsResource.DeleteRequest |
Get(string)
Gets metadata for a given Secret.
Declaration
public virtual ProjectsResource.LocationsResource.SecretsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The resource name of the Secret, in the format |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.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.LocationsResource.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.LocationsResource.SecretsResource.GetIamPolicyRequest |
List(string)
Lists Secrets.
Declaration
public virtual ProjectsResource.LocationsResource.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 |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.SecretsResource.ListRequest |
Patch(Secret, string)
Updates metadata of an existing Secret.
Declaration
public virtual ProjectsResource.LocationsResource.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 |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.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.LocationsResource.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.LocationsResource.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.LocationsResource.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.LocationsResource.SecretsResource.TestIamPermissionsRequest |