Package net.stickycode.kuuty.model.v18
Class IoK8sApiFlowcontrolV1alpha1PolicyRulesWithSubjects
- java.lang.Object
-
- net.stickycode.kuuty.model.v18.IoK8sApiFlowcontrolV1alpha1PolicyRulesWithSubjects
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-11-26T11:01:11.402583+13:00[Pacific/Auckland]") public class IoK8sApiFlowcontrolV1alpha1PolicyRulesWithSubjects 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 Modifier and Type Field Description static StringJSON_PROPERTY_NON_RESOURCE_RULESstatic StringJSON_PROPERTY_RESOURCE_RULESstatic StringJSON_PROPERTY_SUBJECTS
-
Constructor Summary
Constructors Constructor Description IoK8sApiFlowcontrolV1alpha1PolicyRulesWithSubjects()
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_NON_RESOURCE_RULES
public static final String JSON_PROPERTY_NON_RESOURCE_RULES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RESOURCE_RULES
public static final String JSON_PROPERTY_RESOURCE_RULES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUBJECTS
public static final String JSON_PROPERTY_SUBJECTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
nonResourceRules
public IoK8sApiFlowcontrolV1alpha1PolicyRulesWithSubjects nonResourceRules(List<IoK8sApiFlowcontrolV1alpha1NonResourcePolicyRule> nonResourceRules)
-
addNonResourceRulesItem
public IoK8sApiFlowcontrolV1alpha1PolicyRulesWithSubjects addNonResourceRulesItem(IoK8sApiFlowcontrolV1alpha1NonResourcePolicyRule nonResourceRulesItem)
-
getNonResourceRules
@Nullable public List<IoK8sApiFlowcontrolV1alpha1NonResourcePolicyRule> getNonResourceRules()
`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.- Returns:
- nonResourceRules
-
setNonResourceRules
public void setNonResourceRules(List<IoK8sApiFlowcontrolV1alpha1NonResourcePolicyRule> nonResourceRules)
-
resourceRules
public IoK8sApiFlowcontrolV1alpha1PolicyRulesWithSubjects resourceRules(List<IoK8sApiFlowcontrolV1alpha1ResourcePolicyRule> resourceRules)
-
addResourceRulesItem
public IoK8sApiFlowcontrolV1alpha1PolicyRulesWithSubjects addResourceRulesItem(IoK8sApiFlowcontrolV1alpha1ResourcePolicyRule resourceRulesItem)
-
getResourceRules
@Nullable public List<IoK8sApiFlowcontrolV1alpha1ResourcePolicyRule> 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
public void setResourceRules(List<IoK8sApiFlowcontrolV1alpha1ResourcePolicyRule> resourceRules)
-
subjects
public IoK8sApiFlowcontrolV1alpha1PolicyRulesWithSubjects subjects(List<IoK8sApiFlowcontrolV1alpha1Subject> subjects)
-
addSubjectsItem
public IoK8sApiFlowcontrolV1alpha1PolicyRulesWithSubjects addSubjectsItem(IoK8sApiFlowcontrolV1alpha1Subject subjectsItem)
-
getSubjects
public List<IoK8sApiFlowcontrolV1alpha1Subject> 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
public void setSubjects(List<IoK8sApiFlowcontrolV1alpha1Subject> subjects)
-
-