We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4961641 commit d2c2677Copy full SHA for d2c2677
compute/firewall_rules.go
@@ -114,6 +114,11 @@ func (scope *FirewallRuleScope) IsScopePortRange() bool {
114
return scope.Port != nil && scope.Port.End != nil
115
}
116
117
+// IsScopePortList determines whether the firewall rule scope matches a port list.
118
+func (scope *FirewallRuleScope) IsScopePortList() bool {
119
+ return scope.PortListID != nil
120
+}
121
+
122
// IsScopeAddressList determines whether the firewall rule scope matches an IP address list.
123
func (scope *FirewallRuleScope) IsScopeAddressList() bool {
124
return scope.AddressList != nil || scope.AddressListID != nil
0 commit comments