class Google::Apis::NetworksecurityV1::Rule

Specification of rules.

Attributes

destinations[RW]

Optional. List of attributes for the traffic destination. All of the destinations must match. A destination is a match if a request matches all the specified hosts, ports, methods and headers. If not set, the action specified in the 'action' field will be applied without any rule checks for the destination. Corresponds to the JSON property `destinations` @return [Array<Google::Apis::NetworksecurityV1::Destination>]

sources[RW]

Optional. List of attributes for the traffic source. All of the sources must match. A source is a match if both principals and ip_blocks match. If not set, the action specified in the 'action' field will be applied without any rule checks for the source. Corresponds to the JSON property `sources` @return [Array<Google::Apis::NetworksecurityV1::Source>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/networksecurity_v1/classes.rb, line 1050
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/networksecurity_v1/classes.rb, line 1055
def update!(**args)
  @destinations = args[:destinations] if args.key?(:destinations)
  @sources = args[:sources] if args.key?(:sources)
end