Class V1beta3PolicyRulesWithSubjects
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1beta3PolicyRulesWithSubjects
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1beta3PolicyRulesWithSubjects
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddnonResourceRulesItem
(V1beta3NonResourcePolicyRule nonResourceRulesItem) Add an item to the nonResourceRules property in a chainable fashion.addresourceRulesItem
(V1beta3ResourcePolicyRule resourceRulesItem) Add an item to the resourceRules property in a chainable fashion.addsubjectsItem
(V1beta3Subject subjectsItem) Add an item to the subjects property in a chainable fashion.boolean
List<@Valid V1beta3NonResourcePolicyRule>
`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.List<@Valid V1beta3ResourcePolicyRule>
`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource.List<@Valid V1beta3Subject>
subjects is the list of normal user, serviceaccount, or group that this rule cares about.int
hashCode()
nonResourceRules
(List<@Valid V1beta3NonResourcePolicyRule> nonResourceRules) Set nonResourceRules in a chainable fashion.resourceRules
(List<@Valid V1beta3ResourcePolicyRule> resourceRules) Set resourceRules in a chainable fashion.void
setNonResourceRules
(List<@Valid V1beta3NonResourcePolicyRule> nonResourceRules) Set the nonResourceRules property valuevoid
setResourceRules
(List<@Valid V1beta3ResourcePolicyRule> resourceRules) Set the resourceRules property valuevoid
setSubjects
(List<@Valid V1beta3Subject> subjects) Set the subjects property valuesubjects
(List<@Valid V1beta3Subject> subjects) Set subjects in a chainable fashion.toString()
-
Field Details
-
JSON_PROPERTY_SUBJECTS
- See Also:
-
JSON_PROPERTY_NON_RESOURCE_RULES
- See Also:
-
JSON_PROPERTY_RESOURCE_RULES
- See Also:
-
-
Constructor Details
-
V1beta3PolicyRulesWithSubjects
-
-
Method Details
-
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:
- the subjects property value
-
setSubjects
Set the subjects property value- Parameters:
subjects
- property value to set
-
subjects
Set subjects in a chainable fashion.- Returns:
- The same instance of V1beta3PolicyRulesWithSubjects for chaining.
-
addsubjectsItem
Add an item to the subjects property in a chainable fashion.- Returns:
- The same instance of V1beta3PolicyRulesWithSubjects for chaining.
-
getNonResourceRules
`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.- Returns:
- the nonResourceRules property value
-
setNonResourceRules
Set the nonResourceRules property value- Parameters:
nonResourceRules
- property value to set
-
nonResourceRules
public V1beta3PolicyRulesWithSubjects nonResourceRules(List<@Valid V1beta3NonResourcePolicyRule> nonResourceRules) Set nonResourceRules in a chainable fashion.- Returns:
- The same instance of V1beta3PolicyRulesWithSubjects for chaining.
-
addnonResourceRulesItem
public V1beta3PolicyRulesWithSubjects addnonResourceRulesItem(V1beta3NonResourcePolicyRule nonResourceRulesItem) Add an item to the nonResourceRules property in a chainable fashion.- Returns:
- The same instance of V1beta3PolicyRulesWithSubjects for chaining.
-
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:
- the resourceRules property value
-
setResourceRules
Set the resourceRules property value- Parameters:
resourceRules
- property value to set
-
resourceRules
public V1beta3PolicyRulesWithSubjects resourceRules(List<@Valid V1beta3ResourcePolicyRule> resourceRules) Set resourceRules in a chainable fashion.- Returns:
- The same instance of V1beta3PolicyRulesWithSubjects for chaining.
-
addresourceRulesItem
public V1beta3PolicyRulesWithSubjects addresourceRulesItem(V1beta3ResourcePolicyRule resourceRulesItem) Add an item to the resourceRules property in a chainable fashion.- Returns:
- The same instance of V1beta3PolicyRulesWithSubjects for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-