Show / Hide Table of Contents

Class OrganizationsResource.CustomConstraintsResource.PatchRequest

Updates a custom constraint. Returns a google.rpc.Status with google.rpc.Code.NOT_FOUND if the constraint does not exist. Note: the supplied policy will perform a full overwrite of all fields.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>
OrganizationsResource.CustomConstraintsResource.PatchRequest
Implements
IClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>
IClientServiceRequest
Inherited Members
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.Xgafv
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.AccessToken
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.Alt
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.Callback
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.Fields
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.Key
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.OauthToken
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.PrettyPrint
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.QuotaUser
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.UploadType
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.UploadProtocol
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.Execute()
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.ExecuteAsStream()
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.ExecuteAsync()
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.ExecuteAsync(CancellationToken)
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.ExecuteAsStreamAsync()
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.CreateRequest(bool?)
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.GenerateRequestUri()
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.GetDefaultETagAction(string)
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.ETagAction
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.ModifyRequest
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.ValidateParameters
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.ApiVersion
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.RequestParameters
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.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 OrganizationsResource.CustomConstraintsResource.PatchRequest : OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>, IClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>, IClientServiceRequest

Constructors

PatchRequest(IClientService, GoogleCloudOrgpolicyV2CustomConstraint, string)

Constructs a new Patch request.

Declaration
public PatchRequest(IClientService service, GoogleCloudOrgpolicyV2CustomConstraint body, string name)
Parameters
Type Name Description
IClientService service
GoogleCloudOrgpolicyV2CustomConstraint body
string name

Properties

HttpMethod

Gets the HTTP method.

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

MethodName

Gets the method name.

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

Name

Immutable. Name of the constraint. This is unique within the organization. Format of the name should be * organizations/{organization_id}/customConstraints/{custom_constraint_id} Example: organizations/123/customConstraints/custom.createOnlyE2TypeVms The max length is 70 characters and the minimum length is 1. Note that the prefix organizations/{organization_id}/customConstraints/ is not counted.

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<GoogleCloudOrgpolicyV2CustomConstraint>.RestPath

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
object
Overrides
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.GetBody()

InitParameters()

Initializes Patch parameter list.

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

Implements

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