case class PolicyRule(apiGroups: Optional[Vector[String]] = Optional.Absent, nonResourceURLs: Optional[Vector[String]] = Optional.Absent, resourceNames: Optional[Vector[String]] = Optional.Absent, resources: Optional[Vector[String]] = Optional.Absent, verbs: Vector[String]) extends Product with Serializable
PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.
- apiGroups
APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed.
- nonResourceURLs
NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both.
- resourceNames
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
- resources
Resources is a list of resources this rule applies to. '*' represents all resources.
- verbs
Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
- Alphabetic
- By Inheritance
- PolicyRule
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
PolicyRule(apiGroups: Optional[Vector[String]] = Optional.Absent, nonResourceURLs: Optional[Vector[String]] = Optional.Absent, resourceNames: Optional[Vector[String]] = Optional.Absent, resources: Optional[Vector[String]] = Optional.Absent, verbs: Vector[String])
- apiGroups
APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed.
- nonResourceURLs
NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both.
- resourceNames
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
- resources
Resources is a list of resources this rule applies to. '*' represents all resources.
- verbs
Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
Value Members
- val apiGroups: Optional[Vector[String]]
-
def
getApiGroups: IO[K8sFailure, Vector[String]]
APIGroups is the name of the APIGroup that contains the resources.
APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getNonResourceURLs: IO[K8sFailure, Vector[String]]
NonResourceURLs is a set of partial urls that a user should have access to.
NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getResourceNames: IO[K8sFailure, Vector[String]]
ResourceNames is an optional white list of names that the rule applies to.
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getResources: IO[K8sFailure, Vector[String]]
Resources is a list of resources this rule applies to.
Resources is a list of resources this rule applies to. '*' represents all resources.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getVerbs: IO[K8sFailure, Vector[String]]
Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule.
Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
This effect always succeeds, it is safe to use the field verbs directly.
- val nonResourceURLs: Optional[Vector[String]]
- val resourceNames: Optional[Vector[String]]
- val resources: Optional[Vector[String]]
- val verbs: Vector[String]