Class ProjectsResource.UpdatePolicyRequest
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.
Inheritance
ProjectsResource.UpdatePolicyRequest
Inherited Members
Namespace: Google.Apis.BinaryAuthorization.v1
Assembly: Google.Apis.BinaryAuthorization.v1.dll
Syntax
public class ProjectsResource.UpdatePolicyRequest : BinaryAuthorizationBaseServiceRequest<Policy>, IClientServiceRequest<Policy>, IClientServiceRequest
Constructors
UpdatePolicyRequest(IClientService, Policy, string)
Constructs a new UpdatePolicy request.
Declaration
public UpdatePolicyRequest(IClientService service, Policy body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Policy | body | |
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
Output only. The resource name, in the format projects/*/policy
. There is at most one policy per
project.
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
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes UpdatePolicy parameter list.
Declaration
protected override void InitParameters()