public sealed class InstancesSetSecurityPolicyRequest : IMessage<InstancesSetSecurityPolicyRequest>, IEquatable<InstancesSetSecurityPolicyRequest>, IDeepCloneable<InstancesSetSecurityPolicyRequest>, IBufferMessage, IMessage
public RepeatedField<string> NetworkInterfaces { get; }
The network interfaces that the security policy will be applied to. Network interfaces use the nicN naming format. You can only set a security policy for network interfaces with an access config.
A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
[[["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-03-21 UTC."],[[["The `InstancesSetSecurityPolicyRequest` class, part of the `Google.Cloud.Compute.V1` namespace, is used for managing security policies for Google Cloud Compute instances."],["This class has a history of versions, from 1.0.0 to the latest 3.6.0, with the provided information focused on version 3.0.0, showing the different previous versions as well."],["`InstancesSetSecurityPolicyRequest` implements interfaces such as `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, allowing for operations like message handling, comparison, cloning, and efficient data handling."],["The class provides properties to manage the `security_policy` field, including getting whether the field is set and setting a security policy, or removing an existing one by setting it to an empty string."],["The `NetworkInterfaces` property is available, allowing specific network interfaces to be assigned to a security policy, however, they must have an access configuration."]]],[]]