class Google::Apis::ManagerV1beta2::AllowedRule
An allowed port resource.
Attributes
ip_protocol[RW]
?tcp?, ?udp? or ?icmp? Corresponds to the JSON property `IPProtocol` @return [String]
ports[RW]
List of ports or port ranges (Example inputs include: [“22”], [?33?, “12345- 12349”]. Corresponds to the JSON property `ports` @return [Array<String>]
Public Class Methods
new(**args)
click to toggle source
# File generated/google/apis/manager_v1beta2/classes.rb, line 99 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File generated/google/apis/manager_v1beta2/classes.rb, line 104 def update!(**args) @ip_protocol = args[:ip_protocol] if args.key?(:ip_protocol) @ports = args[:ports] if args.key?(:ports) end