public sealed class AddRuleSecurityPolicyRequest : IMessage<AddRuleSecurityPolicyRequest>, IEquatable<AddRuleSecurityPolicyRequest>, IDeepCloneable<AddRuleSecurityPolicyRequest>, IBufferMessage, IMessage
A request message for SecurityPolicies.AddRule. See the method description for details.
[[["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-08 UTC."],[[["\u003cp\u003eThis page provides documentation for the \u003ccode\u003eAddRuleSecurityPolicyRequest\u003c/code\u003e class, which is used for adding rules to security policies within Google Cloud Compute V1.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available is 3.6.0, with a range of previous versions listed from 3.5.0 down to 1.0.0 for the \u003ccode\u003eAddRuleSecurityPolicyRequest\u003c/code\u003e resource.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAddRuleSecurityPolicyRequest\u003c/code\u003e class inherits from Object and implements multiple interfaces, including \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 constructors to create new instances, either empty or by cloning an existing \u003ccode\u003eAddRuleSecurityPolicyRequest\u003c/code\u003e, and includes properties to set the Project ID, the Security Policy's name, and a resource for the Security Policy Rule.\u003c/p\u003e\n"],["\u003cp\u003eThe AddRuleSecurityPolicyRequest class is found within the \u003ccode\u003eGoogle.Cloud.Compute.V1\u003c/code\u003e namespace, and is part of the \u003ccode\u003eGoogle.Cloud.Compute.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,[]]