Compute Engine v1 API - Class InstancesSetSecurityPolicyRequest (2.17.0)

public sealed class InstancesSetSecurityPolicyRequest : IMessage<InstancesSetSecurityPolicyRequest>, IEquatable<InstancesSetSecurityPolicyRequest>, IDeepCloneable<InstancesSetSecurityPolicyRequest>, IBufferMessage, IMessage

Inheritance

object > InstancesSetSecurityPolicyRequest

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

InstancesSetSecurityPolicyRequest()

public InstancesSetSecurityPolicyRequest()

InstancesSetSecurityPolicyRequest(InstancesSetSecurityPolicyRequest)

public InstancesSetSecurityPolicyRequest(InstancesSetSecurityPolicyRequest other)
Parameter
Name Description
other InstancesSetSecurityPolicyRequest

Properties

HasSecurityPolicy

public bool HasSecurityPolicy { get; }

Gets whether the "security_policy" field is set

Property Value
Type Description
bool

NetworkInterfaces

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.

Property Value
Type Description
RepeatedFieldstring

SecurityPolicy

public string SecurityPolicy { get; set; }

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.

Property Value
Type Description
string