Permission constructor
const
Permission({})
Creates a new Permission.
constraints Extra custom constraints. The constraints are ANDed together.
hosts Used in Ingress or Egress Gateway cases to specify hosts that the policy applies to. Exact match, prefix match, and suffix match are supported.
methods HTTP method.
notHosts Negate of hosts. Specifies exclusions.
notMethods Negate of methods. Specifies exclusions.
notPaths Negate of paths. Specifies exclusions.
notPorts Negate of ports. Specifies exclusions.
paths HTTP request paths or gRPC methods. Exact match, prefix match, and suffix match are supported.
ports Port names or numbers.
Implementation
const Permission({
this.constraints,
this.hosts,
this.methods,
this.notHosts,
this.notMethods,
this.notPaths,
this.notPorts,
this.paths,
this.ports,
});