Reference documentation and code samples for the Compute V1 Client class InstancesSetSecurityPolicyRequest.
Generated from protobuf message google.cloud.compute.v1.InstancesSetSecurityPolicyRequest
Namespace
Google \ Cloud \ Compute \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ network_interfaces
array
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
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.
getNetworkInterfaces
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.
setNetworkInterfaces
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.
var
string[]
$this
getSecurityPolicy
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.
string
hasSecurityPolicy
clearSecurityPolicy
setSecurityPolicy
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.
var
string
$this

