Class PolicyRulesWithSubjects
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.flowcontrol.v1.PolicyRulesWithSubjects
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<PolicyRulesWithSubjectsBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class PolicyRulesWithSubjects extends Object implements io.fabric8.kubernetes.api.builder.Editable<PolicyRulesWithSubjectsBuilder>, io.fabric8.kubernetes.api.model.KubernetesResourcePolicyRulesWithSubjects 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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PolicyRulesWithSubjects()No args constructor for use in serializationPolicyRulesWithSubjects(List<NonResourcePolicyRule> nonResourceRules, List<ResourcePolicyRule> resourceRules, List<Subject> subjects)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyRulesWithSubjectsBuilderedit()Map<String,Object>getAdditionalProperties()List<NonResourcePolicyRule>getNonResourceRules()`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.List<ResourcePolicyRule>getResourceRules()`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource.List<Subject>getSubjects()subjects is the list of normal user, serviceaccount, or group that this rule cares about.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetNonResourceRules(List<NonResourcePolicyRule> nonResourceRules)`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.voidsetResourceRules(List<ResourcePolicyRule> resourceRules)`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource.voidsetSubjects(List<Subject> subjects)subjects is the list of normal user, serviceaccount, or group that this rule cares about.PolicyRulesWithSubjectsBuildertoBuilder()
-
-
-
Constructor Detail
-
PolicyRulesWithSubjects
public PolicyRulesWithSubjects()
No args constructor for use in serialization
-
PolicyRulesWithSubjects
public PolicyRulesWithSubjects(List<NonResourcePolicyRule> nonResourceRules, List<ResourcePolicyRule> resourceRules, List<Subject> subjects)
-
-
Method Detail
-
getNonResourceRules
public List<NonResourcePolicyRule> getNonResourceRules()
`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.
-
setNonResourceRules
public void setNonResourceRules(List<NonResourcePolicyRule> nonResourceRules)
`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.
-
getResourceRules
public List<ResourcePolicyRule> 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.
-
setResourceRules
public void setResourceRules(List<ResourcePolicyRule> resourceRules)
`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.
-
getSubjects
public List<Subject> 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.
-
setSubjects
public void setSubjects(List<Subject> subjects)
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.
-
edit
public PolicyRulesWithSubjectsBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<PolicyRulesWithSubjectsBuilder>
-
toBuilder
public PolicyRulesWithSubjectsBuilder toBuilder()
-
-