View Source GoogleApi.NetworkSecurity.V1.Model.Rule (google_api_network_security v0.5.0)

Specification of rules.

Attributes

  • destinations (type: list(GoogleApi.NetworkSecurity.V1.Model.Destination.t), default: nil) - 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.
  • sources (type: list(GoogleApi.NetworkSecurity.V1.Model.Source.t), default: nil) - 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.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.NetworkSecurity.V1.Model.Rule{
  destinations: [GoogleApi.NetworkSecurity.V1.Model.Destination.t()] | nil,
  sources: [GoogleApi.NetworkSecurity.V1.Model.Source.t()] | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.