Class ProjectsResource
The "projects" collection of methods.
Inherited Members
Namespace: Google.Apis.BinaryAuthorization.v1beta1
Assembly: Google.Apis.BinaryAuthorization.v1beta1.dll
Syntax
public class ProjectsResource
Constructors
ProjectsResource(IClientService)
Constructs a new resource.
Declaration
public ProjectsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
Attestors
Gets the Attestors resource.
Declaration
public virtual ProjectsResource.AttestorsResource Attestors { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.AttestorsResource |
Policy
Gets the Policy resource.
Declaration
public virtual ProjectsResource.PolicyResource Policy { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.PolicyResource |
Methods
GetPolicy(string)
A policy specifies the attestors that must attest to a container image, before the project is allowed to deploy that image. There is at most one policy per project. All image admission requests are permitted if a project has no policy. Gets the policy for this project. Returns a default policy if the project does not have one.
Declaration
public virtual ProjectsResource.GetPolicyRequest GetPolicy(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The resource name of the policy to retrieve, in the format |
Returns
Type | Description |
---|---|
ProjectsResource.GetPolicyRequest |
UpdatePolicy(Policy, string)
Creates or updates a project's policy, and returns a copy of the new policy. A policy is always updated as a whole, to avoid race conditions with concurrent policy enforcement (or management!) requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is malformed.
Declaration
public virtual ProjectsResource.UpdatePolicyRequest UpdatePolicy(Policy body, string name)
Parameters
Type | Name | Description |
---|---|---|
Policy | body | The body of the request. |
string | name | Output only. The resource name, in the format |
Returns
Type | Description |
---|---|
ProjectsResource.UpdatePolicyRequest |