public sealed class AddRuleSecurityPolicyRequest : IMessage<AddRuleSecurityPolicyRequest>, IEquatable<AddRuleSecurityPolicyRequest>, IDeepCloneable<AddRuleSecurityPolicyRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Compute Engine v1 API class AddRuleSecurityPolicyRequest.
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 within the Google Cloud Compute Engine v1 API, specifically for version 2.14.0, with links to other versions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAddRuleSecurityPolicyRequest\u003c/code\u003e class is used to send requests to update security policies by adding rules, which can be achieved through the \u003ccode\u003eSecurityPolicies.AddRule\u003c/code\u003e method, and it inherits from several 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 documentation includes a list of all versions of the \u003ccode\u003eAddRuleSecurityPolicyRequest\u003c/code\u003e class, from version 1.0.0 up to the latest 3.6.0.\u003c/p\u003e\n"],["\u003cp\u003eThe class has properties such as \u003ccode\u003eProject\u003c/code\u003e, \u003ccode\u003eSecurityPolicy\u003c/code\u003e, \u003ccode\u003eSecurityPolicyRuleResource\u003c/code\u003e, and \u003ccode\u003eValidateOnly\u003c/code\u003e, allowing to specify the project ID, the security policy name, the rule resource to be added, and whether the request should only be validated.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors provided for the \u003ccode\u003eAddRuleSecurityPolicyRequest\u003c/code\u003e class, one default, and another that accepts an existing \u003ccode\u003eAddRuleSecurityPolicyRequest\u003c/code\u003e object as a parameter for duplication.\u003c/p\u003e\n"]]],[],null,[]]