io.envoyproxy.envoy.config.rbac.v3.RBAC.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of envoy-scala-control-plane_2.13 Show documentation
Show all versions of envoy-scala-control-plane_2.13 Show documentation
ScalaPB generated bindings for Envoy
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
// Do not edit!
//
// Protofile syntax: PROTO3
package io.envoyproxy.envoy.config.rbac.v3
/** Role Based Access Control (RBAC) provides service-level and method-level access control for a
* service. Requests are allowed or denied based on the `action` and whether a matching policy is
* found. For instance, if the action is ALLOW and a matching policy is found the request should be
* allowed.
*
* RBAC can also be used to make access logging decisions by communicating with access loggers
* through dynamic metadata. When the action is LOG and at least one policy matches, the
* `access_log_hint` value in the shared key namespace 'envoy.common' is set to `true` indicating
* the request should be logged.
*
* Here is an example of RBAC configuration. It has two policies:
*
* * Service account "cluster.local/ns/default/sa/admin" has full access to the service, and so
* does "cluster.local/ns/default/sa/superuser".
*
* * Any user can read ("GET") the service at paths with prefix "/products", so long as the
* destination port is either 80 or 443.
*
* .. code-block:: yaml
*
* action: ALLOW
* policies:
* "service-admin":
* permissions:
* - any: true
* principals:
* - authenticated:
* principal_name:
* exact: "cluster.local/ns/default/sa/admin"
* - authenticated:
* principal_name:
* exact: "cluster.local/ns/default/sa/superuser"
* "product-viewer":
* permissions:
* - and_rules:
* rules:
* - header:
* name: ":method"
* string_match:
* exact: "GET"
* - url_path:
* path: { prefix: "/products" }
* - or_rules:
* rules:
* - destination_port: 80
* - destination_port: 443
* principals:
* - any: true
*
* @param action
* The action to take if a policy matches. Every action either allows or denies a request,
* and can also carry out action-specific operations.
*
* Actions:
*
* * ALLOW: Allows the request if and only if there is a policy that matches
* the request.
* * DENY: Allows the request if and only if there are no policies that
* match the request.
* * LOG: Allows all requests. If at least one policy matches, the dynamic
* metadata key `access_log_hint` is set to the value `true` under the shared
* key namespace 'envoy.common'. If no policies match, it is set to `false`.
* Other actions do not modify this key.
* @param policies
* Maps from policy name to policy. A match occurs when at least one policy matches the request.
* The policies are evaluated in lexicographic order of the policy name.
*/
@SerialVersionUID(0L)
final case class RBAC(
action: io.envoyproxy.envoy.config.rbac.v3.RBAC.Action = io.envoyproxy.envoy.config.rbac.v3.RBAC.Action.ALLOW,
policies: _root_.scala.collection.immutable.Map[_root_.scala.Predef.String, io.envoyproxy.envoy.config.rbac.v3.Policy] = _root_.scala.collection.immutable.Map.empty,
unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[RBAC] {
@transient
private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
private[this] def __computeSerializedSize(): _root_.scala.Int = {
var __size = 0
{
val __value = action.value
if (__value != 0) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeEnumSize(1, __value)
}
};
policies.foreach { __item =>
val __value = io.envoyproxy.envoy.config.rbac.v3.RBAC._typemapper_policies.toBase(__item)
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
}
__size += unknownFields.serializedSize
__size
}
override def serializedSize: _root_.scala.Int = {
var __size = __serializedSizeMemoized
if (__size == 0) {
__size = __computeSerializedSize() + 1
__serializedSizeMemoized = __size
}
__size - 1
}
def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
{
val __v = action.value
if (__v != 0) {
_output__.writeEnum(1, __v)
}
};
policies.foreach { __v =>
val __m = io.envoyproxy.envoy.config.rbac.v3.RBAC._typemapper_policies.toBase(__v)
_output__.writeTag(2, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
unknownFields.writeTo(_output__)
}
def withAction(__v: io.envoyproxy.envoy.config.rbac.v3.RBAC.Action): RBAC = copy(action = __v)
def clearPolicies = copy(policies = _root_.scala.collection.immutable.Map.empty)
def addPolicies(__vs: (_root_.scala.Predef.String, io.envoyproxy.envoy.config.rbac.v3.Policy) *): RBAC = addAllPolicies(__vs)
def addAllPolicies(__vs: Iterable[(_root_.scala.Predef.String, io.envoyproxy.envoy.config.rbac.v3.Policy)]): RBAC = copy(policies = policies ++ __vs)
def withPolicies(__v: _root_.scala.collection.immutable.Map[_root_.scala.Predef.String, io.envoyproxy.envoy.config.rbac.v3.Policy]): RBAC = copy(policies = __v)
def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v)
def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty)
def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = {
(__fieldNumber: @_root_.scala.unchecked) match {
case 1 => {
val __t = action.javaValueDescriptor
if (__t.getNumber() != 0) __t else null
}
case 2 => policies.iterator.map(io.envoyproxy.envoy.config.rbac.v3.RBAC._typemapper_policies.toBase(_)).toSeq
}
}
def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
_root_.scala.Predef.require(__field.containingMessage eq companion.scalaDescriptor)
(__field.number: @_root_.scala.unchecked) match {
case 1 => _root_.scalapb.descriptors.PEnum(action.scalaValueDescriptor)
case 2 => _root_.scalapb.descriptors.PRepeated(policies.iterator.map(io.envoyproxy.envoy.config.rbac.v3.RBAC._typemapper_policies.toBase(_).toPMessage).toVector)
}
}
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
def companion: io.envoyproxy.envoy.config.rbac.v3.RBAC.type = io.envoyproxy.envoy.config.rbac.v3.RBAC
// @@protoc_insertion_point(GeneratedMessage[envoy.config.rbac.v3.RBAC])
}
object RBAC extends scalapb.GeneratedMessageCompanion[io.envoyproxy.envoy.config.rbac.v3.RBAC] {
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[io.envoyproxy.envoy.config.rbac.v3.RBAC] = this
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): io.envoyproxy.envoy.config.rbac.v3.RBAC = {
var __action: io.envoyproxy.envoy.config.rbac.v3.RBAC.Action = io.envoyproxy.envoy.config.rbac.v3.RBAC.Action.ALLOW
val __policies: _root_.scala.collection.mutable.Builder[(_root_.scala.Predef.String, io.envoyproxy.envoy.config.rbac.v3.Policy), _root_.scala.collection.immutable.Map[_root_.scala.Predef.String, io.envoyproxy.envoy.config.rbac.v3.Policy]] = _root_.scala.collection.immutable.Map.newBuilder[_root_.scala.Predef.String, io.envoyproxy.envoy.config.rbac.v3.Policy]
var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
var _done__ = false
while (!_done__) {
val _tag__ = _input__.readTag()
_tag__ match {
case 0 => _done__ = true
case 8 =>
__action = io.envoyproxy.envoy.config.rbac.v3.RBAC.Action.fromValue(_input__.readEnum())
case 18 =>
__policies += io.envoyproxy.envoy.config.rbac.v3.RBAC._typemapper_policies.toCustom(_root_.scalapb.LiteParser.readMessage[io.envoyproxy.envoy.config.rbac.v3.RBAC.PoliciesEntry](_input__))
case tag =>
if (_unknownFields__ == null) {
_unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
}
_unknownFields__.parseField(tag, _input__)
}
}
io.envoyproxy.envoy.config.rbac.v3.RBAC(
action = __action,
policies = __policies.result(),
unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
)
}
implicit def messageReads: _root_.scalapb.descriptors.Reads[io.envoyproxy.envoy.config.rbac.v3.RBAC] = _root_.scalapb.descriptors.Reads{
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
_root_.scala.Predef.require(__fieldsMap.keys.forall(_.containingMessage eq scalaDescriptor), "FieldDescriptor does not match message type.")
io.envoyproxy.envoy.config.rbac.v3.RBAC(
action = io.envoyproxy.envoy.config.rbac.v3.RBAC.Action.fromValue(__fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scalapb.descriptors.EnumValueDescriptor]).getOrElse(io.envoyproxy.envoy.config.rbac.v3.RBAC.Action.ALLOW.scalaValueDescriptor).number),
policies = __fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.scala.Seq[io.envoyproxy.envoy.config.rbac.v3.RBAC.PoliciesEntry]]).getOrElse(_root_.scala.Seq.empty).iterator.map(io.envoyproxy.envoy.config.rbac.v3.RBAC._typemapper_policies.toCustom(_)).toMap
)
case _ => throw new RuntimeException("Expected PMessage")
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = RbacProto.javaDescriptor.getMessageTypes().get(0)
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = RbacProto.scalaDescriptor.messages(0)
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
(__number: @_root_.scala.unchecked) match {
case 2 => __out = io.envoyproxy.envoy.config.rbac.v3.RBAC.PoliciesEntry
}
__out
}
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] =
Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]](
_root_.io.envoyproxy.envoy.config.rbac.v3.RBAC.PoliciesEntry
)
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = {
(__fieldNumber: @_root_.scala.unchecked) match {
case 1 => io.envoyproxy.envoy.config.rbac.v3.RBAC.Action
}
}
lazy val defaultInstance = io.envoyproxy.envoy.config.rbac.v3.RBAC(
action = io.envoyproxy.envoy.config.rbac.v3.RBAC.Action.ALLOW,
policies = _root_.scala.collection.immutable.Map.empty
)
/** Should we do safe-list or block-list style access control?
*/
sealed abstract class Action(val value: _root_.scala.Int) extends _root_.scalapb.GeneratedEnum {
type EnumType = Action
def isAllow: _root_.scala.Boolean = false
def isDeny: _root_.scala.Boolean = false
def isLog: _root_.scala.Boolean = false
def companion: _root_.scalapb.GeneratedEnumCompanion[Action] = io.envoyproxy.envoy.config.rbac.v3.RBAC.Action
final def asRecognized: _root_.scala.Option[io.envoyproxy.envoy.config.rbac.v3.RBAC.Action.Recognized] = if (isUnrecognized) _root_.scala.None else _root_.scala.Some(this.asInstanceOf[io.envoyproxy.envoy.config.rbac.v3.RBAC.Action.Recognized])
}
object Action extends _root_.scalapb.GeneratedEnumCompanion[Action] {
sealed trait Recognized extends Action
implicit def enumCompanion: _root_.scalapb.GeneratedEnumCompanion[Action] = this
/** The policies grant access to principals. The rest are denied. This is safe-list style
* access control. This is the default type.
*/
@SerialVersionUID(0L)
case object ALLOW extends Action(0) with Action.Recognized {
val index = 0
val name = "ALLOW"
override def isAllow: _root_.scala.Boolean = true
}
/** The policies deny access to principals. The rest are allowed. This is block-list style
* access control.
*/
@SerialVersionUID(0L)
case object DENY extends Action(1) with Action.Recognized {
val index = 1
val name = "DENY"
override def isDeny: _root_.scala.Boolean = true
}
/** The policies set the `access_log_hint` dynamic metadata key based on if requests match.
* All requests are allowed.
*/
@SerialVersionUID(0L)
case object LOG extends Action(2) with Action.Recognized {
val index = 2
val name = "LOG"
override def isLog: _root_.scala.Boolean = true
}
@SerialVersionUID(0L)
final case class Unrecognized(unrecognizedValue: _root_.scala.Int) extends Action(unrecognizedValue) with _root_.scalapb.UnrecognizedEnum
lazy val values = scala.collection.immutable.Seq(ALLOW, DENY, LOG)
def fromValue(__value: _root_.scala.Int): Action = __value match {
case 0 => ALLOW
case 1 => DENY
case 2 => LOG
case __other => Unrecognized(__other)
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.EnumDescriptor = io.envoyproxy.envoy.config.rbac.v3.RBAC.javaDescriptor.getEnumTypes().get(0)
def scalaDescriptor: _root_.scalapb.descriptors.EnumDescriptor = io.envoyproxy.envoy.config.rbac.v3.RBAC.scalaDescriptor.enums(0)
}
@SerialVersionUID(0L)
final case class PoliciesEntry(
key: _root_.scala.Predef.String = "",
value: _root_.scala.Option[io.envoyproxy.envoy.config.rbac.v3.Policy] = _root_.scala.None,
unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[PoliciesEntry] {
@transient
private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
private[this] def __computeSerializedSize(): _root_.scala.Int = {
var __size = 0
{
val __value = key
if (!__value.isEmpty) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(1, __value)
}
};
if (value.isDefined) {
val __value = value.get
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
};
__size += unknownFields.serializedSize
__size
}
override def serializedSize: _root_.scala.Int = {
var __size = __serializedSizeMemoized
if (__size == 0) {
__size = __computeSerializedSize() + 1
__serializedSizeMemoized = __size
}
__size - 1
}
def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
{
val __v = key
if (!__v.isEmpty) {
_output__.writeString(1, __v)
}
};
value.foreach { __v =>
val __m = __v
_output__.writeTag(2, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
unknownFields.writeTo(_output__)
}
def withKey(__v: _root_.scala.Predef.String): PoliciesEntry = copy(key = __v)
def getValue: io.envoyproxy.envoy.config.rbac.v3.Policy = value.getOrElse(io.envoyproxy.envoy.config.rbac.v3.Policy.defaultInstance)
def clearValue: PoliciesEntry = copy(value = _root_.scala.None)
def withValue(__v: io.envoyproxy.envoy.config.rbac.v3.Policy): PoliciesEntry = copy(value = Option(__v))
def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v)
def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty)
def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = {
(__fieldNumber: @_root_.scala.unchecked) match {
case 1 => {
val __t = key
if (__t != "") __t else null
}
case 2 => value.orNull
}
}
def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
_root_.scala.Predef.require(__field.containingMessage eq companion.scalaDescriptor)
(__field.number: @_root_.scala.unchecked) match {
case 1 => _root_.scalapb.descriptors.PString(key)
case 2 => value.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
}
}
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
def companion: io.envoyproxy.envoy.config.rbac.v3.RBAC.PoliciesEntry.type = io.envoyproxy.envoy.config.rbac.v3.RBAC.PoliciesEntry
// @@protoc_insertion_point(GeneratedMessage[envoy.config.rbac.v3.RBAC.PoliciesEntry])
}
object PoliciesEntry extends scalapb.GeneratedMessageCompanion[io.envoyproxy.envoy.config.rbac.v3.RBAC.PoliciesEntry] {
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[io.envoyproxy.envoy.config.rbac.v3.RBAC.PoliciesEntry] = this
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): io.envoyproxy.envoy.config.rbac.v3.RBAC.PoliciesEntry = {
var __key: _root_.scala.Predef.String = ""
var __value: _root_.scala.Option[io.envoyproxy.envoy.config.rbac.v3.Policy] = _root_.scala.None
var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
var _done__ = false
while (!_done__) {
val _tag__ = _input__.readTag()
_tag__ match {
case 0 => _done__ = true
case 10 =>
__key = _input__.readStringRequireUtf8()
case 18 =>
__value = Option(__value.fold(_root_.scalapb.LiteParser.readMessage[io.envoyproxy.envoy.config.rbac.v3.Policy](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
case tag =>
if (_unknownFields__ == null) {
_unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
}
_unknownFields__.parseField(tag, _input__)
}
}
io.envoyproxy.envoy.config.rbac.v3.RBAC.PoliciesEntry(
key = __key,
value = __value,
unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
)
}
implicit def messageReads: _root_.scalapb.descriptors.Reads[io.envoyproxy.envoy.config.rbac.v3.RBAC.PoliciesEntry] = _root_.scalapb.descriptors.Reads{
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
_root_.scala.Predef.require(__fieldsMap.keys.forall(_.containingMessage eq scalaDescriptor), "FieldDescriptor does not match message type.")
io.envoyproxy.envoy.config.rbac.v3.RBAC.PoliciesEntry(
key = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
value = __fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).flatMap(_.as[_root_.scala.Option[io.envoyproxy.envoy.config.rbac.v3.Policy]])
)
case _ => throw new RuntimeException("Expected PMessage")
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = io.envoyproxy.envoy.config.rbac.v3.RBAC.javaDescriptor.getNestedTypes().get(0)
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = io.envoyproxy.envoy.config.rbac.v3.RBAC.scalaDescriptor.nestedMessages(0)
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
(__number: @_root_.scala.unchecked) match {
case 2 => __out = io.envoyproxy.envoy.config.rbac.v3.Policy
}
__out
}
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] = Seq.empty
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
lazy val defaultInstance = io.envoyproxy.envoy.config.rbac.v3.RBAC.PoliciesEntry(
key = "",
value = _root_.scala.None
)
implicit class PoliciesEntryLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, io.envoyproxy.envoy.config.rbac.v3.RBAC.PoliciesEntry]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, io.envoyproxy.envoy.config.rbac.v3.RBAC.PoliciesEntry](_l) {
def key: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.key)((c_, f_) => c_.copy(key = f_))
def value: _root_.scalapb.lenses.Lens[UpperPB, io.envoyproxy.envoy.config.rbac.v3.Policy] = field(_.getValue)((c_, f_) => c_.copy(value = Option(f_)))
def optionalValue: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Option[io.envoyproxy.envoy.config.rbac.v3.Policy]] = field(_.value)((c_, f_) => c_.copy(value = f_))
}
final val KEY_FIELD_NUMBER = 1
final val VALUE_FIELD_NUMBER = 2
@transient
implicit val keyValueMapper: _root_.scalapb.TypeMapper[io.envoyproxy.envoy.config.rbac.v3.RBAC.PoliciesEntry, (_root_.scala.Predef.String, io.envoyproxy.envoy.config.rbac.v3.Policy)] =
_root_.scalapb.TypeMapper[io.envoyproxy.envoy.config.rbac.v3.RBAC.PoliciesEntry, (_root_.scala.Predef.String, io.envoyproxy.envoy.config.rbac.v3.Policy)](__m => (__m.key, __m.getValue))(__p => io.envoyproxy.envoy.config.rbac.v3.RBAC.PoliciesEntry(__p._1, Some(__p._2)))
def of(
key: _root_.scala.Predef.String,
value: _root_.scala.Option[io.envoyproxy.envoy.config.rbac.v3.Policy]
): _root_.io.envoyproxy.envoy.config.rbac.v3.RBAC.PoliciesEntry = _root_.io.envoyproxy.envoy.config.rbac.v3.RBAC.PoliciesEntry(
key,
value
)
// @@protoc_insertion_point(GeneratedMessageCompanion[envoy.config.rbac.v3.RBAC.PoliciesEntry])
}
implicit class RBACLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, io.envoyproxy.envoy.config.rbac.v3.RBAC]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, io.envoyproxy.envoy.config.rbac.v3.RBAC](_l) {
def action: _root_.scalapb.lenses.Lens[UpperPB, io.envoyproxy.envoy.config.rbac.v3.RBAC.Action] = field(_.action)((c_, f_) => c_.copy(action = f_))
def policies: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.collection.immutable.Map[_root_.scala.Predef.String, io.envoyproxy.envoy.config.rbac.v3.Policy]] = field(_.policies)((c_, f_) => c_.copy(policies = f_))
}
final val ACTION_FIELD_NUMBER = 1
final val POLICIES_FIELD_NUMBER = 2
@transient
private[v3] val _typemapper_policies: _root_.scalapb.TypeMapper[io.envoyproxy.envoy.config.rbac.v3.RBAC.PoliciesEntry, (_root_.scala.Predef.String, io.envoyproxy.envoy.config.rbac.v3.Policy)] = implicitly[_root_.scalapb.TypeMapper[io.envoyproxy.envoy.config.rbac.v3.RBAC.PoliciesEntry, (_root_.scala.Predef.String, io.envoyproxy.envoy.config.rbac.v3.Policy)]]
def of(
action: io.envoyproxy.envoy.config.rbac.v3.RBAC.Action,
policies: _root_.scala.collection.immutable.Map[_root_.scala.Predef.String, io.envoyproxy.envoy.config.rbac.v3.Policy]
): _root_.io.envoyproxy.envoy.config.rbac.v3.RBAC = _root_.io.envoyproxy.envoy.config.rbac.v3.RBAC(
action,
policies
)
// @@protoc_insertion_point(GeneratedMessageCompanion[envoy.config.rbac.v3.RBAC])
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy