Class FoldersResource.PoliciesResource.PatchRequest
Updates a policy. Returns a google.rpc.Status
with google.rpc.Code.NOT_FOUND
if the constraint or
the policy do not exist. Returns a google.rpc.Status
with google.rpc.Code.ABORTED
if the etag
supplied in the request does not match the persisted etag of the policy Note: the supplied policy will
perform a full overwrite of all fields.
Inheritance
Inherited Members
Namespace: Google.Apis.OrgPolicyAPI.v2
Assembly: Google.Apis.OrgPolicyAPI.v2.dll
Syntax
public class FoldersResource.PoliciesResource.PatchRequest : OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2Policy>, IClientServiceRequest<GoogleCloudOrgpolicyV2Policy>, IClientServiceRequest
Constructors
PatchRequest(IClientService, GoogleCloudOrgpolicyV2Policy, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, GoogleCloudOrgpolicyV2Policy body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudOrgpolicyV2Policy | 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
Immutable. The resource name of the policy. Must be one of the following forms, where
constraint_name
is the name of the constraint which this policy configures: *
projects/{project_number}/policies/{constraint_name}
*
folders/{folder_id}/policies/{constraint_name}
*
organizations/{organization_id}/policies/{constraint_name}
For example,
projects/123/policies/compute.disableSerialPortAccess
. Note:
projects/{project_id}/policies/{constraint_name}
is also an acceptable name for API requests, but
responses will return the name using the equivalent project number.
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
UpdateMask
Field mask used to specify the fields to be overwritten in the policy by the set. The fields specified in the update_mask are relative to the policy, not the full request.
Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
Type | Description |
---|---|
object |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()