Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1.95 KB

File metadata and controls

29 lines (22 loc) · 1.95 KB

V1NonResourcePolicyRule

NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.

Properties

Name Type Description Notes
non_resource_urls List[str] `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: - "/healthz" is legal - "/hea*" is illegal - "/hea" is legal but matches nothing - "/hea/" also matches nothing - "/healthz/" matches all per-component health checks. "*" matches all non-resource urls. if it is present, it must be the only entry. Required.
verbs List[str] `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required.

Example

from kubernetes.client.models.v1_non_resource_policy_rule import V1NonResourcePolicyRule

# TODO update the JSON string below
json = "{}"
# create an instance of V1NonResourcePolicyRule from a JSON string
v1_non_resource_policy_rule_instance = V1NonResourcePolicyRule.from_json(json)
# print the JSON string representation of the object
print(V1NonResourcePolicyRule.to_json())

# convert the object into a dict
v1_non_resource_policy_rule_dict = v1_non_resource_policy_rule_instance.to_dict()
# create an instance of V1NonResourcePolicyRule from a dict
v1_non_resource_policy_rule_from_dict = V1NonResourcePolicyRule.from_dict(v1_non_resource_policy_rule_dict)

[Back to Model list] [Back to API list] [Back to README]