kubernetes_asyncio.client.models.v1_policy_rules_with_subjects module
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1.34.3 Generated by: https://openapi-generator.tech
- class kubernetes_asyncio.client.models.v1_policy_rules_with_subjects.V1PolicyRulesWithSubjects(non_resource_rules=None, resource_rules=None, subjects=None, local_vars_configuration=None)
Bases:
objectNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech
Do not edit the class manually.
- attribute_map = {'non_resource_rules': 'nonResourceRules', 'resource_rules': 'resourceRules', 'subjects': 'subjects'}
- property non_resource_rules
Gets the non_resource_rules of this V1PolicyRulesWithSubjects. # noqa: E501
nonResourceRules is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. # noqa: E501
- Returns:
The non_resource_rules of this V1PolicyRulesWithSubjects. # noqa: E501
- Return type:
list[V1NonResourcePolicyRule]
- openapi_types = {'non_resource_rules': 'list[V1NonResourcePolicyRule]', 'resource_rules': 'list[V1ResourcePolicyRule]', 'subjects': 'list[FlowcontrolV1Subject]'}
- property resource_rules
Gets the resource_rules of this V1PolicyRulesWithSubjects. # noqa: E501
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. # noqa: E501
- Returns:
The resource_rules of this V1PolicyRulesWithSubjects. # noqa: E501
- Return type:
list[V1ResourcePolicyRule]
- property subjects
Gets the subjects of this V1PolicyRulesWithSubjects. # noqa: E501
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. # noqa: E501
- Returns:
The subjects of this V1PolicyRulesWithSubjects. # noqa: E501
- Return type:
list[FlowcontrolV1Subject]
- to_dict(serialize=False)
Returns the model properties as a dict
- to_str()
Returns the string representation of the model