public sealed class CreateOSPolicyAssignmentRequest : IMessage<CreateOSPolicyAssignmentRequest>, IEquatable<CreateOSPolicyAssignmentRequest>, IDeepCloneable<CreateOSPolicyAssignmentRequest>, IBufferMessage, IMessage
A request message to create an OS policy assignment
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-12 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eCreateOSPolicyAssignmentRequest\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.OsConfig.V1\u003c/code\u003e namespace, specifically version 1.8.0, and references to more recent and earlier versions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateOSPolicyAssignmentRequest\u003c/code\u003e class is used to create an OS policy assignment, and it inherits from \u003ccode\u003eObject\u003c/code\u003e while implementing \u003ccode\u003eIMessage<CreateOSPolicyAssignmentRequest>\u003c/code\u003e, \u003ccode\u003eIEquatable<CreateOSPolicyAssignmentRequest>\u003c/code\u003e, \u003ccode\u003eIDeepCloneable<CreateOSPolicyAssignmentRequest>\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes constructors for creating instances, both with default values and by copying from another \u003ccode\u003eCreateOSPolicyAssignmentRequest\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eIt has properties such as \u003ccode\u003eOsPolicyAssignment\u003c/code\u003e (the assignment to create), \u003ccode\u003eOsPolicyAssignmentId\u003c/code\u003e (the logical name of the assignment), \u003ccode\u003eParent\u003c/code\u003e (the parent resource name), and \u003ccode\u003eParentAsLocationName\u003c/code\u003e (a location name view over parent).\u003c/p\u003e\n"],["\u003cp\u003eThe class requires the user to adhere to specific guidelines and naming conventions, such as the OS policy assignment id needing to be between 1-63 characters, starting with a letter, containing only lowercase letters, numbers and hyphens, and being unique within the project.\u003c/p\u003e\n"]]],[],null,[]]