/* tslint:disable */ /* eslint-disable */ /** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: unversioned * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * 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. * @export * @interface IoK8sApiFlowcontrolV1NonResourcePolicyRule */ export interface IoK8sApiFlowcontrolV1NonResourcePolicyRule { /** * `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. * @type {Array} * @memberof IoK8sApiFlowcontrolV1NonResourcePolicyRule */ nonResourceURLs: Array; /** * `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. * @type {Array} * @memberof IoK8sApiFlowcontrolV1NonResourcePolicyRule */ verbs: Array; } export function IoK8sApiFlowcontrolV1NonResourcePolicyRuleFromJSON( json: any, ): IoK8sApiFlowcontrolV1NonResourcePolicyRule { return IoK8sApiFlowcontrolV1NonResourcePolicyRuleFromJSONTyped(json, false); } export function IoK8sApiFlowcontrolV1NonResourcePolicyRuleFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): IoK8sApiFlowcontrolV1NonResourcePolicyRule { if (json === undefined || json === null) { return json; } return { nonResourceURLs: json['nonResourceURLs'], verbs: json['verbs'], }; } export function IoK8sApiFlowcontrolV1NonResourcePolicyRuleToJSON( value?: IoK8sApiFlowcontrolV1NonResourcePolicyRule | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { nonResourceURLs: value.nonResourceURLs, verbs: value.verbs, }; }