Show / Hide Table of Contents

Class ProjectsResource

The "projects" collection of methods.

Inheritance
object
ProjectsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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 projects/*/policy.

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 projects/*/policy. There is at most one policy per project.

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