Class V1PolicyRulesWithSubjects
java.lang.Object
io.kubernetes.client.openapi.models.V1PolicyRulesWithSubjects
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-23T13:45:08.546919Z[Etc/UTC]")
public class V1PolicyRulesWithSubjects
extends Object
PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddNonResourceRulesItem
(V1NonResourcePolicyRule nonResourceRulesItem) addResourceRulesItem
(V1ResourcePolicyRule resourceRulesItem) addSubjectsItem
(FlowcontrolV1Subject subjectsItem) boolean
`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource.subjects is the list of normal user, serviceaccount, or group that this rule cares about.int
hashCode()
nonResourceRules
(List<V1NonResourcePolicyRule> nonResourceRules) resourceRules
(List<V1ResourcePolicyRule> resourceRules) void
setNonResourceRules
(List<V1NonResourcePolicyRule> nonResourceRules) void
setResourceRules
(List<V1ResourcePolicyRule> resourceRules) void
setSubjects
(List<FlowcontrolV1Subject> subjects) subjects
(List<FlowcontrolV1Subject> subjects) toString()
-
Field Details
-
SERIALIZED_NAME_NON_RESOURCE_RULES
- See Also:
-
SERIALIZED_NAME_RESOURCE_RULES
- See Also:
-
SERIALIZED_NAME_SUBJECTS
- See Also:
-
-
Constructor Details
-
V1PolicyRulesWithSubjects
public V1PolicyRulesWithSubjects()
-
-
Method Details
-
nonResourceRules
-
addNonResourceRulesItem
public V1PolicyRulesWithSubjects addNonResourceRulesItem(V1NonResourcePolicyRule nonResourceRulesItem) -
getNonResourceRules
`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.- Returns:
- nonResourceRules
-
setNonResourceRules
-
resourceRules
-
addResourceRulesItem
-
getResourceRules
`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.- Returns:
- resourceRules
-
setResourceRules
-
subjects
-
addSubjectsItem
-
getSubjects
subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.- Returns:
- subjects
-
setSubjects
-
equals
-
hashCode
public int hashCode() -
toString
-