Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::InstancesSetSecurityPolicyRequest (v2.10.0)

Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::InstancesSetSecurityPolicyRequest.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#network_interfaces

def network_interfaces() -> ::Array<::String>
Returns
  • (::Array<::String>) — 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.

#network_interfaces=

def network_interfaces=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — 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.
Returns
  • (::Array<::String>) — 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.

#security_policy

def security_policy() -> ::String
Returns
  • (::String) — 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.

#security_policy=

def security_policy=(value) -> ::String
Parameter
  • value (::String) — 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.
Returns
  • (::String) — 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.