Show / Hide Table of Contents

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
object
ClientServiceRequest
ClientServiceRequest<GoogleCloudOrgpolicyV2Policy>
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2Policy>
FoldersResource.PoliciesResource.PatchRequest
Implements
IClientServiceRequest<GoogleCloudOrgpolicyV2Policy>
IClientServiceRequest
Inherited Members
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2Policy>.Xgafv
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2Policy>.AccessToken
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2Policy>.Alt
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2Policy>.Callback
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2Policy>.Fields
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2Policy>.Key
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2Policy>.OauthToken
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2Policy>.PrettyPrint
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2Policy>.QuotaUser
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2Policy>.UploadType
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2Policy>.UploadProtocol
ClientServiceRequest<GoogleCloudOrgpolicyV2Policy>.Execute()
ClientServiceRequest<GoogleCloudOrgpolicyV2Policy>.ExecuteAsStream()
ClientServiceRequest<GoogleCloudOrgpolicyV2Policy>.ExecuteAsync()
ClientServiceRequest<GoogleCloudOrgpolicyV2Policy>.ExecuteAsync(CancellationToken)
ClientServiceRequest<GoogleCloudOrgpolicyV2Policy>.ExecuteAsStreamAsync()
ClientServiceRequest<GoogleCloudOrgpolicyV2Policy>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<GoogleCloudOrgpolicyV2Policy>.CreateRequest(bool?)
ClientServiceRequest<GoogleCloudOrgpolicyV2Policy>.GenerateRequestUri()
ClientServiceRequest<GoogleCloudOrgpolicyV2Policy>.GetDefaultETagAction(string)
ClientServiceRequest<GoogleCloudOrgpolicyV2Policy>.ETagAction
ClientServiceRequest<GoogleCloudOrgpolicyV2Policy>.ModifyRequest
ClientServiceRequest<GoogleCloudOrgpolicyV2Policy>.ValidateParameters
ClientServiceRequest<GoogleCloudOrgpolicyV2Policy>.ApiVersion
ClientServiceRequest<GoogleCloudOrgpolicyV2Policy>.RequestParameters
ClientServiceRequest<GoogleCloudOrgpolicyV2Policy>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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
ClientServiceRequest<GoogleCloudOrgpolicyV2Policy>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<GoogleCloudOrgpolicyV2Policy>.MethodName

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
ClientServiceRequest<GoogleCloudOrgpolicyV2Policy>.RestPath

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
ClientServiceRequest<GoogleCloudOrgpolicyV2Policy>.GetBody()

InitParameters()

Initializes Patch parameter list.

Declaration
protected override void InitParameters()
Overrides
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2Policy>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX