Compute V1 Client - Class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy (1.25.0)

Reference documentation and code samples for the Compute V1 Client class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.

Generated from protobuf message google.cloud.compute.v1.InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ display_namestring

[Output Only] Deprecated, please use short name instead. The display name of the firewall policy.

↳ namestring

[Output Only] The name of the firewall policy.

↳ packet_mirroring_rulesarray<FirewallPolicyRule>

[Output Only] The packet mirroring rules that apply to the instance.

↳ priorityint

[Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY.

↳ rulesarray<FirewallPolicyRule>

[Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules.

↳ short_namestring

[Output Only] The short name of the firewall policy.

↳ typestring

[Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. Check the Type enum for the list of possible values.

getDisplayName

[Output Only] Deprecated, please use short name instead. The display name of the firewall policy.

Returns
TypeDescription
string

hasDisplayName

clearDisplayName

setDisplayName

[Output Only] Deprecated, please use short name instead. The display name of the firewall policy.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getName

[Output Only] The name of the firewall policy.

Returns
TypeDescription
string

hasName

clearName

setName

[Output Only] The name of the firewall policy.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getPacketMirroringRules

[Output Only] The packet mirroring rules that apply to the instance.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setPacketMirroringRules

[Output Only] The packet mirroring rules that apply to the instance.

Parameter
NameDescription
vararray<FirewallPolicyRule>
Returns
TypeDescription
$this

getPriority

[Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY.

Returns
TypeDescription
int

hasPriority

clearPriority

setPriority

[Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY.

Parameter
NameDescription
varint
Returns
TypeDescription
$this

getRules

[Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setRules

[Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules.

Parameter
NameDescription
vararray<FirewallPolicyRule>
Returns
TypeDescription
$this

getShortName

[Output Only] The short name of the firewall policy.

Returns
TypeDescription
string

hasShortName

clearShortName

setShortName

[Output Only] The short name of the firewall policy.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getType

[Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL.

Check the Type enum for the list of possible values.

Returns
TypeDescription
string

hasType

clearType

setType

[Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL.

Check the Type enum for the list of possible values.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this