Class ProjectsResource.GetPolicyRequest
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.
Inheritance
ProjectsResource.GetPolicyRequest
Inherited Members
Namespace: Google.Apis.BinaryAuthorization.v1beta1
Assembly: Google.Apis.BinaryAuthorization.v1beta1.dll
Syntax
public class ProjectsResource.GetPolicyRequest : BinaryAuthorizationBaseServiceRequest<Policy>, IClientServiceRequest<Policy>, IClientServiceRequest
Constructors
GetPolicyRequest(IClientService, string)
Constructs a new GetPolicy request.
Declaration
public GetPolicyRequest(IClientService service, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Name
Required. The resource name of the policy to retrieve, in the format projects/*/policy
.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
InitParameters()
Initializes GetPolicy parameter list.
Declaration
protected override void InitParameters()