public sealed class CreateCustomConstraintRequest : IMessage<CreateCustomConstraintRequest>, IEquatable<CreateCustomConstraintRequest>, IDeepCloneable<CreateCustomConstraintRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Organization Policy v2 API class CreateCustomConstraintRequest.
The request sent to the [CreateCustomConstraintRequest]
[google.cloud.orgpolicy.v2.OrgPolicy.CreateCustomConstraint] method.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eCreateCustomConstraintRequest\u003c/code\u003e class is used to send requests to the \u003ccode\u003eOrgPolicy.CreateCustomConstraint\u003c/code\u003e method within the Organization Policy v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class supports multiple versions, with the latest being version 2.7.0, and previous versions ranging from 2.6.0 to 1.0.0, all available for reference.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has properties such as \u003ccode\u003eCustomConstraint\u003c/code\u003e, which represents the custom constraint to be created, and \u003ccode\u003eParent\u003c/code\u003e, which specifies the organization where the constraint will be created, formatted as \u003ccode\u003eorganizations/{organization_id}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe constructor allows creating a new \u003ccode\u003eCreateCustomConstraintRequest\u003c/code\u003e object, either as an empty instance or by cloning another \u003ccode\u003eCreateCustomConstraintRequest\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]