/* 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. */ import { exists } from '../runtime'; import { IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpec, IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpecFromJSON, IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpecToJSON, IoK8sApiAuthorizationV1SubjectAccessReviewStatus, IoK8sApiAuthorizationV1SubjectAccessReviewStatusFromJSON, IoK8sApiAuthorizationV1SubjectAccessReviewStatusToJSON, IoK8sApimachineryPkgApisMetaV1ObjectMeta, IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, } from './'; /** * SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means "in all namespaces". Self is a special case, because users should always be able to check whether they can perform an action * @export * @interface IoK8sApiAuthorizationV1SelfSubjectAccessReview */ export interface IoK8sApiAuthorizationV1SelfSubjectAccessReview { /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @type {string} * @memberof IoK8sApiAuthorizationV1SelfSubjectAccessReview */ apiVersion?: string; /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @type {string} * @memberof IoK8sApiAuthorizationV1SelfSubjectAccessReview */ kind?: string; /** * * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} * @memberof IoK8sApiAuthorizationV1SelfSubjectAccessReview */ metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; /** * * @type {IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpec} * @memberof IoK8sApiAuthorizationV1SelfSubjectAccessReview */ spec: IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpec; /** * * @type {IoK8sApiAuthorizationV1SubjectAccessReviewStatus} * @memberof IoK8sApiAuthorizationV1SelfSubjectAccessReview */ status?: IoK8sApiAuthorizationV1SubjectAccessReviewStatus; } export function IoK8sApiAuthorizationV1SelfSubjectAccessReviewFromJSON( json: any, ): IoK8sApiAuthorizationV1SelfSubjectAccessReview { return IoK8sApiAuthorizationV1SelfSubjectAccessReviewFromJSONTyped(json, false); } export function IoK8sApiAuthorizationV1SelfSubjectAccessReviewFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): IoK8sApiAuthorizationV1SelfSubjectAccessReview { if (json === undefined || json === null) { return json; } return { apiVersion: !exists(json, 'apiVersion') ? undefined : json['apiVersion'], kind: !exists(json, 'kind') ? undefined : json['kind'], metadata: !exists(json, 'metadata') ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), spec: IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpecFromJSON(json['spec']), status: !exists(json, 'status') ? undefined : IoK8sApiAuthorizationV1SubjectAccessReviewStatusFromJSON(json['status']), }; } export function IoK8sApiAuthorizationV1SelfSubjectAccessReviewToJSON( value?: IoK8sApiAuthorizationV1SelfSubjectAccessReview | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { apiVersion: value.apiVersion, kind: value.kind, metadata: IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), spec: IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpecToJSON(value.spec), status: IoK8sApiAuthorizationV1SubjectAccessReviewStatusToJSON(value.status), }; }